Commit 5de0e9b0 authored by dragondean@qq.com's avatar dragondean@qq.com

批量设置路线价格阶梯价格异常

parent fe057805
......@@ -23,7 +23,7 @@
</el-descriptions-item>
</el-descriptions>
<template v-for="item in detail.orderSplitBackVOList">
<template v-for="item in orderSplitBackVOList">
<div class="title mt-20" :key="item.orderNo">
<span class="mr-10">{{item.orderNo}}</span>
<dict-tag class="mr-10" :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="item.transportId" />
......@@ -52,7 +52,11 @@
<template slot-scope="{row}">{{row.weight}}kg</template>
</el-table-column>
<el-table-column :label="$t('箱数')">
<template slot-scope="{row}">{{row.num}}</template></el-table-column>
<template slot-scope="{row}">{{row.num}}</template>
</el-table-column>
<el-table-column :label="$t('备注')">
<template slot-scope="{row}">{{row.remark}}</template>
</el-table-column>
</el-table>
</template>
</div>
......@@ -60,6 +64,7 @@
<script>
import {getApproval, getOrder} from '@/api/ecw/order'
import {getChannel} from '@/api/ecw/channel'
import {getSplitList} from '@/api/ecw/orderHandle'
export default {
props:{
id: [String, Number]
......@@ -68,7 +73,8 @@ export default {
return {
detail: null,
order: null,
channel: null
channel: null,
orderSplitBackVOList: []
}
},
watch:{
......@@ -76,6 +82,7 @@ export default {
this.getData()
},
detail(){
this.getSplit()
this.getOrder()
},
order(){
......@@ -95,6 +102,12 @@ export default {
this.detail = JSON.parse(res.data.details)
})
},
getSplit(){
getSplitList({orderId: this.detail.orderId, lang: this.$i18n.locale.toLowerCase().indexOf('zh') > -1 ? 0 : 1 }).then(res => {
console.log('getSplitList', res)
this.orderSplitBackVOList = res.data.orderSplitBackVOList
})
},
getOrder(){
getOrder(this.detail.orderId).then(res => {
this.order = res.data
......
......@@ -236,7 +236,7 @@
<el-input-number v-model="shopForm.quantity" controls-position="right" :min="1" :max="quantitySum"></el-input-number>
</el-form-item>
<el-form-item :label="$t('备注信息')+':'">
<el-input v-model="shopForm.remarks"></el-input>
<el-input v-model="shopForm.remark"></el-input>
</el-form-item>
</el-row>
</el-form>
......@@ -552,7 +552,7 @@ export default {
num:this.shopForm.num,
orderItemId:this.shopForm.orderItemId,
orderSplitId:this.splitData[this.splitItemIndex].id,
remarks:this.shopForm.remarks
remark:this.shopForm.remark
}
createSplitItem(params).then(res=>{
this.$message.success(this.$t("放入成功"));
......
......@@ -368,7 +368,7 @@ export default {
data.priceStepList = this.form.priceStepList
} */
// 没有设置阶梯价格则不提交priceStepList
if(!data.stepPrice != 1){
if(data.stepPrice != 1){
delete data.priceStepList
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment