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) => {
if (val == 'edit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
openForm('update', row)
} else if (val == 'delete') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handleDelete(row.id)
} else if (val == 'mainOrderClo') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handleClose(row.id)
} else if (val == 'mainOrderOpe') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handleOpen(row.id)
} else if (val == 'mainOrderPub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handlePublish(row.id)
} else if (val == 'mainOrderWit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
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',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
activeValue: 'TRUE',
disabled: true
}
},
},

Loading…
Cancel
Save