|
|
@@ -40,7 +40,7 @@
|
|
|
</template>
|
|
|
<template #table-header-price>
|
|
|
<div class="set-sort">
|
|
|
- <span>售价</span>
|
|
|
+ <span>普通价</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>
|
|
|
@@ -104,23 +104,82 @@
|
|
|
<el-button type="text" v-if="scope.row.delStatus==1" @click.native.stop="setDelStatusFun(scope.row.id,0)" >恢复</el-button>
|
|
|
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<template #table-column-cost="{scope}">
|
|
|
<span v-if="!costPrice">{{ scope.row.cost }}</span>
|
|
|
<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else v-model="scope.row.cost" @blur="changeInputValue(scope.row, 'cost')" ></el-input>
|
|
|
</template>
|
|
|
+
|
|
|
+
|
|
|
<template #table-header-addPrice="{scope}">
|
|
|
<div class="set-sort">
|
|
|
- <span>每扎加价</span>
|
|
|
+ <span>普通加价</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>
|
|
|
- <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-column-addPrice="{scope}">
|
|
|
+ <span v-if="!canAddPrice">{{ 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}">
|
|
|
+ <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>
|
|
|
+ </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>
|
|
|
+
|
|
|
+
|
|
|
+ <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>
|
|
|
+ <el-button v-if="!canHjAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showHjAddPrice" class="show"></el-button>
|
|
|
+ <el-button class="hide" v-if="canHjAddPrice" size="mini" @click="showMultiplePop(scope,'hjAddPrice')" type="primary">批</el-button>
|
|
|
+ <el-button class="hide" v-if="canHjAddPrice" size="mini" @click="commitChange('hjAddPrice')" type="primary">完成</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #table-column-hjAddPrice="{scope}">
|
|
|
+ <span v-if="!canHjAddPrice">{{ scope.row.hjAddPrice }}</span>
|
|
|
+ <el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.hjAddPrice" @blur="changeInputValue(scope.row, 'hjAddPrice')" ></el-input>
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+ <template #table-header-zsAddPrice="{scope}">
|
|
|
+ <div class="set-sort">
|
|
|
+ <span>钻石加价</span>
|
|
|
+ <el-button v-if="!canZsAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showZsAddPrice" class="show"></el-button>
|
|
|
+ <el-button class="hide" v-if="canZsAddPrice" size="mini" @click="showMultiplePop(scope,'zsAddPrice')" type="primary">批</el-button>
|
|
|
+ <el-button class="hide" v-if="canZsAddPrice" size="mini" @click="commitChange('zsAddPrice')" type="primary">完成</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #table-column-zsAddPrice="{scope}">
|
|
|
+ <span v-if="!canZsAddPrice">{{ scope.row.zsAddPrice }}</span>
|
|
|
+ <el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.zsAddPrice" @blur="changeInputValue(scope.row, 'zsAddPrice')" ></el-input>
|
|
|
+ </template>
|
|
|
+
|
|
|
|
|
|
<template #table-header-ratio>
|
|
|
<div class="set-sort">
|
|
|
@@ -236,7 +295,7 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="每扎成本" prop="cost">
|
|
|
+ <el-form-item label="成本" prop="cost">
|
|
|
<el-input
|
|
|
v-model="replaceForm.cost"
|
|
|
placeholder="请输入成本"
|
|
|
@@ -244,7 +303,7 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="每扎加价" prop="addPrice">
|
|
|
+ <el-form-item label="普通加价" prop="addPrice">
|
|
|
<el-input
|
|
|
v-model="replaceForm.addPrice"
|
|
|
placeholder="请输入加价"
|
|
|
@@ -324,7 +383,13 @@ export default {
|
|
|
batchAlterNum:'',
|
|
|
batchAddNum:'',
|
|
|
dialogFormVisible:false,
|
|
|
+
|
|
|
canAddPrice:false,
|
|
|
+ canQtAddPrice:false,
|
|
|
+ canByAddPrice:false,
|
|
|
+ canHjAddPrice:false,
|
|
|
+ canZsAddPrice:false,
|
|
|
+
|
|
|
canAddRatio:false,
|
|
|
costPrice: false,
|
|
|
costWeight: false,
|
|
|
@@ -585,28 +650,76 @@ export default {
|
|
|
'min-width': 60,
|
|
|
},
|
|
|
{
|
|
|
- prop: 'price',
|
|
|
- label: '售价',
|
|
|
+ prop: 'addPrice',
|
|
|
+ label: '普通加价',
|
|
|
align: 'center',
|
|
|
- minWidth:110
|
|
|
+ 'min-width': 130
|
|
|
},
|
|
|
{
|
|
|
- prop: 'addPrice',
|
|
|
- label: '每扎加价',
|
|
|
+ prop: 'qtAddPrice',
|
|
|
+ label: '青铜加价',
|
|
|
align: 'center',
|
|
|
'min-width': 130
|
|
|
},
|
|
|
{
|
|
|
- prop: 'stockWarning',
|
|
|
- label: '库存预警',
|
|
|
+ prop: 'byAddPrice',
|
|
|
+ label: '白银加价',
|
|
|
+ align: 'center',
|
|
|
+ 'min-width': 130
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'hjAddPrice',
|
|
|
+ label: '黄金加价',
|
|
|
+ align: 'center',
|
|
|
+ 'min-width': 130
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'zsAddPrice',
|
|
|
+ label: '钻石加价',
|
|
|
align: 'center',
|
|
|
'min-width': 130
|
|
|
},
|
|
|
{
|
|
|
prop: 'cost',
|
|
|
- label: '每扎成本',
|
|
|
+ label: '成本',
|
|
|
align: 'center',
|
|
|
'min-width': 90
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'price',
|
|
|
+ label: '普通价',
|
|
|
+ align: 'center',
|
|
|
+ minWidth:105
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'qtPrice',
|
|
|
+ label: '青铜价',
|
|
|
+ align: 'center',
|
|
|
+ minWidth:100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'byPrice',
|
|
|
+ label: '白银价',
|
|
|
+ align: 'center',
|
|
|
+ minWidth:100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'hjPrice',
|
|
|
+ label: '黄金价',
|
|
|
+ align: 'center',
|
|
|
+ minWidth:100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'zsPrice',
|
|
|
+ label: '钻石价',
|
|
|
+ align: 'center',
|
|
|
+ minWidth:100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'stockWarning',
|
|
|
+ label: '库存预警',
|
|
|
+ align: 'center',
|
|
|
+ 'min-width': 130
|
|
|
},
|
|
|
{
|
|
|
prop: 'status',
|
|
|
@@ -681,7 +794,7 @@ export default {
|
|
|
})
|
|
|
.set('search', {
|
|
|
key: {
|
|
|
- placeholder: '分类名称'
|
|
|
+ placeholder: '输字母搜索'
|
|
|
}
|
|
|
})
|
|
|
.set('pagination', {
|
|
|
@@ -697,19 +810,24 @@ export default {
|
|
|
refresh (params) {
|
|
|
this.app.refresh(params);
|
|
|
},
|
|
|
- showCost() {
|
|
|
- this.initData = []
|
|
|
- this.costPrice = true
|
|
|
+ showAddPrice(){
|
|
|
+ this.initData = []
|
|
|
this.priceInput = false;
|
|
|
this.shelfLifeInput = false;
|
|
|
- this.stockWarningInput = false;
|
|
|
+ this.stockWarningInput = false;
|
|
|
this.sort.status = false;
|
|
|
+ this.costPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = true;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
- showAddPrice(){
|
|
|
+ showQtAddPrice(){
|
|
|
this.initData = []
|
|
|
- this.canAddPrice = true;
|
|
|
this.priceInput = false;
|
|
|
this.shelfLifeInput = false;
|
|
|
this.stockWarningInput = false;
|
|
|
@@ -717,7 +835,61 @@ export default {
|
|
|
this.costPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
this.costWeight = false;
|
|
|
- },
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = true;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
+ },
|
|
|
+ showByAddPrice(){
|
|
|
+ this.initData = []
|
|
|
+ this.priceInput = false;
|
|
|
+ this.shelfLifeInput = false;
|
|
|
+ this.stockWarningInput = false;
|
|
|
+ this.sort.status = false;
|
|
|
+ this.costPrice = false;
|
|
|
+ this.canAddRatio = false;
|
|
|
+ this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = true;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
+ },
|
|
|
+ showHjAddPrice(){
|
|
|
+ this.initData = []
|
|
|
+ this.priceInput = false;
|
|
|
+ this.shelfLifeInput = false;
|
|
|
+ this.stockWarningInput = false;
|
|
|
+ this.sort.status = false;
|
|
|
+ this.costPrice = false;
|
|
|
+ this.canAddRatio = false;
|
|
|
+ this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = true;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
+ },
|
|
|
+ showZsAddPrice(){
|
|
|
+ this.initData = []
|
|
|
+ this.priceInput = false;
|
|
|
+ this.shelfLifeInput = false;
|
|
|
+ this.stockWarningInput = false;
|
|
|
+ this.sort.status = false;
|
|
|
+ this.costPrice = false;
|
|
|
+ this.canAddRatio = false;
|
|
|
+ this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = true;
|
|
|
+ },
|
|
|
showAddRatio(){
|
|
|
this.initData = []
|
|
|
this.canAddRatio = true;
|
|
|
@@ -726,8 +898,13 @@ export default {
|
|
|
this.sort.status = false;
|
|
|
this.shelfLifeInput = false;
|
|
|
this.costPrice = false;
|
|
|
- this.canAddPrice = false;
|
|
|
this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
showWeight(){
|
|
|
this.initData = []
|
|
|
@@ -736,8 +913,13 @@ export default {
|
|
|
this.stockWarningInput = false;
|
|
|
this.sort.status = false;
|
|
|
this.costPrice = false;
|
|
|
- this.canAddPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
showInTurn (e) {
|
|
|
this.initData = []
|
|
|
@@ -746,9 +928,14 @@ export default {
|
|
|
this.shelfLifeInput = false;
|
|
|
this.stockWarningInput = false;
|
|
|
this.costPrice = false;
|
|
|
- this.canAddPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
showPriceInput(e){
|
|
|
this.initData = []
|
|
|
@@ -757,9 +944,14 @@ export default {
|
|
|
this.stockWarningInput = false;
|
|
|
this.sort.status = false;
|
|
|
this.costPrice = false;
|
|
|
- this.canAddPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
showStockWarningInput(e){
|
|
|
this.initData = []
|
|
|
@@ -768,9 +960,14 @@ export default {
|
|
|
this.stockWarningInput = true;
|
|
|
this.sort.status = false;
|
|
|
this.costPrice = false;
|
|
|
- this.canAddPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
showShelfLifeInputInput(){
|
|
|
this.initData = []
|
|
|
@@ -779,9 +976,14 @@ export default {
|
|
|
this.stockWarningInput = false;
|
|
|
this.sort.status = false;
|
|
|
this.costPrice = false;
|
|
|
- this.canAddPrice = false;
|
|
|
this.canAddRatio = false;
|
|
|
this.costWeight = false;
|
|
|
+
|
|
|
+ this.canAddPrice = false;
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ this.canZsAddPrice = false;
|
|
|
},
|
|
|
hiddenInput(type){
|
|
|
switch (type) {
|
|
|
@@ -794,6 +996,18 @@ export default {
|
|
|
case 'addPrice':
|
|
|
this.canAddPrice = false;
|
|
|
break;
|
|
|
+ case 'qtAddPrice':
|
|
|
+ this.canQtAddPrice = false;
|
|
|
+ break;
|
|
|
+ case 'byAddPrice':
|
|
|
+ this.canByAddPrice = false;
|
|
|
+ break;
|
|
|
+ case 'hjAddPrice':
|
|
|
+ this.canHjAddPrice = false;
|
|
|
+ break;
|
|
|
+ case 'zsAddPrice':
|
|
|
+ this.canZsAddPrice = false;
|
|
|
+ break;
|
|
|
case 'ratio':
|
|
|
this.canAddRatio = false;
|
|
|
break;
|
|
|
@@ -890,6 +1104,31 @@ export default {
|
|
|
let batchAddNum = (Number(this.batchAddNum) + Number(ele.addPrice)).toFixed(2)
|
|
|
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 == 'byAddPrice'){
|
|
|
+ let batchAddNum = (Number(this.batchAddNum) + Number(ele.byAddPrice)).toFixed(2)
|
|
|
+ ele.byAddPrice = batchAddNum
|
|
|
+ this.initData.push({id:ele.id,byAddPrice:ele.byAddPrice})
|
|
|
+
|
|
|
+
|
|
|
+ }else if(this.dataList.form.type == 'hjAddPrice'){
|
|
|
+ let batchAddNum = (Number(this.batchAddNum) + Number(ele.hjAddPrice)).toFixed(2)
|
|
|
+ ele.hjAddPrice = batchAddNum
|
|
|
+ this.initData.push({id:ele.id,hjAddPrice:ele.hjAddPrice})
|
|
|
+
|
|
|
+
|
|
|
+ }else if(this.dataList.form.type == 'zsAddPrice'){
|
|
|
+ let batchAddNum = (Number(this.batchAddNum) + Number(ele.zsAddPrice)).toFixed(2)
|
|
|
+ ele.zsAddPrice = batchAddNum
|
|
|
+ this.initData.push({id:ele.id,zsAddPrice:ele.zsAddPrice})
|
|
|
+
|
|
|
+
|
|
|
}else if(this.dataList.form.type == 'stockWarning'){
|
|
|
let batchAddNum = (Number(this.batchAddNum) + Number(ele.stockWarning)).toFixed(2)
|
|
|
ele.stockWarning = batchAddNum
|
|
|
@@ -914,6 +1153,23 @@ export default {
|
|
|
if(this.dataList.form.type == 'addPrice'){
|
|
|
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 == 'byAddPrice'){
|
|
|
+ ele.byAddPrice = this.batchAlterNum
|
|
|
+ this.initData.push({id:ele.id,byAddPrice:this.batchAlterNum})
|
|
|
+
|
|
|
+ }else if(this.dataList.form.type == 'hjAddPrice'){
|
|
|
+ ele.hjAddPrice = this.batchAlterNum
|
|
|
+ this.initData.push({id:ele.id,hjAddPrice:this.batchAlterNum})
|
|
|
+
|
|
|
+ }else if(this.dataList.form.type == 'zsAddPrice'){
|
|
|
+ ele.zsAddPrice = this.batchAlterNum
|
|
|
+ this.initData.push({id:ele.id,zsAddPrice:this.batchAlterNum})
|
|
|
+
|
|
|
}else if(this.dataList.form.type == 'stockWarning'){
|
|
|
ele.stockWarning = this.batchAlterNum
|
|
|
this.initData.push({id:ele.id,stockWarning:this.batchAlterNum})
|
|
|
@@ -934,13 +1190,19 @@ export default {
|
|
|
},
|
|
|
changeInputValue (d, type) {
|
|
|
this.dataList.form.type = type
|
|
|
- let obj = {
|
|
|
- id: d.id,
|
|
|
- }
|
|
|
+ let obj = {id: d.id}
|
|
|
if(type == 'inTurn') {
|
|
|
obj.inTurn = d.inTurn
|
|
|
} else if(type == 'addPrice') {
|
|
|
obj.addPrice = d.addPrice
|
|
|
+ } else if(type == 'qtAddPrice') {
|
|
|
+ obj.qtAddPrice = d.qtAddPrice
|
|
|
+ } else if(type == 'byAddPrice') {
|
|
|
+ obj.byAddPrice = d.byAddPrice
|
|
|
+ } else if(type == 'hjAddPrice') {
|
|
|
+ obj.hjAddPrice = d.hjAddPrice
|
|
|
+ } else if(type == 'zsAddPrice') {
|
|
|
+ obj.zsAddPrice = d.zsAddPrice
|
|
|
} else if(type == 'cost') {
|
|
|
obj.cost = d.cost
|
|
|
}else if(type == 'weight') {
|