|
|
@@ -35,12 +35,12 @@
|
|
|
</template>
|
|
|
|
|
|
<template #table-column-price="{scope}">
|
|
|
- <span v-if="!priceInput"><span>{{ scope.row.price}}</span></span>
|
|
|
+ <span v-if="!priceInput" style="color:blue;"><span>{{ scope.row.price}}</span></span>
|
|
|
<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else placeholder="" v-model="scope.row.price" @blur="changeInputValue(scope.row, 'price')" ></el-input>
|
|
|
</template>
|
|
|
<template #table-header-price>
|
|
|
<div class="set-sort">
|
|
|
- <span>普通价</span>
|
|
|
+ <span style="color:blue;">普通价</span>
|
|
|
<el-button v-if="!priceInput" icon="el-icon-edit-outline" size="small" type="text" @click="showPriceInput" class="show"></el-button>
|
|
|
<el-button class="hide" v-else size="mini" @click="commitChange('price')" type="primary">完成</el-button>
|
|
|
</div>
|
|
|
@@ -113,46 +113,31 @@
|
|
|
|
|
|
<template #table-header-addPrice="{scope}">
|
|
|
<div class="set-sort">
|
|
|
- <span>普通加价</span>
|
|
|
+ <span style="color:blue;">普通加价</span>
|
|
|
<el-button v-if="!canAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showAddPrice" class="show"></el-button>
|
|
|
<el-button class="hide" v-if="canAddPrice" size="mini" @click="showMultiplePop(scope,'addPrice')" type="primary">批</el-button>
|
|
|
<el-button class="hide" v-if="canAddPrice" size="mini" @click="commitChange('addPrice')" type="primary">完成</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #table-column-addPrice="{scope}">
|
|
|
- <span v-if="!canAddPrice">{{ scope.row.addPrice }}</span>
|
|
|
+ <span v-if="!canAddPrice" style="color:blue;">{{ scope.row.addPrice }}</span>
|
|
|
<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.addPrice" @blur="changeInputValue(scope.row, 'addPrice')" ></el-input>
|
|
|
</template>
|
|
|
|
|
|
|
|
|
- <template #table-header-qtAddPrice="{scope}">
|
|
|
+ <template #table-header-skAddPrice="{scope}">
|
|
|
<div class="set-sort">
|
|
|
- <span>青铜加价</span>
|
|
|
- <el-button v-if="!canQtAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showQtAddPrice" class="show"></el-button>
|
|
|
- <el-button class="hide" v-if="canQtAddPrice" size="mini" @click="showMultiplePop(scope,'qtAddPrice')" type="primary">批</el-button>
|
|
|
- <el-button class="hide" v-if="canQtAddPrice" size="mini" @click="commitChange('qtAddPrice')" type="primary">完成</el-button>
|
|
|
+ <span>散客加价</span>
|
|
|
+ <el-button v-if="!canSkAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showSkAddPrice" class="show"></el-button>
|
|
|
+ <el-button class="hide" v-if="canSkAddPrice" size="mini" @click="showMultiplePop(scope,'skAddPrice')" type="primary">批</el-button>
|
|
|
+ <el-button class="hide" v-if="canSkAddPrice" size="mini" @click="commitChange('skAddPrice')" type="primary">完成</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template #table-column-qtAddPrice="{scope}">
|
|
|
- <span v-if="!canQtAddPrice">{{ scope.row.qtAddPrice }}</span>
|
|
|
- <el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.qtAddPrice" @blur="changeInputValue(scope.row, 'qtAddPrice')" ></el-input>
|
|
|
+ <template #table-column-skAddPrice="{scope}">
|
|
|
+ <span v-if="!canSkAddPrice">{{ scope.row.skAddPrice }}</span>
|
|
|
+ <el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.skAddPrice" @blur="changeInputValue(scope.row, 'skAddPrice')" ></el-input>
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
- <template #table-header-byAddPrice="{scope}">
|
|
|
- <div class="set-sort">
|
|
|
- <span>白银加价</span>
|
|
|
- <el-button v-if="!canByAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showByAddPrice" class="show"></el-button>
|
|
|
- <el-button class="hide" v-if="canByAddPrice" size="mini" @click="showMultiplePop(scope,'byAddPrice')" type="primary">批</el-button>
|
|
|
- <el-button class="hide" v-if="canByAddPrice" size="mini" @click="commitChange('byAddPrice')" type="primary">完成</el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template #table-column-byAddPrice="{scope}">
|
|
|
- <span v-if="!canByAddPrice">{{ scope.row.byAddPrice }}</span>
|
|
|
- <el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.byAddPrice" @blur="changeInputValue(scope.row, 'byAddPrice')" ></el-input>
|
|
|
- </template>
|
|
|
-
|
|
|
-
|
|
|
<template #table-header-hjAddPrice="{scope}">
|
|
|
<div class="set-sort">
|
|
|
<span>黄金加价</span>
|
|
|
@@ -385,7 +370,7 @@ export default {
|
|
|
dialogFormVisible:false,
|
|
|
|
|
|
canAddPrice:false,
|
|
|
- canQtAddPrice:false,
|
|
|
+ canSkAddPrice:false,
|
|
|
canByAddPrice:false,
|
|
|
canHjAddPrice:false,
|
|
|
canZsAddPrice:false,
|
|
|
@@ -650,20 +635,14 @@ export default {
|
|
|
'min-width': 60,
|
|
|
},
|
|
|
{
|
|
|
- prop: 'addPrice',
|
|
|
- label: '普通加价',
|
|
|
- align: 'center',
|
|
|
- 'min-width': 130
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'qtAddPrice',
|
|
|
- label: '青铜加价',
|
|
|
+ prop: 'skAddPrice',
|
|
|
+ label: '散客加价',
|
|
|
align: 'center',
|
|
|
'min-width': 130
|
|
|
},
|
|
|
{
|
|
|
- prop: 'byAddPrice',
|
|
|
- label: '白银加价',
|
|
|
+ prop: 'addPrice',
|
|
|
+ label: '普通加价',
|
|
|
align: 'center',
|
|
|
'min-width': 130
|
|
|
},
|
|
|
@@ -686,22 +665,16 @@ export default {
|
|
|
'min-width': 90
|
|
|
},
|
|
|
{
|
|
|
- prop: 'price',
|
|
|
- label: '普通价',
|
|
|
- align: 'center',
|
|
|
- minWidth:105
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'qtPrice',
|
|
|
- label: '青铜价',
|
|
|
+ prop: 'skPrice',
|
|
|
+ label: '散客价',
|
|
|
align: 'center',
|
|
|
minWidth:100
|
|
|
},
|
|
|
{
|
|
|
- prop: 'byPrice',
|
|
|
- label: '白银价',
|
|
|
+ prop: 'price',
|
|
|
+ label: '普通价',
|
|
|
align: 'center',
|
|
|
- minWidth:100
|
|
|
+ minWidth:105
|
|
|
},
|
|
|
{
|
|
|
prop: 'hjPrice',
|
|
|
@@ -821,12 +794,12 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = true;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
},
|
|
|
- showQtAddPrice(){
|
|
|
+ showSkAddPrice(){
|
|
|
this.initData = []
|
|
|
this.priceInput = false;
|
|
|
this.shelfLifeInput = false;
|
|
|
@@ -837,7 +810,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = true;
|
|
|
+ this.canSkAddPrice = true;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -853,7 +826,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = true;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -869,7 +842,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = true;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -885,7 +858,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = true;
|
|
|
@@ -901,7 +874,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -916,7 +889,7 @@ export default {
|
|
|
this.canAddRatio = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -932,7 +905,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -948,7 +921,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -964,7 +937,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -980,7 +953,7 @@ export default {
|
|
|
this.costWeight = false;
|
|
|
|
|
|
this.canAddPrice = false;
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ this.canSkAddPrice = false;
|
|
|
this.canByAddPrice = false;
|
|
|
this.canHjAddPrice = false;
|
|
|
this.canZsAddPrice = false;
|
|
|
@@ -996,8 +969,8 @@ export default {
|
|
|
case 'addPrice':
|
|
|
this.canAddPrice = false;
|
|
|
break;
|
|
|
- case 'qtAddPrice':
|
|
|
- this.canQtAddPrice = false;
|
|
|
+ case 'skAddPrice':
|
|
|
+ this.canSkAddPrice = false;
|
|
|
break;
|
|
|
case 'byAddPrice':
|
|
|
this.canByAddPrice = false;
|
|
|
@@ -1105,10 +1078,10 @@ export default {
|
|
|
ele.addPrice = batchAddNum
|
|
|
this.initData.push({id:ele.id,addPrice:ele.addPrice})
|
|
|
|
|
|
- }else if(this.dataList.form.type == 'qtAddPrice'){
|
|
|
- let batchAddNum = (Number(this.batchAddNum) + Number(ele.qtAddPrice)).toFixed(2)
|
|
|
- ele.qtAddPrice = batchAddNum
|
|
|
- this.initData.push({id:ele.id,qtAddPrice:ele.qtAddPrice})
|
|
|
+ }else if(this.dataList.form.type == 'skAddPrice'){
|
|
|
+ let batchAddNum = (Number(this.batchAddNum) + Number(ele.skAddPrice)).toFixed(2)
|
|
|
+ ele.skAddPrice = batchAddNum
|
|
|
+ this.initData.push({id:ele.id,skAddPrice:ele.skAddPrice})
|
|
|
|
|
|
|
|
|
}else if(this.dataList.form.type == 'byAddPrice'){
|
|
|
@@ -1154,9 +1127,9 @@ export default {
|
|
|
ele.addPrice = this.batchAlterNum
|
|
|
this.initData.push({id:ele.id,addPrice:this.batchAlterNum})
|
|
|
|
|
|
- }else if(this.dataList.form.type == 'qtAddPrice'){
|
|
|
- ele.qtAddPrice = this.batchAlterNum
|
|
|
- this.initData.push({id:ele.id,qtAddPrice:this.batchAlterNum})
|
|
|
+ }else if(this.dataList.form.type == 'skAddPrice'){
|
|
|
+ ele.skAddPrice = this.batchAlterNum
|
|
|
+ this.initData.push({id:ele.id,skAddPrice:this.batchAlterNum})
|
|
|
|
|
|
}else if(this.dataList.form.type == 'byAddPrice'){
|
|
|
ele.byAddPrice = this.batchAlterNum
|
|
|
@@ -1195,8 +1168,8 @@ export default {
|
|
|
obj.inTurn = d.inTurn
|
|
|
} else if(type == 'addPrice') {
|
|
|
obj.addPrice = d.addPrice
|
|
|
- } else if(type == 'qtAddPrice') {
|
|
|
- obj.qtAddPrice = d.qtAddPrice
|
|
|
+ } else if(type == 'skAddPrice') {
|
|
|
+ obj.skAddPrice = d.skAddPrice
|
|
|
} else if(type == 'byAddPrice') {
|
|
|
obj.byAddPrice = d.byAddPrice
|
|
|
} else if(type == 'hjAddPrice') {
|