|
@@ -136,6 +136,36 @@
|
|
|
<template slot="set" slot-scope="{index}">
|
|
|
<a @click="del(index)">删除</a>
|
|
|
</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}">
|
|
|
<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'/>
|
|
@@ -219,19 +249,19 @@ export default {
|
|
|
tableColumns:[
|
|
|
{type:'selection',minWidth:40,align:'center',key:'select'},
|
|
|
{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:'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: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:'remark'},
|
|
|
+ {title:'备注',minWidth:100,align:'center',key:'remark',slot:'remark'},
|
|
|
{title:'操作',minWidth:60,align:'center',key:'set',slot:'set'}
|
|
|
],
|
|
|
editTableColumns:[
|
|
@@ -272,7 +302,7 @@ export default {
|
|
|
},
|
|
|
checkPrice(row,index){
|
|
|
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'
|
|
|
}else{
|
|
|
row.total_bid_price = Number(row.total_bid_price).toFixed(2);
|