浏览代码

feature(项目管理): 调整升级信息显示

ZZH-wl 2 年之前
父节点
当前提交
452962ef5b

+ 18 - 4
src/views/proj/business/components/BusinessGradation.vue

@@ -1,13 +1,19 @@
 <template>
   <div style="display: inline-block; margin: 0 10px">
-    <el-button :disabled="!['20', '30'].includes(businessInfo.nboType)" type="primary" @click="handleClick('up')">
+    <el-button
+      :disabled="!['20', '30'].includes(businessInfo.nboType) || businessInfo.approStatus === '20'"
+      type="primary"
+      @click="handleClick('up')">
       升级
     </el-button>
-    <el-button :disabled="!['10', '20'].includes(businessInfo.nboType)" type="danger" @click="handleClick('down')">
+    <el-button
+      :disabled="!['10', '20'].includes(businessInfo.nboType) || businessInfo.approStatus === '20'"
+      type="danger"
+      @click="handleClick('down')">
       降级
     </el-button>
     <el-dialog append-to-body :title="title" :visible.sync="dialogFormVisible" width="60%" @close="close">
-      <el-form ref="form" :model="form" :rules="rules">
+      <el-form ref="form" :model="form" :rules="rules" style="margin-top: -20px">
         <el-form-item label="项目级别" prop="nboType">
           <el-select v-model="form.nboType" placeholder="请选择项目类别" style="width: 100%">
             <el-option
@@ -126,7 +132,7 @@
           </el-col>
           <el-col :span="8">
             <el-form-item label="是否采纳大数技术参数   " prop="isAdoptDashoo">
-              <el-radio-group v-model="form.isAdoptDashoo">
+              <el-radio-group v-model="form.isAdoptDashoo" style="width: 100%">
                 <el-radio label="10">是</el-radio>
                 <el-radio label="20">否</el-radio>
               </el-radio-group>
@@ -283,10 +289,18 @@
         }
         this.type = type
         this.form.id = this.busId
+        this.form = Object.assign(this.form, this.businessInfo)
+        this.form.nboType = undefined
+        this.form.technicalSupportName = undefined
+        this.form.technicalSupportContent = undefined
+        this.form.technicalSupportTime = undefined
+        this.form.remark = undefined
+        console.log(this.form)
         this.dialogFormVisible = true
       },
       open(row) {
         this.form.id = row.id
+        this.form = Object.assign(this.form, row)
         this.dialogFormVisible = true
       },
       close() {

+ 8 - 1
src/views/proj/business/components/DetailsRecords.vue

@@ -36,7 +36,10 @@
                   }}
                 </span>
               </p>
-
+              <p v-if="['41', '51', '61', '81'].includes(item.opnType)">
+                审批结果:
+                <span>{{ selectDictLabel(approStatusOptions, item.opnContent.approStatus) }}</span>
+              </p>
               <p v-if="item.opnContent.custName">
                 客户名称:
                 <span>{{ item.opnContent.custName }}</span>
@@ -70,6 +73,7 @@
     data() {
       return {
         nboTypeOptions: [],
+        approStatusOptions: [],
       }
     },
 
@@ -78,6 +82,9 @@
       this.getDicts('proj_nbo_type').then((response) => {
         this.nboTypeOptions = response.data.values || []
       })
+      this.getDicts('proj_appro_status').then((response) => {
+        this.approStatusOptions = response.data.values || []
+      })
     },
 
     methods: {

+ 4 - 2
src/views/proj/business/detail.vue

@@ -9,8 +9,10 @@
             <span>
               <!--升级、降级-->
               <business-gradation :bus-id="id" :business-info="details" @fetch-data="init" />
-              <el-button @click="handleTransfer">转移项目</el-button>
-              <el-button :disabled="details.nboType === '40' || details.nboType === '50'" @click="handleToReserve">
+              <el-button :disabled="details.approStatus === '20'" @click="handleTransfer">转移项目</el-button>
+              <el-button
+                :disabled="details.nboType === '40' || details.nboType === '50' || details.approStatus === '20'"
+                @click="handleToReserve">
                 转为储备
               </el-button>
               <el-button>创建工单</el-button>