From 7a9dff0999467e3b61a9064b04d7fb230877ea9d Mon Sep 17 00:00:00 2001 From: 22 <22@22.com> Date: Mon, 1 Apr 2024 19:04:01 +0800 Subject: [PATCH] .. --- src/api/merchant.js | 3 + src/views/merchant/application/index.vue | 29 + .../application/merApplicationDetail.vue | 329 +++++++++++ .../merchant/application/merEditForm.vue | 511 ++++++++++++++++++ src/views/merchant/application/merInfo.vue | 429 +++++++++++++++ vue.config.js | 7 + 6 files changed, 1308 insertions(+) create mode 100644 src/views/merchant/application/merApplicationDetail.vue create mode 100644 src/views/merchant/application/merEditForm.vue create mode 100644 src/views/merchant/application/merInfo.vue diff --git a/src/api/merchant.js b/src/api/merchant.js index 5b74093..896e11e 100644 --- a/src/api/merchant.js +++ b/src/api/merchant.js @@ -161,6 +161,9 @@ export function merchantLoginApi(mer_id) { export function intentionLstApi(data) { return request.get('merchant/intention/lst', data) } +export function intentionDetailApi(mer_id) { + return request.get(`merchant/intention/detail/${mer_id}`) +} /** * @description 申请管理 -- 备注 */ diff --git a/src/views/merchant/application/index.vue b/src/views/merchant/application/index.vue index 73e9e2c..c3ced15 100644 --- a/src/views/merchant/application/index.vue +++ b/src/views/merchant/application/index.vue @@ -127,6 +127,7 @@ @click="onEdit(scope.row.mer_intention_id)" >备注 + 详情 + + + + @@ -169,11 +183,13 @@ import { getstoreTypeApi, getMerCateApi } from "@/api/merchant"; +import merDetail from './merApplicationDetail.vue'; import { fromList, statusList } from "@/libs/constants.js"; import { roterPre } from "@/settings"; import timeOptions from '@/utils/timeOptions'; export default { name: "MerchantApplication", + components: { merDetail }, data() { return { props: { @@ -204,6 +220,7 @@ export default { mer_id: this.$route.query.id ? this.$route.query.id : "", autoUpdate: true, timeVal: [], + drawer: false }; }, watch: { @@ -252,6 +269,18 @@ export default { this.$message.error(res.message) }) }, + onDetails(id){ + this.mer_id = id; + this.$refs.merDetail.isEdit = false; + this.$refs.merDetail.getInfo(id); + this.drawer = true; + }, + changeDrawer(v) { + this.drawer = v; + }, + closeDrawer() { + this.drawer = false; + }, // 列表 getList(num) { this.listLoading = true; diff --git a/src/views/merchant/application/merApplicationDetail.vue b/src/views/merchant/application/merApplicationDetail.vue new file mode 100644 index 0000000..6a5b5fe --- /dev/null +++ b/src/views/merchant/application/merApplicationDetail.vue @@ -0,0 +1,329 @@ + + + + + + + diff --git a/src/views/merchant/application/merEditForm.vue b/src/views/merchant/application/merEditForm.vue new file mode 100644 index 0000000..b5df289 --- /dev/null +++ b/src/views/merchant/application/merEditForm.vue @@ -0,0 +1,511 @@ + + + + \ No newline at end of file diff --git a/src/views/merchant/application/merInfo.vue b/src/views/merchant/application/merInfo.vue new file mode 100644 index 0000000..ed7149d --- /dev/null +++ b/src/views/merchant/application/merInfo.vue @@ -0,0 +1,429 @@ + + + diff --git a/vue.config.js b/vue.config.js index 6138b33..dd9aec7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,6 +38,13 @@ module.exports = { errors: true }, before: require('./mock/mock-server.js') + // proxy: { + // '/api': { //接口地址 以 api开头的都走下面的配置 + // target: 'http://192.168.1.224:8324', //代理目标地址为后端服务器地址 + // ws: true, //是否支持 websocket 请求 支持 + // changeOrigin: true, //是否启用跨域 + // } + // } }, configureWebpack: { // provide the app's title in webpack's name field, so that