Commit 6a12ab25 authored by dcy's avatar dcy

订单详情出货方式

parent aa4b318c
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
<el-descriptions-item label="运输方式"> <el-descriptions-item label="运输方式">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="FeeDetails.transportId"></dict-tag> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="FeeDetails.transportId"></dict-tag>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="出货方式"></el-descriptions-item> <el-descriptions-item label="出货方式">
{{selectChannel(FeeDetails.channelId)}}
</el-descriptions-item>
<el-descriptions-item label="订单状态"> <el-descriptions-item label="订单状态">
<dict-tag :type="DICT_TYPE.ORDER_ABNORMAL_STATE" :value="FeeDetails.abnormalState"></dict-tag> <dict-tag :type="DICT_TYPE.ORDER_ABNORMAL_STATE" :value="FeeDetails.abnormalState"></dict-tag>
</el-descriptions-item> </el-descriptions-item>
...@@ -77,7 +79,7 @@ ...@@ -77,7 +79,7 @@
<script> <script>
import {warehouseApprovalGetByFormId, warehouseAreaPositionList} from "@/api/ecw/batchSingleApplication"; import {warehouseApprovalGetByFormId, warehouseAreaPositionList} from "@/api/ecw/batchSingleApplication";
import {applicationGetOrderByProcessId} from "@/api/ecw/order"; import {applicationGetOrderByProcessId} from "@/api/ecw/order";
import { getChannelList } from '@/api/ecw/channel';
export default { export default {
props:{ props:{
type:{ type:{
...@@ -93,12 +95,13 @@ export default { ...@@ -93,12 +95,13 @@ export default {
return{ return{
FeeDetails:{}, FeeDetails:{},
transfer:{}, transfer:{},
warehouseList:[] warehouseList:[],
channelList:[]
} }
}, },
created() { created() {
getChannelList().then(r => this.channelList = r.data);
warehouseAreaPositionList().then(r => this.warehouseList = r.data) warehouseAreaPositionList().then(r => this.warehouseList = r.data)
console.log(this.type,'type');
switch (this.type){ switch (this.type){
case 1: case 1:
warehouseApprovalGetByFormId({formId:this.processId}).then( r => { warehouseApprovalGetByFormId({formId:this.processId}).then( r => {
...@@ -117,6 +120,10 @@ export default { ...@@ -117,6 +120,10 @@ export default {
return this.warehouseList.find(e => e.id === val).titleZh return this.warehouseList.find(e => e.id === val).titleZh
} }
return '' return ''
},
selectChannel(val){
if(this.channelList.length > 0) return this.channelList.find(e => e.channelId === val).nameEn
return ''
} }
} }
} }
......
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