002201 il y a 2 ans
Parent
commit
5268f6e088

+ 3 - 0
src/views/purchase/contract/edit/index.vue

@@ -163,7 +163,10 @@ export default {
       await this.root
         .useAlteration(prop)
         .then(() => {
+          const [{ id }] = prop;
+          const { fetchItem } = this.root.$refs.SeeModel;
           this.hide();
+          fetchItem(id);
         })
         .catch(() => {});
     },

+ 0 - 1
src/views/purchase/contract/index.vue

@@ -101,7 +101,6 @@ export default {
       await open(id);
     },
     hasPowerEdit(prop) {
-      return true;
       if (prop.length === 1) {
         const [{ status }] = prop;
         if (status !== "2") return true;

+ 13 - 0
src/views/purchase/contract/see/index.vue

@@ -98,6 +98,19 @@ export default {
           ></el-button>
         </el-tooltip>
         <el-tooltip
+          v-if="root.hasPowerAlteration([params])"
+          effect="dark"
+          content="变 更"
+          placement="bottom-end"
+        >
+          <el-button
+            :size="size"
+            circle
+            icon="el-icon-edit"
+            @click="root.useEdit([params])"
+          ></el-button>
+        </el-tooltip>
+        <el-tooltip
           v-if="root.hasPowerEdit([params])"
           effect="dark"
           content="编 辑"