mushencc 3 years ago
parent
commit
c75a1e9a3b
2 changed files with 42 additions and 12 deletions
  1. 41 11
      src/views/Agreement/edit.vue
  2. 1 1
      vue.config.js

+ 41 - 11
src/views/Agreement/edit.vue

@@ -136,6 +136,36 @@
   <template slot="set" slot-scope="{index}">
   <template slot="set" slot-scope="{index}">
       <a @click="del(index)">删除</a>
       <a @click="del(index)">删除</a>
   </template>
   </template>
+  <template slot="url_number" slot-scope="{index}">
+      <Input v-model="tableData[index].url_number" clearable/>
+  </template>
+  <template slot="region" slot-scope="{index}">
+      <Input v-model="tableData[index].region" clearable/>
+  </template>
+  <template slot="product_title" slot-scope="{index}">
+      <Input v-model="tableData[index].product_title" clearable/>
+  </template>
+  <template slot="measure" slot-scope="{index}">
+      <Input v-model="tableData[index].measure" clearable/>
+  </template>
+  <template slot="count" slot-scope="{index}">
+      <Input v-model="tableData[index].count" clearable/>
+  </template>
+  <template slot="product_feature" slot-scope="{index}">
+      <Input v-model="tableData[index].product_feature" clearable/>
+  </template>
+  <template slot="unit" slot-scope="{index}">
+      <Input v-model="tableData[index].unit" clearable/>
+  </template>
+  <template slot="num" slot-scope="{index}">
+      <Input v-model="tableData[index].num" clearable/>
+  </template>
+  <template slot="bid_price" slot-scope="{index}">
+      <Input v-model="tableData[index].bid_price" clearable/>
+  </template>
+  <template slot="remark" slot-scope="{index}">
+      <Input v-model="tableData[index].remark" clearable/>
+  </template>
   <template slot="bp_id" slot-scope="{row,index}">
   <template slot="bp_id" slot-scope="{row,index}">
       <Select v-model="row.bp_id" @on-change='selectBpId($event,index)' filterable clearable :transfer='true'>
       <Select v-model="row.bp_id" @on-change='selectBpId($event,index)' filterable clearable :transfer='true'>
           <Option v-for="(item,index) in bp_list" :key="index" :value="item.id" :label='item.title'/>
           <Option v-for="(item,index) in bp_list" :key="index" :value="item.id" :label='item.title'/>
@@ -219,19 +249,19 @@ export default {
             tableColumns:[
             tableColumns:[
                 {type:'selection',minWidth:40,align:'center',key:'select'},
                 {type:'selection',minWidth:40,align:'center',key:'select'},
                 {title:'序号',type:'index',align:'center',minWidth:80,key:'index'},
                 {title:'序号',type:'index',align:'center',minWidth:80,key:'index'},
-                {title:'图号',align:'center',minWidth:80,key:'url_number'},
-                {title:'区域',minWidth:100,align:'center',key:'region'},
+                {title:'图号',align:'center',minWidth:100,key:'url_number',slot:'url_number'},
+                {title:'区域',minWidth:100,align:'center',key:'region',slot:'region'},
                 {title:'产品分类',minWidth:100,align:'center',key:'bp_id',slot:'bp_id'},
                 {title:'产品分类',minWidth:100,align:'center',key:'bp_id',slot:'bp_id'},
-                {title:'产品名称',minWidth:100,align:'center',key:'product_title'},
-                {title:'产品规格',minWidth:100,align:'center',key:'measure'},
-                {title:'件数',minWidth:100,align:'center',key:'count'},
+                {title:'产品名称',minWidth:100,align:'center',key:'product_title',slot:'product_title'},
+                {title:'产品规格',minWidth:100,align:'center',key:'measure',slot:'measure'},
+                {title:'件数',minWidth:100,align:'center',key:'count',slot:'count'},
                 {title:'产品图片',minWidth:100,align:'center',key:'product_img',slot:'product_img'},
                 {title:'产品图片',minWidth:100,align:'center',key:'product_img',slot:'product_img'},
-                {title:'产品特征',minWidth:200,align:'center',key:'product_feature'},
-                {title:'计量单位',minWidth:60,align:'center',key:'unit'},
-                {title:'工程量',minWidth:80,align:'center',key:'num'},
-                {title:'投标单价',minWidth:100,align:'center',key:'bid_price'},
+                {title:'产品特征',minWidth:200,align:'center',key:'product_feature',slot:'product_feature'},
+                {title:'计量单位',minWidth:100,align:'center',key:'unit',slot:'unit'},
+                {title:'工程量',minWidth:80,align:'center',key:'num',slot:'num'},
+                {title:'投标单价',minWidth:100,align:'center',key:'bid_price',slot:'bid_price'},
                 {title:'投标金额',minWidth:100,align:'center',key:'total_bid_price',slot:'total_bid_price'},
                 {title:'投标金额',minWidth:100,align:'center',key:'total_bid_price',slot:'total_bid_price'},
-                {title:'备注',minWidth:100,align:'center',key:'remark'},
+                {title:'备注',minWidth:100,align:'center',key:'remark',slot:'remark'},
                 {title:'操作',minWidth:60,align:'center',key:'set',slot:'set'}
                 {title:'操作',minWidth:60,align:'center',key:'set',slot:'set'}
             ],
             ],
              editTableColumns:[
              editTableColumns:[
@@ -272,7 +302,7 @@ export default {
             },
             },
         checkPrice(row,index){
         checkPrice(row,index){
            if(row.total_bid_price<0){
            if(row.total_bid_price<0){
-               row.total_bid_price = '0.00';
+               row.total_bid_price = '0.00';tableData
                this.tableData[index].total_bid_price = '0.00'
                this.tableData[index].total_bid_price = '0.00'
            }else{
            }else{
                row.total_bid_price = Number(row.total_bid_price).toFixed(2);
                row.total_bid_price = Number(row.total_bid_price).toFixed(2);

+ 1 - 1
vue.config.js

@@ -2,7 +2,7 @@ const axios_default_ip =
   process.env.NODE_ENV == "dev"
   process.env.NODE_ENV == "dev"
     ? "http://121.41.102.225:82"
     ? "http://121.41.102.225:82"
     : process.env.NODE_ENV == "test-prd"
     : process.env.NODE_ENV == "test-prd"
-    ? "http://121.37.173.82:82" //
+    ? "http://121.41.102.225:82" //
     : process.env.NODE_ENV == "prd_other"
     : process.env.NODE_ENV == "prd_other"
     ? "http://121.37.173.82:82" //贝斯特
     ? "http://121.37.173.82:82" //贝斯特
     : "http://124.71.176.88:882";
     : "http://124.71.176.88:882";