Browse Source

状态为完成或录入打开上传附件功能

wangzhuo 2 năm trước cách đây
mục cha
commit
6758870590
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/views/costManagement/index.vue

+ 8 - 0
src/views/costManagement/index.vue

@@ -1226,7 +1226,9 @@ export default {
           })
         })
       } else {
+        // 部门,业务日期....设为禁用
         this.contentOption.forEach(item => item.disabled = true)
+        // 明细设为禁用
         this.contentStyle.forEach(item => item.disabled = true)
       }
       viewSingle(scope.row.fId).then(res => {
@@ -1235,6 +1237,12 @@ export default {
             tableName: this.purchaseList.tableName,
             userId: Cookies.get('userName')
           }
+
+          // 上传附件是否打开判断
+          if (scope.row.fStatusName === "完成" || scope.row.fStatusName === "录入") {
+            this.disabled = false
+          }
+
           let list = {
             tCostManagement: res.data.tCostManagement,
             tCostManagementItem: res.data.tCostManagementItem,