yujialong 11 months ago
parent 53ca424a1f
commit d12b749802
  1. 17
      src/api/index.js
  2. 8
      src/pages/activity/manage/matchSignup.vue
  3. 31
      src/pages/preschool/audit/index.vue
  4. 38
      src/pages/preschool/list/index.vue
  5. 54
      src/pages/preschool/manage/auth.vue
  6. 18
      src/pages/preschool/manage/basic.vue
  7. 9
      src/pages/preschool/manage/member.vue
  8. 33
      src/pages/supplier/audit/index.vue
  9. 38
      src/pages/supplier/list/index.vue
  10. 44
      src/pages/supplier/manage/auth.vue
  11. 25
      src/pages/supplier/manage/basic.vue
  12. 9
      src/pages/supplier/manage/member.vue
  13. 184
      src/pages/user/detail/index.vue
  14. 2
      src/styles/common.scss

@ -23,17 +23,16 @@ export default {
editCompetition: `competition/competition/management/editCompetition`, editCompetition: `competition/competition/management/editCompetition`,
getCompetition: `competition/competition/management/getCompetition`, getCompetition: `competition/competition/management/getCompetition`,
queryRegistrationByCondition: `competition/competition/registration/queryRegistrationByCondition`, queryRegistrationByCondition: `competition/competition/registration/queryRegistrationByCondition`,
enterpriseCertificationDetails: `users/enterprise/certification/enterpriseCertificationDetails`, enterpriseCertificationDetails: `nakadai/enterprise/certification/enterpriseCertificationDetails`,
delCertification: `users/enterprise/certification/batchDeletion`, delCertification: `nakadai/enterprise/certification/batchDeletion`,
findCertification: `users/enterprise/certification/findById`, findCertification: `nakadai/enterprise/certification/findById`,
selectEnterpriseCertificationList: `users/enterprise/certification/selectEnterpriseCertificationList`, selectEnterpriseCertificationList: `nakadai/enterprise/certification/selectEnterpriseCertificationList`,
informationAudit: `users/enterprise/certification/informationAudit`, informationAudit: `nakadai/enterprise/certification/informationAudit`,
deletePlatformAuthenticationInformation: `users/users/autonym/deletePlatformAuthenticationInformation`, deletePlatformAuthenticationInformation: `nakadai/users/autonym/deletePlatformAuthenticationInformation`,
updateCertification: `users/enterprise/certification/update`, updateCertification: `nakadai/enterprise/certification/update`,
queryTeamInfo: `nakadai/kindergarten/platformTeamAccount/queryTeamInfo`, queryTeamInfo: `nakadai/kindergarten/platformTeamAccount/queryTeamInfo`,
updateTeamInfo: `nakadai/kindergarten/platformTeamAccount/updateTeamInfo`, updateTeamInfo: `nakadai/kindergarten/platformTeamAccount/updateTeamInfo`,
platformTeamAccountList: `nakadai/kindergarten/platformTeamAccount/platformTeamAccountList`,
queryUserInfoList: `users/users/userAccount/queryUserInfoList`, queryUserInfoList: `users/users/userAccount/queryUserInfoList`,
viewUserDetails: `users/users/userAccount/viewUserDetails`, viewUserDetails: `users/users/userAccount/viewUserDetails`,

@ -103,13 +103,13 @@ export default {
}, },
methods: { methods: {
getData () { getData () {
this.$post(this.api.platformTeamAccountList, { this.$post(this.api.queryRegistrationByCondition, {
type: 1,
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize, pageSize: this.pageSize,
competitionId: this.id,
keyWord: this.keyword, keyWord: this.keyword,
platformId: 5, isDisable: this.isDisable,
classificationId: this.teamId teamOrder: this.teamOrder,
}).then(({ data }) => { }).then(({ data }) => {
this.list = data.records; this.list = data.records;
this.total = data.total; this.total = data.total;

@ -54,11 +54,25 @@
<div class="btns"> <div class="btns">
<el-button type="primary" <el-button type="primary"
@click="submit(2)">通过</el-button> @click="confirmSubmit(2)">通过</el-button>
<el-button type="danger" <el-button type="danger"
@click="submit(3)">不通过</el-button> @click="confirmSubmit(3)">不通过</el-button>
<el-button @click="$router.back()">返回</el-button> <el-button @click="$router.back()">返回</el-button>
</div> </div>
<el-dialog title="请填写审批意见"
:visible.sync="auditVisible"
width="450px">
<el-input type="textarea"
:rows="2"
v-model="remark" />
<span slot="footer"
class="dialog-footer">
<el-button @click="auditVisible = false"> </el-button>
<el-button type="primary"
@click="submit(3)"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -70,7 +84,9 @@ export default {
return { return {
id: this.$route.query.id, id: this.$route.query.id,
form: {}, form: {},
remark: '',
submiting: false, submiting: false,
auditVisible: false
}; };
}, },
mounted () { mounted () {
@ -92,12 +108,21 @@ export default {
this.form = data this.form = data
}).catch(err => { }) }).catch(err => { })
}, },
//
confirmSubmit (auditStatus) {
//
if (auditStatus === 2) {
this.submit(2)
} else {
this.auditVisible = true
}
},
// //
async submit (auditStatus) { async submit (auditStatus) {
if (this.submiting) return false if (this.submiting) return false
this.submiting = true this.submiting = true
try { 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() this.$router.back()
Util.successMsg('审核成功!'); Util.successMsg('审核成功!');
}) })

@ -4,7 +4,7 @@
<ul class="filter"> <ul class="filter">
<li> <li>
<label>省份</label> <label>省份</label>
<el-select v-model="form.provinces" <el-select v-model="form.province"
clearable clearable
placeholder="请选择省份" placeholder="请选择省份"
@change="getCity" @change="getCity"
@ -19,7 +19,7 @@
<el-select v-model="form.city" <el-select v-model="form.city"
clearable clearable
placeholder="请选择城市" placeholder="请选择城市"
:disabled="form.provinces ? false : true" :disabled="form.province ? false : true"
@change="initData"> @change="initData">
<el-option v-for="(item, i) in cityList" <el-option v-for="(item, i) in cityList"
:key="i" :key="i"
@ -94,7 +94,7 @@
<div class="relative"> <div class="relative">
<el-tabs v-model="active" <el-tabs v-model="active"
@tab-click="tabChange"> @tab-click="tabChange">
<el-tab-pane :label="'全部(' + total + ')'" <el-tab-pane :label="'全部(' + all + ')'"
name="0"></el-tab-pane> name="0"></el-tab-pane>
<el-tab-pane :label="'待审核(' + status1 + ')'" <el-tab-pane :label="'待审核(' + status1 + ')'"
name="1"></el-tab-pane> name="1"></el-tab-pane>
@ -141,6 +141,10 @@
<el-table-column prop="contactInformation" <el-table-column prop="contactInformation"
label="手机号" label="手机号"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="organizationCreationTime"
label="创建时间"
width="150"
align="center"></el-table-column>
<el-table-column prop="submitTime" <el-table-column prop="submitTime"
label="提交时间" label="提交时间"
width="150" width="150"
@ -199,7 +203,7 @@ export default {
form: { form: {
startCommitTime: '', startCommitTime: '',
endCommitTime: '', endCommitTime: '',
provinces: '', province: '',
city: '', city: '',
platformId: '', platformId: '',
auditStatus: null, auditStatus: null,
@ -247,6 +251,8 @@ export default {
status2: 0, status2: 0,
status3: 0, status3: 0,
status4: 0, status4: 0,
all: 0,
isFirst: 1, //
}; };
}, },
watch: { watch: {
@ -286,19 +292,23 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
}).then(({ data }) => { }).then(({ data }) => {
const list = data.records const list = data.records
if (list.length) { this.isFirst && this.handleLen(list)
this.status1 = list.filter(e => e.auditStatus === 1).length this.list = list
this.status2 = list.filter(e => e.auditStatus === 2).length this.total = data.total
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.loading = false this.loading = false
}).catch(res => { }).catch(res => {
this.loading = false 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 () { initData () {
this.page = 1 this.page = 1
this.getData() this.getData()
@ -318,8 +328,8 @@ export default {
this.initData() this.initData()
}, },
getCityData () { getCityData () {
this.$get(this.api.queryCity, { this.form.province && this.$get(this.api.queryCity, {
provinceId: this.provinceList.find(e => e.provinceName === this.form.provinces).provinceId provinceId: this.provinceList.find(e => e.provinceName === this.form.province).provinceId
}).then(res => { }).then(res => {
this.cityList = res.list this.cityList = res.list
}).catch(res => { }) }).catch(res => { })

@ -1,7 +1,7 @@
<template> <template>
<div class="page"> <div class="page">
<div class="action"> <div class="action">
<span v-if="form.auditStatus !== ''" <span v-if="form.auditStatus !== '' && !editing"
class="status">{{ auditStatus.find(e => e.id === form.auditStatus).name }}</span> class="status">{{ auditStatus.find(e => e.id === form.auditStatus).name }}</span>
<el-button v-if="!editing" <el-button v-if="!editing"
@click="edit">编辑</el-button> @click="edit">编辑</el-button>
@ -36,16 +36,33 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="营业执照"> <el-form-item label="营业执照">
<img v-if="form.businessLicensePicture" <el-image v-if="form.businessLicensePicture"
class="pic" class="pic"
:src="form.businessLicensePicture" :src="form.businessLicensePicture"
alt=""> :preview-src-list="[form.businessLicensePicture]" />
<Upload :limit="1"
:showFileList="false"
:on-remove="handleBusinessRemove"
@onSuccess="uploadBusinessSuccess">
<template slot="tip">
<p>请上传.jpg.jpeg.png格式的营业执照</p>
</template>
</Upload>
</el-form-item> </el-form-item>
<el-form-item label="办学许可证件"> <el-form-item label="办学许可证件">
<img v-if="form.licenseForRunningSchool" <el-image v-if="form.licenseForRunningSchool"
class="pic" class="pic"
:src="form.licenseForRunningSchool" :src="form.licenseForRunningSchool"
alt=""> :preview-src-list="[form.licenseForRunningSchool]" />
<Upload :limit="1"
:showFileList="false"
:on-remove="handleSchoolRemove"
@onSuccess="uploadSchoolSuccess">
<template slot="tip">
<p>请上传.jpg.jpeg.png格式的办学许可证件</p>
</template>
</Upload>
</el-form-item> </el-form-item>
<div class="aline"></div> <div class="aline"></div>
@ -78,6 +95,7 @@
import Util from "@/libs/util"; import Util from "@/libs/util";
import Setting from "@/setting"; import Setting from "@/setting";
import Const from '@/const/user' import Const from '@/const/user'
import Upload from '@/components/upload';
export default { export default {
data () { data () {
return { return {
@ -104,6 +122,9 @@ export default {
submiting: false, submiting: false,
}; };
}, },
components: {
Upload
},
mounted () { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
@ -127,6 +148,21 @@ export default {
edit () { edit () {
this.editing = true 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 () { async submit () {
const { form } = this const { form } = this

@ -1,7 +1,9 @@
<template> <template>
<div class="page"> <div class="page">
<div class="action"> <div class="action">
<el-button @click="edit">编辑</el-button> <el-button v-if="!editing"
type="primary"
@click="edit">编辑</el-button>
</div> </div>
<el-form label-width="170px" <el-form label-width="170px"
label-suffix=":" label-suffix=":"
@ -14,7 +16,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('logoUrl')" :on-remove="e => handleRemove('logoUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'logoUrl')"> :http-request="e => handleRequest(e, 'logoUrl')">
@ -35,6 +37,7 @@
</el-form-item> </el-form-item>
<el-form-item label="幼儿园slogan"> <el-form-item label="幼儿园slogan">
<el-input type="textarea" <el-input type="textarea"
rows="4"
v-model="form.slogan" /> v-model="form.slogan" />
</el-form-item> </el-form-item>
<el-form-item label="省份"> <el-form-item label="省份">
@ -60,10 +63,12 @@
</el-form-item> </el-form-item>
<el-form-item label="地址"> <el-form-item label="地址">
<el-input type="textarea" <el-input type="textarea"
rows="4"
v-model="form.address" /> v-model="form.address" />
</el-form-item> </el-form-item>
<el-form-item label="幼儿园简介"> <el-form-item label="幼儿园简介">
<el-input type="textarea" <el-input type="textarea"
rows="4"
v-model="form.briefIntroduction" /> v-model="form.briefIntroduction" />
<Upload class="m-t-10" <Upload class="m-t-10"
:limit="3" :limit="3"
@ -84,7 +89,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('qrCodeOneUrl')" :on-remove="e => handleRemove('qrCodeOneUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'qrCodeOneUrl')"> :http-request="e => handleRequest(e, 'qrCodeOneUrl')">
@ -101,13 +106,12 @@
<el-form-item label="二维码二"> <el-form-item label="二维码二">
<el-input v-model="form.qrCodeTwoName" <el-input v-model="form.qrCodeTwoName"
placeholder="请输入二维码描述" /> placeholder="请输入二维码描述" />
<el-upload class="avatar-uploader m-t-10" <el-upload class="avatar-uploader m-t-10"
accept=".jpg,.png,.jpeg,.gif" accept=".jpg,.png,.jpeg,.gif"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('qrCodeTwoUrl')" :on-remove="e => handleRemove('qrCodeTwoUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'qrCodeTwoUrl')"> :http-request="e => handleRequest(e, 'qrCodeTwoUrl')">
@ -130,7 +134,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('qrCodeThreeUrl')" :on-remove="e => handleRemove('qrCodeThreeUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'qrCodeThreeUrl')"> :http-request="e => handleRequest(e, 'qrCodeThreeUrl')">
@ -218,7 +222,6 @@ export default {
getData () { getData () {
this.$get(`${this.api.queryTeamInfo}?teamId=${this.teamId}`).then(res => { this.$get(`${this.api.queryTeamInfo}?teamId=${this.teamId}`).then(res => {
Object.assign(this.form, res.teamInfo) Object.assign(this.form, res.teamInfo)
console.log("🚀 ~ file: basic.vue:120 ~ this.$get ~ this.form:", this.form)
}).catch(err => { }) }).catch(err => { })
}, },
@ -254,6 +257,7 @@ export default {
return this.$confirm(`确定移除 ${file.name}`); return this.$confirm(`确定移除 ${file.name}`);
}, },
handleRemove (field) { handleRemove (field) {
console.log("🚀 ~ file: basic.vue:255 ~ handleRemove ~ field:", field)
Oss.del(this.form[field]) Oss.del(this.form[field])
this.form[field] = '' this.form[field] = ''
}, },

@ -104,6 +104,15 @@ export default {
} }
}, },
mounted () { mounted () {
this.$store.commit('user/setCrumbs', [
{
name: '幼儿园管理',
route: '/preschool'
},
{
name: '幼儿园成员'
},
])
this.initData() this.initData()
}, },
methods: { methods: {

@ -54,11 +54,25 @@
<div class="btns"> <div class="btns">
<el-button type="primary" <el-button type="primary"
@click="submit(2)">通过</el-button> @click="confirmSubmit(2)">通过</el-button>
<el-button type="danger" <el-button type="danger"
@click="submit(3)">不通过</el-button> @click="confirmSubmit(3)">不通过</el-button>
<el-button @click="$router.back()">返回</el-button> <el-button @click="$router.back()">返回</el-button>
</div> </div>
<el-dialog title="请填写审批意见"
:visible.sync="auditVisible"
width="450px">
<el-input type="textarea"
:rows="2"
v-model="remark" />
<span slot="footer"
class="dialog-footer">
<el-button @click="auditVisible = false"> </el-button>
<el-button type="primary"
@click="submit(3)"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -68,9 +82,11 @@ import Setting from "@/setting";
export default { export default {
data () { data () {
return { return {
id: this.$route.query.id || '', id: this.$route.query.id,
form: {}, form: {},
remark: '',
submiting: false, submiting: false,
auditVisible: false
}; };
}, },
mounted () { mounted () {
@ -92,12 +108,21 @@ export default {
this.form = data this.form = data
}).catch(err => { }) }).catch(err => { })
}, },
//
confirmSubmit (auditStatus) {
//
if (auditStatus === 2) {
this.submit(2)
} else {
this.auditVisible = true
}
},
// //
async submit (auditStatus) { async submit (auditStatus) {
if (this.submiting) return false if (this.submiting) return false
this.submiting = true this.submiting = true
try { 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() this.$router.back()
Util.successMsg('审核成功!'); Util.successMsg('审核成功!');
}) })

@ -4,7 +4,7 @@
<ul class="filter"> <ul class="filter">
<li> <li>
<label>省份</label> <label>省份</label>
<el-select v-model="form.provinces" <el-select v-model="form.province"
clearable clearable
placeholder="请选择省份" placeholder="请选择省份"
@change="getCity" @change="getCity"
@ -19,7 +19,7 @@
<el-select v-model="form.city" <el-select v-model="form.city"
clearable clearable
placeholder="请选择城市" placeholder="请选择城市"
:disabled="form.provinces ? false : true" :disabled="form.province ? false : true"
@change="initData"> @change="initData">
<el-option v-for="(item, i) in cityList" <el-option v-for="(item, i) in cityList"
:key="i" :key="i"
@ -94,7 +94,7 @@
<div class="relative"> <div class="relative">
<el-tabs v-model="active" <el-tabs v-model="active"
@tab-click="tabChange"> @tab-click="tabChange">
<el-tab-pane :label="'全部(' + total + ')'" <el-tab-pane :label="'全部(' + all + ')'"
name="0"></el-tab-pane> name="0"></el-tab-pane>
<el-tab-pane :label="'待审核(' + status1 + ')'" <el-tab-pane :label="'待审核(' + status1 + ')'"
name="1"></el-tab-pane> name="1"></el-tab-pane>
@ -141,6 +141,10 @@
<el-table-column prop="contactInformation" <el-table-column prop="contactInformation"
label="手机号" label="手机号"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="organizationCreationTime"
label="创建时间"
width="150"
align="center"></el-table-column>
<el-table-column prop="submitTime" <el-table-column prop="submitTime"
label="提交时间" label="提交时间"
width="150" width="150"
@ -198,7 +202,7 @@ export default {
form: { form: {
startCommitTime: '', startCommitTime: '',
endCommitTime: '', endCommitTime: '',
provinces: '', province: '',
city: '', city: '',
platformId: '', platformId: '',
auditStatus: null, auditStatus: null,
@ -246,6 +250,8 @@ export default {
status2: 0, status2: 0,
status3: 0, status3: 0,
status4: 0, status4: 0,
all: 0,
isFirst: 1, //
}; };
}, },
watch: { watch: {
@ -285,19 +291,23 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
}).then(({ data }) => { }).then(({ data }) => {
const list = data.records const list = data.records
if (list.length) { this.isFirst && this.handleLen(list)
this.status1 = list.filter(e => e.auditStatus === 1).length this.list = list
this.status2 = list.filter(e => e.auditStatus === 2).length this.total = data.total
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.loading = false this.loading = false
}).catch(res => { }).catch(res => {
this.loading = false 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 () { initData () {
this.page = 1 this.page = 1
this.getData() this.getData()
@ -317,8 +327,8 @@ export default {
this.initData() this.initData()
}, },
getCityData () { getCityData () {
this.$get(this.api.queryCity, { this.form.province && this.$get(this.api.queryCity, {
provinceId: this.provinceList.find(e => e.provinceName === this.form.provinces).provinceId provinceId: this.provinceList.find(e => e.provinceName === this.form.province).provinceId
}).then(res => { }).then(res => {
this.cityList = res.list this.cityList = res.list
}).catch(res => { }) }).catch(res => { })

@ -1,7 +1,7 @@
<template> <template>
<div class="page"> <div class="page">
<div class="action"> <div class="action">
<span v-if="form.auditStatus !== ''" <span v-if="form.auditStatus !== '' && !editing"
class="status">{{ auditStatus.find(e => e.id === form.auditStatus).name }}</span> class="status">{{ auditStatus.find(e => e.id === form.auditStatus).name }}</span>
<el-button v-if="!editing" <el-button v-if="!editing"
@click="edit">编辑</el-button> @click="edit">编辑</el-button>
@ -20,7 +20,7 @@
:value="item.id"></el-option> :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="幼儿园名称"> <el-form-item label="供应商名称">
<div class="d-inline-block"> <div class="d-inline-block">
<el-input v-model="form.companyName" /> <el-input v-model="form.companyName" />
</div> </div>
@ -36,16 +36,19 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="营业执照"> <el-form-item label="营业执照">
<img v-if="form.businessLicensePicture" <el-image v-if="form.businessLicensePicture"
class="pic" class="pic"
:src="form.businessLicensePicture" :src="form.businessLicensePicture"
alt=""> :preview-src-list="[form.businessLicensePicture]" />
</el-form-item>
<el-form-item label="办学许可证件"> <Upload :limit="1"
<img v-if="form.licenseForRunningSchool" :showFileList="false"
class="pic" :on-remove="handleBusinessRemove"
:src="form.licenseForRunningSchool" @onSuccess="uploadBusinessSuccess">
alt=""> <template slot="tip">
<p>请上传.jpg.jpeg.png格式的营业执照</p>
</template>
</Upload>
</el-form-item> </el-form-item>
<div class="aline"></div> <div class="aline"></div>
@ -78,6 +81,7 @@
import Util from "@/libs/util"; import Util from "@/libs/util";
import Setting from "@/setting"; import Setting from "@/setting";
import Const from '@/const/user' import Const from '@/const/user'
import Upload from '@/components/upload';
export default { export default {
data () { data () {
return { return {
@ -104,11 +108,14 @@ export default {
submiting: false, submiting: false,
}; };
}, },
components: {
Upload
},
mounted () { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '幼儿园管理', name: '供应商管理',
route: '/preschool' route: '/supplier'
}, },
{ {
name: '认证信息' name: '认证信息'
@ -127,11 +134,18 @@ export default {
edit () { edit () {
this.editing = true this.editing = true
}, },
handleBusinessRemove () {
this.form.businessLicensePicture = ''
},
//
uploadBusinessSuccess ({ url }) {
this.form.businessLicensePicture = url
},
// //
async submit () { async submit () {
const { form } = this const { form } = this
if (form.authenticationStatus === '') return Util.warningMsg('请选择认证状态') 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.creditCode) return Util.warningMsg('请输入统一社会信用代码')
if (!form.legalPerson) return Util.warningMsg('请输入法人') if (!form.legalPerson) return Util.warningMsg('请输入法人')
if (this.submiting) return false if (this.submiting) return false

@ -1,7 +1,9 @@
<template> <template>
<div class="page"> <div class="page">
<div class="action"> <div class="action">
<el-button @click="edit">编辑</el-button> <el-button v-if="!editing"
type="primary"
@click="edit">编辑</el-button>
</div> </div>
<el-form label-width="170px" <el-form label-width="170px"
label-suffix=":" label-suffix=":"
@ -14,7 +16,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('logoUrl')" :on-remove="e => handleRemove('logoUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'logoUrl')"> :http-request="e => handleRequest(e, 'logoUrl')">
@ -28,13 +30,14 @@
</div> </div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="幼儿园名称"> <el-form-item label="供应商名称">
<div class="d-inline-block"> <div class="d-inline-block">
<el-input v-model="form.classificationName" /> <el-input v-model="form.classificationName" />
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="幼儿园slogan"> <el-form-item label="供应商slogan">
<el-input type="textarea" <el-input type="textarea"
rows="4"
v-model="form.slogan" /> v-model="form.slogan" />
</el-form-item> </el-form-item>
<el-form-item label="省份"> <el-form-item label="省份">
@ -60,10 +63,12 @@
</el-form-item> </el-form-item>
<el-form-item label="地址"> <el-form-item label="地址">
<el-input type="textarea" <el-input type="textarea"
rows="4"
v-model="form.address" /> v-model="form.address" />
</el-form-item> </el-form-item>
<el-form-item label="幼儿园简介"> <el-form-item label="供应商简介">
<el-input type="textarea" <el-input type="textarea"
rows="4"
v-model="form.briefIntroduction" /> v-model="form.briefIntroduction" />
<Upload class="m-t-10" <Upload class="m-t-10"
:limit="3" :limit="3"
@ -84,7 +89,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('qrCodeOneUrl')" :on-remove="e => handleRemove('qrCodeOneUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'qrCodeOneUrl')"> :http-request="e => handleRequest(e, 'qrCodeOneUrl')">
@ -107,7 +112,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('qrCodeTwoUrl')" :on-remove="e => handleRemove('qrCodeTwoUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'qrCodeTwoUrl')"> :http-request="e => handleRequest(e, 'qrCodeTwoUrl')">
@ -130,7 +135,7 @@
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:before-remove="beforeRemove" :before-remove="beforeRemove"
:on-remove="handleRemove('qrCodeThreeUrl')" :on-remove="e => handleRemove('qrCodeThreeUrl')"
:on-error="uploadError" :on-error="uploadError"
action="" action=""
:http-request="e => handleRequest(e, 'qrCodeThreeUrl')"> :http-request="e => handleRequest(e, 'qrCodeThreeUrl')">
@ -205,7 +210,7 @@ export default {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '供应商管理', name: '供应商管理',
route: '/preschool' route: '/supplier'
}, },
{ {
name: '基本信息' name: '基本信息'
@ -284,7 +289,7 @@ export default {
// //
async submit () { async submit () {
const { form } = this const { form } = this
if (!form.classificationName) return Util.warningMsg('请输入幼儿园名称') if (!form.classificationName) return Util.warningMsg('请输入供应商名称')
if (this.submiting) return false if (this.submiting) return false
this.submiting = true this.submiting = true
try { try {

@ -104,6 +104,15 @@ export default {
} }
}, },
mounted () { mounted () {
this.$store.commit('user/setCrumbs', [
{
name: '供应商管理',
route: '/supplier'
},
{
name: '供应商成员'
},
])
this.initData() this.initData()
}, },
methods: { methods: {

@ -1,7 +1,7 @@
<template> <template>
<div class="page"> <div>
<p class="page-name mb">用户信息</p> <p class="page-name mb">用户信息</p>
<div> <div class="page m-b-20">
<p class="l-title">账号信息</p> <p class="l-title">账号信息</p>
<el-form v-for="(item, i) in userAccountList" <el-form v-for="(item, i) in userAccountList"
:key="i" :key="i"
@ -27,98 +27,98 @@
</el-form> </el-form>
</div> </div>
<div class="aline"></div> <div class="page m-b-20">
<p class="l-title">实名认证信息{{ form.authentication }}</p>
<p class="l-title">实名认证信息{{ form.authentication }}</p> <el-form ref="form"
<el-form ref="form" class="input-form"
class="input-form" :model="form"
:model="form" :rules="rules"
:rules="rules" label-width="120px"
label-width="120px" :disabled="isDetail">
:disabled="isDetail"> <div class="item-line">
<div class="item-line"> <el-form-item prop="userName"
<el-form-item prop="userName" label="用户姓名">
label="用户姓名"> <el-input v-model="form.userName"
<el-input v-model="form.userName" placeholder="请输入"></el-input>
placeholder="请输入"></el-input> </el-form-item>
</el-form-item> <el-form-item prop="phone"
<el-form-item prop="phone" label="手机号">
label="手机号"> <el-input v-model="form.phone"
<el-input v-model="form.phone" placeholder="请输入手机号"
placeholder="请输入手机号" maxlength="11"></el-input>
maxlength="11"></el-input> </el-form-item>
</el-form-item> </div>
</div>
<div class="item-line">
<el-form-item label="证件类型"
prop="documentType">
<el-select value="1"
clearable
placeholder="请选择证件类型">
<el-option label="身份证"
value="1"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="idNumber" <div class="item-line">
label="证件号码"> <el-form-item label="证件类型"
<el-input v-model="form.idNumber" prop="documentType">
placeholder="请输入证件号码" <el-select value="1"
maxlength="18"></el-input> clearable
</el-form-item> placeholder="请选择证件类型">
</div> <el-option label="身份证"
</el-form> value="1"></el-option>
</el-select>
</el-form-item>
<div class="line m-b-20"></div> <el-form-item prop="idNumber"
label="证件号码">
<el-input v-model="form.idNumber"
placeholder="请输入证件号码"
maxlength="18"></el-input>
</el-form-item>
</div>
</el-form>
</div>
<p class="l-title">已绑定的平台和用户信息</p> <div class="page">
<el-table :data="platformList" <p class="l-title">已绑定的平台和用户信息</p>
class="table" <el-table :data="platformList"
stripe class="table"
header-align="center" stripe
row-key="accountId"> header-align="center"
<el-table-column type="index" row-key="accountId">
width="100" <el-table-column type="index"
label="序号" width="100"
align="center"></el-table-column> label="序号"
<el-table-column prop="organizationName" align="center"></el-table-column>
label="组织名称" <el-table-column prop="organizationName"
align="center"></el-table-column> label="组织名称"
<el-table-column prop="companyName" align="center"></el-table-column>
label="类型" <el-table-column prop="companyName"
align="center"> label="类型"
<template slot-scope="scope"> align="center">
{{ platformSource.find(e => e.id == scope.row.platformId).name }} <template slot-scope="scope">
</template> {{ platformSource.find(e => e.id == scope.row.platformId).name }}
</el-table-column> </template>
<el-table-column prop="creditCode" </el-table-column>
label="统一社会信用代码" <el-table-column prop="creditCode"
align="center"></el-table-column> label="统一社会信用代码"
<el-table-column prop="authentication" align="center"></el-table-column>
label="组织认证状态" <el-table-column prop="authentication"
align="center"></el-table-column> label="组织认证状态"
<el-table-column prop="roleName" align="center"></el-table-column>
label="组织会员状态" <el-table-column prop="roleName"
align="center"></el-table-column> label="组织会员状态"
<el-table-column label="操作" align="center"></el-table-column>
width="180" <el-table-column label="操作"
align="center"> width="180"
<template slot-scope="scope"> align="center">
<el-button type="text" <template slot-scope="scope">
@click="show(scope.row)">查看</el-button> <el-button type="text"
<el-button type="text" @click="show(scope.row)">查看</el-button>
@click="del(scope.row)">移除</el-button> <el-button type="text"
<el-switch v-if="scope.row.openId!==1" @click="del(scope.row)">移除</el-button>
v-model="scope.row.isEnable" <el-switch v-if="scope.row.openId!==1"
:active-value="0" v-model="scope.row.isEnable"
:inactive-value="1" :active-value="0"
style="margin: 0 10px 0 5px" :inactive-value="1"
:active-text="scope.row.isEnable ? '禁用' : '启用'" style="margin: 0 10px 0 5px"
@change="switchUser($event,scope.row,scope.$index)"></el-switch> :active-text="scope.row.isEnable ? '禁用' : '启用'"
</template> @change="switchUser($event,scope.row,scope.$index)"></el-switch>
</el-table-column> </template>
</el-table> </el-table-column>
</el-table>
</div>
</div> </div>
</template> </template>
@ -212,7 +212,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bb:not(:last-child) { .bb:not(:last-child) {
margin-bottom: 20px; margin-bottom: 20px;
border-bottom: 1px solid #f1f1f1; border-bottom: 1px dashed #e3e3e3;
} }
.l-title { .l-title {
margin-bottom: 15px; margin-bottom: 15px;

@ -172,7 +172,7 @@
width: auto; width: auto;
} }
.el-textarea { .el-textarea {
width: 550px; width: 700px;
} }
.auto, .auto,
.auto .el-input { .auto .el-input {

Loading…
Cancel
Save