Browse Source

最近改的使用决策和发布恢复到之前版本,这两天的更改0828的为准

hella_online_20240829
zhang_li 3 months ago
parent
commit
967e797a3d
  1. 6
      src/views/qms/inspectionRecord/index.vue
  2. 2
      src/views/qms/inspectionRecord/useAddForm.vue

6
src/views/qms/inspectionRecord/index.vue

@ -281,13 +281,13 @@ const buttonTableClick = async (val, row) => {
// //
// 1使 // 1使
if (row.estimateCode == 1) { if (row.estimateCode == 1) {
InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => { InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') { if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value == 1) itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value == 1)
} }
}) })
} else if (row.estimateCode == 2) { } else if (row.estimateCode == 2) {
InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => { InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') { if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value != 1) itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value != 1)
} }
@ -430,9 +430,7 @@ const submitForm = async (formType, data) => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false
if (!data.isPublished) {
handleOrderPub(rowData.value) handleOrderPub(rowData.value)
}
// //
getList() getList()
} finally { } finally {

2
src/views/qms/inspectionRecord/useAddForm.vue

@ -140,7 +140,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
if(row.estimateCode == 1){ if(row.estimateCode == 1){
data.value.useDecision = '1' data.value.useDecision = '1'
}else{ }else{
data.value.useDecision =row.useDecision||'' data.value.useDecision =''
} }
// == // ==
if(data.value.useDecision == 1){ if(data.value.useDecision == 1){

Loading…
Cancel
Save