Commit 7ffa2a5d authored by zhoutong's avatar zhoutong
parents 31dfbedf 69a1fb8e
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
<el-descriptions-item :label="$t('送货时间')">{{ order.deliveryDate || '' }}</el-descriptions-item> <el-descriptions-item :label="$t('送货时间')">{{ order.deliveryDate || '' }}</el-descriptions-item>
<el-descriptions-item :label="$t('入仓类型')">{{ getDictDataLabel(DICT_TYPE.ECW_WAREHOUSING_TYPE, order.warehouseType) }}</el-descriptions-item> <el-descriptions-item :label="$t('入仓类型')">{{ getDictDataLabel(DICT_TYPE.ECW_WAREHOUSING_TYPE, order.warehouseType) }}</el-descriptions-item>
<el-descriptions-item :label="$t('订单号')">{{ order.orderNo }}</el-descriptions-item> <el-descriptions-item :label="$t('订单号')">{{ order.orderNo }}</el-descriptions-item>
<el-descriptions-item v-if="stocking" :label="$t('出货渠道')">{{ order.channelName }}</el-descriptions-item>
<el-descriptions-item v-if="stocking" :label="$t('可出特性')">{{ order.channelAttrName }}</el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
</template> </template>
...@@ -29,7 +32,9 @@ export default { ...@@ -29,7 +32,9 @@ export default {
name: "orderBaseInfo", name: "orderBaseInfo",
props: { props: {
order: Object order: Object,
// 是否备货,如果页面引用需要显示可出特性和渠道
stocking: Boolean
}, },
data () { data () {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="app-container"> <div class="app-container">
<h2>{{ title }}-{{ order.orderNo }}</h2> <h2>{{ title }}-{{ order.orderNo }}</h2>
<order-base-info :order="order"></order-base-info> <order-base-info :order="order" stocking></order-base-info>
<h2>{{$t('货物信息')}}</h2> <h2>{{$t('货物信息')}}</h2>
<el-table <el-table
...@@ -53,6 +53,14 @@ ...@@ -53,6 +53,14 @@
:label="$t('快递单号')"> :label="$t('快递单号')">
{{ row.expressNo || (row.warehouseInInfoVO ? row.warehouseInInfoVO.expressNo : '') }} {{ row.expressNo || (row.warehouseInInfoVO ? row.warehouseInInfoVO.expressNo : '') }}
</el-table-column> </el-table-column>
<el-table-column
v-slot="{row}"
:label="$t('商品特性')">
<template v-if="row.prodAttrIds">
{{showAttr(row.prodAttrIds)}}
</template>
</el-table-column>
<el-table-column <el-table-column
prop="createTime" prop="createTime"
:label="$t('最后操作时间')"> :label="$t('最后操作时间')">
...@@ -185,11 +193,14 @@ import imageUpload from "@/components/ImageUpload"; ...@@ -185,11 +193,14 @@ import imageUpload from "@/components/ImageUpload";
import {parseTime} from "@/utils/ruoyi" import {parseTime} from "@/utils/ruoyi"
import ImageAndVideoUpload from '@/components/ImageAndVideoUpload' import ImageAndVideoUpload from '@/components/ImageAndVideoUpload'
import Package from './components/Package' import Package from './components/Package'
import Template from "@/views/cms/template/index.vue";
import {getProductAttrList} from "@/api/ecw/productAttr";
export default { export default {
name: "Stocking", name: "Stocking",
components: { components: {
Template,
orderBaseInfo, orderBaseInfo,
WarehouseAreaDialog, WarehouseAreaDialog,
PrintTag, PrintTag,
...@@ -208,6 +219,7 @@ export default { ...@@ -208,6 +219,7 @@ export default {
this.getOrder() this.getOrder()
} }
getCurrencyList().then(res => this.currencyList = res.data) getCurrencyList().then(res => this.currencyList = res.data)
getProductAttrList().then(res => this.productAttrList = res.data)
}, },
data() { data() {
...@@ -261,7 +273,8 @@ export default { ...@@ -261,7 +273,8 @@ export default {
// 当前打包的订单商品项 // 当前打包的订单商品项
packageOrderItem: null, packageOrderItem: null,
// 打包商品的入仓商品项 // 打包商品的入仓商品项
packageWarehouseItem: null packageWarehouseItem: null,
productAttrList: []
} }
}, },
...@@ -294,6 +307,8 @@ export default { ...@@ -294,6 +307,8 @@ export default {
}, },
getOrder(){ getOrder(){
return getOrder(this.orderId).then(r => { return getOrder(this.orderId).then(r => {
// 获取渠道可出特性文案用户订单基础信息显示
r.data.channelAttrName = this.showAttr(r.data.channelAttrId)
this.order = r.data this.order = r.data
this.form.sumVolume = this.order.sumVolume this.form.sumVolume = this.order.sumVolume
this.form.sumWeight = this.order.sumWeight this.form.sumWeight = this.order.sumWeight
...@@ -395,6 +410,18 @@ export default { ...@@ -395,6 +410,18 @@ export default {
}, },
warehouseId(){ warehouseId(){
return this.order?.logisticsInfoDto?.startWarehouseId return this.order?.logisticsInfoDto?.startWarehouseId
},
// 显示特性
showAttr(){
return attrIds => {
if(!attrIds) return ''
let attrArr = attrIds.split(",").map(item => +item)
let arr = []
this.productAttrList.forEach(item => {
if(attrArr.indexOf(item.id) > -1) arr.push(this.$l(item, 'attrName'))
})
return arr.join(",")
}
} }
} }
} }
......
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