|
@ -78,11 +78,29 @@ const tableColumns = ref(SupplierAddressModelDeli.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
nextTick(() => { |
|
|
nextTick(async() => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
if (formField == 'supplierCode') { |
|
|
if (formField == 'supplierCode') { |
|
|
setV['supplierName'] = val[0]['name'] |
|
|
setV['supplierCode'] = val[0]['supplierCode'] |
|
|
|
|
|
setV['supplierName'] = val[0]['supplierName'] |
|
|
|
|
|
setV['supplierAddress'] = val[0]['supplierAddress'] |
|
|
|
|
|
setV['yearAndMonth'] = val[0]['yearAndMonth'] |
|
|
|
|
|
const params = { |
|
|
|
|
|
supplierCode: val[0]['supplierCode'], |
|
|
|
|
|
supplierAddress: val[0]['supplierAddress'], |
|
|
|
|
|
} |
|
|
|
|
|
const options = await SupplierAddressModelDeliApi.getSupplierModelList(params) |
|
|
|
|
|
SupplierAddressModelDeli.allSchemas.formSchema.forEach(item => { |
|
|
|
|
|
if(item.field == 'modelShow'){ |
|
|
|
|
|
item.componentProps.options = options.map(item=> { |
|
|
|
|
|
return { |
|
|
|
|
|
label: item, |
|
|
|
|
|
value:item |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
@ -104,7 +122,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:supplier-address-model-deli:create'}), // 新增 |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:supplier-address-model-deli:create'}), // 新增 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:supplier-address-model-deli:import'}), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:supplier-address-model-deli:import'}), // 导入 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:supplier-address-model-deli:export'}), // 导出 |
|
|
defaultButtons.defaultExportBtn(null), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|