|
@@ -18,74 +18,60 @@
|
|
|
label: '姓名',
|
|
|
placeholder: '请输入姓名',
|
|
|
type: 'input',
|
|
|
- disabled: true,
|
|
|
required: true,
|
|
|
}, {
|
|
|
- field: 'idCard',
|
|
|
- label: '身份证号',
|
|
|
- placeholder: '请输入身份证号',
|
|
|
+ field: 'principalPhone',
|
|
|
+ label: '手机号码',
|
|
|
+ placeholder: '请输入手机号码',
|
|
|
type: 'input',
|
|
|
- disabled: true,
|
|
|
required: true,
|
|
|
}, {
|
|
|
- field: 'phone',
|
|
|
- label: '电话',
|
|
|
- placeholder: '请输入电话',
|
|
|
- type: 'input',
|
|
|
+ field: 'type',
|
|
|
+ label: '类型',
|
|
|
+ placeholder: '请选择类型',
|
|
|
+ type: 'radio',
|
|
|
required: true,
|
|
|
+ options: [{
|
|
|
+ label: '商户',
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '私人',
|
|
|
+ value: 1,
|
|
|
+ }
|
|
|
+ ],
|
|
|
}, {
|
|
|
- field: 'description',
|
|
|
- label: '备注',
|
|
|
- placeholder: '请输入备注',
|
|
|
- type: 'textarea',
|
|
|
- }, {
|
|
|
- field: 'line',
|
|
|
- label: '《燃气从业资格证》信息',
|
|
|
- type: 'line',
|
|
|
- }, {
|
|
|
- field: 'lines',
|
|
|
- label: '《道路运输从业人员从业资格证》信息',
|
|
|
- type: 'line',
|
|
|
+ field: 'region',
|
|
|
+ label: '所在城市/地区',
|
|
|
+ placeholder: '请选择所在城市/地区',
|
|
|
+ type: 'cascader',
|
|
|
+ required: true,
|
|
|
}, {
|
|
|
- field: 'certificateNo',
|
|
|
- label: '证书编号',
|
|
|
- placeholder: '请输入证书编号',
|
|
|
+ field: 'address',
|
|
|
+ label: '地址',
|
|
|
+ placeholder: '请输入详细地址',
|
|
|
type: 'input',
|
|
|
required: true,
|
|
|
}, {
|
|
|
- field: 'issueAuthority',
|
|
|
- label: '发证机关',
|
|
|
- placeholder: '请输入发证机关',
|
|
|
- type: 'input',
|
|
|
+ field: 'addressImg',
|
|
|
+ label: '现场图片',
|
|
|
+ placeholder: '请上传现场图片',
|
|
|
+ type: 'upload',
|
|
|
required: true,
|
|
|
}, {
|
|
|
- field: 'remarks',
|
|
|
+ field: 'remark',
|
|
|
label: '备注',
|
|
|
placeholder: '请输入备注',
|
|
|
type: 'textarea',
|
|
|
- }, {
|
|
|
- field: 'imgUrl',
|
|
|
- label: '燃气从业资格证',
|
|
|
- placeholder: '请上传燃气从业资格证',
|
|
|
- type: 'upload',
|
|
|
- required: true,
|
|
|
- }, {
|
|
|
- field: 'imgUrls',
|
|
|
- label: '道路运输从业人员从业资格证',
|
|
|
- placeholder: '请上传道路运输从业人员从业资格证',
|
|
|
- type: 'upload',
|
|
|
- required: true,
|
|
|
}],
|
|
|
model: {
|
|
|
name: '',
|
|
|
- idCard: '',
|
|
|
- phone: '',
|
|
|
- description: '',
|
|
|
- certificateNo: '',
|
|
|
- issueAuthority: '',
|
|
|
- remarks: '',
|
|
|
- imgUrl: '',
|
|
|
- imgUrls: '',
|
|
|
+ principalPhone: '',
|
|
|
+ type: '',
|
|
|
+ region: '',
|
|
|
+ address: '',
|
|
|
+ addressImg: '',
|
|
|
+ remark: '',
|
|
|
},
|
|
|
rules: {
|
|
|
'name': {
|
|
@@ -94,34 +80,33 @@
|
|
|
message: '请输入姓名',
|
|
|
trigger: ['blur', 'change']
|
|
|
},
|
|
|
- 'idCard': {
|
|
|
+ 'principalPhone': {
|
|
|
type: 'string',
|
|
|
required: true,
|
|
|
- message: '请输入身份证号码',
|
|
|
+ message: '请输入手机号码',
|
|
|
trigger: ['blur', 'change']
|
|
|
},
|
|
|
- 'phone': {
|
|
|
- type: 'string',
|
|
|
+ 'type': {
|
|
|
+ type: 'number',
|
|
|
required: true,
|
|
|
- message: '请输入电话号码',
|
|
|
+ message: '请选择客户类型',
|
|
|
trigger: ['blur', 'change']
|
|
|
},
|
|
|
- 'certificateNo': {
|
|
|
+ 'region': {
|
|
|
type: 'string',
|
|
|
required: true,
|
|
|
- message: '请输入证书编号',
|
|
|
+ message: '请选择所在城市/地区',
|
|
|
trigger: ['blur', 'change']
|
|
|
},
|
|
|
- 'issueAuthority': {
|
|
|
+ 'address': {
|
|
|
type: 'string',
|
|
|
required: true,
|
|
|
- message: '请输入发证机关',
|
|
|
+ message: '请输入详细地址',
|
|
|
trigger: ['blur', 'change']
|
|
|
},
|
|
|
- 'imgUrl': {
|
|
|
- type: 'string',
|
|
|
+ 'addressImg': {
|
|
|
required: true,
|
|
|
- message: '请上传燃气从业资格证',
|
|
|
+ message: '请上传现场图片',
|
|
|
trigger: ['blur', 'change']
|
|
|
},
|
|
|
},
|
|
@@ -140,50 +125,10 @@
|
|
|
this.userInfo = param
|
|
|
this.$nextTick(() => {
|
|
|
this.userType = param.provUser.userType
|
|
|
- this.list.forEach(value => {
|
|
|
- if (this.userType == 3) {
|
|
|
- if (value.field == 'imgUrls' || value.field == 'lines') {
|
|
|
- value.visible = true
|
|
|
- }
|
|
|
- } else if (this.userType == 4) {
|
|
|
- if (value.field == 'imgUrl' || value.field == 'line') {
|
|
|
- value.visible = true
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (value.field == 'imgUrl' || value.field == 'imgUrls' ||
|
|
|
- value.field == 'line' || value.field == 'lines' || value
|
|
|
- .field == 'certificateNo' ||
|
|
|
- value.field == 'issueAuthority' || value.field ==
|
|
|
- 'issueAuthority' || value.field == 'remarks') {
|
|
|
- value.visible = true
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
this.model.name = param.provUser.name
|
|
|
this.model.idCard = param.provUser.idCard
|
|
|
this.model.phone = param.provUser.phone
|
|
|
this.model.description = param.provUser.description
|
|
|
- if (this.userType == 3) {
|
|
|
- this.model.certificateNo = param.provStoreUserBindCertificate.certificateNo
|
|
|
- this.model.issueAuthority = param.provStoreUserBindCertificate
|
|
|
- .issueAuthority
|
|
|
- this.model.imgUrl = param.provStoreUserBindCertificate.imgUrl
|
|
|
- if (param.provStoreUserBindCertificate.remarks) {
|
|
|
- this.model.remarks = param.provStoreUserBindCertificate.remarks
|
|
|
- } else {
|
|
|
- this.model.remarks = ''
|
|
|
- }
|
|
|
- } else if (this.userType == 4) {
|
|
|
- this.model.certificateNo = param.provTruckUserBindCertificate.certificateNo
|
|
|
- this.model.issueAuthority = param.provTruckUserBindCertificate
|
|
|
- .issueAuthority
|
|
|
- this.model.imgUrls = param.provTruckUserBindCertificate.imgUrl
|
|
|
- if (param.provTruckUserBindCertificate.remarks) {
|
|
|
- this.model.remarks = param.provTruckUserBindCertificate.remarks
|
|
|
- } else {
|
|
|
- this.model.remarks = ''
|
|
|
- }
|
|
|
- }
|
|
|
let arrImg = []
|
|
|
let arrImg1 = []
|
|
|
if (param.provStoreUserBindCertificate.imgUrl && this.userType == 3) {
|