Kaynağa Gözat

评估-合同归档收费标准bug修复

徐滕 3 gün önce
ebeveyn
işleme
cdcf3bbb6c

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":"1793264570498"}
+{"version":"1794215077306"}

+ 30 - 60
src/views/sys/workContract/WorkContractFileForm.vue

@@ -117,17 +117,18 @@
 
       </el-row>
 
-      <el-row>
-        <el-col :span="24">
-          <el-form-item label="收费标准" prop="contractFees">
-            <el-checkbox-group v-model="inputForm.contractFees">
-              <el-checkbox @change="changeContractFee" v-for="item in $dictUtils.getDictList('contract_fee_pg')" :label="item.value">
-                {{item.label}}
-              </el-checkbox>
-            </el-checkbox-group>
-          </el-form-item>
-        </el-col>
-      </el-row>
+		<el-row>
+			<el-col :span="24">
+				<el-form-item label="收费标准" prop="contractFees">
+					<el-checkbox-group v-model="inputForm.contractFees">
+						<el-checkbox @change="changeContractFee(item.value, $dictUtils.getDictList('contract_fee_pg'))"
+									 v-for="item in $dictUtils.getDictList('contract_fee_pg')" :label="item.value">
+							{{ item.label }}
+						</el-checkbox>
+					</el-checkbox-group>
+				</el-form-item>
+			</el-col>
+		</el-row>
 
       <el-row>
         <el-col :span="24">
@@ -724,55 +725,24 @@
       closePop () {
         this.visable = false
       },
-      changeContractFee () {
-        let fee = ''
-        let fees = this.inputForm.contractFees
-        if (fees.length > 0) {
-          fees.forEach(i => {
-            if (i === '1') {
-              i = '苏会协[2010]52号'
-              fee = fee + ';' + i
-            }
-            if (i === '2') {
-              i = '苏政办发[2010]101号'
-              fee = fee + ';' + i
-            }
-            if (i === '3') {
-              i = '苏价费[2010]284号'
-              fee = fee + ';' + i
-            }
-            if (i === '4') {
-              i = '发改价格[2010]196号'
-              fee = fee + ';' + i
-            }
-            if (i === '5') {
-              i = '其他'
-              fee = fee + ';' + i
-            }
-            this.inputForm.contractFee = fee.substring(1, fee.length)
-          })
-        } else {
-          this.inputForm.contractFee = ''
-        }
-        // if (fees.length > 0) {
-        //   fees.forEach(i => {
-        //     if (i === '1') {
-        //       i = '计价格(2002)1980号文下浮%'
-        //     }
-        //     if (i === '2') {
-        //       i = '苏价服(2014)383号文下浮%'
-        //     }
-        //     if (i === '3') {
-        //       i = '标段 元/标段'
-        //     }
-        //     if (i === '4') {
-        //       i = '其他'
-        //     }
-        //     fee = fee + ';' + i
-        //     this.inputForm.contractFee = fee.substring(1, fee.length)
-        //   })
-        // }
-      },
+		changeContractFee(val, items) {
+			let fee = ''
+			let fees = this.inputForm.contractFees
+			if (fees.length > 0) {
+				fees.forEach(i => {
+					items.forEach(item => {
+							if (i === item.value) {
+								var label = item.label
+								fee = fee + ';' + label
+							}
+						}
+					)
+					this.inputForm.contractFee = fee.substring(1, fee.length)
+				})
+			} else {
+				this.inputForm.contractFee = ''
+			}
+		},
       async updateStatusById (type, callback) {
         this.loading = true
         if (await this.$refs.uploadComponent.checkProgress()) {