Browse Source

供应商发货申请

master_hella_20240701
wangyufei 4 months ago
parent
commit
9576e5a89a
  1. 1
      src/components/TableForm/src/TableForm.vue
  2. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
  3. 132
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

1
src/components/TableForm/src/TableForm.vue

@ -505,6 +505,7 @@ const emit = defineEmits([
'tableSelectionDelete',
'extendedButtonsClick',
'formSelectChange',
'inputNumberChange',
'tableSortChange',
'selectCallback',
'handleTableSelect',

3
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

@ -262,6 +262,9 @@ const getSearchTableData = async (number,formField,searchField)=>{
newRow['poLine'] = row['poLine']
newRow['orderQty'] = row['orderQty']
newRow['uom'] = row['uom']
newRow['planQty'] = row['planQty']
newRow['shippedQty'] = row['shippedQty']
newRow['qty'] = row['planQty'] - row['shippedQty']
tableData.value.push(newRow)
itemCodes.push(row['itemCode'])
})

132
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -691,26 +691,24 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}
},
{
label: '批次',
field: 'batch',
label: '申请发货数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
tableForm: {
disabled: true
}
},
{
label: '供应商批次',
field: 'supplierBatch',
sort: 'custom',
table: {
width: 150
sortTableDefault:2,
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
disabled: false
type: 'InputNumber',
min: 1,
precision: 6
}
},
{
@ -739,6 +737,70 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
valueFormat: 'x',
}
},
{
label: '供应商批次',
field: 'supplierBatch',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: false
}
},
{
label: '发货批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
tableForm: {
disabled: true
}
},
{
label: '计划数量',
field: 'planQty',
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'InputNumber',
precision: 6
},
sortTableDefault:4,
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}
},
{
label: '已发货数量',
field: 'shippedQty',
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'InputNumber',
precision: 6
},
sortTableDefault:4,
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}
},
// {
// label: '替代批次',
@ -811,27 +873,27 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
disabled: true
}
},
{
label: '发货数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:2,
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
// {
// label: '发货数量',
// field: 'qty',
// sort: 'custom',
// table: {
// width: 150
// },
// sortTableDefault:2,
// form: {
// component: 'InputNumber',
// componentProps: {
// min: 1,
// precision: 6
// }
// },
// tableForm: {
// type: 'InputNumber',
// min: 1,
// precision: 6
// }
// },
{
label: '订单数量',
field: 'orderQty',

Loading…
Cancel
Save