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

新增小程序订单修改条件

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