Pārlūkot izejas kodu

项目管理-项目规模,复审添加一键选择

sangwenwei 1 gadu atpakaļ
vecāks
revīzija
3dec0f87f6

+ 1 - 1
src/views/cw/projectRecords/ProjectRecordsAddForm.vue

@@ -136,7 +136,7 @@
                 </el-col>
                 <el-col :span="12">
                   <el-form-item label="项目规模(元)" prop="projectMoney"
-                                :rules="[
+                                :rules="[{required: true, message:'项目规模不能为空', trigger:'blur'}
                    ]">
                     <el-input-number
                       v-model="inputForm.projectMoney"

+ 2 - 1
src/views/cw/projectRecords/ProjectRecordsList.vue

@@ -107,7 +107,8 @@
             </template>
           </vxe-column>
           <vxe-column min-width="160" align="center" title="项目编号" field="projectNumber"></vxe-column>
-          <vxe-column min-width="160" align="center" title="业务类型" field="businessType"></vxe-column>
+			<vxe-column min-width="160" align="center" title="项目规模" field="projectMoney"></vxe-column>
+			<vxe-column min-width="160" align="center" title="业务类型" field="businessType"></vxe-column>
           <vxe-column min-width="230" align="center" title="合同名称" field="contractName">
             <template #default="scope">
               <el-link  type="primary" :underline="false" v-if="commonJS.isNotEmpty(scope.row.contractId)&&commonJS.isNotEmpty(scope.row.contractName)" @click="viewContract(scope.row.contractId)">{{scope.row.contractName}}</el-link>

+ 97 - 19
src/views/cw/reportManagement/reportReview/ReportReviewForm.vue

@@ -483,18 +483,34 @@
                   <el-input :disabled="true"  v-model="scope.row.typeName" ></el-input>
                 </template>
               </vxe-table-column>
-              <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}" align="left">
-                <template v-slot:edit="scope">
-                  <vxe-select :disabled="inputForm.taskName === '二级复核' || inputForm.taskName === '三级复核'" v-model="scope.row.reviewComments" transfer>
-                    <vxe-option
-                      v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
-                      :key="item.value"
-                      :value="item.value"
-                      :label="item.label">
-                    </vxe-option>
-                  </vxe-select>
-                </template>
-              </vxe-table-column>
+				<vxe-colgroup title="复核结果(是/否/不适用)" align="left">
+					<vxe-column    width="30%" field="reviewComments" title="复核结果(是/否/不适用)"
+								   :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}"
+								   align="left">
+							<template #header>
+								<div style="float: right;width: 94%">
+									<vxe-select v-model="inputForm.reviewComments0" placeholder="一键添加"  transfer @change="changeValue">
+										<vxe-option
+											v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
+											:key="item.value"
+											:value="item.value"
+											:label="item.label">
+										</vxe-option>
+									</vxe-select>
+								</div>
+							</template>
+						<template v-slot:edit="scope">
+							<vxe-select :disabled="inputForm.taskName === '二级复核' || inputForm.taskName === '三级复核'|| status === 'taskFormDetail'" v-model="scope.row.reviewComments" transfer >
+								<vxe-option
+									v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
+									:key="item.value"
+									:value="item.value"
+									:label="item.label">
+								</vxe-option>
+							</vxe-select>
+						</template>
+					</vxe-column>
+				</vxe-colgroup>
             </vxe-table>
             <el-col style="margin-top: 15px">
               <el-form-item label="关注或修改的事项" prop="needUpdate1"
@@ -512,7 +528,7 @@
             </el-col>
           </el-row>
           <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" v-if="this.inputForm.taskName === '二级复核' || this.inputForm.reviewStatus === '5'
-                      || this.inputForm.taskName === '三级复核' || this.inputForm.reviewStatus === '4'"
+                      || this.inputForm.taskName === '三级复核' || this.inputForm.reviewStatus === '4'|| status === 'taskFormDetail'"
                    label-width="135px" @submit.native.prevent>
             <el-divider content-position="left"><i class="el-icon-document"></i>二级复核</el-divider>
             <el-row :gutter="15" >
@@ -533,8 +549,21 @@
                     <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
                   </template>
                 </vxe-table-column>
+			  <vxe-colgroup title="复核结果(是/否/不适用)" align="left"  >
                 <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}" align="left">
-                  <template v-slot:edit="scope">
+					<template #header>
+						<div style="float: right;width: 94%">
+						<vxe-select v-model="inputForm.reviewComments1" placeholder="一键添加"  transfer @change="changeValue1">
+							<vxe-option
+								v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
+								:key="item.value"
+								:value="item.value"
+								:label="item.label">
+							</vxe-option>
+						</vxe-select>
+						</div>
+					</template>
+					<template v-slot:edit="scope">
                     <vxe-select :disabled="inputForm.reviewStatus === '4' || inputForm.taskName === '三级复核'" v-model="scope.row.reviewComments" transfer>
                       <vxe-option
                         v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
@@ -545,6 +574,7 @@
                     </vxe-select>
                   </template>
                 </vxe-table-column>
+			  </vxe-colgroup>
               </vxe-table>
               <el-col style="margin-top: 15px">
                 <el-form-item label="关注或修改的事项" prop="needUpdate2"
@@ -583,9 +613,22 @@
                     <el-input :disabled="true" v-model="scope.row.typeName" ></el-input>
                   </template>
                 </vxe-table-column>
+			  <vxe-colgroup title="复核结果(是/否/不适用)" align="left"  >
                 <vxe-table-column width="30%" field="reviewComments" title="复核结果(是/否/不适用)" :edit-render="{name: '$select', options: $dictUtils.getDictList('yes_no_notApplicable')}" align="left">
-                  <template v-slot:edit="scope">
-                    <vxe-select :disabled="inputForm.taskName === '一级复核' || inputForm.reviewStatus === '4'" v-model="scope.row.reviewComments" transfer>
+					<template #header>
+						<div style="float: right;width: 94%">
+						<vxe-select v-model="inputForm.reviewComments2" placeholder="一键添加"  transfer @change="changeValue2">
+							<vxe-option
+								v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
+								:key="item.value"
+								:value="item.value"
+								:label="item.label">
+							</vxe-option>
+						</vxe-select>
+						</div>
+					</template>
+					<template v-slot:edit="scope">
+                    <vxe-select :disabled="inputForm.taskName === '一级复核' || inputForm.reviewStatus === '4'|| status === 'taskFormDetail'" v-model="scope.row.reviewComments" transfer>
                       <vxe-option
                         v-for="item in $dictUtils.getDictList('yes_no_notApplicable')"
                         :key="item.value"
@@ -595,6 +638,7 @@
                     </vxe-select>
                   </template>
                 </vxe-table-column>
+			  </vxe-colgroup>
               </vxe-table>
               <el-col style="margin-top: 15px">
                 <el-form-item label="关注或修改的事项" prop="needUpdate3"
@@ -734,7 +778,10 @@
           projectMasterId1: '',
           projectMasterId2: '',
           industry: '',
-          businessObjects: ''
+          businessObjects: '',
+		  reviewComments0:'',
+		  reviewComments1:'',
+		  reviewComments2:'',
         },
         keyWatch: '',
         activeName: 'enclosure',
@@ -879,6 +926,7 @@
         this.reviewBys = []
         this.$nextTick(() => {
           // this.$refs.inputForm.resetFields()
+
           this.loading = true
           projectReportService.queryById(this.inputForm.id).then((data) => {
             // this.$refs.uploadComponent.clearUpload()
@@ -1304,12 +1352,42 @@
         } else {
           this.inputForm.signatureAnnotator2 = value
         }
-      }
-    }
+      },
+
+	  changeValue(now){
+			this.inputForm.detailFor1010.forEach(res=>{
+				res.reviewComments=now.value
+			})
+	  },
+	  changeValue1(now){
+			this.inputForm.detailFor1020.forEach(res=>{
+				res.reviewComments=now.value
+			})
+	  },
+	  changeValue2(now){
+		  this.inputForm.detailFor1030.forEach(res=>{
+			  res.reviewComments=now.value
+		  })
+	  }
+
+
+	}
   }
 </script>
 <style scoped>
   /deep/ .el-input-number .el-input__inner {
     text-align: left;
   }
+
+  /deep/ .vxe-select-option {
+	  padding: 0 .6em;
+	  max-width: 600px;
+	  overflow: visible;
+	  text-overflow: ellipsis;
+	  white-space: nowrap;
+	  -webkit-user-select: none;
+	  -moz-user-select: none;
+	  -ms-user-select: none;
+	  user-select: none
+  }
 </style>