Explorar el Código

🐞 fix([drp-采购员上级采购经理匹配]): 查看详情点放大镜后弹框不能关闭

在汇总采购员审核匹配列表界面选择数据点查看详情,打开界面点放大镜弹框后不能关闭。 建议改成:查看详情不能点放大镜或者点了需要能关闭

20240509220
002390 hace 1 año
padre
commit
e2301cd052

+ 5 - 3
src/components/popover-select-v2/multiple.vue

@@ -81,8 +81,11 @@ export default {
   methods: {
     // open dialog
     async open() {
-      this.visible = true;
-      await this.useReset();
+      let { disabled } = this.$attrs;
+      if (!disabled) {
+        this.visible = true;
+        await this.useReset();
+      }
     },
     // hide dialog
     async hide() {
@@ -274,5 +277,4 @@ export default {
 ::v-deep .el-table--mini .el-table__cell {
   height: 50px;
 }
-
 </style>

+ 5 - 2
src/components/popover-tree-select/multiple.vue

@@ -119,8 +119,11 @@ export default {
   methods: {
     // open dialog
     async open() {
-      this.visible = true;
-      await this.useReset();
+      let { disabled } = this.$attrs;
+      if (!disabled) {
+        this.visible = true;
+        await this.useReset();
+      }
     },
     // hide dialog
     async hide() {

+ 4 - 0
src/components/super-form/index.vue

@@ -127,6 +127,7 @@ export default {
                 :title="item.title"
                 v-model="innerValue[item.key]"
                 :source.sync="innerValue"
+                :disabled="$attrs.disabled"
                 style="width: 100%"
               >
               </component>
@@ -136,6 +137,7 @@ export default {
                 :title="item.title"
                 v-model="innerValue[item.key]"
                 :source.sync="innerValue"
+                :disabled="$attrs.disabled"
                 style="width: 100%"
               >
               </component>
@@ -144,6 +146,7 @@ export default {
                 v-bind="attr"
                 v-model="innerValue[item.key]"
                 :source.sync="innerValue"
+                :disabled="$attrs.disabled"
                 style="width: 100%"
               >
               </component>
@@ -152,6 +155,7 @@ export default {
                 v-bind="attr"
                 v-model="innerValue[item.key]"
                 :source.sync="innerValue"
+                :disabled="$attrs.disabled"
                 style="width: 100%"
               >
               </component>

+ 3 - 2
src/views/purchase/pu-match/details/index.vue

@@ -91,8 +91,8 @@ export default {
       this.params = { ...this.$init.params(this.FormColumns), enable: "0" };
       this.$emit("refresh");
     },
-    useSave(prop) {
-      console.log(this.params,"params");
+    async useSave(prop) {
+      console.log(this.params, "params");
       this.$refs[prop].$refs[prop].validate(async (valid) => {
         if (valid) {
           try {
@@ -173,6 +173,7 @@ export default {
           :size="$attrs.size"
           :source.sync="scope.row"
           :closable="addType !== 'see'"
+          :disabled="addType === 'see'"
         >
         </component
       ></template>