Browse Source

生产退料申请--批量添加功能

hella_online_20240924
yufei_wang 2 months ago
parent
commit
243522ab5c
  1. 3
      src/api/wms/business/inputBlur.ts
  2. 36
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

3
src/api/wms/business/inputBlur.ts

@ -573,6 +573,9 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
}
}
await tableFormSchemaObj.verificationPage(params.value).then(async (res) => {
if(!Array.isArray(res)&&res.list&&Array.isArray(res.list)){
res = res.list
}
list.value = res ? res : []
if (arr1.length != res.length) {
const arr2 = res.map((item) => item[headerItem.tableForm.searchField])

36
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -913,12 +913,12 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
message: '请填写来源库位!',
isMainValue: true
},
{
key: 'warehouseCode',
value: 'toWarehouseCode',
message: '请填写到仓库!',
isMainValue: true
},
// {
// key: 'warehouseCode',
// value: 'toWarehouseCode',
// message: '请填写到仓库!',
// isMainValue: true
// },
{
key: 'inventoryStatus',
value: 'OK',
@ -942,12 +942,12 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
message: '请填写来源库位!',
isMainValue: true
},
{
key: 'warehouseCode',
value: 'toWarehouseCode',
message: '请填写到仓库!',
isMainValue: true
},
// {
// key: 'warehouseCode',
// value: 'toWarehouseCode',
// message: '请填写到仓库!',
// isMainValue: true
// },
{
key: 'inventoryStatus',
value: 'OK',
@ -956,7 +956,17 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
key: 'businessType',
value: 'ReturnToStore', // 合格退料
isMainValue: false
}]
}],
verificationPage: BalanceApi.getBalancePage, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
},
},
// {

Loading…
Cancel
Save