Browse Source

检验任务,暂存后再发布,提示任务状态错误 HL-5848

hella_online_20240906
YEJIAXING-PC\lenovo 2 months ago
parent
commit
dece466f89
  1. 13
      src/views/qms/inspectionJob/index.vue
  2. 6
      src/views/qms/inspectionQ2/inspectionQ2.data.ts

13
src/views/qms/inspectionJob/index.vue

@ -238,6 +238,15 @@ const isShowMainButton3 = (row) => {
} }
} }
//
const isShowMainButton2 = (row, val) => {
if (val.indexOf(row.isStaging) > -1) {
return false
} else {
return true
}
}
// //
const isShowMainButton1 = (row, val) => { const isShowMainButton1 = (row, val) => {
if (val.indexOf(row.status) > -1) { if (val.indexOf(row.status) > -1) {
@ -269,6 +278,10 @@ const butttondata = (row) => {
hide: isShowMainButton(row, ['1', '2']), hide: isShowMainButton(row, ['1', '2']),
hasPermi: 'qms:inspection-job-main:execute' hasPermi: 'qms:inspection-job-main:execute'
}), // }), //
defaultButtons.mainListOrderPubBtn({
hide: isShowMainButton2(row, ['TRUE']),
hasPermi: 'qms:inspection-job-main:execute'
}), //
defaultButtons.mainListPackageBtn(null), // defaultButtons.mainListPackageBtn(null), //
defaultButtons.mainListPlanCheckQualityReportBtn({ defaultButtons.mainListPlanCheckQualityReportBtn({
hide: isShowMainButton3(row) hide: isShowMainButton3(row)

6
src/views/qms/inspectionQ2/inspectionQ2.data.ts

@ -329,7 +329,7 @@ export const Q2 = useCrudSchemas(
} }
}, },
{ {
label: '整灯物料代码', label: '整灯/分总成物料代码',
field: 'lightItemCode', field: 'lightItemCode',
sort: 'custom', sort: 'custom',
table: { table: {
@ -372,7 +372,7 @@ export const Q2 = useCrudSchemas(
} }
}, },
{ {
label: '整灯物料名称', label: '整灯/分总成物料名称',
field: 'lightItemName', field: 'lightItemName',
sort: 'custom', sort: 'custom',
dictClass: 'string', dictClass: 'string',
@ -454,7 +454,7 @@ export const Q2 = useCrudSchemas(
} }
}, },
{ {
label: '标准成本价格', label: '销售价格',
field: 'standardCostPrice', field: 'standardCostPrice',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,

Loading…
Cancel
Save