From 8309d0d1002a5c9cbbb8c563cbc78611cb51d355 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 22 Nov 2022 09:45:49 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E8=AF=A6=E7=BB=86=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/huji/immigration/edit.vue | 597 ++++++++---------- 1 file changed, 258 insertions(+), 339 deletions(-) diff --git a/src/views/modules/base/huji/immigration/edit.vue b/src/views/modules/base/huji/immigration/edit.vue index f90baa11b..9ba26be26 100644 --- a/src/views/modules/base/huji/immigration/edit.vue +++ b/src/views/modules/base/huji/immigration/edit.vue @@ -1,366 +1,285 @@ @@ -371,7 +290,7 @@ import formVltHelper from 'dai-js/tools/formVltHelper' import { computedCard } from '@/utils/index' import { isCard, isMobile } from '@/utils/validate' -function iniFmData() { +function iniFmData () { return { gridId: '', villageId: '', @@ -400,7 +319,7 @@ function iniFmData() { } export default { - data() { + data () { return { formType: 'add', //表单操作类型 add新增,edit编辑,detail详情 @@ -436,7 +355,7 @@ export default { }, components: {}, computed: { - dataRule() { + dataRule () { let checkIdCard = (rule, value, callback) => { if (value === '') { callback(new Error('请输入证件号')) @@ -469,26 +388,26 @@ export default { sourceAddress: [ { required: true, message: '来源地不能为空', trigger: 'blur' } ], - address: [ - { required: true, message: '详细地址不能为空', trigger: 'blur' } - ] + // address: [ + // { required: true, message: '详细地址不能为空', trigger: 'blur' } + // ] } }, - changeVDisabled() { + changeVDisabled () { return !this.fmData.villageId }, - changeBDisabled() { + changeBDisabled () { return !this.fmData.buildId }, - changeDDisabled() { + changeDDisabled () { return !this.fmData.unitId } }, props: {}, watch: {}, - async mounted() { + async mounted () { console.log('mounted-----我执行了') await this.getGridList() @@ -496,13 +415,13 @@ export default { }, methods: { - lzayLoadArea(node, resolve) { + lzayLoadArea (node, resolve) { // this.getArea(node, resolve) setTimeout(() => { this.getArea(node, resolve) }, 200) }, - async checkResiAvailable() { + async checkResiAvailable () { const { fmData: { idCard, isResiUser } } = this @@ -528,7 +447,7 @@ export default { } } }, - handleNowArea(val) { + handleNowArea (val) { console.log('val-----', val) console.log('label-----', this.$refs.nowArea.getCheckedNodes()) if (val.length > 0) { @@ -544,7 +463,7 @@ export default { this.fmData.sourceAddressPathCode = '' } }, - handleBlurId(val) { + handleBlurId (val) { const { sex, age } = computedCard(this.fmData.idCard) if (val) { this.fmData.age = age @@ -553,20 +472,20 @@ export default { } }, - handleClearVillage() { + handleClearVillage () { this.fmData.buildId = '' this.fmData.homeId = '' }, - handleClearBuild() { + handleClearBuild () { this.fmData.buildId = '' this.fmData.unitId = '' this.fmData.homeId = '' }, - handleClearDan() { + handleClearDan () { this.fmData.unitId = '' this.fmData.homeId = '' }, - handleChangeGrid(val) { + handleChangeGrid (val) { console.log('val', val) this.fmData.villageId = '' this.fmData.buildId = '' @@ -576,7 +495,7 @@ export default { this.fmData.householderRelation = '' this.getValiheList() }, - handleChangeV(val) { + handleChangeV (val) { console.log('val', val) this.fmData.buildId = '' this.fmData.unitId = '' @@ -585,7 +504,7 @@ export default { this.fmData.householderRelation = '' this.getBuildList() }, - handleChangeB(val) { + handleChangeB (val) { console.log('val', val) this.fmData.unitId = '' this.fmData.homeId = '' @@ -593,14 +512,14 @@ export default { this.fmData.householderRelation = '' this.getUniList() }, - handleChangeD(val) { + handleChangeD (val) { console.log('val', val) this.fmData.homeId = '' this.fmData.householderName = '' this.fmData.householderRelation = '' this.getHouseList() }, - handleChangeH(val) { + handleChangeH (val) { console.log('val', val) this.getHouseMaster() }, @@ -629,7 +548,7 @@ export default { } }, - getRelationList() { + getRelationList () { const { user } = this.$store.state this.$http .post('/sys/dict/data/relationship', { @@ -648,7 +567,7 @@ export default { }) }, - getGridList() { + getGridList () { const { user } = this.$store.state this.$http .post('/gov/org/customergrid/gridoption', { @@ -667,7 +586,7 @@ export default { return this.$message.error('网络错误') }) }, - getValiheList() { + getValiheList () { const { user } = this.$store.state this.$http .post('/gov/org/icneighborhood/neighborhoodoption', { @@ -687,7 +606,7 @@ export default { return this.$message.error('网络错误') }) }, - getBuildList() { + getBuildList () { this.$http .post('/gov/org/icbuilding/buildingoption', { neighborHoodId: this.fmData.villageId @@ -704,7 +623,7 @@ export default { return this.$message.error('网络错误') }) }, - getUniList() { + getUniList () { this.$http .post('/gov/org/icbuildingunit/unitoption', { buildingId: this.fmData.buildId @@ -721,7 +640,7 @@ export default { return this.$message.error('网络错误') }) }, - getHouseList() { + getHouseList () { this.$http .post('/gov/org/ichouse/houseoption', { unitId: this.fmData.unitId }) .then(({ data: res }) => { @@ -737,7 +656,7 @@ export default { }) }, - getHouseMaster() { + getHouseMaster () { const { homeId } = this.fmData if (!homeId) return (this.alreadyHaveMaster = false) @@ -763,7 +682,7 @@ export default { }) }, - async initForm(type, id) { + async initForm (type, id) { this.$refs.ref_form.resetFields() this.formType = type @@ -778,7 +697,7 @@ export default { this.getHouseList() } }, - async getDatail(moveInId) { + async getDatail (moveInId) { let url = '/epmetuser/icMoveIn/detail' const params = { @@ -792,7 +711,7 @@ export default { } else this.$message.error(msg) }, - async handleComfirm() { + async handleComfirm () { // setTimeout(() => { // this.btnDisable = false @@ -834,7 +753,7 @@ export default { }) }, - async submit() { + async submit () { let url = '' if (this.formType === 'add') { @@ -861,11 +780,11 @@ export default { } }, - handleCancle() { + handleCancle () { this.resetData() this.$emit('dialogCancle') }, - resetData() { + resetData () { this.orgId = '' this.nowAllCode = [] this.btnDisable = false From 1b19495cf3ec374d8dd5774be34e9a669c0629ea Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 22 Nov 2022 11:18:29 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BA=BA=E6=88=BF=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=A3=90=E7=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/modules/visual/people.scss | 4 + .../houseStatic/houseStaticPanshi.vue | 750 ++++++++++++++++++ src/views/modules/visual/basicinfo/people.vue | 43 +- 3 files changed, 785 insertions(+), 12 deletions(-) create mode 100644 src/views/modules/visual/basicinfo/houseStatic/houseStaticPanshi.vue diff --git a/src/assets/scss/modules/visual/people.scss b/src/assets/scss/modules/visual/people.scss index f774466cf..179af7ece 100644 --- a/src/assets/scss/modules/visual/people.scss +++ b/src/assets/scss/modules/visual/people.scss @@ -375,6 +375,10 @@ height: 78px; width: 128px; } + .rel-bg-panshi { + height: 68px; + width: 128px; + } .rel-text { @include toe; diff --git a/src/views/modules/visual/basicinfo/houseStatic/houseStaticPanshi.vue b/src/views/modules/visual/basicinfo/houseStatic/houseStaticPanshi.vue new file mode 100644 index 000000000..8cf156b0a --- /dev/null +++ b/src/views/modules/visual/basicinfo/houseStatic/houseStaticPanshi.vue @@ -0,0 +1,750 @@ + + + + + + + + diff --git a/src/views/modules/visual/basicinfo/people.vue b/src/views/modules/visual/basicinfo/people.vue index 91dfd3100..0434a7594 100644 --- a/src/views/modules/visual/basicinfo/people.vue +++ b/src/views/modules/visual/basicinfo/people.vue @@ -148,7 +148,7 @@
- @@ -160,7 +160,8 @@
{{ houseInfo.userList[0].userName }}
-
+
{{ houseInfo.userList[0].renHuCondition }}
@@ -169,7 +170,7 @@
- @@ -181,7 +182,8 @@
{{ houseInfo.userList[1].userName }}
-
+
{{ houseInfo.userList[1].renHuCondition }}
@@ -190,7 +192,7 @@
- @@ -202,7 +204,8 @@
{{ houseInfo.userList[2].userName }}
-
+
{{ houseInfo.userList[2].renHuCondition }}
@@ -211,7 +214,7 @@
- @@ -223,7 +226,8 @@ {{ houseInfo.userList[3].userName }} -
+
{{ houseInfo.userList[3].renHuCondition }}
@@ -232,7 +236,7 @@
- @@ -244,7 +248,8 @@
{{ houseInfo.userList[4].userName }}
-
+
{{ houseInfo.userList[4].renHuCondition }}
@@ -253,7 +258,7 @@
- @@ -265,7 +270,8 @@
{{ houseInfo.userList[5].userName }}
-
+
{{ houseInfo.userList[5].renHuCondition }}
@@ -590,6 +596,10 @@ export default { showedInfo: false, currentIndex: 0, }, + + isPanshi: false, + customerId: '', + }; }, @@ -628,6 +638,15 @@ export default { }, async mounted () { + //磐石街道:1580460084738760705 + this.customerId = localStorage.getItem("customerId"); + this.isPanshi = false + + if (this.customerId === '1580460084738760705') { + this.isPanshi = true + + } + this.userId = this.uid; console.log(this.$router); this.getApiData(); From 0e21ae74c288117664e222f80d48c0be22f57520 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 22 Nov 2022 14:58:20 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E8=A1=8C=E7=A8=8B=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E7=83=9F=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epidemic/travelYantai/travelYantai.vue | 1084 +++++++++++++++++ .../travelYantai/travelYantaiDetail.vue | 340 ++++++ .../travelYantai/travelYantaiForm.vue | 1016 +++++++++++++++ 3 files changed, 2440 insertions(+) create mode 100644 src/views/modules/base/epidemic/travelYantai/travelYantai.vue create mode 100644 src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue create mode 100644 src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue new file mode 100644 index 000000000..a272438d5 --- /dev/null +++ b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue @@ -0,0 +1,1084 @@ + + + + + + diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue new file mode 100644 index 000000000..915d8ff91 --- /dev/null +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue @@ -0,0 +1,340 @@ + + + + + + + + diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue new file mode 100644 index 000000000..c78d99d6a --- /dev/null +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue @@ -0,0 +1,1016 @@ + + + + + + + + + + + From 51a4350fc915638fcfa892251196626dd49e0269 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 23 Nov 2022 11:14:12 +0800 Subject: [PATCH 4/8] 11 --- .../travelYantai/travelYantaiDetail.vue | 110 +++-- .../travelYantai/travelYantaiForm.vue | 422 +++++++++--------- 2 files changed, 278 insertions(+), 254 deletions(-) diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue index 915d8ff91..e778252e4 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue @@ -24,12 +24,18 @@ 证件号: {{ formData.showIdCard||'--' }}
+
- 户籍地: - {{ formData.registeredResidence||'--' }} + 现居地: + {{ formData.presentAddress||'--' }} +
+
+ 详细地址: + {{ formData.detailAddress||'--' }}
+
- 来源地: + 来自地区: {{ formData.sourceAddress||'--' }}
@@ -37,77 +43,107 @@ 详细地址: {{ formData.sourceDetailAddress||'--' }}
+
- 7天内到达或途经: - {{ formData.passBy||'--' }} + 来到本地时间: + {{ formData.arriveDate||'--' }}
+
- 来曹事由: - {{ formData.describeContent||'--' }} + 返回方式: + {{ formData.trafficTypeName||'--' }}
+
+ 具体方式: + {{ formData.trafficTypeExplain||'--' }} +
+ +
+ 班次: + {{ formData.trafficTypeName||'--' }} +
+
48小时核酸: {{ formData.natOutcomeName||'--' }}
- 来到本地时间: - {{ formData.arriveDate||'--' }} + 健康码: + {{ formData.natOutcomeName||'--' }}
- 在曹居住地点: - {{ formData.presentAddress||'--' }} + 行程码: + {{ formData.natOutcomeName||'--' }}
+
- 详细地址: - {{ formData.detailAddress||'--' }} + 核酸检测报告: + {{ formData.natOutcomeName||'--' }} +
+ +
+ 两码一报告: + {{ formData.natOutcomeName||'--' }}
+
- 返回方式: - {{ formData.trafficTypeName||'--' }} + 是否有外地旅居史: + {{ formData.natOutcomeName||'--' }}
-
- 具体方式: - {{ formData.trafficTypeExplain||'--' }} + +
+ 途径地区: + {{ formData.natOutcomeName||'--' }}
- 7天内旅居史情况: - {{ formData.sojournHistoryName||'--' }} + 同行人: + {{ formData.natOutcomeName||'--' }}
+
- 隔离状态: - {{ formData.isolateTypeName||'--' }} + 户籍地: + {{ formData.registeredResidence||'--' }}
+
- 备注: - {{ formData.remark||'--' }} + 户籍详细地址: + {{ formData.passBy||'--' }} +
+
+ 是否带车: + {{ formData.describeContent||'--' }} +
+
+ 带车车牌号: + {{ formData.describeContent||'--' }}
- 是否落实"落地检": - {{ formData.isArriveCheckName||'--' }} + 车辆颜色: + {{ formData.describeContent||'--' }}
- 是否到达曹县: - {{ formData.isArriveName||'--' }} + 目的地交通场站: + {{ formData.describeContent||'--' }}
- 上报时间: - {{ formData.reportingTime||'--' }} + 入鲁时间: + {{ formData.sojournHistoryName||'--' }}
- 管控措施: - {{ formData.controlMeasures||'--' }} + 行程码: + {{ formData.isolateTypeName||'--' }}
- 类型: - {{ formData.tripDataTypeName||'--' }} + 离开本地时间: + {{ formData.isolateTypeName||'--' }}
- 上报人: - {{ formData.createdByName||'--' }} + 备注: + {{ formData.remark||'--' }}
diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue index c78d99d6a..58466b902 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue @@ -123,12 +123,12 @@ + v-model="formData.comeAreaFull"> @@ -138,8 +138,8 @@ @@ -162,167 +162,155 @@ - - - - - - + v-model="formData.shift"> - 阴性 - 阳性 + + - - 正常 - 异常 + + - - 正常 - 异常 + + - - 正常 - 异常 + + - - 正常 - 异常 + 正常 + 异常 - - + + + v-model="formData.travelPersonnel"> + v-model="formData.registeredResidenceAddress"> - - + + + v-model="formData.carryVehicleNumber"> + v-model="formData.carryVehiclenumberColor"> + v-model="formData.destinationStation"> + prop="arriveLuTime"> @@ -341,23 +329,23 @@ :file-list="replayImgList" :on-change="handleEditChange" :on-success="handleSuccess" - :limit="3"> + :limit="1"> 选择图片
- 最多上传3张图片,图片支持jpg、jpeg、bmp、git或png格式 + 最多上传1张图片,图片支持jpg、jpeg、bmp、git或png格式
+ prop="invalidTime"> @@ -467,73 +455,103 @@ export default { nowAllCode: [], // 现居地全 code tujingAllCode: [], // 现居地全 code hujiAllCode: [], // 现居地全 code - icNatId: '', + formData: { gridId: '', agencyId: '',//当前网格所属组织Id userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 - userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro + userType: 'input',//从居民信息里选择居民时:icresi;默认传:input name: '', idCard: '', mobile: '', heSuanCheck: false, presentAddress: '', presentAddressCode: '', + presentAddressPathCode: '', detailAddress: '', + sourceAddressCode: '', - presentAddressPathCode: '', sourceAddress: '', sourceAddressPathCode: '', - arriveDate: '', - remark: '', - leaveDate: '', - userType: 'input', - content: '', - channel: [], - - registeredResidence: '',//户籍地详细地址(必填) - sourceDetailAddress: '',//来源地--详细地址(必填) - natOutcome: '',//48小时核酸 0 阴性 1 阳性(必填) - trafficType: '',//交通方式,来源字典表(traffic_type) (必填) - - banci: '', - jiankangma: '', - xingchengma: '', - hesuan: '', - liangma: '', - waidi: '', - - tujing: '', - tujingCode: '', - tujingPathCode: '', + comeAreaFull: '',//来源地--详细地址(必填) - tongxing: '', + arriveDate: '',//来到本地时间 + remark: '',//备注 - huji: '', - hujiCode: '', - hujiPathCode: '', + content: '', + channel: [], - daiche: '', - chepaihao: '', - yanse: '', - changzhan: '', - rulu: '', - likai: '', - imageList: [], + trafficType: '',//返回方式,前端写死下来框值,给后端直接传汉字,烟台的不使用字典表 + shift: '',//班次 + carryHesuanProof: '',//48小时核算 ,传是/否 + healthCodeAbnormal: '',//健康码异常,传是/否 + travelCodeAbnormal: '',//行程码异常,传是/否 + detectionAbnormal: '',//核酸检测报告异常,传是/否 + twoCodeOneReportStatus: '',//两码一报告状态,传正常/异常 + nonlocalResidenceHistory: '',//是否有外地旅居史,传是/否 + + viaProvince: '',//途径地-省 + viaCity: '',//途径地-市 + viaCounty: '',//途径地-县 + viaCode: '',//途径地 + viaPathCode: '',//途径地 + + travelPersonnel: '',//同行人 + + registeredResidenceCity: '',//户籍地 + registeredResidenceCode: '',//户籍地 + registeredResidencePathCode: '',//户籍地 + registeredResidenceAddress: '',//户籍详细地址 + + carryVehicle: '',//是否带车,传是/否 + carryVehicleNumber: '',//带车车牌号 + carryVehiclenumberColor: '',//车辆颜色 + destinationStation: '',//目的地交通场站 + arriveLuTime: '',//入鲁时间yyyy-MM-dd HH:mm:ss + + travelCodeImg: '',//行程码url + invalidTime: '',//离开本地时间yyyy-MM-dd HH:mm:ss }, - trafficTypeList: [], - yesOrNoList: [ + trafficTypeList: [ { - value: '0', - label: '是' + value: '船', + label: '船' }, { - value: '1', - label: '否' - } + value: '飞机', + label: '飞机' + }, + { + value: '火车', + label: '火车' + }, + { + value: '民航', + label: '民航' + }, + { + value: '其他', + label: '其他' + }, + { + value: '汽车', + label: '汽车' + }, + { + value: '铁路', + label: '铁路' + }, + { + value: '长途客运', + label: '长途客运' + }, + { + value: '自驾包车', + label: '自驾包车' + }, ], @@ -550,10 +568,18 @@ export default { ], + presentAddress: [ + { required: true, message: '现居地不能为空', trigger: 'change' }, + ], + + detailAddress: [ + { required: true, message: '现居地详细地址不能为空', trigger: 'change' }, + ], + sourceAddress: [ { required: true, message: '来自地区不能为空', trigger: 'change' }, ], - sourceDetailAddress: [ + comeAreaFull: [ { required: true, message: '来自地区详细地址不能为空', trigger: 'change' }, ], arriveDate: [ @@ -562,7 +588,7 @@ export default { trafficType: [ { required: true, message: '返回方式不能为空', trigger: 'change' }, ], - natOutcome: [ + carryHesuanProof: [ { required: true, message: '48小时核酸不能为空', trigger: 'change' }, ], @@ -574,6 +600,11 @@ export default { lazy: true, lazyLoad: this.lzayLoadArea }, + areaPropsLevel2: { + // checkStrictly: true, + lazy: true, + lazyLoad: this.lzayLoadAreaLevel2 + }, hideUploadBtn: false, //图片相关 oss/file/uploadvariedfile @@ -592,9 +623,6 @@ export default { //获取网格下拉框数据 await this.loadGrid() - this.getTrafficType() - // this.getIsolateType() - this.getTripDataType() }, destroyed () { this.nowAllCode = [] @@ -609,9 +637,15 @@ export default { return w + 'px' }, lzayLoadArea (node, resolve) { - // this.getArea(node, resolve) + setTimeout(() => { - this.getArea(node, resolve) + this.getArea(node, resolve, 4) + }, 200) + }, + lzayLoadAreaLevel2 (node, resolve) { + + setTimeout(() => { + this.getArea(node, resolve, 2) }, 200) }, async initForm (type, row) { @@ -690,14 +724,25 @@ export default { console.log('label-----', this.$refs.tujingArea.getCheckedNodes()) if (val.length > 0) { const labels = this.$refs.tujingArea.getCheckedNodes()[0].pathLabels - this.formData.tujingCode = val[val.length - 1] + this.formData.viaCode = val[val.length - 1] this.formData.tujing = labels.join('-') - this.formData.tujingPathCode = val.join(',') - this.$refs.ref_form.clearValidate('tujing') + if (labels.length > 0) { + this.formData.viaProvince = labels[0] + } + if (labels.length > 1) { + this.formData.viaCity = labels[1] + } + if (labels.length > 2) { + this.formData.viaCounty = labels[2] + } + this.formData.viaPathCode = val.join(',') + this.$refs.ref_form.clearValidate('viaProvince') } else { - this.formData.tujingCode = '' - this.formData.tujing = '' - this.formData.tujingPathCode = '' + this.formData.viaCode = '' + this.formData.viaProvince = '' + this.formData.viaCity = '' + this.formData.viaCounty = '' + this.formData.viaPathCode = '' } }, @@ -706,14 +751,14 @@ export default { console.log('label-----', this.$refs.hujiArea.getCheckedNodes()) if (val.length > 0) { const labels = this.$refs.hujiArea.getCheckedNodes()[0].pathLabels - this.formData.hujiCode = val[val.length - 1] - this.formData.huji = labels.join('-') - this.formData.hujiPathCode = val.join(',') - this.$refs.ref_form.clearValidate('huji') + this.formData.registeredResidenceCode = val[val.length - 1] + this.formData.registeredResidenceCity = labels.join('-') + this.formData.registeredResidencePathCode = val.join(',') + this.$refs.ref_form.clearValidate('registeredResidenceCity') } else { - this.formData.hujiCode = '' - this.formData.huji = '' - this.formData.hujiPathCode = '' + this.formData.registeredResidenceCode = '' + this.formData.registeredResidenceCity = '' + this.formData.registeredResidencePathCode = '' } }, @@ -753,7 +798,7 @@ export default { } }, - async getArea (node, resolve) { + async getArea (node, resolve, levelNum) { const url = "/commonservice/areacode/nextarea" let params = { @@ -769,7 +814,7 @@ export default { label: item.areaName, code: item.areaCode, level: item.level, - leaf: node.level >= 4 // 5层级 + leaf: node.level >= levelNum // 5层级 })) resolve(nodes) @@ -824,6 +869,9 @@ export default { async handleComfirm (formName) { + console.log(' this.formData', this.formData) + console.log(' this.replayImgList', this.replayImgList) + return false this.$refs[formName].validate(async (valid) => { if (valid) { if (this.formData.channel.length > 0 && !this.formData.content) { @@ -843,8 +891,7 @@ export default { if (this.formType === 'add') url = '/epmetuser/tripreport/save' else url = '/epmetuser/tripreport/update' - console.log(' this.formData', this.formData) - // return false + const { data, code, msg } = await requestPost(url, this.formData) if (code === 0) { @@ -890,84 +937,25 @@ export default { }, removePic (file, fileList) { - this.formData.imageList.splice( - this.formData.imageList.findIndex((item) => item === file.url), - 1 - ); + this.replayImgList.splice( this.replayImgList.findIndex((item) => item.uid === file.uid), 1 ); - this.hideUploadBtn = fileList.length >= 3; + this.formData.travelCodeImg = ''; + this.hideUploadBtn = fileList.length >= 1; }, - // 最多上传3张图,超过时隐藏上传按钮 + // 最多上传1张图,超过时隐藏上传按钮 handleEditChange (file, fileList) { - this.hideUploadBtn = fileList.length >= 3; + this.hideUploadBtn = fileList.length >= 1; }, exceedPic () { - this.$message.warning("最多上传3张预览图片"); + this.$message.warning("最多上传1张图片"); }, handleSuccess (response, file, fileList) { - this.replayImgList.push(file); - this.formData.imageList.push(response.data.url); - }, - - - async getTrafficType () { - const url = "/sys/dict/data/dictlist"; - - let params = { - dictType: "traffic_type", - }; - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.trafficTypeList = data - - - } else { - this.$message.error(msg) - } - - }, - async getIsolateType () { - - const url = "/sys/dict/data/dictlist"; - - let params = { - // dictType: "isolatedState", - dictType: "isolate_type", - }; - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.isolateTypeList = data - - } else { - this.$message.error(msg) - } - - }, - async getTripDataType () { - - const url = "/sys/dict/data/dictlist"; - - let params = { - dictType: "trip_data_type", - }; - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.tripDataTypeList = data - - - } else { - this.$message.error(msg) - } + this.replayImgList.push(file); + this.formData.travelCodeImg = response.data.url; }, From 41d22b52840d72ece8152f146f8dfcea784b6281 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 23 Nov 2022 14:11:46 +0800 Subject: [PATCH 5/8] 11 --- .../epidemic/travelYantai/travelYantai.vue | 16 +- .../travelYantai/travelYantaiDetail.vue | 181 ++++++------------ .../travelYantai/travelYantaiForm.vue | 99 ++++++++-- 3 files changed, 149 insertions(+), 147 deletions(-) diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue index a272438d5..329626f4c 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue @@ -187,7 +187,7 @@ show-overflow-tooltip min-width="180"> - - - - 详细地址: - {{ formData.sourceDetailAddress||'--' }} + {{ formData.comeAreaFull||'--' }}
@@ -51,95 +51,105 @@
返回方式: - {{ formData.trafficTypeName||'--' }} -
-
- 具体方式: - {{ formData.trafficTypeExplain||'--' }} + {{ formData.comeMode||'--' }}
班次: - {{ formData.trafficTypeName||'--' }} + {{ formData.shift||'--' }}
48小时核酸: - {{ formData.natOutcomeName||'--' }} + {{ formData.carryHesuanProof||'--' }}
- 健康码: - {{ formData.natOutcomeName||'--' }} + 健康码异常: + {{ formData.healthCodeAbnormal||'--' }}
- 行程码: - {{ formData.natOutcomeName||'--' }} + 行程码异常: + {{ formData.travelCodeAbnormal||'--' }}
- 核酸检测报告: - {{ formData.natOutcomeName||'--' }} + 核酸检测报告异常: + {{ formData.detectionAbnormal||'--' }}
- 两码一报告: - {{ formData.natOutcomeName||'--' }} + 两码一报告状态: + {{ formData.twoCodeOneReportStatus||'--' }}
是否有外地旅居史: - {{ formData.natOutcomeName||'--' }} + {{ formData.nonlocalResidenceHistory||'--' }}
途径地区: - {{ formData.natOutcomeName||'--' }} + {{ formData.viaAddressShow||'--' }}
同行人: - {{ formData.natOutcomeName||'--' }} + {{ formData.travelPersonnel||'--' }}
户籍地: - {{ formData.registeredResidence||'--' }} + {{ formData.registeredResidenceCity||'--' }}
户籍详细地址: - {{ formData.passBy||'--' }} + {{ formData.registeredResidenceAddress||'--' }}
是否带车: - {{ formData.describeContent||'--' }} + {{ formData.carryVehicle||'--' }}
带车车牌号: - {{ formData.describeContent||'--' }} + {{ formData.carryVehicleNumber||'--' }}
车辆颜色: - {{ formData.describeContent||'--' }} + {{ formData.carryVehicleNumberColor||'--' }}
目的地交通场站: - {{ formData.describeContent||'--' }} + {{ formData.destinationStation||'--' }}
入鲁时间: - {{ formData.sojournHistoryName||'--' }} + {{ formData.arriveLuTime||'--' }}
-
+
行程码: - {{ formData.isolateTypeName||'--' }} + {{ '--' }} +
+ +
+ 行程码: + +
+ + + +
+
离开本地时间: - {{ formData.isolateTypeName||'--' }} + {{ formData.invalidTime||'--' }}
备注: @@ -187,11 +197,10 @@ export default { async mounted () { const { user } = this.$store.state this.agencyId = user.agencyId - //获取网格下拉框数据 - // await this.loadGrid() + }, destroyed () { - this.nowAllCode = [] + }, methods: { @@ -223,94 +232,9 @@ export default { }, - async loadGrid () { - const url = "/gov/org/customergrid/gridoption" - - let params = { - agencyId: this.agencyId - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.gridList = data - - } else { - this.$message.error(msg) - } - - }, - async handleSelGrid (value) { - - const url = "/epmetuser/icresiuser/demandusers" - - let params = { - agencyId: this.agencyId, - gridId: value - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.personList = data - - } else { - this.$message.error(msg) - } - - }, - async getArea (node, resolve) { - - const url = "/commonservice/areacode/nextarea" - let params = { - parentLevel: node.data ? node.data.level : '', - parentAreaCode: node.data ? node.data.code : '' - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - const nodes = data.map(item => ({ - value: item.areaCode, // - label: item.areaName, - code: item.areaCode, - level: item.level, - leaf: node.level >= 4 // 5层级 - })) - resolve(nodes) - - } else { - this.$message.error(msg) - } - - }, - async handleSelAddress (value) { - - const url = "/gov/org/house/gethouseinfo/" + value - - const { data, code, msg } = await requestPost(url) - - if (code === 0) { - this.formData.presentAddress = data.agencyPathName - this.formData.presentAddressCode = data.areaCode - this.formData.detailAddress = data.allName - - } else { - this.$message.error(msg) - } - - }, - async handleSelPerson (personItem) { - this.formData.userId = personItem.demandUserId - this.formData.name = personItem.demandUserName - this.formData.mobile = personItem.demandUserMobile - this.formData.idCard = personItem.idCard - this.handleSelAddress(personItem.houseId) - }, - async loadFormData (id) { - const url = '/epmetuser/tripreport/detail' + const url = '/epmetuser/tripreport/yt-detail ' let params = { id, } @@ -318,15 +242,28 @@ export default { if (code === 0) { console.log('deda-------', data) this.formData = { ...data, channel: [], content: '' } - this.sourceAllCode = data.sourceAddressPathCode && data.sourceAddressPathCode.split(',') if (data.userType == 'icresi') this.isFromResi = true - else this.nowAllCode = data.presentAddressPathCode && data.presentAddressPathCode.split(',') + + this.formData.viaAddressShow = '' + if (this.formData.viaProvince) { + this.formData.viaAddressShow = this.formData.viaAddressShow + this.formData.viaProvince + } + if (this.formData.viaCity) { + this.formData.viaAddressShow = this.formData.viaAddressShow + '-' + this.formData.viaCity + } + if (this.formData.viaCounty) { + this.formData.viaAddressShow = this.formData.viaAddressShow + '-' + this.formData.viaCounty + } + + } else { this.$message.error(msg) } }, - + watchImg (src) { + window.open(src); + }, handleCancle () { // this.resetData() this.$emit('dialogCancle') diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue index 58466b902..662137b1b 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue @@ -148,9 +148,9 @@ + prop="comeMode"> + v-model="formData.carryVehicleNumberColor"> { if (valid) { if (this.formData.channel.length > 0 && !this.formData.content) { @@ -888,8 +901,8 @@ export default { }, 5000) let url = '' - if (this.formType === 'add') url = '/epmetuser/tripreport/save' - else url = '/epmetuser/tripreport/update' + if (this.formType === 'add') url = '/epmetuser/tripreport/yt-save' + else url = '/epmetuser/tripreport/yt-update' const { data, code, msg } = await requestPost(url, this.formData) @@ -924,10 +937,62 @@ export default { resetData () { this.$refs.ref_form.resetFields() - this.formData.sourceAddressCode = '' - this.formData.presentAddressCode = '' - this.formData.sourceAddressPathCode = '' - this.formData.presentAddressPathCode = '' + this.formData = { + gridId: '', + agencyId: '',//当前网格所属组织Id + userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 + userType: 'input',//从居民信息里选择居民时:icresi;默认传:input + name: '', + idCard: '', + mobile: '', + heSuanCheck: false, + presentAddress: '', + presentAddressCode: '', + presentAddressPathCode: '', + detailAddress: '', + + sourceAddressCode: '', + sourceAddress: '', + sourceAddressPathCode: '', + comeAreaFull: '',//来源地--详细地址(必填) + + arriveDate: '',//来到本地时间 + remark: '',//备注 + + content: '', + channel: [], + + comeMode: '',//返回方式,前端写死下来框值,给后端直接传汉字,烟台的不使用字典表 + shift: '',//班次 + carryHesuanProof: '',//48小时核算 ,传是/否 + healthCodeAbnormal: '',//健康码异常,传是/否 + travelCodeAbnormal: '',//行程码异常,传是/否 + detectionAbnormal: '',//核酸检测报告异常,传是/否 + twoCodeOneReportStatus: '',//两码一报告状态,传正常/异常 + nonlocalResidenceHistory: '',//是否有外地旅居史,传是/否 + + viaProvince: '',//途径地-省 + viaCity: '',//途径地-市 + viaCounty: '',//途径地-县 + viaCode: '',//途径地 + viaPathCode: '',//途径地 + + travelPersonnel: '',//同行人 + + registeredResidenceCity: '',//户籍地 + registeredResidenceCode: '',//户籍地 + registeredResidencePathCode: '',//户籍地 + registeredResidenceAddress: '',//户籍详细地址 + + carryVehicle: '',//是否带车,传是/否 + carryVehicleNumber: '',//带车车牌号 + carryVehicleNumberColor: '',//车辆颜色 + destinationStation: '',//目的地交通场站 + arriveLuTime: '',//入鲁时间yyyy-MM-dd HH:mm:ss + + travelCodeImg: '',//行程码url + invalidTime: '',//离开本地时间yyyy-MM-dd HH:mm:ss + } this.sourceAllCode = [] this.nowAllCode = [] this.tujingAllCode = [] From f03171c50b27cc38062432e304bea72f199b6f96 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 25 Nov 2022 09:53:08 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E6=9D=A5=E5=88=B0=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epidemic/travelYantai/travelYantai.vue | 2 +- .../travelYantai/travelYantaiDetail.vue | 2 +- .../epidemic/travelYantai/travelYantaiForm.vue | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue index 329626f4c..f3ad9f351 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue @@ -193,7 +193,7 @@ label="返回方式" width="100"> - 来到本地时间: - {{ formData.arriveDate||'--' }} + {{ formData.arriveTime||'--' }}
diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue index 662137b1b..86e51bd0a 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue @@ -134,12 +134,12 @@ + prop="arriveTime"> @@ -343,8 +343,8 @@ prop="invalidTime"> @@ -475,7 +475,7 @@ export default { sourceAddressPathCode: '', comeAreaFull: '',//来源地--详细地址(必填) - arriveDate: '',//来到本地时间 + arriveTime: '',//抵烟时间yyyy-MM-dd HH:mm:ss remark: '',//备注 content: '', @@ -582,7 +582,7 @@ export default { comeAreaFull: [ { required: true, message: '来自地区详细地址不能为空', trigger: 'change' }, ], - arriveDate: [ + arriveTime: [ { required: true, message: '来到本地时间不能为空', trigger: 'change' }, ], comeMode: [ @@ -956,7 +956,7 @@ export default { sourceAddressPathCode: '', comeAreaFull: '',//来源地--详细地址(必填) - arriveDate: '',//来到本地时间 + arriveTime: '',//来到本地时间 remark: '',//备注 content: '', From ba487efe835f105b7deb5b67245883ed116b901a Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 25 Nov 2022 09:59:11 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E7=A6=BB=E5=BC=80=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/epidemic/travelYantai/travelYantaiDetail.vue | 2 +- .../base/epidemic/travelYantai/travelYantaiForm.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue index 5e5c1bcd7..fb0a4903a 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiDetail.vue @@ -149,7 +149,7 @@
离开本地时间: - {{ formData.invalidTime||'--' }} + {{ formData.leaveTheRiskAreaTime||'--' }}
备注: diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue index 86e51bd0a..f3336c69a 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantaiForm.vue @@ -340,9 +340,9 @@ + prop="leaveTheRiskAreaTime"> Date: Fri, 25 Nov 2022 13:22:54 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/epidemic/travelYantai/travelYantai.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue index f3ad9f351..f5a6932e2 100644 --- a/src/views/modules/base/epidemic/travelYantai/travelYantai.vue +++ b/src/views/modules/base/epidemic/travelYantai/travelYantai.vue @@ -432,13 +432,13 @@ export default { }, btnAuths: { - tripreport_add: true, //新增 - tripreport_import: true, //导入 - tripreport_export: true, //导出 - tripreport_del: true, //删除 - tripreport_view: true, //查看 - tripreport_update: true, //修改 - tripreport_view_real_data: true, //显示脱敏信息 + tripreport_add: false, //新增 + tripreport_import: false, //导入 + tripreport_export: false, //导出 + tripreport_del: false, //删除 + tripreport_view: false, //查看 + tripreport_update: false, //修改 + tripreport_view_real_data: false, //显示脱敏信息 }, }