- {{ auditStatus.find(e => e.id === form.auditStatus).name }}
编辑
@@ -36,16 +36,33 @@
-
+
+
+
+
+ 请上传.jpg,.jpeg,.png格式的营业执照
+
+
-
+
+
+
+ 请上传.jpg,.jpeg,.png格式的办学许可证件
+
+
@@ -78,6 +95,7 @@
import Util from "@/libs/util";
import Setting from "@/setting";
import Const from '@/const/user'
+import Upload from '@/components/upload';
export default {
data () {
return {
@@ -104,6 +122,9 @@ export default {
submiting: false,
};
},
+ components: {
+ Upload
+ },
mounted () {
this.$store.commit('user/setCrumbs', [
{
@@ -127,6 +148,21 @@ export default {
edit () {
this.editing = true
},
+ handleBusinessRemove () {
+ this.form.businessLicensePicture = ''
+ },
+ // 上传成功
+ uploadBusinessSuccess ({ url }) {
+ this.form.businessLicensePicture = url
+ },
+
+ handleSchoolRemove () {
+ this.form.licenseForRunningSchool = ''
+ },
+ // 上传成功
+ uploadSchoolSuccess ({ url }) {
+ this.form.licenseForRunningSchool = url
+ },
// 提交
async submit () {
const { form } = this
diff --git a/src/pages/preschool/manage/basic.vue b/src/pages/preschool/manage/basic.vue
index 2938241..fa051ea 100644
--- a/src/pages/preschool/manage/basic.vue
+++ b/src/pages/preschool/manage/basic.vue
@@ -1,7 +1,9 @@
- 编辑
+ 编辑
@@ -35,6 +37,7 @@
@@ -60,10 +63,12 @@
@@ -101,13 +106,12 @@
-
@@ -130,7 +134,7 @@
:limit="1"
:on-exceed="handleExceed"
:before-remove="beforeRemove"
- :on-remove="handleRemove('qrCodeThreeUrl')"
+ :on-remove="e => handleRemove('qrCodeThreeUrl')"
:on-error="uploadError"
action=""
:http-request="e => handleRequest(e, 'qrCodeThreeUrl')">
@@ -218,7 +222,6 @@ export default {
getData () {
this.$get(`${this.api.queryTeamInfo}?teamId=${this.teamId}`).then(res => {
Object.assign(this.form, res.teamInfo)
- console.log("🚀 ~ file: basic.vue:120 ~ this.$get ~ this.form:", this.form)
}).catch(err => { })
},
@@ -254,6 +257,7 @@ export default {
return this.$confirm(`确定移除 ${file.name}?`);
},
handleRemove (field) {
+ console.log("🚀 ~ file: basic.vue:255 ~ handleRemove ~ field:", field)
Oss.del(this.form[field])
this.form[field] = ''
},
diff --git a/src/pages/preschool/manage/member.vue b/src/pages/preschool/manage/member.vue
index 06b5620..2d42211 100644
--- a/src/pages/preschool/manage/member.vue
+++ b/src/pages/preschool/manage/member.vue
@@ -104,6 +104,15 @@ export default {
}
},
mounted () {
+ this.$store.commit('user/setCrumbs', [
+ {
+ name: '幼儿园管理',
+ route: '/preschool'
+ },
+ {
+ name: '幼儿园成员'
+ },
+ ])
this.initData()
},
methods: {
diff --git a/src/pages/supplier/audit/index.vue b/src/pages/supplier/audit/index.vue
index d01bfef..4372203 100644
--- a/src/pages/supplier/audit/index.vue
+++ b/src/pages/supplier/audit/index.vue
@@ -54,11 +54,25 @@
通过
+ @click="confirmSubmit(2)">通过
不通过
+ @click="confirmSubmit(3)">不通过
返回
+
+
+
+
+
@@ -68,9 +82,11 @@ import Setting from "@/setting";
export default {
data () {
return {
- id: this.$route.query.id || '',
+ id: this.$route.query.id,
form: {},
+ remark: '',
submiting: false,
+ auditVisible: false
};
},
mounted () {
@@ -92,12 +108,21 @@ export default {
this.form = data
}).catch(err => { })
},
+ // 提交前判断
+ confirmSubmit (auditStatus) {
+ // 通过:直接提交,不通过:弹框填写意见
+ if (auditStatus === 2) {
+ this.submit(2)
+ } else {
+ this.auditVisible = true
+ }
+ },
// 提交
async submit (auditStatus) {
if (this.submiting) return false
this.submiting = true
try {
- await this.$post(`${this.api.informationAudit}?auditStatus=${auditStatus}&id=${this.id}`).then(res => {
+ await this.$post(`${this.api.informationAudit}?auditStatus=${auditStatus}&id=${this.id}&openId=${this.form.openId}&remark=${this.remark}`).then(res => {
this.$router.back()
Util.successMsg('审核成功!');
})
diff --git a/src/pages/supplier/list/index.vue b/src/pages/supplier/list/index.vue
index e8efcb2..983f867 100644
--- a/src/pages/supplier/list/index.vue
+++ b/src/pages/supplier/list/index.vue
@@ -4,7 +4,7 @@
-
-
-
@@ -141,6 +141,10 @@
+
{
const list = data.records
- if (list.length) {
- this.status1 = list.filter(e => e.auditStatus === 1).length
- this.status2 = list.filter(e => e.auditStatus === 2).length
- this.status3 = list.filter(e => e.auditStatus === 3).length
- this.status4 = list.filter(e => e.auditStatus === 4).length
- this.list = data.records
- this.total = data.total
- }
+ this.isFirst && this.handleLen(list)
+ this.list = list
+ this.total = data.total
this.loading = false
}).catch(res => {
this.loading = false
})
},
+ // 获取各个状态的总数
+ handleLen (list) {
+ this.isFirst = 0
+ this.status1 = list.filter(e => e.auditStatus === 1).length
+ this.status2 = list.filter(e => e.auditStatus === 2).length
+ this.status3 = list.filter(e => e.auditStatus === 3).length
+ this.status4 = list.filter(e => e.auditStatus === 4).length
+ this.all = list.length
+ },
initData () {
this.page = 1
this.getData()
@@ -317,8 +327,8 @@ export default {
this.initData()
},
getCityData () {
- this.$get(this.api.queryCity, {
- provinceId: this.provinceList.find(e => e.provinceName === this.form.provinces).provinceId
+ this.form.province && this.$get(this.api.queryCity, {
+ provinceId: this.provinceList.find(e => e.provinceName === this.form.province).provinceId
}).then(res => {
this.cityList = res.list
}).catch(res => { })
diff --git a/src/pages/supplier/manage/auth.vue b/src/pages/supplier/manage/auth.vue
index 50aa143..be99d38 100644
--- a/src/pages/supplier/manage/auth.vue
+++ b/src/pages/supplier/manage/auth.vue
@@ -1,7 +1,7 @@
-
{{ auditStatus.find(e => e.id === form.auditStatus).name }}
编辑
@@ -20,7 +20,7 @@
:value="item.id">
-
+
@@ -36,16 +36,19 @@
-
-
-
-
+
+
+
+
+ 请上传.jpg,.jpeg,.png格式的营业执照
+
+
@@ -78,6 +81,7 @@
import Util from "@/libs/util";
import Setting from "@/setting";
import Const from '@/const/user'
+import Upload from '@/components/upload';
export default {
data () {
return {
@@ -104,11 +108,14 @@ export default {
submiting: false,
};
},
+ components: {
+ Upload
+ },
mounted () {
this.$store.commit('user/setCrumbs', [
{
- name: '幼儿园管理',
- route: '/preschool'
+ name: '供应商管理',
+ route: '/supplier'
},
{
name: '认证信息'
@@ -127,11 +134,18 @@ export default {
edit () {
this.editing = true
},
+ handleBusinessRemove () {
+ this.form.businessLicensePicture = ''
+ },
+ // 上传成功
+ uploadBusinessSuccess ({ url }) {
+ this.form.businessLicensePicture = url
+ },
// 提交
async submit () {
const { form } = this
if (form.authenticationStatus === '') return Util.warningMsg('请选择认证状态')
- if (!form.companyName) return Util.warningMsg('请输入幼儿园名称')
+ if (!form.companyName) return Util.warningMsg('请输入供应商名称')
if (!form.creditCode) return Util.warningMsg('请输入统一社会信用代码')
if (!form.legalPerson) return Util.warningMsg('请输入法人')
if (this.submiting) return false
diff --git a/src/pages/supplier/manage/basic.vue b/src/pages/supplier/manage/basic.vue
index 89e9a3d..86b247d 100644
--- a/src/pages/supplier/manage/basic.vue
+++ b/src/pages/supplier/manage/basic.vue
@@ -1,7 +1,9 @@
- 编辑
+ 编辑
@@ -28,13 +30,14 @@
-
+
-
+
@@ -60,10 +63,12 @@
-
+
@@ -107,7 +112,7 @@
:limit="1"
:on-exceed="handleExceed"
:before-remove="beforeRemove"
- :on-remove="handleRemove('qrCodeTwoUrl')"
+ :on-remove="e => handleRemove('qrCodeTwoUrl')"
:on-error="uploadError"
action=""
:http-request="e => handleRequest(e, 'qrCodeTwoUrl')">
@@ -130,7 +135,7 @@
:limit="1"
:on-exceed="handleExceed"
:before-remove="beforeRemove"
- :on-remove="handleRemove('qrCodeThreeUrl')"
+ :on-remove="e => handleRemove('qrCodeThreeUrl')"
:on-error="uploadError"
action=""
:http-request="e => handleRequest(e, 'qrCodeThreeUrl')">
@@ -205,7 +210,7 @@ export default {
this.$store.commit('user/setCrumbs', [
{
name: '供应商管理',
- route: '/preschool'
+ route: '/supplier'
},
{
name: '基本信息'
@@ -284,7 +289,7 @@ export default {
// 提交
async submit () {
const { form } = this
- if (!form.classificationName) return Util.warningMsg('请输入幼儿园名称')
+ if (!form.classificationName) return Util.warningMsg('请输入供应商名称')
if (this.submiting) return false
this.submiting = true
try {
diff --git a/src/pages/supplier/manage/member.vue b/src/pages/supplier/manage/member.vue
index 14347a2..e8bdca1 100644
--- a/src/pages/supplier/manage/member.vue
+++ b/src/pages/supplier/manage/member.vue
@@ -104,6 +104,15 @@ export default {
}
},
mounted () {
+ this.$store.commit('user/setCrumbs', [
+ {
+ name: '供应商管理',
+ route: '/supplier'
+ },
+ {
+ name: '供应商成员'
+ },
+ ])
this.initData()
},
methods: {
diff --git a/src/pages/user/detail/index.vue b/src/pages/user/detail/index.vue
index caf1b01..c8cd199 100644
--- a/src/pages/user/detail/index.vue
+++ b/src/pages/user/detail/index.vue
@@ -1,7 +1,7 @@
-
+
用户信息
-
+
-
-
-
实名认证信息({{ form.authentication }})
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
实名认证信息({{ form.authentication }})
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
- 已绑定的平台和用户信息
-
-
-
-
-
- {{ platformSource.find(e => e.id == scope.row.platformId).name }}
-
-
-
-
-
-
-
- 查看
- 移除
-
-
-
-
+
+
已绑定的平台和用户信息
+
+
+
+
+
+ {{ platformSource.find(e => e.id == scope.row.platformId).name }}
+
+
+
+
+
+
+
+ 查看
+ 移除
+
+
+
+
+
@@ -212,7 +212,7 @@ export default {