| | |
| | | <u-form-item label="法人信息" required class="form-item" prop="legalPerson">
|
| | | <u--input border="none" v-model="form.legalPerson" placeholder="请填写法人信息"></u--input>
|
| | | </u-form-item>
|
| | | <u-form-item label="法人电话" class="form-item">
|
| | | <u--input border="none" v-model="form.legalTel" placeholder="请填写法人电话"></u--input>
|
| | | <u-form-item label="法人电话" class="form-item" prop="legalTel" required>
|
| | | <u--input border="none" type="number" v-model="form.legalTel" placeholder="请填写法人电话"></u--input>
|
| | | </u-form-item>
|
| | | </u-form>
|
| | | </view>
|
| | |
| | | planImageUrls: []
|
| | | },
|
| | | rules: {
|
| | | location: {
|
| | | "location": {
|
| | | required: true,
|
| | | message: '请选择地址',
|
| | | trigger: ['blur', 'change']
|
| | | },
|
| | | placeName: {
|
| | | "placeName": {
|
| | | required: true,
|
| | | message: '请填写场所名称',
|
| | | trigger: ['blur', 'change']
|
| | | },
|
| | | legalPerson: {
|
| | | "legalPerson": {
|
| | | required: true,
|
| | | message: '请填写法人信息',
|
| | | trigger: ['blur', 'change']
|
| | | }
|
| | | },
|
| | | "legalTel": [{
|
| | | required: true,
|
| | | message: '请填写法人电话',
|
| | | trigger: ['blur', 'change']
|
| | | },
|
| | | {
|
| | | validator: (rule, value, callback) => {
|
| | | return uni.$u.test.mobile(value);
|
| | | },
|
| | | message: '手机号码不正确',
|
| | | trigger: ['change', 'blur']
|
| | | }
|
| | | ]
|
| | | },
|
| | | personNum: 1,
|
| | | curSelectSite: {},
|
| | |
| | | onShow() {
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | |
|
| | | },
|
| | | onReady() {
|
| | | //onReady 为uni-app支持的生命周期之一
|
| | | this.$refs.form.setRules(this.rules)
|
| | | },
|
| | | mounted() {
|
| | | this.$nextTick(() => {
|
| | |
| | | updatePlaceExt(data) {
|
| | | data['imageUrls'] = this.getImageUrl('imageUrls')
|
| | | data['planImageUrls'] = this.getImageUrl('planImageUrls')
|
| | | data.confirmFlag = 1;
|
| | | // data['imageUrls'] = data['imageUrls'].join('、')
|
| | | // data['planImageUrls'] = data['planImageUrls'].join('、')
|
| | | updatePlaceExtData({
|
| | |
| | | this.personNum++
|
| | | },
|
| | | submit() {
|
| | | const placePractitioner = []
|
| | | this.$refs.formItemRef.forEach(item => {
|
| | | item.form.placeId = this.form.placeId
|
| | | placePractitioner.push(item.form)
|
| | | if (this.personNum > 0) {
|
| | | const placePractitioner = []
|
| | | this.$refs.formItemRef.forEach(item => {
|
| | | item.form.placeId = this.form.placeId
|
| | | placePractitioner.push(item.form)
|
| | | })
|
| | | this.form.placePractitioner = placePractitioner
|
| | | }
|
| | |
|
| | | this.$refs.form.validate().then(res => {
|
| | | this.updatePlaceExt(this.form)
|
| | | }).catch(errors => {
|
| | | uni.$u.toast('请完善基本信息')
|
| | | })
|
| | | this.form.placePractitioner = placePractitioner
|
| | | this.updatePlaceExt(this.form)
|
| | | },
|
| | |
|
| | | pushPage() {
|