Commit d2c85aa9 authored by dragondean@qq.com's avatar dragondean@qq.com
parents 0ff630fc 2ab02011
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<el-card class="card"> <el-card class="card">
<!-- 列表 --> <!-- 列表 -->
<div slot="header" class="card-title">已合单订单</div> <div slot="header" class="card-title">已合单订单</div>
<el-table v-loading="loading" border :data="list.mergedList" style="width: 200px;"> <el-table v-loading="loading" border :data="mergedList" style="width: 200px;">
<el-table-column label="序号" align="center" prop="id" type="index"> <el-table-column label="序号" align="center" prop="id" type="index">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.$index + 1}}</span> <span>{{scope.$index + 1}}</span>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</el-table-column> </el-table-column>
<el-table-column label="始发地" align="center"> <el-table-column label="始发地" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{importCityName(scope.row.scope.row.orderDepartureVO.departureId)}}</span> <span>{{importCityName(scope.row.orderDepartureVO.departure.titleZh)}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="入仓货物属性" align="center"> <el-table-column label="入仓货物属性" align="center">
...@@ -129,7 +129,6 @@ ...@@ -129,7 +129,6 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> -->
{{scope.row.status==99?'异常':'正常'}} {{scope.row.status==99?'异常':'正常'}}
</template> </template>
</el-table-column> </el-table-column>
...@@ -170,11 +169,12 @@ export default { ...@@ -170,11 +169,12 @@ export default {
orderData:{}, orderData:{},
// 订单异常列表 // 订单异常列表
list: [], list: [],
mergedList:[],
singleData:[], singleData:[],
tradeCityList:[], tradeCityList:[],
loading:false, loading:false,
queryParams:{ queryParams:{
mergedOrderNo:'UG2200012S', mergedOrderNo:'UG2200033D',
page:1, page:1,
rosw:10 rosw:10
}, },
...@@ -188,7 +188,6 @@ export default { ...@@ -188,7 +188,6 @@ export default {
this.queryParams.mergedOrderNo = this.$route.query.orderNo this.queryParams.mergedOrderNo = this.$route.query.orderNo
} }
this.getList() this.getList()
getTradeCityList().then(res => this.tradeCityList = res.data) getTradeCityList().then(res => this.tradeCityList = res.data)
}, },
methods: { methods: {
...@@ -197,11 +196,17 @@ export default { ...@@ -197,11 +196,17 @@ export default {
this.loading = true; this.loading = true;
// 执行查询 // 执行查询
getMergeListByOrderNo(this.queryParams).then(response => { getMergeListByOrderNo(this.queryParams).then(response => {
this.list = response.data;
this.total = response.data.unMergeList.total;
this.orderData = response.data.orderInfo
this.loading = false; this.loading = false;
this.singleData = response.data.unMergeList.list; if(response.data.mergedList){
this.mergedList = response.data;
}
if(response.data.unMergeList){
this.total = response.data.unMergeList.total;
this.singleData = response.data.unMergeList.list;
}
if(response.data.orderInfo){
this.orderData = response.data.orderInfo
}
}); });
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
...@@ -233,7 +238,7 @@ export default { ...@@ -233,7 +238,7 @@ export default {
} }
cancelMerge(params).then(res=>{ cancelMerge(params).then(res=>{
that.$message.success("取消成功"); that.$message.success("取消成功");
that.getList() that.$router.back()
}) })
}, },
submitForm(){ submitForm(){
...@@ -250,7 +255,7 @@ export default { ...@@ -250,7 +255,7 @@ export default {
} }
createMerge(params).then(res=>{ createMerge(params).then(res=>{
that.$message.success("修改成功"); that.$message.success("修改成功");
that.getList() that.$router.back()
}) })
} }
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{{orderData.consignorVO?orderData.consignorVO.company||'':''}} {{orderData.consignorVO?orderData.consignorVO.company||'':''}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="发货电话"> <el-descriptions-item label="发货电话">
{{orderData.consignorVO?(orderData.consignorVO.phone?(orderData.consignorVO.countryCode+orderData.consignorVO.phone):''):''}} {{!orderData.consignorVO?"":!orderData.consignorVO.phone?'':(orderData.consignorVO.countryCode+orderData.consignorVO.phone)}}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="4"> <el-descriptions :column="4">
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
{{orderData.consigneeVO?orderData.consigneeVO.company||'':''}} {{orderData.consigneeVO?orderData.consigneeVO.company||'':''}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="收货电话"> <el-descriptions-item label="收货电话">
{{orderData.consigneeVO?(orderData.consigneeVO.phone?(orderData.consigneeVo.countryCode+orderData.consigneeVO.phone):''):''}} {{!orderData.consigneeVO?"":!orderData.consigneeVO.phone?'':(orderData.consigneeVO.countryCode+orderData.consigneeVO.phone)}}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
...@@ -102,9 +102,9 @@ ...@@ -102,9 +102,9 @@
<span>品牌: <span>品牌:
<dict-tag :type="DICT_TYPE.ECW_IS_BRAND" :value="scope.row.brandType" /> <dict-tag :type="DICT_TYPE.ECW_IS_BRAND" :value="scope.row.brandType" />
</span> </span>
<span style="margin-left: 10px;">箱数:{{scope.row.warehouseInInfoVO.cartonsNum}}</span> <span style="margin-left: 10px;">箱数:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.cartonsNum}}</span>
<span style="margin-left: 10px;">体积:{{scope.row.warehouseInInfoVO.volume}}</span> <span style="margin-left: 10px;">体积:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.volume}}</span>
<span style="margin-left: 10px;">重量:{{scope.row.warehouseInInfoVO.weight}}kg</span> <span style="margin-left: 10px;">重量:{{!scope.row.warehouseInInfoVO?0:scope.row.warehouseInInfoVO.weight}}kg</span>
</el-row> </el-row>
</template> </template>
</el-table-column> </el-table-column>
...@@ -115,7 +115,8 @@ ...@@ -115,7 +115,8 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> {{orderData.status==99?'异常':'正常'}}
<!-- <dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="scope.row.status" /> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -250,7 +251,7 @@ ...@@ -250,7 +251,7 @@
<script> <script>
import {getDictData, getDictDatas,DICT_TYPE} from '@/utils/dict' import {getDictData, getDictDatas,DICT_TYPE} from '@/utils/dict'
import {getSplitList,splitApply,createSplit,cancelApply,createSplitItem,deleteSplitItem,deleteSplit} from "@/api/ecw/orderHandle" import {getSplitList,splitApply,createSplit,cancelApply,createSplitItem,deleteSplitItem,deleteSplit} from "@/api/ecw/orderHandle"
import {getTradeCityList} from '@/api/ecw/region' import {getWarehouseList} from '@/api/ecw/warehouse'
import {getChannelList} from '@/api/ecw/channel' import {getChannelList} from '@/api/ecw/channel'
import WorkFlow from '@/components/WorkFlow' import WorkFlow from '@/components/WorkFlow'
import {getOrder} from '@/api/ecw/order' import {getOrder} from '@/api/ecw/order'
...@@ -291,7 +292,7 @@ export default { ...@@ -291,7 +292,7 @@ export default {
prodTitleEn: [{ required: true, message: "请选择英文品名", trigger: "change" }], prodTitleEn: [{ required: true, message: "请选择英文品名", trigger: "change" }],
}, },
queryParams:{ queryParams:{
orderId:96, orderId:176,
lang:0 lang:0
}, },
query:{ query:{
...@@ -303,15 +304,12 @@ export default { ...@@ -303,15 +304,12 @@ export default {
}, },
created() { created() {
this.getChannel() this.getChannel()
getTradeCityList().then(res => this.tradeCityList = res.data) getWarehouseList().then(res => this.tradeCityList = res.data)
if (this.$route.query.orderId) { if (this.$route.query.orderId) {
this.queryParams.orderId = this.$route.query.orderId this.queryParams.orderId = this.$route.query.orderId
this.getList()
this.getOrder()
}else{
this.getList()
this.getOrder()
} }
this.getList()
this.getOrder()
}, },
watch: { watch: {
//监听table这个对象 //监听table这个对象
...@@ -349,7 +347,7 @@ export default { ...@@ -349,7 +347,7 @@ export default {
getOrder(){ getOrder(){
this.loading = true; this.loading = true;
getOrder(this.queryParams.orderId).then(response => { getOrder(this.queryParams.orderId).then(response => {
this.orderData = response.data; this.orderData = response.data
this.query.destWarehouseId = response.data.logisticsInfoDto.startWarehouseId this.query.destWarehouseId = response.data.logisticsInfoDto.startWarehouseId
this.loading = false this.loading = false
...@@ -397,9 +395,9 @@ export default { ...@@ -397,9 +395,9 @@ export default {
orderSum += column.num orderSum += column.num
orderV += column.volume orderV += column.volume
orderW += column.weight orderW += column.weight
leviteSum += column.warehouseInInfoVO.cartonsNum leviteSum += column.warehouseInInfoVO?column.warehouseInInfoVO.cartonsNum:0
leviteV += column.warehouseInInfoVO.volume leviteV += column.warehouseInInfoVO?column.warehouseInInfoVO.volume:0
leviteW += column.warehouseInInfoVO.weight leviteW += column.warehouseInInfoVO?column.warehouseInInfoVO.weight:0
}); });
sums[1] = '下单统计:'+ orderSum+''+ orderV +'' + orderW + ' kg ' + ' 入仓统计:'+ leviteSum+''+ leviteV +'' + leviteW + ' kg' sums[1] = '下单统计:'+ orderSum+''+ orderV +'' + orderW + ' kg ' + ' 入仓统计:'+ leviteSum+''+ leviteV +'' + leviteW + ' kg'
...@@ -411,13 +409,21 @@ export default { ...@@ -411,13 +409,21 @@ export default {
return arr.length>0?arr[0].titleZh:'' return arr.length>0?arr[0].titleZh:''
}, },
submitForm(){ submitForm(){
if(this.splitData.length==0){
this.$modal.msgError("请先新建拆单")
return
}
// if(this.selectedUsers.length==0){
// this.$modal.msgError("请选择抄送人")
// return
// }
var params = { var params = {
orderId:this.queryParams.orderId, orderId:this.queryParams.orderId,
copyUserId:this.selectedUsers copyUserId:this.selectedUsers
} }
splitApply(params).then(res=>{ splitApply(params).then(res=>{
this.$modal.msgSuccess("申请成功"); this.$modal.msgSuccess("申请成功");
that.getList() this.$router.back()
}) })
}, },
addShop(index){ addShop(index){
...@@ -479,7 +485,7 @@ export default { ...@@ -479,7 +485,7 @@ export default {
remarks:this.shopForm.remarks remarks:this.shopForm.remarks
} }
createSplitItem(params).then(res=>{ createSplitItem(params).then(res=>{
that.$message.success("放入成功"); this.$message.success("放入成功");
this.getList() this.getList()
this.shopForm = {} this.shopForm = {}
}) })
...@@ -499,7 +505,7 @@ export default { ...@@ -499,7 +505,7 @@ export default {
that.$confirm('是否取消审核吗?').then(function () { that.$confirm('是否取消审核吗?').then(function () {
cancelApply({orderId:that.queryParams.orderId}).then(res=>{ cancelApply({orderId:that.queryParams.orderId}).then(res=>{
that.$message.success("取消成功"); that.$message.success("取消成功");
that.getList() that.$router.back()
}) })
}) })
......
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