瀏覽代碼

收回暂时隐藏

黄梓星 1 年之前
父節點
當前提交
52fe5440a5

+ 4 - 4
src/views/purchase/PurchaseDemandList/index.vue

@@ -207,10 +207,10 @@
           >
           <template slot-scope="scope">
             <el-button type="text" size="mini" @click="check(scope.row)">查看</el-button>
-            <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="edit(scope.row)">编辑</el-button>
-            <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="commit(scope.row)">提交</el-button>
-            <el-button type="text" size="mini" v-if="scope.row.status == '1' && scope.row.flowId" @click="reback(scope.row)">收回</el-button>
-            <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'" @click="deleteids(scope.row)">删除</el-button>
+            <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3' || scope.row.status == '9'" @click="edit(scope.row)">编辑</el-button>
+            <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3' || scope.row.status == '9'" @click="commit(scope.row)">提交</el-button>
+            <!-- <el-button type="text" size="mini" v-if="scope.row.status == '1' && scope.row.flowId" @click="reback(scope.row)">收回</el-button> -->
+            <el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3' || scope.row.status == '9'" @click="deleteids(scope.row)">删除</el-button>
           </template>
         </el-table-column>
         </el-table>

+ 2 - 2
src/views/purchase/apply/columns.js

@@ -22,7 +22,7 @@ export default function useColumns() {
     { item: { key: "createByName", title: "创建人", width: 100 }, attr: {} },
     {
       item: { key: "isEffective", title: "是否已推价格", width: 100 },
-      attr: { is: "el-dict-tag", dictName: "is_effective", width: 100 },
+      attr: { is: "el-dict-tag", dictName: "is_effective"},
     },
     {
       item: { key: "approveTime", title: "单据申请日期", width: 100 },
@@ -30,7 +30,7 @@ export default function useColumns() {
     },
     {
       item: { key: "sourceType", title: "来源单据类型", width: 100 },
-      attr: { is: "el-dict-tag", dictName: "price_source", width: 100 },
+      attr: { is: "el-dict-tag", dictName: "price_source" },
     },
   ].map(({ item, attr }) => ({
     attr,

+ 14 - 0
src/views/purchase/apply/index.vue

@@ -171,6 +171,10 @@
         this.upload.title = "文件导入"
         this.upload.open = true
       },
+      // 收回
+      reback(row) {
+        console.log(row)
+      },
     },
   };
 </script>
@@ -257,6 +261,16 @@
       @row-select="useSelect"
       @pagination="useQuery(params, page)"
     >
+      <el-table-column
+        fixed="right"
+        label="操作"
+        align="center"
+        width="100"
+        >
+        <template slot-scope="scope">
+          <!-- <el-button type="text" size="mini" v-if="scope.row.status == '1' && scope.row.flowId" @click="reback(scope.row)">收回</el-button> -->
+        </template>
+      </el-table-column>
     </el-super-table>
     <!-- 文件导入对话框 -->
     <el-dialog title="文件导入" :visible.sync="upload.open" width="400px">