|
|
|
@ -473,24 +473,33 @@ 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.shop.push({ |
|
|
|
|
label: da.storeName, |
|
|
|
|
value: da.storeId |
|
|
|
|
}) |
|
|
|
|
if(!!da.storeId && da.storeId != '-1'){ |
|
|
|
|
console.log("门店》》》》"); |
|
|
|
|
this.shop.push({ |
|
|
|
|
label: da.storeName, |
|
|
|
|
value: da.storeId |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(this.store.length < 1){ |
|
|
|
|
this.store.push({ |
|
|
|
|
label: da.warehouse, |
|
|
|
|
value: da.warehouseId |
|
|
|
|
label: !!da.warehouse ? da.warehouse : null , |
|
|
|
|
value: !!da.warehouseId ? da.warehouseId : null |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
this.form = da; |
|
|
|
|
// console.log(">>>>>>",this.form.storeId); |
|
|
|
|
if(!!this.form.storeId && parseInt(this.form.storeId) == -1){ |
|
|
|
|
console.log(">>>>>>",this.form.storeId); |
|
|
|
|
this.form.storeId = null; |
|
|
|
|
} |
|
|
|
|
this.data = da.list; |
|
|
|
|
this.loading = false; |
|
|
|
|
if(!!ty && ty == "2"){ |
|
|
|
@ -809,7 +818,13 @@ export default {
|
|
|
|
|
// this.$message.warning("请完善订单自编号!!"); |
|
|
|
|
// return ; |
|
|
|
|
// } |
|
|
|
|
// if(parseInt(this.$route.query.type) == 3){ |
|
|
|
|
// |
|
|
|
|
// } |
|
|
|
|
console.log("this.form",this.form); |
|
|
|
|
if(!!this.form.totalInput && parseInt(this.form.totalInput) == '-1'){ |
|
|
|
|
this.form.totalInput = null; |
|
|
|
|
} |
|
|
|
|
this.form.list = this.data; |
|
|
|
|
update(this.form).then(() => { |
|
|
|
|
this.box = false; |
|
|
|
|