|
|
@@ -71,6 +71,7 @@
|
|
|
import checkAdd from './components/checkAdd.vue';
|
|
|
import checkDetails from './components/checkDetails.vue';
|
|
|
import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
+ import { getCategoryByCode } from '@/api/main/index';
|
|
|
|
|
|
export default {
|
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
|
@@ -242,6 +243,9 @@
|
|
|
]
|
|
|
}
|
|
|
];
|
|
|
+ },
|
|
|
+ clientEnvironmentId() {
|
|
|
+ return this.$store.state.user.info.clientEnvironmentId;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -288,8 +292,8 @@
|
|
|
// 提交审批
|
|
|
openApproval(row) {
|
|
|
console.log('row', row);
|
|
|
- this.processSubmitDialogFlag = true;
|
|
|
- this.$nextTick(() => {
|
|
|
+ // this.processSubmitDialogFlag = true;
|
|
|
+ this.$nextTick(async () => {
|
|
|
let params = {
|
|
|
businessId: row.id,
|
|
|
businessKey: 'work_order_checklist_approval',
|
|
|
@@ -298,7 +302,22 @@
|
|
|
businessCode: row.code
|
|
|
}
|
|
|
};
|
|
|
- console.log('1', 1);
|
|
|
+
|
|
|
+ if (this.clientEnvironmentId == 5) {
|
|
|
+ // 嘉实环境
|
|
|
+ const data = await getCategoryByCode(row.orders[0]?.productCode);
|
|
|
+
|
|
|
+ // 判断品类
|
|
|
+ if (data && data.categoryLevelCodePath?.includes('W3-209')) {
|
|
|
+ // 药品
|
|
|
+ params.businessKey = 'work_order_checklist_approval1';
|
|
|
+ } else {
|
|
|
+ // 器械
|
|
|
+ params.businessKey = 'work_order_checklist_approval';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log('params', params);
|
|
|
this.$refs.processSubmitDialogRef.init(params);
|
|
|
});
|
|
|
}
|