Commit 85b777a1 by ext.wangyuman1

详情

1 parent 4501d8d5
......@@ -304,3 +304,18 @@ export function orderDetail(id) {
url: order + '/' + id,
})
}
// 移动端-全部字段信息
export function getProperties() {
return request({
url: getway + '/substitute/customer/order/property/properties',
})
}
// 获取与外部联系人会话列表
export function chatList(params) {
return request({
url: getway + '/chat/msg/selectFullSearchChatList',
params,
})
}
......@@ -7,23 +7,36 @@
v-if="dialogVisible"
:before-close="handleClose"
>
<div class="g-card">
<div class="title">订单信息</div>
</div>
<div class="g-card">
<div class="title">商品信息</div>
<div class="g-card" v-for="(item, index) in detailList" :key="index">
<div class="title">{{ item.name }}</div>
<div class="content">
<div class="content-item" v-for="(obj, i) in item.properties" :key="i">
<template v-if="obj.type !== 7">
<span>{{ obj.name }}</span>
<span>{{ query[obj.code] }}</span>
</template>
<template v-else>
<!-- 附件 -->
</template>
</div>
</div>
</div>
<!-- <div class="g-card">
        <div class="title">商品信息</div>
      </div> -->
</el-dialog>
</div>
</template>
<script>
import { orderDetail } from '@/api/customer'
import { orderDetail, getProperties } from '@/api/customer'
export default {
data() {
return {
dialogVisible: false,
ruleForm: {},
detailList: [],
query: {},
}
},
props: {
......@@ -43,19 +56,32 @@ export default {
if (!val) {
this.ruleForm = {}
} else {
this.orderDetail(this.id)
this.getDetail(this.id)
this.getProperties()
}
},
},
},
created() {
// this.getDetail()
},
methods: {
// 点击×按钮
handleClose() {
this.$emit('close', false)
},
orderDetail(id) {
//  获取全部属性
getProperties(id) {
getProperties(id).then((res) => {
console.log(res)
this.query = res.data
})
},
// 获取详情
getDetail() {
orderDetail(id).then((res) => {
console.log(res)
this.detailList = res.data
})
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!