|
|
|
@ -453,12 +453,12 @@ export default {
|
|
|
|
|
deep: true, |
|
|
|
|
immediate: true |
|
|
|
|
}, |
|
|
|
|
'form.clientId': { |
|
|
|
|
handler(newVal) { |
|
|
|
|
console.log("newVal>>>>>>>>>>>>>>>",newVal) |
|
|
|
|
console.log("this.options>>>>>>>>>>>>>>>",this.options) |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
// 'form.clientId': { |
|
|
|
|
// handler(newVal) { |
|
|
|
|
// console.log("newVal>>>>>>>>>>>>>>>",newVal) |
|
|
|
|
// console.log("this.options>>>>>>>>>>>>>>>",this.options) |
|
|
|
|
// }, |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -490,13 +490,17 @@ export default {
|
|
|
|
|
this.store = []; |
|
|
|
|
|
|
|
|
|
let b = await getWarehouseDetail(a); |
|
|
|
|
console.log('bbbb', b.data.data); |
|
|
|
|
console.log('bbbb>>>>', b.data.data); |
|
|
|
|
const da = b.data.data; |
|
|
|
|
|
|
|
|
|
this.options.push({ |
|
|
|
|
label: da.customerName, |
|
|
|
|
value: da.clientId, |
|
|
|
|
}); |
|
|
|
|
this.optionCodes.push({ |
|
|
|
|
label: da.customerCode, |
|
|
|
|
value: da.clientId, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (!!da.storeId && da.storeId != '-1') { |
|
|
|
|
console.log('门店》》》》'); |
|
|
|
@ -689,7 +693,6 @@ export default {
|
|
|
|
|
this.form.clientId = obj.value; |
|
|
|
|
} |
|
|
|
|
this.form.serviceType =null; |
|
|
|
|
console.log(""); |
|
|
|
|
let aa = ''; |
|
|
|
|
this.options.some(i => { |
|
|
|
|
// console.log(">><><><<>",i); |
|
|
|
@ -699,6 +702,14 @@ export default {
|
|
|
|
|
aa = i.value; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.optionCodes.some(i => { |
|
|
|
|
console.log(">><><><<>",i); |
|
|
|
|
if (i.value == row) { |
|
|
|
|
this.form.clientCode = i.label; |
|
|
|
|
//查询客户服务类型 |
|
|
|
|
aa = i.value; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
let bu = await getListName(this.page.currentPage, this.page.pageSize, { |
|
|
|
|
clientId: aa, |
|
|
|
|
typeService: '3', |
|
|
|
@ -878,7 +889,7 @@ export default {
|
|
|
|
|
this.$refs.form.validate(valid => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (!this.form.id) { |
|
|
|
|
// console.log("this.form111",this.form); |
|
|
|
|
console.log("this.form111",this.form); |
|
|
|
|
if (this.data.length > 0) { |
|
|
|
|
this.form.list = this.data; |
|
|
|
|
add(this.form).then(() => { |
|
|
|
@ -903,7 +914,7 @@ export default {
|
|
|
|
|
// if(parseInt(this.$route.query.type) == 3){ |
|
|
|
|
// |
|
|
|
|
// } |
|
|
|
|
// console.log("this.form222",this.form); |
|
|
|
|
console.log("this.form222",this.form); |
|
|
|
|
if (!!this.form.totalInput && parseInt(this.form.totalInput) == '-1') { |
|
|
|
|
this.form.totalInput = null; |
|
|
|
|
} |
|
|
|
|