Commit 3f99d20b by cen

fix: 工单确认修改参数

1 parent ee62ac81
......@@ -90,7 +90,7 @@ export default {
closePopup() {
this.$refs.publishPopup.close()
if (this.reject) {
this.reject()
this.resolve('关闭')
}
this.$emit('close')
},
......
......@@ -50,7 +50,7 @@
</view>
</view>
<view class="good-list">
<view class="good" v-for="(item, index) in orderInfo.subOrderList">
<view class="good pt-16" v-for="(item, index) in orderInfo.subOrderList">
<view class="flex justify-between align-center">
<text class="good-name">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
<text class="good-price">¥{{ item.price }}</text>
......@@ -305,6 +305,12 @@ export default {
})
total_price += item.totalPrice
})
// 处理subOrderList 商品为空的情况
data.subOrderList = data.subOrderList.filter(item => item.merchantGoodsId)
if (data.packageGoodsList && data.packageGoodsList.length) {
data.subOrderList = data.subOrderList.concat(data.packageGoodsList)
}
data = {
...data.customer,
...data.payOrder,
......@@ -369,7 +375,7 @@ export default {
let params = {
orderCode
}
let { total_price } = this.data.orderInfo
let { total_price } = this.orderInfo
uni.$api.boutiqueApi.getPackageGoodsDetail(params).then(res => {
res.data?.packageGoodsList.forEach(item => {
......
......@@ -82,7 +82,7 @@
<view class="box-shell">
<view class="box-shell-title">工单信息</view>
<view class="order-info pt-16">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-8">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-16">
<view class="label">{{ item.label }}</view>
<view v-if="item.key == 'status'">
<view class="value" :style="{ color: status[orderInfo.status].color || '' }">
......@@ -130,7 +130,7 @@
<view class="box-shell">
<view class="box-shell-title">客户信息</view>
<view class="order-info pt-16">
<view class="flex align-center pt-8" v-for="(item, index) in customerObj" :key="index">
<view class="flex align-center pt-16" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view>
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!