Browse Source

计划外出库不可以同事提交两种类型

intex_online20241228
张立 2 months ago
parent
commit
bcc4aa12e0
  1. 1
      src/components/TableForm/src/TableForm.vue
  2. 8
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

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

@ -627,7 +627,6 @@ const handleTableSelect = (row, column, event) => {
// item // item
const itemIsDisabled = (colum, row) => { const itemIsDisabled = (colum, row) => {
console.log(row['disabled_' + colum.field])
if (row['disabled_' + colum.field] === true || row['disabled_' + colum.field] === false) { if (row['disabled_' + colum.field] === true || row['disabled_' + colum.field] === false) {
return Boolean(row['disabled_' + colum.field]) return Boolean(row['disabled_' + colum.field])
} }

8
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -280,6 +280,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
tfk['itemCode'] = item['code'] tfk['itemCode'] = item['code']
tfk['uom'] = item['uom'] tfk['uom'] = item['uom']
tfk['validityDays'] = item['validityDays'] tfk['validityDays'] = item['validityDays']
tfk['isEnableBuy'] = val[0]['enableBuy']
tableData.value.push(tfk) tableData.value.push(tfk)
}) })
} else if (formField === 'costcentreCode') { } else if (formField === 'costcentreCode') {
@ -855,6 +856,13 @@ const submitForm = async (formType, submitData) => {
: '' : ''
}) })
try { try {
let newVal = data.subList.some((item) => item.isEnableBuy == 'TRUE')
let newVal1 = data.subList.some((item) => item.isEnableBuy == 'FALSE')
console.log(newVal,newVal1)
if (newVal && newVal1) {
message.warning('不能同时选择可制造和可采购的物料')
return
}
if (formType === 'create') { if (formType === 'create') {
console.log('【计划外入库子列表】', data.subList) console.log('【计划外入库子列表】', data.subList)
if (data.subList.length == 0) { if (data.subList.length == 0) {

Loading…
Cancel
Save