Browse Source

终止按钮注释

hella_online_20240828
李达明 2 months ago
parent
commit
46305d5105
  1. 8
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

8
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -249,7 +249,7 @@ const butttondata = (row,$index) => {
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:sale-shipment-main-request:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:sale-shipment-main-request:handle'}), //
defaultButtons.mainListAbortBtn({hide:isShowMainButton(row,['8']),hasPermi:'wms:sale-shipment-main-request:abort'}), // // defaultButtons.mainListAbortBtn({hide:isShowMainButton(row,['8']),hasPermi:'wms:sale-shipment-main-request:abort'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-request:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-request:delete'}), //
] ]
} }
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainAbort') { // } else if (val == 'mainAbort') { //
await message.confirm('确认要终止吗?') await message.confirm('确认要终止吗?')
tableObject.loading = true tableObject.loading = true
SaleShipmentMainApi.abort(row.masterId).then(() => { SaleShipmentMainApi.abort(row.masterId).then(() => {
@ -361,7 +361,7 @@ const openForm = (type: string, row?: any) => {
const inputNumberChange = (field, val,row, index) => { const inputNumberChange = (field, val,row, index) => {
if(field=='qty'){ if(field=='qty'){
if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){ if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){
message.error(`物料${row['itemCode']}最大数量为${row['subSettleQty']}`) message.error(`物料${row['itemCode']}最大数量为${row['subSettleQty']}`)
} }
} }
console.log('inputNumberChange',field, val,row, index) console.log('inputNumberChange',field, val,row, index)
@ -376,7 +376,7 @@ const submitForm = async (formType, submitData) => {
tableData.value.forEach(item=>{ tableData.value.forEach(item=>{
if(item['subSettleQty']!=null&&item['qty']>item['subSettleQty']){ if(item['subSettleQty']!=null&&item['qty']>item['subSettleQty']){
flag = false flag = false
message.error(`物料${item['itemCode']}最大数量为${item['subSettleQty']}`) message.error(`物料${item['itemCode']}最大数量为${item['subSettleQty']}`)
} }
}) })
if(!flag){ if(!flag){

Loading…
Cancel
Save