Browse Source

采购订单是否可用默认不可变更

master
chenfang 10 months ago
parent
commit
dd15e9d6d2
  1. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  2. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

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

@ -179,22 +179,22 @@
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleDelete(row.id) handleDelete(row.id)
} else if (val == 'mainOrderClo') { // } else if (val == 'mainOrderClo') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleClose(row.id) handleClose(row.id)
} else if (val == 'mainOrderOpe') { // } else if (val == 'mainOrderOpe') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleOpen(row.id) handleOpen(row.id)
} else if (val == 'mainOrderPub') { // } else if (val == 'mainOrderPub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handlePublish(row.id) handlePublish(row.id)
} else if (val == 'mainOrderWit') { // } else if (val == 'mainOrderWit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleWit(row.id) handleWit(row.id)
} }
} }

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

@ -242,7 +242,8 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE',
disabled: true
} }
}, },
}, },

Loading…
Cancel
Save