From 25b8d0104f8c05f2e4042ec90c46a47a186afb31 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Mon, 4 Dec 2023 14:04:44 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E5=A2=9E=E5=95=86=E5=9F=8E?= =?UTF-8?q?=202=E3=80=81=E6=96=B0=E5=A2=9E=E8=87=AA=E8=90=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 5 + pages/article/category.vue | 338 +++++++++++++++ pages/article/list.vue | 387 +++++++++++++++++ pages/contract/template/list.vue | 2 +- pages/coop/config.vue | 362 ++++++++++++++++ pages/fadada/type_1.vue | 17 +- pages/fadada/type_2.vue | 138 ++++++- pages/goods/category.vue | 338 +++++++++++++++ pages/goods/list.vue | 388 ++++++++++++++++++ pages/product/product-category/list.vue | 2 +- pages_plugs/system/role/list.vue | 2 +- .../components/dialog/dialog-basic.vue | 4 +- .../components/table/table-easy.vue | 2 +- .../components/table/table-expand.vue | 2 +- pages_template/kong/list.vue | 2 +- 15 files changed, 1950 insertions(+), 39 deletions(-) create mode 100644 pages/article/category.vue create mode 100644 pages/article/list.vue create mode 100644 pages/coop/config.vue create mode 100644 pages/goods/category.vue create mode 100644 pages/goods/list.vue diff --git a/pages.json b/pages.json index aba6b92..64146fd 100644 --- a/pages.json +++ b/pages.json @@ -9,6 +9,11 @@ { "path": "pages/contract/template/list"}, { "path": "pages/fadada/type_1"}, { "path": "pages/fadada/type_2"}, + { "path": "pages/article/category"}, + { "path": "pages/article/list"}, + { "path": "pages/goods/category"}, + { "path": "pages/goods/list"}, + { "path": "pages/coop/config"}, { "path": "pages/login/index", "style": { diff --git a/pages/article/category.vue b/pages/article/category.vue new file mode 100644 index 0000000..d3aad76 --- /dev/null +++ b/pages/article/category.vue @@ -0,0 +1,338 @@ + + + + \ No newline at end of file diff --git a/pages/article/list.vue b/pages/article/list.vue new file mode 100644 index 0000000..089b26b --- /dev/null +++ b/pages/article/list.vue @@ -0,0 +1,387 @@ + + + + \ No newline at end of file diff --git a/pages/contract/template/list.vue b/pages/contract/template/list.vue index a43310d..d8041e2 100644 --- a/pages/contract/template/list.vue +++ b/pages/contract/template/list.vue @@ -33,7 +33,7 @@ - + + + + + + + + + + + 添加 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/fadada/type_1.vue b/pages/fadada/type_1.vue index 2a15f09..1fb6fa9 100644 --- a/pages/fadada/type_1.vue +++ b/pages/fadada/type_1.vue @@ -27,7 +27,7 @@ export default { // 查询表单数据源,可在此设置默认值 formData: { dcloud_appid: "", - type: 2 + type: 1 //allow_login_background : true, }, // 查询表单的字段规则 fieldName:指定数据库字段名,不填默认等于key @@ -39,26 +39,21 @@ export default { }, table1: { // 表格数据请求地址 - action: "admin/fadada/sys/getList", + action: "admin/system/user/sys/getList", // 表格字段显示规则 columns: [ - {key: "user.mobile", title: "手机号", type: "text", width: 120, defaultValue: ""}, + {key: "mobile", title: "手机号", type: "text", width: 120, defaultValue: ""}, // { // key: "", title: "认证类型", type: "text", width: 120, formatter: (val, row, column, index) => { // return parseInt(row.type) === 1 ? '个人' : '企业' // } // }, { - key: "mobile", title: "个人/企业信息", type: "html", defaultValue: "", + key: "mobile", title: "个人信息", type: "html", defaultValue: "", formatter: (val, row, column, index) => { let str - if (parseInt(row.type) === 1) { - str = `${row.person.personName}` - str += `${row.person.mobile}` - } else { - str = `${row.company.companyName}` - str += `${row.manager.personName}/${row.manager.mobile}` - } + str = `${row.person.personName}` + // str += `${row.person.mobile}` return str; } }, diff --git a/pages/fadada/type_2.vue b/pages/fadada/type_2.vue index cbc260e..a89aa41 100644 --- a/pages/fadada/type_2.vue +++ b/pages/fadada/type_2.vue @@ -14,7 +14,37 @@ :selection="true" :row-no="true" :pagination="true" - > + > + + + + + + + @@ -23,6 +53,38 @@ export default { name: "index", data() { return { + showInfo: false, + info: null, + title: '', + infoColumns: [ + {key: "company.companyName", title: "企业名称", type: "text"}, + {key: "company.organization", title: "统一社会信用代码", type: "text"}, + {key: "company.companyName", title: "公司所在地", type: "text"}, + {key: "company.companyName", title: "详细地址", type: "text"}, + {key: "company.mailAddress", title: "有效通信地址", type: "text"}, + {key: "company.contactEmail", title: "有效邮箱地址", type: "text"}, + {key: "company.companyAccount", title: "对公账号", type: "text"}, + {key: "company.companyBankName", title: "开户行", type: "text"}, + {key: "company.personAccount", title: "个人账号", type: "text"}, + {key: "company.personBankName", title: "个人开户行", type: "text"}, + {key: "company.accountName", title: "户名", type: "text"}, + {key: "company.personBankName", title: "个人开户行", type: "text"}, + {key: "company.organizationPath", title: "营业执照", type: "image"}, + {key: "company.businessType", title: "经营类目", type: "text"}, + {key: "company.invoiceInfo", title: "上开票资料", type: "image"}, + {key: "company.taxType", title: "纳税人类型", type: "text"}, + {key: "company.taxImage", title: "纳税人资格", type: "image"}, + {key: "manager.personName", title: "代理人类型", type: "text"}, + { + key: "manager.certType", title: "证件类型", type: "html", formatter: (val, row, column, index) => { + return `
${row.certType === 0 ? '身份证' : '护照'}
`; + } + }, + {key: "manager.idCard", title: "代理人证件号", type: "text"}, + {key: "manager.mobile", title: "代理人电话", type: "text"}, + {key: "manager.headPhotoPath", title: "身份证正面", type: "image"}, + {key: "manager.backgroundIdCardPath", title: "身份证反面", type: "image"}, + ], queryForm1: { // 查询表单数据源,可在此设置默认值 formData: { @@ -39,30 +101,33 @@ export default { }, table1: { // 表格数据请求地址 - action: "admin/fadada/sys/getList", + action: "admin/system/user/sys/getList", // 表格字段显示规则 columns: [ - {key: "user.mobile", title: "手机号", type: "text", width: 120, defaultValue: ""}, + // {key: "user.mobile", title: "手机号", type: "text", width: 120, defaultValue: ""}, + {key: "company.companyName", title: "企业名称", type: "text"}, + {key: "company.organization", title: "统一社会信用代码", type: "text"}, + {key: "company.mailAddress", title: "有效通信地址", type: "text"}, { - key: "", title: "认证类型", type: "text", width: 120, formatter: (val, row, column, index) => { - return parseInt(row.type) === 1 ? '个人' : '企业' + key: "", title: "代理人", type: "html", formatter: (val, row, column, index) => { + let str + str = `${row.manager.personName}` + // str += `${row.person.mobile}` + return str; } }, - // { - // key: "mobile", title: "个人/企业信息", type: "html", defaultValue: "", - // formatter: (val, row, column, index) => { - // let str - // if (parseInt(row.type) === 1) { - // str = `${row.person.personName}` - // str += `${row.person.mobile}` - // } else { - // str = `${row.company.companyName}` - // str += `${row.manager.personName}/${row.manager.mobile}` - // } - // return str; - // } - // }, - {key: "authenticationSubmitTime", title: "认证时间", type: "time", width: 160, sortable: "custom"}, + {key: "authTime", title: "认证时间", type: "time", width: 160, sortable: "custom"}, + { + key: "authStatus", title: "认证状态", type: "tag", data: [ + {value: 0, label: "未认证", tagType: "warning"}, + {value: 1, label: "已认证", tagType: "success"}, + {value: 2, label: "认证失败", tagType: "danger"}, + ] + }, + {key: "isCoop", title: "是否合作/联营单位", type: "html"}, + { + key: "action", title: "操作", type: "html" + }, ], // 多选框选中的值 multipleSelection: [], @@ -75,6 +140,39 @@ export default { search() { this.$refs.table1.query(); }, + async refuse(id) { + const {action, value} = await this.$prompt('拒绝理由', { + showInput: true + }); + if (action === 'confirm') { + this.changeStatus(id, 2, value) + } + }, + changeStatus(id, authStatus, refuseReason = null) { + vk.callFunction({ + url: 'admin/system/user/sys/changeStatus', + data: { + id, authStatus, refuseReason + } + }).then(() => { + this.$refs.table1.refresh() + }) + }, + doShowInfo(info) { + this.info = info + this.title = '详情' + this.showInfo = true + }, + changeIsCoop(id) { + vk.callFunction({ + url: 'admin/system/user/sys/changeCoop', + data: { + id + } + }).then(() => { + this.$refs.table1.refresh() + }) + }, } } \ No newline at end of file diff --git a/pages/goods/category.vue b/pages/goods/category.vue new file mode 100644 index 0000000..1075902 --- /dev/null +++ b/pages/goods/category.vue @@ -0,0 +1,338 @@ + + + + \ No newline at end of file diff --git a/pages/goods/list.vue b/pages/goods/list.vue new file mode 100644 index 0000000..b708626 --- /dev/null +++ b/pages/goods/list.vue @@ -0,0 +1,388 @@ + + + + \ No newline at end of file diff --git a/pages/product/product-category/list.vue b/pages/product/product-category/list.vue index 5520718..a142bbd 100644 --- a/pages/product/product-category/list.vue +++ b/pages/product/product-category/list.vue @@ -33,7 +33,7 @@ - diff --git a/pages_template/components/table/table-easy.vue b/pages_template/components/table/table-easy.vue index d5dfcad..9dd39ef 100644 --- a/pages_template/components/table/table-easy.vue +++ b/pages_template/components/table/table-easy.vue @@ -54,7 +54,7 @@ diff --git a/pages_template/components/table/table-expand.vue b/pages_template/components/table/table-expand.vue index 5d4d120..5627955 100644 --- a/pages_template/components/table/table-expand.vue +++ b/pages_template/components/table/table-expand.vue @@ -59,7 +59,7 @@ diff --git a/pages_template/kong/list.vue b/pages_template/kong/list.vue index 7eb7d8a..4fe0e5e 100644 --- a/pages_template/kong/list.vue +++ b/pages_template/kong/list.vue @@ -51,7 +51,7 @@