|
@@ -11,16 +11,17 @@
|
|
|
@clear="productData(param.content.pageNumber = 1)"
|
|
|
clearable>
|
|
|
</el-input>
|
|
|
- <product_table style="float: right" :data="data" ref="quoterPrice" @productAdd="productInitialization"></product_table>
|
|
|
+ <product_table style="float: right" :data="data" ref="quoterPrice" @productAdd="productInitialization" ></product_table>
|
|
|
</div>
|
|
|
<div class="produtMag-panel">
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="list"
|
|
|
style="width: 100%"
|
|
|
- :header-cell-style="{height:'50px',color:'#768093',fontWeight:'100'}"
|
|
|
- :cell-style="{height:'50px',color:'#768093',fontWeight:'200'}"
|
|
|
- @selection-change="selectionChange">
|
|
|
+ :header-cell-style="{height:'50px',color:'#606266',fontWeight:'400'}"
|
|
|
+ :cell-style="{height:'50px',color:'#666666',fontWeight:'400'}"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
width="55">
|
|
@@ -111,7 +112,7 @@
|
|
|
label="数量"
|
|
|
width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input-number v-model="scope.row.qty" size="mini" :min="1" label="描述文字" @change="onChangeNum(scope.row.qty,scope.row,scope.$index)"></el-input-number>
|
|
|
+ <el-input-number v-model="scope.row.qty" size="mini" :min="1" label="描述文字" @change="onChangeNum(scope.row.qty,scope.row,scope.$index)" :disabled="data.status !== '新建'"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -127,7 +128,7 @@
|
|
|
label="折扣(%)"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.discountrate" size="mini" placeholder="请输入折扣" @change="onChangeDiscountrate(scope.row.discountrate,scope.row,scope.$index)"></el-input>
|
|
|
+ <el-input v-model="scope.row.discountrate" size="mini" placeholder="请输入折扣" @change="onChangeDiscountrate(scope.row.discountrate,scope.row,scope.$index)" :disabled="data.status !== '新建'"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -135,7 +136,7 @@
|
|
|
label="单价"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.price" size="mini" placeholder="请输入单价" @change="onChangePrice(scope.row.price,scope.row,scope.$index)"></el-input>
|
|
|
+ <el-input v-model="scope.row.price" size="mini" placeholder="请输入单价" @change="onChangePrice(scope.row.price,scope.row,scope.$index)" :disabled="data.status !== '新建'"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -163,17 +164,22 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <div style="margin-top:16px;text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- small
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="param.content.pageSize"
|
|
|
- layout="total, prev, pager, next, jumper"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
+ <div style="height: 35px;margin-top: 20px">
|
|
|
+ <div style="float: left">总金额:{{ totalPrice }}元</div>
|
|
|
+ <div style="float: right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ small
|
|
|
+ style="text-align: right;"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="param.content.pageSize"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -195,6 +201,7 @@ export default {
|
|
|
total:0,
|
|
|
currentPage:0,
|
|
|
changeList:[],
|
|
|
+ totalPrice:0,
|
|
|
param:{
|
|
|
"id": 20221021095503,
|
|
|
"version":1,
|
|
@@ -217,9 +224,11 @@ export default {
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
|
this.total = res.total
|
|
|
+ this.totalPrice = 0
|
|
|
for (var i=0 ;i<this.list.length;i++){
|
|
|
|
|
|
this.list[i].discountrate = this.list[i].discountrate * 100
|
|
|
+ this.totalPrice = this.totalPrice + this.list[i].qty * this.list[i].price
|
|
|
|
|
|
}
|
|
|
console.log(this.list,'产品配置信息')
|
|
@@ -230,8 +239,10 @@ export default {
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
|
this.total = res.total
|
|
|
+ this.totalPrice = 0
|
|
|
for (var i=0 ;i<this.list.length;i++){
|
|
|
this.list[i].discountrate = this.list[i].discountrate * 100
|
|
|
+ this.totalPrice = this.totalPrice + this.list[i].qty * this.list[i].price
|
|
|
}
|
|
|
console.log(this.list,'产品配置信息')
|
|
|
},
|
|
@@ -241,8 +252,10 @@ export default {
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
|
this.total = res.total
|
|
|
+ this.totalPrice = 0
|
|
|
for (var i=0 ;i<this.list.length;i++){
|
|
|
this.list[i].discountrate = this.list[i].discountrate * 100
|
|
|
+ this.totalPrice = this.totalPrice + this.list[i].qty * this.list[i].price
|
|
|
}
|
|
|
console.log(this.list,'产品配置信息')
|
|
|
},
|
|
@@ -345,7 +358,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
console.log(res)
|
|
|
- this.productData(res.data[0].sa_quotedpriceid)
|
|
|
+ this.productData()
|
|
|
},
|
|
|
async changeDiscountrateData(obj){
|
|
|
console.log(this.list,"数据")
|
|
@@ -386,7 +399,6 @@ export default {
|
|
|
margin-top: 35px;
|
|
|
background: #fff;
|
|
|
border-radius:5px;
|
|
|
-
|
|
|
border:1px solid rgb(0 0 0 / 5%)
|
|
|
/* box-shadow: 0 5px 5px rgb(0 0 0 / 10%);
|
|
|
transform: translate3d(0,-2px,0); */
|