Commit d300046f authored by 黄奎's avatar 黄奎

页面修改

parent b837f169
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
background: #EAEAEA !important; background: #EAEAEA !important;
text-align: center; text-align: center;
} }
.disClick { .disClick {
background-color: #d1d1d1; background-color: #d1d1d1;
color: #fff; color: #fff;
...@@ -265,9 +266,10 @@ ...@@ -265,9 +266,10 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="付款方式" min-width="150" > <el-table-column label="付款方式" min-width="150">
<template slot-scope="scope"> <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='0'></el-option>
<el-option label='现付' :value='1'></el-option> <el-option label='现付' :value='1'></el-option>
<el-option label='公司结算' :value='2'></el-option> <el-option label='公司结算' :value='2'></el-option>
...@@ -277,9 +279,10 @@ ...@@ -277,9 +279,10 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合团支付团号" min-width="150" > <el-table-column label="合团支付团号" min-width="150">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column label="定团号" min-width="230"> <el-table-column label="定团号" min-width="230">
...@@ -320,7 +323,7 @@ ...@@ -320,7 +323,7 @@
<el-table-column label="高速费用付款方式" min-width="150"> <el-table-column label="高速费用付款方式" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <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='0'></el-option>
<el-option label='现付' :value='1'></el-option> <el-option label='现付' :value='1'></el-option>
<el-option label='公司结算' :value='2'></el-option> <el-option label='公司结算' :value='2'></el-option>
...@@ -359,8 +362,10 @@ ...@@ -359,8 +362,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="upBtnList"> <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(0)"
<input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)" :disabled="disButton" value="保存" /> :disabled="disButton" value="保存草稿" />
<input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)"
:disabled="disButton" value="保存" />
</div> </div>
</el-form> </el-form>
</div> </div>
...@@ -513,12 +518,20 @@ ...@@ -513,12 +518,20 @@
}; };
}, },
methods: { methods: {
PayTypeChange(obj) {
if (obj.PayType == 7) {
obj.CostPrice = 0;
}
if (obj.HighSpeedPayType == 7) {
obj.HighSpeedPrice = 0;
}
},
/*获取车辆成本价格*/ /*获取车辆成本价格*/
getBusPrice(obj) { getBusPrice(obj) {
let tempCostFee = 0; let tempCostFee = 0;
var tempHighSpeedFee = 0; var tempHighSpeedFee = 0;
if (obj.BusType) { if (obj.BusType) {
obj.PayType=2; obj.PayType = 2;
obj.HighSpeedPayType = 1; obj.HighSpeedPayType = 1;
let busTypeObj = this.BusTypeList.find(item => item.Id === obj.BusType); let busTypeObj = this.BusTypeList.find(item => item.Id === obj.BusType);
if (busTypeObj) { if (busTypeObj) {
...@@ -536,17 +549,15 @@ ...@@ -536,17 +549,15 @@
tempHighSpeedFee += parseFloat(busTypeObj.AllDayHighSpeedFee); tempHighSpeedFee += parseFloat(busTypeObj.AllDayHighSpeedFee);
} }
}); });
if(obj.HighSpeedPrice==0) if (obj.HighSpeedPrice == 0) {
{ obj.HighSpeedPrice = tempHighSpeedFee;
obj.HighSpeedPrice = tempHighSpeedFee;
} }
if(obj.CostPrice==0) if (obj.CostPrice == 0) {
{ obj.CostPrice = tempCostFee;
obj.CostPrice = tempCostFee;
} }
} }
}else{ } else {
obj.PayType=null; obj.PayType = null;
} }
}, },
AddSubItem(item) { 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