Browse Source

采购收货管理--供应商发货--采购订单--新增--formtable中行号和计量单位回显

master_hella_20240701
yufei0306 8 months ago
parent
commit
7a3029f49f
  1. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  2. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

6
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -115,6 +115,12 @@
val.forEach(item=>{
const newRow = {...row}
newRow[formField] = item[searchField]
let lineNumber = 1
if(tableData.value.length>0){
lineNumber = 1+(tableData.value[tableData.value.length-1]['lineNumber'])
}
newRow['lineNumber'] = lineNumber
newRow['uom'] = item['supplierUom']
tableData.value.push(newRow)
})
const itemCodes = val.map(valItem=>valItem['itemCode'])

7
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -390,6 +390,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
tableForm:{
disabled:true,
isSearchList: true, // 开启查询弹窗
}
},
@ -849,9 +850,9 @@ export const PurchaseDetailRules = reactive({
orderQty: [
{ required: true, message: '请输入订单数量', trigger: 'blur' }
],
uom: [
{ required: true, message: '请选择计量单位', trigger: 'change' }
],
// uom: [
// { required: true, message: '请选择计量单位', trigger: 'change' }
// ],
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
],

Loading…
Cancel
Save