Sfoglia il codice sorgente

成本模型优化

yuhan 1 anno fa
parent
commit
6fd7b3e8e6

+ 16 - 8
src/views/module_kzks/costModelList/modulesDetail/CostModelXmxqClList.vue

@@ -322,20 +322,28 @@
       },
       setColumn(){
         if (this.type == 'max') {
-          this.columns.push({ title:'单价(最大值)', align:"center", dataIndex: 'maxDanjia', fixed: 'right', width: 120 })
-          this.columns.push({ title:'价格(最大值)', align:"center", dataIndex: 'maxPrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(最大值)', align:"center", dataIndex: 'maxDanjia', fixed: 'right', width: 120 },
+            { title:'价格(最大值)', align:"center", dataIndex: 'maxPrice', fixed: 'right', width: 120 }
+          )
         }
         if (this.type == 'min') {
-          this.columns.push({ title:'单价(最小值)', align:"center", dataIndex: 'minDanjia', fixed: 'right', width: 120 })
-          this.columns.push({ title:'价格(最小值)', align:"center", dataIndex: 'minPrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(最小值)', align:"center", dataIndex: 'minDanjia', fixed: 'right', width: 120 },
+            { title:'价格(最小值)', align:"center", dataIndex: 'minPrice', fixed: 'right', width: 120 }
+          )
         }
         if (this.type == 'ave') {
-          this.columns.push({ title:'单价(平均值)', align:"center", dataIndex: 'aveDanjia', fixed: 'right', width: 120 })
-          this.columns.push({ title:'价格(平均值)', align:"center", dataIndex: 'avePrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(平均值)', align:"center", dataIndex: 'aveDanjia', fixed: 'right', width: 120 },
+            { title:'价格(平均值)', align:"center", dataIndex: 'avePrice', fixed: 'right', width: 120 }
+          )
         }
         if (this.type == 'recent') {
-          this.columns.push({ title:'单价(近期值)', align:"center", dataIndex: 'recentDanjia', fixed: 'right', width: 120 })
-          this.columns.push({ title:'价格(近期值)', align:"center", dataIndex: 'recentPrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(近期值)', align:"center", dataIndex: 'recentDanjia', fixed: 'right', width: 120 },
+            { title:'价格(近期值)', align:"center", dataIndex: 'recentPrice', fixed: 'right', width: 120 }
+          )
         }
       },
       initDictConfig(){

+ 13 - 7
src/views/module_kzks/costModelList/modulesDetail/CostModelXmxqWxList.vue

@@ -225,7 +225,7 @@
           //   dataIndex: 'recentPrice'
           // },
           {
-            title:'描述',
+            title:'项目描述',
             align:"center",
             dataIndex: 'remark'
           },
@@ -294,16 +294,22 @@
       },
       setColumn(){
         if (this.type == 'max') {
-          this.columns.push({ title:'单价(最大值)', align:"center", dataIndex: 'maxDanjia', fixed: 'right', width: 120 },
-          { title:'价格(最大值)', align:"center", dataIndex: 'maxPrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(最大值)', align:"center", dataIndex: 'maxDanjia', fixed: 'right', width: 120 },
+            { title:'价格(最大值)', align:"center", dataIndex: 'maxPrice', fixed: 'right', width: 120 }
+          )
         }
         if (this.type == 'min') {
-          this.columns.splice(7,0,{ title:'单价(最小值)', align:"center", dataIndex: 'minDanjia', fixed: 'right', width: 120 },
-          { title:'价格(最小值)', align:"center", dataIndex: 'minPrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(最小值)', align:"center", dataIndex: 'minDanjia', fixed: 'right', width: 120 },
+            { title:'价格(最小值)', align:"center", dataIndex: 'minPrice', fixed: 'right', width: 120 }
+          )
         }
         if (this.type == 'ave') {
-          this.columns.splice(7,0,{ title:'单价(平均值)', align:"center", dataIndex: 'aveDanjia', fixed: 'right', width: 120 },
-          { title:'价格(平均值)', align:"center", dataIndex: 'avePrice', fixed: 'right', width: 120 })
+          this.columns.push(
+            { title:'单价(平均值)', align:"center", dataIndex: 'aveDanjia', fixed: 'right', width: 120 },
+            { title:'价格(平均值)', align:"center", dataIndex: 'avePrice', fixed: 'right', width: 120 }
+          )
         }
       },
       initDictConfig(){

+ 2 - 2
src/views/module_kzks/costModelWxPrice/modules/CostModelWxPriceForm.vue

@@ -34,8 +34,8 @@
             </a-form-model-item>
           </a-col>
           <a-col :span="24">
-            <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark">
-              <a-input v-model="model.remark" placeholder="请输入备注"  ></a-input>
+            <a-form-model-item label="项目描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark">
+              <a-input v-model="model.remark" placeholder="请输入项目描述"  ></a-input>
             </a-form-model-item>
           </a-col>
         </a-row>