Commit c71e3ae2 authored by 我在何方's avatar 我在何方
parents 60a0461a 1d9b53c7
...@@ -4252,5 +4252,6 @@ ...@@ -4252,5 +4252,6 @@
"发货人名称、手机号": "sender name or mobile", "发货人名称、手机号": "sender name or mobile",
"收货人名称、手机号": "Receiver Name or Mobile", "收货人名称、手机号": "Receiver Name or Mobile",
"订单费用报表": "Order cost report", "订单费用报表": "Order cost report",
"请先选择目的国": "select the destination country first" "请先选择目的国": "select the destination country first",
"控货日志": "Control cargo log"
} }
...@@ -479,6 +479,7 @@ export default { ...@@ -479,6 +479,7 @@ export default {
let total = {} let total = {}
arr.forEach(item => { arr.forEach(item => {
const currency = item[currencyField] const currency = item[currencyField]
if(!currency) return
if(!total[currency]){ if(!total[currency]){
total[currency] = new Decimal(0) total[currency] = new Decimal(0)
} }
......
...@@ -1006,6 +1006,7 @@ export default { ...@@ -1006,6 +1006,7 @@ export default {
}, },
activated(){ activated(){
if(this.$route.query.id != this.form.id){ if(this.$route.query.id != this.form.id){
console.log("activated 加载订单数据")
this.getOrder() this.getOrder()
} }
let transportType = undefined let transportType = undefined
...@@ -1020,7 +1021,6 @@ export default { ...@@ -1020,7 +1021,6 @@ export default {
this.updateChannel = this.$route.query.updateChannel == 1 this.updateChannel = this.$route.query.updateChannel == 1
}, },
async created() { async created() {
this.productAttrList = (await getProductAttrList()).data this.productAttrList = (await getProductAttrList()).data
this.channelList = (await getChannelList()).data this.channelList = (await getChannelList()).data
this.tradeCityList = (await getTradeCityList()).data this.tradeCityList = (await getTradeCityList()).data
...@@ -1042,6 +1042,7 @@ export default { ...@@ -1042,6 +1042,7 @@ export default {
this.updateChannel = true this.updateChannel = true
} }
if(this.$route.query.id){ if(this.$route.query.id){
console.log('created 加载订单数据')
this.getOrder() this.getOrder()
}else{ }else{
this.addProduct() this.addProduct()
...@@ -1056,6 +1057,10 @@ export default { ...@@ -1056,6 +1057,10 @@ export default {
// console.warn('onTableMounted', e) // console.warn('onTableMounted', e)
}, },
getOrder(){ getOrder(){
if(this.form.orderId == this.$route.query.id){
console.log('加载中或者已加载此订单数据,不重复加载', this.initing, this.form.orderId, this.$route.query.id)
return
}
this.initing = true this.initing = true
getUpdateInfo(this.$route.query.id).then(res => { getUpdateInfo(this.$route.query.id).then(res => {
this.form = Object.assign({}, {...res.data}, {orderItemVOList: []}) this.form = Object.assign({}, {...res.data}, {orderItemVOList: []})
...@@ -1116,6 +1121,7 @@ export default { ...@@ -1116,6 +1121,7 @@ export default {
this.form.orderItemVOList.push({...item}) this.form.orderItemVOList.push({...item})
}) })
// 已入仓后,必填字段修改则需要显示审批流
if(this.inWarehouse){ if(this.inWarehouse){
Object.keys(this.rules).forEach(field => { Object.keys(this.rules).forEach(field => {
console.log("watch", field) console.log("watch", field)
...@@ -1132,6 +1138,9 @@ export default { ...@@ -1132,6 +1138,9 @@ export default {
if(res.data.portDestCustomsClear){ if(res.data.portDestCustomsClear){
this.$set(this.form, 'portDestCustomsClear', res.data.portDestCustomsClear) this.$set(this.form, 'portDestCustomsClear', res.data.portDestCustomsClear)
} }
if(res.data.deliveryWay){
this.$set(this.form, 'deliveryWay', res.data.deliveryWay)
}
}, 100) }, 100)
this.initing = false this.initing = false
}) })
......
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
this.exporting = true this.exporting = true
const exportParams = Array.isArray(params) ? {orderIdList: params} : {...params} const exportParams = Array.isArray(params) ? {orderIdList: params} : {...params}
exportWaitingShipment(exportParams).then(res => { exportWaitingShipment(exportParams).then(res => {
this.$download.excel(res, this.$t('待出订单') + '.xls'); this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载'))
}).finally(() => { }).finally(() => {
this.exporting = false this.exporting = false
}) })
......
...@@ -349,7 +349,8 @@ export default { ...@@ -349,7 +349,8 @@ export default {
exportXls(params){ exportXls(params){
this.exporting = true this.exporting = true
exportCanShipment(params).then(res => { exportCanShipment(params).then(res => {
this.$download.excel(res, this.$t('备货订单') + '.xls'); // this.$download.excel(res, this.$t('备货订单') + '.xls');
this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载'))
}).finally(() => { }).finally(() => {
this.exporting = false this.exporting = false
}) })
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
disabled/> disabled/>
</el-form-item>--> </el-form-item>-->
<!--多条路线批量修改--> <!--多条路线批量修改-->
<el-form-item :label="$t('路线')" prop="lineChannelList" v-if="lineList.length"> <template v-if="lineList.length">
<el-form-item :label="$t('路线')" prop="lineChannelList">
<template v-if="lineList.length == 1"> <template v-if="lineList.length == 1">
<el-input <el-input
v-for="(item, index) in lineList" v-for="(item, index) in lineList"
...@@ -63,7 +64,7 @@ ...@@ -63,7 +64,7 @@
<el-form-item v-if="channel" :label="$t('出货渠道')"> <el-form-item v-if="channel" :label="$t('出货渠道')">
{{$l(channel, 'name')}} {{$l(channel, 'name')}}
</el-form-item> </el-form-item>
</template>
<!--有路线则不显示路线选择器--> <!--有路线则不显示路线选择器-->
<routers-selector v-else v-model="selectedRoutes" :option="routerOption" :type="type" /> <routers-selector v-else v-model="selectedRoutes" :option="routerOption" :type="type" />
......
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