Commit 85b777a1 by ext.wangyuman1

详情

1 parent 4501d8d5
...@@ -304,3 +304,18 @@ export function orderDetail(id) { ...@@ -304,3 +304,18 @@ export function orderDetail(id) {
url: order + '/' + 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 @@ ...@@ -7,23 +7,36 @@
v-if="dialogVisible" v-if="dialogVisible"
:before-close="handleClose" :before-close="handleClose"
> >
<div class="g-card"> <div class="g-card" v-for="(item, index) in detailList" :key="index">
<div class="title">订单信息</div> <div class="title">{{ item.name }}</div>
</div> <div class="content">
<div class="g-card"> <div class="content-item" v-for="(obj, i) in item.properties" :key="i">
<div class="title">商品信息</div> <template v-if="obj.type !== 7">
<span>{{ obj.name }}</span>
<span>{{ query[obj.code] }}</span>
</template>
<template v-else>
<!-- 附件 -->
</template>
</div>
</div>
</div> </div>
<!-- <div class="g-card">
        <div class="title">商品信息</div>
      </div> -->
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { orderDetail } from '@/api/customer' import { orderDetail, getProperties } from '@/api/customer'
export default { export default {
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
ruleForm: {}, ruleForm: {},
detailList: [],
query: {},
} }
}, },
props: { props: {
...@@ -43,19 +56,32 @@ export default { ...@@ -43,19 +56,32 @@ export default {
if (!val) { if (!val) {
this.ruleForm = {} this.ruleForm = {}
} else { } else {
this.orderDetail(this.id) this.getDetail(this.id)
this.getProperties()
} }
}, },
}, },
}, },
created() {
// this.getDetail()
},
methods: { methods: {
// 点击×按钮 // 点击×按钮
handleClose() { handleClose() {
this.$emit('close', false) this.$emit('close', false)
}, },
orderDetail(id) { //  获取全部属性
getProperties(id) {
getProperties(id).then((res) => {
console.log(res)
this.query = res.data
})
},
// 获取详情
getDetail() {
orderDetail(id).then((res) => { orderDetail(id).then((res) => {
console.log(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!