给单据中的供应商、客户、会员、账号新增完之后默认直接选中
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initSupplier(0)
|
||||
this.initDepot()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initCustomer(0)
|
||||
this.initDepot()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
|
||||
@@ -338,9 +338,9 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initSupplier(0)
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@@ -387,9 +387,9 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initSupplier(0)
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@@ -346,8 +346,8 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initAccount()
|
||||
this.initSupplier(0)
|
||||
this.initAccount(0)
|
||||
},
|
||||
/** 整理成formData */
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@@ -320,9 +320,9 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.initRetail(0)
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
@@ -351,10 +351,13 @@
|
||||
rows: JSON.stringify(detailArr),
|
||||
}
|
||||
},
|
||||
initAccount(){
|
||||
initAccount(isChecked){
|
||||
getAccount({}).then((res)=>{
|
||||
if(res && res.code === 200) {
|
||||
this.accountList = res.data.accountList
|
||||
if(isChecked && this.accountList.length>0) {
|
||||
this.form.setFieldsValue({'accountId': this.accountList[0].id})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -330,9 +330,9 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.initRetail(0)
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
@@ -364,10 +364,13 @@
|
||||
initPayTypeList() {
|
||||
this.payTypeList.push({"value":"现付", "text":"现付"})
|
||||
},
|
||||
initAccount(){
|
||||
initAccount(isChecked){
|
||||
getAccount({}).then((res)=>{
|
||||
if(res && res.code === 200) {
|
||||
this.accountList = res.data.accountList
|
||||
if(isChecked && this.accountList.length>0) {
|
||||
this.form.setFieldsValue({'accountId': this.accountList[0].id})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -345,10 +345,10 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initCustomer(0)
|
||||
this.initSalesman()
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@@ -321,9 +321,9 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initCustomer(0)
|
||||
this.initSalesman()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@@ -405,10 +405,10 @@
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initCustomer(0)
|
||||
this.initSalesman()
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
this.initAccount(0)
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
Reference in New Issue
Block a user