diff --git a/package.json b/package.json index d5f89ce..424f19e 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,6 @@ "prettier": "prettier --write ." }, "dependencies": { - "file-saver": "^2.0.5", - "xlsx": "^0.18.5", "@axolo/json-editor-vue": "^0.3.2", "@chenfengyuan/vue-qrcode": "^2.0.0", "@element-plus/icons-vue": "^2.0.10", @@ -38,6 +36,7 @@ "driver.js": "^0.9.8", "echarts": "^5.4.1", "element-plus": "2.5.5", + "file-saver": "^2.0.5", "form-create-designer": "3.2.11-oem", "highlight.js": "^11.7.0", "html-to-image": "^1.11.13", @@ -46,6 +45,7 @@ "json-editor-vue3": "^1.1.1", "jsplumb": "2.15.6", "lodash": "^4.17.21", + "mammoth": "^1.11.0", "marked": "^12.0.2", "markmap-common": "0.15.6", "markmap-lib": "0.15.8", @@ -73,7 +73,8 @@ "vue-router": "4.1.6", "vue3-tree-org": "^4.2.2", "vue3-video-play": "1.3.1-beta.6", - "vuedraggable": "^4.1.0" + "vuedraggable": "^4.1.0", + "xlsx": "^0.18.5" }, "resolutions": { "@achrinza/node-ipc": "^11.0.0", diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 90ec3a0..f80fca9 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -138,7 +138,7 @@ - + void) => { + if (dataForm.budget != null && dataForm.budget >= BUDGET_DEPT_SELF_MEETING_MINUTES) { + if (!value || (Array.isArray(value) && value.length === 0) || (typeof value === 'string' && !value.trim())) { + callback(new Error('请上传部门采购会议纪要')); + return; + } + } + callback(); + }, + trigger: 'change', + }, + ], // 学校统一采购时必填 deptClassifyUserId: [ {