Просмотр исходного кода

fix(采购计划管理): 在拆分操作前添加责任人权限校验

liujt 6 месяцев назад
Родитель
Сommit
f7154480fd
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      src/views/purchasingManage/purchasePlanManage/index.vue

+ 7 - 1
src/views/purchasingManage/purchasePlanManage/index.vue

@@ -490,7 +490,13 @@
         this.$refs.addDialogRef.$refs.form &&
           this.$refs.addDialogRef.$refs.form.clearValidate();
       },
-      handleSplit(row) {
+      async handleSplit(row) {
+        let code = await isPlanPerson(row.id);
+        if (code == 1) {
+          return this.$message.warning(
+            '您不是该采购计划责任人,无法对该计划进行核价操作!'
+          );
+        }
         this.splitDialogFlag = true;
         this.$nextTick(() => {
           this.$refs.splitDialogRef.init(row);