From 170ddb04f41f34d93bc8423182703266f3291f49 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 15 Nov 2022 09:15:02 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9A=82=E5=AD=98=E4=B9=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tdt-wp-zw.js | 1 + src/views/modules/visual/command/index.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/tdt-wp-zw.js b/src/utils/tdt-wp-zw.js index 530783b60..149116066 100644 --- a/src/utils/tdt-wp-zw.js +++ b/src/utils/tdt-wp-zw.js @@ -6,6 +6,7 @@ let vec = if (window.SITE_CONFIG["nodeEnv"] == "dev_sdtdt") { vec = "http://service.sdmap.gov.cn/tileservice/sdpubmap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdvec&STYLE=default&TILEMATRIXSET=c&TILEMATRIX={z}&TILEROW={x}&TILECOL={y}&FORMAT=image%2Fpng&tk=e758167d5b90c351b70a979c0820840c"; + vec = 'http://wprd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}'; } export default { diff --git a/src/views/modules/visual/command/index.vue b/src/views/modules/visual/command/index.vue index 4a08c4291..aea7cad9a 100644 --- a/src/views/modules/visual/command/index.vue +++ b/src/views/modules/visual/command/index.vue @@ -289,7 +289,7 @@ export default { cptCard, ScreenLoading, gridMap: - mapType == "tdzw" && SITE_CONFIG["nodeEnv"] == "dev_sdtdt" + mapType == "tdzw" && SITE_CONFIG["nodeEnv"] == "dev_sdtdt1" ? gridMapOl : gridMap, sidemenu1, From 5d2b5aa6a391136f12f25967d1411ed0eeb15ba2 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Thu, 17 Nov 2022 16:23:36 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=8A=A8=E5=8A=9B=E4=B8=BB=E8=BD=B4?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/visual/plugin/power/components/screen-org-tree.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/visual/plugin/power/components/screen-org-tree.vue b/src/views/modules/visual/plugin/power/components/screen-org-tree.vue index 77263287e..bc891c8a3 100644 --- a/src/views/modules/visual/plugin/power/components/screen-org-tree.vue +++ b/src/views/modules/visual/plugin/power/components/screen-org-tree.vue @@ -275,7 +275,7 @@ export default { justify-content: center; margin: 0 7px; &-info { - width: 300px; + width: 400px; height: 80px; background: url('../../../../../../assets/img/plugins/dangwei-by.png') no-repeat; background-size: 100% 100%; From 208586f9e1832adf9fc4987e4951217547aed7ea Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 21 Nov 2022 16:58:06 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=B8=8D=E9=94=99=E4=B8=8D=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/utils/dai-map.js | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index e6abb72d8..d1c8a3e7c 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api -VUE_APP_NODE_ENV=dev_sdtdt -# VUE_APP_NODE_ENV=dev +# VUE_APP_NODE_ENV=dev_sdtdt +VUE_APP_NODE_ENV=dev #项目根路径 VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file diff --git a/src/utils/dai-map.js b/src/utils/dai-map.js index 1d2f4bb07..51da6ae52 100644 --- a/src/utils/dai-map.js +++ b/src/utils/dai-map.js @@ -49,9 +49,13 @@ export function searchNearby(map, keyword) { lng, lat, address, - resultList: data.map((item) => { + resultList: data.map((item, index) => { + const { + location: { lat, lng }, + } = item; item.lonlat = lng + " " + lat; item.name = item.name || ""; + item.hotPointID = "hotPointID" + index; return item; }), }, @@ -93,7 +97,10 @@ export function searchNearby(map, keyword) { lng, lat, address: address + name, - resultList: data, + resultList: data.map((item, index) => { + item.hotPointID = "hotPointID" + index; + return item; + }), }, }); } else { @@ -129,9 +136,11 @@ export function searchNearby(map, keyword) { lng, lat, address: address + name, - resultList: result.features.map((item) => { + resultList: result.features.map((item, index) => { + const { lng, lat } = item; item.lonlat = lng + " " + lat; item.name = item.name || ""; + item.hotPointID = "hotPointID" + index; return item; }), }, From 0e21ae74c288117664e222f80d48c0be22f57520 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 22 Nov 2022 14:58:20 +0800 Subject: [PATCH 4/6] =?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 5/6] 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 6/6] 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 = []