Commit d300046f authored by 黄奎's avatar 黄奎

页面修改

parent b837f169
......@@ -129,6 +129,7 @@
background: #EAEAEA !important;
text-align: center;
}
.disClick {
background-color: #d1d1d1;
color: #fff;
......@@ -265,9 +266,10 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="付款方式" min-width="150" >
<el-table-column label="付款方式" min-width="150">
<template slot-scope="scope">
<el-select class='sel' v-model='scope.row.PayType' :placeholder="$t('pub.pleaseSel')">
<el-select class='sel' v-model='scope.row.PayType' :placeholder="$t('pub.pleaseSel')"
@change="PayTypeChange(scope.row)">
<el-option label='请选择' :value='0'></el-option>
<el-option label='现付' :value='1'></el-option>
<el-option label='公司结算' :value='2'></el-option>
......@@ -277,9 +279,10 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="合团支付团号" min-width="150" >
<el-table-column label="合团支付团号" min-width="150">
<template slot-scope="scope">
<el-input class='w120' type="text" v-model='scope.row.PayTypeTCNUM' v-show="scope.row.PayType==6"></el-input>
<el-input class='w120' type="text" v-model='scope.row.PayTypeTCNUM' v-show="scope.row.PayType==6">
</el-input>
</template>
</el-table-column>
<el-table-column label="定团号" min-width="230">
......@@ -320,7 +323,7 @@
<el-table-column label="高速费用付款方式" min-width="150">
<template slot-scope="scope">
<div>
<el-select class='sel' v-model='scope.row.HighSpeedPayType' :placeholder="$t('pub.pleaseSel')">
<el-select class='sel' v-model='scope.row.HighSpeedPayType' :placeholder="$t('pub.pleaseSel')" @change="PayTypeChange(scope.row)">
<el-option label='请选择' :value='0'></el-option>
<el-option label='现付' :value='1'></el-option>
<el-option label='公司结算' :value='2'></el-option>
......@@ -359,8 +362,10 @@
</el-table-column>
</el-table>
<div class="upBtnList">
<input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(0)" :disabled="disButton" value="保存草稿" />
<input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)" :disabled="disButton" value="保存" />
<input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(0)"
:disabled="disButton" value="保存草稿" />
<input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)"
:disabled="disButton" value="保存" />
</div>
</el-form>
</div>
......@@ -513,12 +518,20 @@
};
},
methods: {
PayTypeChange(obj) {
if (obj.PayType == 7) {
obj.CostPrice = 0;
}
if (obj.HighSpeedPayType == 7) {
obj.HighSpeedPrice = 0;
}
},
/*获取车辆成本价格*/
getBusPrice(obj) {
let tempCostFee = 0;
var tempHighSpeedFee = 0;
if (obj.BusType) {
obj.PayType=2;
obj.PayType = 2;
obj.HighSpeedPayType = 1;
let busTypeObj = this.BusTypeList.find(item => item.Id === obj.BusType);
if (busTypeObj) {
......@@ -536,17 +549,15 @@
tempHighSpeedFee += parseFloat(busTypeObj.AllDayHighSpeedFee);
}
});
if(obj.HighSpeedPrice==0)
{
obj.HighSpeedPrice = tempHighSpeedFee;
if (obj.HighSpeedPrice == 0) {
obj.HighSpeedPrice = tempHighSpeedFee;
}
if(obj.CostPrice==0)
{
obj.CostPrice = tempCostFee;
if (obj.CostPrice == 0) {
obj.CostPrice = tempCostFee;
}
}
}else{
obj.PayType=null;
} else {
obj.PayType = null;
}
},
AddSubItem(item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment