Browse Source

WMS ——> bug 隔离退料申请修改为由申请直接生成记录

linshi20240813
高竟松 6 months ago
parent
commit
c58914547e
  1. 46
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

46
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -322,17 +322,17 @@ const butttondata = (row,$index) => {
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionreturn-request-main:update'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionreturn-request-main:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), //
// //
{ // {
label: '创建标签', // label: '',
name: 'cjbq', // name: 'cjbq',
hide: isShowMainButton(row,['3']), // hide: isShowMainButton(row,['3']),
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: '', // hasPermi: '',
link: true, // // link: true, //
}, // },
defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // // defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), //
] ]
} }
@ -465,18 +465,18 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
// //
let isCreateLabel = false // let isCreateLabel = false
await PackageApi.getPackagePage({ // await PackageApi.getPackagePage({
requestNumber: row.number // requestNumber: row.number
}).then(res => { // }).then(res => {
if (res) { // if (res) {
if (res.list.length > 0) isCreateLabel = true // if (res.list.length > 0) isCreateLabel = true
} // }
}) // })
if (!isCreateLabel) { // if (!isCreateLabel) {
message.warning('请先创建标签') // message.warning('')
return // return
} // }
tableObject.loading = true tableObject.loading = true
ProductionreturnRequestMainNoApi.handle(row.masterId).then(() => { ProductionreturnRequestMainNoApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

Loading…
Cancel
Save