Commit 3edfcd91 authored by 华国豪's avatar 华国豪 🙄

新增小程序订单修改条件

parent f1b0558d
......@@ -777,11 +777,13 @@
<el-form-item label="客户门店" prop="CustomerId"
v-show="addMsg.CustomerType==1||addMsg.CustomerType==2||addMsg.CustomerType==''">
<el-select v-model='addMsg.CustomerId' filterable :placeholder="$t('pub.pleaseSel')" @change='getSspt'
v-if="addMsg.OrderForm !== 4"
:disabled="true">
<el-option v-for="item in khmdList" :label='item.customerName' :value='item.customerId'
:key='item.customerId'>
</el-option>
</el-select>
<el-input v-else v-model='addMsg.allName' :disabled="true"></el-input>
</el-form-item>
</el-col>
......@@ -1061,7 +1063,7 @@
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="客人来源" prop="ClientSource">
<el-select v-model='addMsg.ClientSource' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.ClientSource' :disabled="addMsg.OrderForm!==4 ? true : false" filterable :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in ddlyList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
......@@ -1077,7 +1079,7 @@
</el-col>
<el-col :span="4">
<el-form-item label="交易方式" prop="TradeWay" v-show='addMsg.ClientSource==1'>
<el-select v-model='addMsg.TradeWay' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.TradeWay' :disabled="addMsg.OrderForm !== 4 ? true : false" filterable :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in jyfsList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
......@@ -1946,6 +1948,7 @@
Unit_PriceList: [], //成交单价下拉数据
LessMoney: 0,
addMsg: {
OrderForm: 1,
OrderId: '0',
TCID: '0',
CustomerType: '',
......@@ -2680,7 +2683,7 @@
this.remarksMsg.isOrder = obj.isOrder
}
},
getDetail(obj) {
getDetail(obj) {
this.Ysze = false;
this.starTime = obj.startDate
this.endTime = obj.backDate
......@@ -2721,6 +2724,8 @@
this.addMsg.ChirdNoNeedBedNum = (x.ChirdNum - x.ChirdNeedBedNum).toString()
this.addMsg.BabyNum = x.BabyNum.toString();
this.addMsg.RefuseVisaNum = x.RefuseVisaNum.toString();
this.addMsg.OrderForm = x.OrderForm
this.addMsg.allName = x.ContactName
this.IsChildrenTour = x.IsChildrenTour
this.IsBirdDiscount = x.IsBirdDiscount
......@@ -2745,6 +2750,8 @@
this.isShowLayer = true
this.isShowHouse = false
this.isShowLayerRemarks = false
this.getKhmdList(this.addMsg.CustomerType, obj.lineId)
this.getDdlyList(this.addMsg.CustomerType)
this.apipost(
'app_today_visit_GetCustomerBrandByCustomerId', {
customerInfoId: x.CustomerId
......@@ -2793,9 +2800,6 @@
this.Unit_PriceList.push(obj);
}
}, err => {})
this.getKhmdList(this.addMsg.CustomerType, obj.lineId)
this.getDdlyList(this.addMsg.CustomerType)
} else {
this.$message.error(res.data.message)
}
......@@ -3467,7 +3471,7 @@
err => {}
)
},
getDdlyList(id) {
getDdlyList(id) {
this.apipost(
'sellorder_get_GetSellClientSourceEnumList', {
typeId: id
......
......@@ -701,7 +701,7 @@
<el-input v-model='addMsg.ContactMobile'></el-input>
</el-form-item>
<el-form-item label="客户门店" prop="CustomerId" v-show="addMsg.CustomerType==1||addMsg.CustomerType==2||addMsg.CustomerType==''" >
<el-select v-model='addMsg.CustomerId' filterable :placeholder="$t('pub.pleaseSel')" @change='getSspt' :disabled="true">
<el-select v-model='addMsg.CustomerId' filterable :placeholder="$t('pub.pleaseSel')" @change='getSspt' v-if="addMsg.OrderForm !== 4" :disabled="true">
<el-option
v-for="(item,index) in khmdList"
:label='item.customerName'
......@@ -709,6 +709,7 @@
:key='index'>
</el-option>
</el-select>
<el-input v-else v-model='addMsg.allName' :disabled="true"></el-input>
</el-form-item>
</el-col>
......@@ -900,7 +901,7 @@
</el-col>
<el-col :span="4">
<el-form-item label="交易方式" prop="TradeWay" v-show='addMsg.ClientSource==1'>
<el-select v-model='addMsg.TradeWay' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.TradeWay' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
<el-option
v-for="item in jyfsList"
:label='item.Name'
......@@ -1280,7 +1281,7 @@
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="客人来源" prop="ClientSource">
<el-select v-model='addMsg.ClientSource' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.ClientSource' :disabled="addMsg.OrderForm!==4 ? true : false" filterable :placeholder="$t('pub.pleaseSel')">
<el-option
v-for="item in ddlyList"
:label='item.Name'
......@@ -1304,7 +1305,7 @@
</el-col>
<el-col :span="4">
<el-form-item label="交易方式" prop="TradeWay" v-show='addMsg.ClientSource==1'>
<el-select v-model='addMsg.TradeWay' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.TradeWay' :disabled="addMsg.OrderForm !== 4 ? true : false" filterable :placeholder="$t('pub.pleaseSel')">
<el-option
v-for="item in jyfsList"
:label='item.Name'
......@@ -2294,6 +2295,7 @@ export default {
Unit_PriceList:[],//成交单价下拉数据
LessMoney:0,
addMsg: {
OrderForm: '',
OrderId: "0",
TCID: "0",
CustomerType: "",
......@@ -3046,7 +3048,8 @@ submitYSZEForm(){
this.addMsg.ChirdNoNeedBedNum = (x.ChirdNum - x.ChirdNeedBedNum).toString();
this.addMsg.BabyNum = x.BabyNum.toString();
this.addMsg.RefuseVisaNum=x.RefuseVisaNum.toString();
this.addMsg.OrderForm = x.OrderForm
this.addMsg.allName = x.ContactName
// this.addMsg_form.OrderId=x.OrderId;
// this.addMsg_form.OpSetLossMoney=x.OpSetLossMoney;//收损金额
// this.addMsg_form.BabyChargePrice=modelPrice.BabyChargePrice;//小孩附加费
......@@ -3090,6 +3093,8 @@ submitYSZEForm(){
this.isShowLayer = false;
this.isShowLayer2 = true;
}
this.getKhmdList(this.addMsg.CustomerType, obj.lineId,this.addMsg.CreateBy);
this.getDdlyList(this.addMsg.CustomerType);
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum) )
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {"TCID":obj.tcid, "MaxPeopleNum": MaxPeopleNum}, res => {
......@@ -3137,8 +3142,7 @@ submitYSZEForm(){
},
err => {}
);
this.getKhmdList(this.addMsg.CustomerType, obj.lineId,this.addMsg.CreateBy);
this.getDdlyList(this.addMsg.CustomerType);
} else {
}
},
......
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