优化单据中仓库、账户之类的下拉框

This commit is contained in:
季圣华
2021-07-13 22:52:43 +08:00
parent ee21de663c
commit 23f231c167
21 changed files with 104 additions and 63 deletions

View File

@@ -116,7 +116,7 @@
dataSource: [],
columns: [
{ title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [],
validateRules: [{ required: true, message: '${title}不能为空' }]
allowSearch:true, validateRules: [{ required: true, message: '${title}不能为空' }]
},
{ title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, multi: false,
validateRules: [{ required: true, message: '${title}不能为空' }]
@@ -180,6 +180,9 @@
let url = this.readOnly ? this.url.detailList : this.url.detailList;
this.requestSubTableData(url, params, this.materialTable);
}
this.initCustomer()
this.initSalesman()
this.initDepot()
},
//提交单据时整理成formData
classifyIntoFormData(allValues) {