|
@@ -61,7 +61,14 @@
|
|
|
<img :src="scope.row.cover" style="width:26px;margin:0 auto;" />
|
|
<img :src="scope.row.cover" style="width:26px;margin:0 auto;" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="名称" align="center"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="name" label="名称" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ scope.row.name }}
|
|
|
|
|
+ <span v-if="scope.row.selectedNum && Number(scope.row.selectedNum)>0" style="color:blue;font-weight:bold;">
|
|
|
|
|
+ (已选{{ scope.row.selectedNum }}{{ cgUnitType == 0 ? scope.row.bigUnit : scope.row.smallUnit }})
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="price" label="价格" width="100" align="center">
|
|
<el-table-column prop="price" label="价格" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span>¥{{ scope.row.price?parseFloat(scope.row.price):0 }}</span>
|
|
<span>¥{{ scope.row.price?parseFloat(scope.row.price):0 }}</span>
|
|
@@ -80,7 +87,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="selectedNum" label="已选数量" align="center" width="120">
|
|
<el-table-column prop="selectedNum" label="已选数量" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.selectedNum && Number(scope.row.selectedNum)>0" style="color:red;font-weight:bold;font-size:17px;">已选{{ scope.row.selectedNum }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.selectedNum && Number(scope.row.selectedNum)>0" style="color:red;font-weight:bold;font-size:17px;">{{ scope.row.selectedNum }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -697,17 +704,6 @@ export default {
|
|
|
this.$message({message: '请填写数量',type: 'warning'});
|
|
this.$message({message: '请填写数量',type: 'warning'});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- for (let i=0;i<this.selectList.length;i++){
|
|
|
|
|
- if(this.selectList[i].id == currentItem.id){
|
|
|
|
|
- if(this.changeType == 'add'){
|
|
|
|
|
- this.customData.bigCount = Number(this.customData.bigCount)+Number(this.selectList[i].bigCount)
|
|
|
|
|
- }else{
|
|
|
|
|
- this.customData.bigCount = Number(this.customData.bigCount)
|
|
|
|
|
- }
|
|
|
|
|
- this.customData.bigCount = this.customData.bigCount.toFixed(2)
|
|
|
|
|
- this.customData.bigCount = parseFloat(this.customData.bigCount)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
currentItem = {...currentItem,bigCount:this.customData.bigCount,userPrice:this.customData.userPrice,smallCount:this.customData.smallCount}
|
|
currentItem = {...currentItem,bigCount:this.customData.bigCount,userPrice:this.customData.userPrice,smallCount:this.customData.smallCount}
|
|
|
this.replaceItemFn(currentItem,1,'add')
|
|
this.replaceItemFn(currentItem,1,'add')
|
|
|
this.backToSearchItem();
|
|
this.backToSearchItem();
|