feat(custom): 订单列表改版

This commit is contained in:
2023-11-14 20:43:38 +08:00
parent 4babc88fcd
commit 6ce72fdfd6
24 changed files with 5221 additions and 11119 deletions

View File

@@ -17,7 +17,7 @@
<div mt-10>联系电话:{{ nowRow.phone }}</div>
<div mt-10>开户行:{{ nowRow.bank }}</div>
<div mt-10>银行卡号:{{ nowRow.bank_card }}</div>
<div mt-10>商户类型:{{ atype.name }}</div>
<!-- <div mt-10>商户类型:{{ atype.name }}</div>-->
<div mt-10>经营类目:{{ btype.name }}</div>
<div mt-10>
<div>营业执照:</div>
@@ -59,6 +59,7 @@ import { h, withDirectives, resolveDirective } from 'vue'
import api from './api'
import api1 from '../mer_list/api'
import { NButton } from 'naive-ui'
const vPerms = resolveDirective('perms')
const loading = ref(false)
@@ -110,6 +111,7 @@ const columns = ref([
...row,
img: row.img.split(','),
}
console.log(nowRow.value)
active.value = true
},
},
@@ -150,23 +152,23 @@ const getData = async () => {
}
const classOptions = ref([])
const typeOptions = ref([])
// const typeOptions = ref([])
const getMertype = async () => {
const res = await api1.getMerType()
classOptions.value = res.data.class
typeOptions.value = res.data.type
// typeOptions.value = res.data.type
}
const atype = computed(() => {
return typeOptions.value.find((item) => {
if (item.ID === nowRow.value.bType) return item
})
})
// const atype = computed(() => {
// return typeOptions.value.find((item) => {
// if (item.ID === nowRow.value.bType) return item
// })
// })
const btype = computed(() => {
return classOptions.value.find((item) => {
if (item.ID === nowRow.value.classId) return item
if (item.ID === nowRow.value.store_class_id) return item
})
})