|
|
@ -353,20 +353,20 @@ const butttondata = (row,$index) => { |
|
|
|
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:refused'}), // 驳回 |
|
|
|
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:agree'}), // 审批通过 |
|
|
|
// defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:update'}), // 编辑 |
|
|
|
{ |
|
|
|
label: '生成标签', |
|
|
|
name: 'ssbq', |
|
|
|
hide: isASNShowMainButton(row, ['3']), |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
defaultButtons.mainListPointBtn({ hide: isASNShowMainButton(row, ['3','8']) }), // 标签打印 |
|
|
|
// { |
|
|
|
// label: '生成标签', |
|
|
|
// name: 'ssbq', |
|
|
|
// hide: isASNShowMainButton(row, ['3']), |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: '', |
|
|
|
// link: true // 文本展现按钮 |
|
|
|
// }, |
|
|
|
// defaultButtons.mainListPointBtn({ hide: isASNShowMainButton(row, ['3','8']) }), // 标签打印 |
|
|
|
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), // 处理 |
|
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:purchasereceipt-request-main:close'}), // 关闭 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}), // 查看质检报告 |
|
|
|
// defaultButtons.mainListPlanCheckQualityReportBtn({}), // 查看质检报告 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -729,9 +729,11 @@ const submitForm = async (formType, submitData) => { |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
data.orderTypeM='2'; |
|
|
|
await PurchasereceiptRequestMainApi.createPurchasereceiptRequestMain(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
data.orderTypeM='2'; |
|
|
|
await PurchasereceiptRequestMainApi.updatePurchasereceiptRequestMain(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|