|
@@ -137,9 +137,12 @@
|
|
|
<span style="padding:0 0 0 4px;">元</span>
|
|
<span style="padding:0 0 0 4px;">元</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="text-align:center;margin:20px 0 5px 0;font-weight:bold;font-size:18px;">剩 {{ currentItem.stock ? parseFloat(currentItem.stock) : 0 }} {{ currentItem.bigUnit}}</div>
|
|
<div style="text-align:center;margin:20px 0 5px 0;font-weight:bold;font-size:18px;">剩 {{ currentItem.stock ? parseFloat(currentItem.stock) : 0 }} {{ currentItem.bigUnit}}</div>
|
|
|
|
|
+ <div style="text-align: center;margin-top:15px;">
|
|
|
|
|
+ <el-switch v-model="customData.assignSeat" active-value='1' inactive-value='0'></el-switch> {{customData.assignSeat=='0'?'无':''}}货位
|
|
|
|
|
+ </div>
|
|
|
<div class="remark">
|
|
<div class="remark">
|
|
|
<el-button @click="backToSearchItem()">取消</el-button>
|
|
<el-button @click="backToSearchItem()">取消</el-button>
|
|
|
- <el-button type="primary" @click="confirmNumPrice()">确认</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="confirmNumPrice()" style="margin-left:50px;">确认</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="remark">Esc 取消,Enter 确认</div>
|
|
<div class="remark">Esc 取消,Enter 确认</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -417,7 +420,6 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
-
|
|
|
|
|
if (this.$route.query.ghsId && this.$route.query.ghsName) {
|
|
if (this.$route.query.ghsId && this.$route.query.ghsName) {
|
|
|
let id = this.$route.query.ghsId
|
|
let id = this.$route.query.ghsId
|
|
|
let name = this.$route.query.ghsName
|
|
let name = this.$route.query.ghsName
|
|
@@ -675,7 +677,8 @@ export default {
|
|
|
ratio:ele.ratio,
|
|
ratio:ele.ratio,
|
|
|
ratioType:ele.ratioType,
|
|
ratioType:ele.ratioType,
|
|
|
aboutPrice:ele.aboutPrice,
|
|
aboutPrice:ele.aboutPrice,
|
|
|
- totalPrice:ele.totalPrice
|
|
|
|
|
|
|
+ totalPrice:ele.totalPrice,
|
|
|
|
|
+ assignSeat:ele.assignSeat
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
formData.itemInfo = JSON.stringify(itemInfo)
|
|
formData.itemInfo = JSON.stringify(itemInfo)
|
|
@@ -783,10 +786,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
pickModifyItem(e){
|
|
pickModifyItem(e){
|
|
|
this.changeType = 'update'
|
|
this.changeType = 'update'
|
|
|
|
|
+ this.customData.assignSeat = e.assignSeat && e.assignSeat == '0' ? '0' : '1'
|
|
|
this.selectCurrentItem(e)
|
|
this.selectCurrentItem(e)
|
|
|
},
|
|
},
|
|
|
pickAddItem(e){
|
|
pickAddItem(e){
|
|
|
this.changeType = 'add'
|
|
this.changeType = 'add'
|
|
|
|
|
+ this.customData.assignSeat = '1'
|
|
|
this.selectCurrentItem(e)
|
|
this.selectCurrentItem(e)
|
|
|
},
|
|
},
|
|
|
pickAddCurrentItem(){
|
|
pickAddCurrentItem(){
|
|
@@ -834,7 +839,6 @@ export default {
|
|
|
total = parseFloat(total.toFixed(2))
|
|
total = parseFloat(total.toFixed(2))
|
|
|
this.customData.totalPrice = total
|
|
this.customData.totalPrice = total
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
this.desk = 'confirmPriceNum';
|
|
this.desk = 'confirmPriceNum';
|
|
|
this.showGetItemList = false
|
|
this.showGetItemList = false
|
|
|
this.showConfirmNum = true;
|
|
this.showConfirmNum = true;
|
|
@@ -919,7 +923,7 @@ export default {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
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,
|
|
|
- totalPrice:this.customData.totalPrice,aboutPrice:this.customData.aboutPrice}
|
|
|
|
|
|
|
+ totalPrice:this.customData.totalPrice,aboutPrice:this.customData.aboutPrice,assignSeat:this.customData.assignSeat}
|
|
|
this.replaceItemFn(currentItem,1,'add')
|
|
this.replaceItemFn(currentItem,1,'add')
|
|
|
this.backToSearchItem();
|
|
this.backToSearchItem();
|
|
|
},
|
|
},
|