Browse Source

1.资产流程取号查看产品出具类型

GouGengquan 11 months ago
parent
commit
29c03d70b6
2 changed files with 37 additions and 7 deletions
  1. 3 1
      src/views/assets/allList.vue
  2. 34 6
      src/views/assets/orderDetail.vue

+ 3 - 1
src/views/assets/allList.vue

@@ -146,7 +146,8 @@ export default {
                 assetsBusinessGener: null,
                 // 关键字
                 keyWord: null,
-                departmentId: null
+                departmentId: null,
+                selectByDepartment: false
             },
             // 接单部门
             allotDepartment: [],
@@ -188,6 +189,7 @@ export default {
     methods: {
         // 无条件分页查询
         selectPage() {
+            // this.listQuery.selectByDepartment = true;
             this.$api.assets.selectPage(this.listQuery).then(res => {
                 if (res.code === 200) {
                     this.pageData = res.data;

+ 34 - 6
src/views/assets/orderDetail.vue

@@ -476,18 +476,38 @@
                     @click="getAssetsTargetDetail(scope.row.id), changeStatus('detail')">
                     查看
                   </el-button>
-                  <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && scope.row.statementNo && scope.row.reportNo)" type="text"
-                    size="small" @click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
+                  <el-button
+                    v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && scope.row.statementNo && scope.row.reportNo)"
+                    type="text" size="small" @click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
                     编辑
                   </el-button>
-                  <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && scope.row.statementNo && scope.row.reportNo)" type="text"
-                    size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
+                  <el-button
+                    v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && scope.row.statementNo && scope.row.reportNo)"
+                    type="text" size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
                   <el-button
                     v-if="(currentNode.nodeCode === 'REVIEW_STATEMENT' || currentNode.nodeCode === 'CHECK_REPORT') && !disabledStatus"
                     type="text" size="small" @click="openCheckValueDialog(scope.row.id);">审核定价</el-button>
                 </template>
               </el-table-column>
             </el-table>
+            <el-row>
+              <el-col :span="2">
+                <p v-if="assetsProductionForm.productionType">产品类型:
+                  <span style="color: red" v-if="assetsProductionForm.productionType == 'CONSULT'">
+                    咨询报告
+                  </span>
+                  <span style="color: red" v-if="assetsProductionForm.productionType == 'REPORT'">
+                    评估报告
+                  </span>
+                  <span style="color: red" v-if="assetsProductionForm.productionType == 'LETTER'">
+                    意见函
+                  </span>
+                  <span style="color: red" v-if="assetsProductionForm.productionType == 'STATEMENT'">
+                    价值意见书
+                  </span>
+                </p>
+              </el-col>
+            </el-row>
           </div>
         </div>
       </el-tab-pane>
@@ -2254,6 +2274,8 @@ export default {
           this.getProductionList();
           // 计算所有评估对象评估总价
           this.totalEvaluateValue = this.assetsEvaluationTarget.reduce((sum, target) => sum + target.estimatedValue, 0);
+          // 获取评估对象信息后查询产品选择信息
+          this.getChoiceLog();
         }
       })
     },
@@ -2351,7 +2373,7 @@ export default {
     },
     handleAttachmentPreview(file) {
       // window.open(file.url)
-      this.officeFileView(file.name,file.url);
+      this.officeFileView(file.name, file.url);
     },
     // 移除文件
     beforeRemove(file, fileList) {
@@ -2548,7 +2570,13 @@ export default {
       let selectDTO = {};
       selectDTO.businessType = 'ASSET_BUSINESS';
       selectDTO.businessId = this.pageParams.row.assetsId;
-      selectDTO.targetId = this.assetsEvaluationTarget[0].id;
+      for (let i = 0; i < this.assetsEvaluationTarget.length; i++) {
+        if (this.assetsEvaluationTarget[i].reportNo === null) {
+          selectDTO.targetId = this.assetsEvaluationTarget[i].id;
+          break; // 找到第一个 reportNo 为 null 的元素后退出循环
+        }
+        // 如果 reportNo 不为 null,继续检查下一个元素
+      }
       this.$api.businessProductionChoiceLog.getChoiceLog(selectDTO).then(res => {
         if (res.code == 200 && res.data !== null) {
           this.productionChoiceStatus = 1;