Browse Source

1.回显

fix_bug_pro20231227
0.0 1 year ago
parent
commit
fd9b53be9c
  1. 31
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue
  2. 1
      src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue

31
src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

@ -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;
}

1
src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue

@ -575,7 +575,6 @@ export default {
this.onLoad(this.page);
},
handleEditOwn (row) {
this.$router.push({
path: '/warehouse/warehousingentry/warehouseWarehouseingAddReceipt',
query:{

Loading…
Cancel
Save