|
@ -98,10 +98,10 @@ |
|
|
|
|
|
|
|
|
<el-form-item label="接种" |
|
|
<el-form-item label="接种" |
|
|
style="display: block" |
|
|
style="display: block" |
|
|
prop="natTime" |
|
|
prop="inoculateTime" |
|
|
label-width="150px"> |
|
|
label-width="150px"> |
|
|
<el-date-picker class="item_width_2" |
|
|
<el-date-picker class="item_width_2" |
|
|
v-model="formData.natTime" |
|
|
v-model="formData.inoculateTime" |
|
|
format="yyyy-MM-dd HH:mm" |
|
|
format="yyyy-MM-dd HH:mm" |
|
|
value-format="yyyy-MM-dd HH:mm" |
|
|
value-format="yyyy-MM-dd HH:mm" |
|
|
type="datetime" |
|
|
type="datetime" |
|
@ -112,23 +112,23 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="接种地点" |
|
|
<el-form-item label="接种地点" |
|
|
prop="natAddress" |
|
|
prop="inoculateAddress" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block"> |
|
|
style="display: block"> |
|
|
<el-input class="item_width_1" |
|
|
<el-input class="item_width_1" |
|
|
placeholder="请输入检测地点" |
|
|
placeholder="请输入检测地点" |
|
|
clearable |
|
|
clearable |
|
|
v-model="formData.natAddress"> |
|
|
v-model="formData.inoculateAddress"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="疫苗厂家" |
|
|
<el-form-item label="疫苗厂家" |
|
|
prop="natAddress" |
|
|
prop="manufacturer" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block"> |
|
|
style="display: block"> |
|
|
<el-input class="item_width_1" |
|
|
<el-input class="item_width_1" |
|
|
placeholder="请输入检测地点" |
|
|
placeholder="请输入检测地点" |
|
|
clearable |
|
|
clearable |
|
|
v-model="formData.natAddress"> |
|
|
v-model="formData.manufacturer"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
@ -218,18 +218,19 @@ export default { |
|
|
|
|
|
|
|
|
btnDisable: false, |
|
|
btnDisable: false, |
|
|
|
|
|
|
|
|
icNatId: '', |
|
|
icVaccineId: '', |
|
|
formData: { |
|
|
formData: { |
|
|
icNatId: '', |
|
|
icVaccineId: '', |
|
|
agencyId: '',//当前网格所属组织Id |
|
|
agencyId: '',//当前网格所属组织Id |
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
name: '', |
|
|
name: '', |
|
|
idCard: '', |
|
|
idCard: '', |
|
|
mobile: '', |
|
|
mobile: '', |
|
|
natTime: '', |
|
|
inoculateTime: '', |
|
|
natAddress: '', |
|
|
inoculateAddress: '', |
|
|
natResult: '', |
|
|
manufacturer: '', |
|
|
|
|
|
|
|
|
isSelChannel: false, |
|
|
isSelChannel: false, |
|
|
channel: [], |
|
|
channel: [], |
|
|
content: '', |
|
|
content: '', |
|
@ -252,7 +253,7 @@ export default { |
|
|
this.formData.content = '' |
|
|
this.formData.content = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async initForm (type, icNatId) { |
|
|
async initForm (type, icVaccineId) { |
|
|
this.startLoading() |
|
|
this.startLoading() |
|
|
this.formData.agencyId = this.agencyId |
|
|
this.formData.agencyId = this.agencyId |
|
|
|
|
|
|
|
@ -261,9 +262,9 @@ export default { |
|
|
this.enterType = '1' |
|
|
this.enterType = '1' |
|
|
this.formType = type |
|
|
this.formType = type |
|
|
|
|
|
|
|
|
if (icNatId) { |
|
|
if (icVaccineId) { |
|
|
this.icNatId = icNatId |
|
|
this.icVaccineId = icVaccineId |
|
|
this.formData.icNatId = icNatId |
|
|
this.formData.icVaccineId = icVaccineId |
|
|
this.isFromResi = false |
|
|
this.isFromResi = false |
|
|
await this.loadFormData() |
|
|
await this.loadFormData() |
|
|
} |
|
|
} |
|
@ -337,7 +338,7 @@ export default { |
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/detail' |
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/detail' |
|
|
const url = '/epmetuser/icNat/detail' |
|
|
const url = '/epmetuser/icNat/detail' |
|
|
let params = { |
|
|
let params = { |
|
|
icNatId: this.icNatId, |
|
|
icVaccineId: this.icVaccineId, |
|
|
} |
|
|
} |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
@ -355,7 +356,7 @@ export default { |
|
|
// } |
|
|
// } |
|
|
console.log(this.formData.isSelChannel) |
|
|
console.log(this.formData.isSelChannel) |
|
|
|
|
|
|
|
|
this.formData.icNatId = this.icNatId |
|
|
this.formData.icVaccineId = this.icVaccineId |
|
|
if (this.formData.userId) { |
|
|
if (this.formData.userId) { |
|
|
this.isFromResi = true |
|
|
this.isFromResi = true |
|
|
} else { |
|
|
} else { |
|
@ -432,7 +433,7 @@ export default { |
|
|
if (this.formType === 'add') { |
|
|
if (this.formType === 'add') { |
|
|
url = '/epmetuser/icNat/add' |
|
|
url = '/epmetuser/icNat/add' |
|
|
// url = "http://yapi.elinkservice.cn/mock/102/epmetuser/icNat/add" |
|
|
// url = "http://yapi.elinkservice.cn/mock/102/epmetuser/icNat/add" |
|
|
this.formData.icNatId = '' |
|
|
this.formData.icVaccineId = '' |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
url = '/epmetuser/icNat/edit' |
|
|
url = '/epmetuser/icNat/edit' |
|
@ -466,21 +467,22 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resetData () { |
|
|
resetData () { |
|
|
this.icNatId = '' |
|
|
this.icVaccineId = '' |
|
|
this.fileList = [] |
|
|
this.fileList = [] |
|
|
this.hideUploadEdit = false |
|
|
this.hideUploadEdit = false |
|
|
|
|
|
|
|
|
this.formData = { |
|
|
this.formData = { |
|
|
icNatId: '', |
|
|
icVaccineId: '', |
|
|
agencyId: '',//当前网格所属组织Id |
|
|
agencyId: '',//当前网格所属组织Id |
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
name: '', |
|
|
name: '', |
|
|
idCard: '', |
|
|
idCard: '', |
|
|
mobile: '', |
|
|
mobile: '', |
|
|
natTime: '', |
|
|
inoculateTime: '', |
|
|
natAddress: '', |
|
|
inoculateAddress: '', |
|
|
natResult: '', |
|
|
manufacturer: '', |
|
|
|
|
|
|
|
|
isSelChannel: false, |
|
|
isSelChannel: false, |
|
|
channel: [], |
|
|
channel: [], |
|
|
content: '', |
|
|
content: '', |
|
@ -517,13 +519,13 @@ export default { |
|
|
mobile: [ |
|
|
mobile: [ |
|
|
{ required: true, message: '手机号不能为空', trigger: 'blur' }, |
|
|
{ required: true, message: '手机号不能为空', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
natTime: [ |
|
|
inoculateTime: [ |
|
|
{ required: true, message: '接种时间不能为空', trigger: 'blur' }, |
|
|
{ required: true, message: '接种时间不能为空', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
natTime: [ |
|
|
inoculateTime: [ |
|
|
{ required: true, message: '接种地点不能为空', trigger: 'blur' }, |
|
|
{ required: true, message: '接种地点不能为空', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
natTime: [ |
|
|
inoculateTime: [ |
|
|
{ required: true, message: '疫苗厂家不能为空', trigger: 'blur' }, |
|
|
{ required: true, message: '疫苗厂家不能为空', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|