diff --git a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue index e10f7cb1..6764f9df 100644 --- a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue +++ b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue @@ -20,7 +20,7 @@
异常人员
diff --git a/src/project/pingchang/AppCommunityManagement/Add.vue b/src/project/pingchang/AppCommunityManagement/Add.vue index d4632926..d4e07dbf 100644 --- a/src/project/pingchang/AppCommunityManagement/Add.vue +++ b/src/project/pingchang/AppCommunityManagement/Add.vue @@ -2,11 +2,11 @@
- *区域选择 + 区域选择
- - {{ areaName }} + + {{ form.areaName }} 请选择 @@ -17,26 +17,26 @@
*管控对象
-
自动获取
+
{{form.name}}
*手机号
-
自动获取
+
{{form.phone}}
*身份证号
-
自动获取
+
{{form.idNumber}}
*居家状态
-
- 请选择 +
+ {{ $dict.getLabel('EP_homeStatus2', form.homeStatus) || '请选择'}}
@@ -44,8 +44,9 @@
*隔离时间
-
- 请选择 +
+ 请选择 + {{form.quarantineBeginTime}}至{{form.quarantineEndTime}}
@@ -53,8 +54,8 @@
*隔离策略
-
- 请选择 +
+ {{ $dict.getLabel('EP_quarantineStrategy', form.quarantineStrategy) || '请选择'}}
@@ -64,20 +65,24 @@
*管控人
-
自动获取
+
+ +
*联系方式
-
自动获取
+
+ +
- *管控内容 + 管控内容
- +
@@ -86,14 +91,16 @@
- +
+ + @@ -105,22 +112,91 @@ export default { return { areaId: '', areaName: '', - files: [] + files: [], + + id: '', + form: { + homeStatus: '', + quarantineBeginTime: '', + quarantineStrategy: '' + }, + showDateSelect: false, + showDictSelect: false, + selectDictName: '', + selectFormName: '', } }, computed: { ...mapState(['user']), }, - onLoad() { - this.areaId = this.user.areaId - this.areaName = this.user.areaName + onLoad(option) { + this.id = option.id + this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy').then(() => { + this.id = option.id + this.getDetail() + }) }, onShow() { - document.title = '返乡排查' + document.title = '排查管理' }, methods: { + submit(status) { + if(this.form.homeStatus === '') { + return this.$u.toast('请选择居家状态') + } + if(!this.form.quarantineBeginTime) { + return this.$u.toast('请选择隔离时间') + } + if(this.form.quarantineStrategy === '') { + return this.$u.toast('请选择隔离策略') + } + if(!this.form.controllerUserName) { + return this.$u.toast('请输入管控人姓名') + } + if(!this.form.controllerUserPhone) { + return this.$u.toast('请输入联系方式') + } + if(this.form.controllerUserPhone && !/^1[0-9]{10,10}$/.test(this.form.controllerUserPhone)) { + return this.$u.toast("请输入正确的手机号码"); + } + if( !this.form.fileList.length) { + return this.$u.toast('请上传图片') + } + this.form.status = status + this.form.id = this.id + + this.$http.post(`/app/appepidemicpreventionregisterinfo/riskDisposal`, this.form).then((res) => { + if (res.code == 0) { + this.$u.toast('提交成功') + uni.$emit('updateDetail') + uni.$emit('updateList') + uni.navigateBack() + } + }) + + + }, + getDetail() { + this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => { + if (res.code == 0) { + this.form = res.data + } + }) + }, + dateConfirm(e) { + this.form.quarantineBeginTime = e.startDate + this.form.quarantineEndTime = e.endDate + }, + dictSelectClick(dictName, formName) { + this.selectDictName = dictName + this.selectFormName = formName + this.showDictSelect = true + }, + dictConfirm(e) { + this.form[this.selectFormName] = e[0].value + }, areaSelect(e) { - this.areaId = e + this.form.areaId = e }, }, } diff --git a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue index 0dceec88..2e364019 100644 --- a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue +++ b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue @@ -5,7 +5,7 @@ inactive-color="#A1C1E8" :bar-style="barStyle" :active-item-style="activeStyle" active-color="#ffffff " @change="change"> @@ -13,37 +13,43 @@
{{ areaName }} - 地区选择 + 地区选择
-
- 数据类型 +
+ 数据类型 + {{ $dict.getLabel('EP_registerInfoType', infoType) }}
-
-
+
+
- 李主任 - 返乡登记 + {{item.name}} + {{$dict.getLabel('EP_registerInfoType', item.infoType)}} +
+
+ + 核酸采样{{item.nucleicAcidSamplingCount}}次 + 核酸未采样
-
核酸待采样
-

429012********2341

-

1834912340

-
排查
- +

{{item.idNumberText}}

+

{{item.phone}}

+
排查
+
-
管控人:李在2023-05-04 09:23
+
管控人: {{item.controllerUserName}} {{item.createTime}}
- + +
@@ -54,9 +60,13 @@ export default { appName: '社区管理', data() { return { + areaId: '', + areaName: '', current: 1, keyword: '', currentTabs: 0, + infoType: '', + showTypeSelect: false, tabList: [ { name: '待管理', @@ -76,16 +86,22 @@ export default { }, activeStyle: { 'font-weight' : '400', - } + }, + list: [] } }, computed: { ...mapState(['user']), }, - watch: {}, onLoad() { this.areaId = this.user.areaId this.areaName = this.user.areaName + this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => { + this.getListInit() + }) + uni.$on('updateList', () => { + this.getListInit() + }) }, onShow() { document.title = '社区管理' @@ -93,29 +109,40 @@ export default { methods: { getListInit() { this.current = 1 - this.data = [] + this.list = [] this.getList() }, getList() { this.$http.post('/app/appepidemicpreventioncommunitymanagement/list', null, { - params: { size: 10, current: this.current, status: this.currentTabs, areaId: this.areaId, name: this.keyword }, + params: { size: 10, current: this.current, status: this.currentTabs, areaId: this.areaId, name: this.keyword, infoType: this.infoType }, }).then((res) => { if (res.code == 0) { - this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records + res.data.records.map((item) => { + item.idNumberText = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") + }) + this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records } }) }, - toAdd() { - uni.navigateTo({url: './Add'}) + toDetail(id) { + uni.navigateTo({url: `./Detail?id=${id}`}) + }, + toEdit(id) { + uni.navigateTo({url: `./Add?id=${id}`}) }, change(index) { this.keyword = '' this.currentTabs = index + this.getListInit() }, areaSelect(e) { this.areaId = e this.getListInit() }, + typeConfirm(e) { + this.infoType = e[0].value + this.getListInit() + } }, onReachBottom() { this.current++ @@ -193,7 +220,7 @@ export default { line-height: 20px; font-family: PingFangSC-Regular; font-size: 28px; - span { + .cir { display: inline-block; width: 8px; height: 8px; @@ -203,13 +230,13 @@ export default { } .status0 { color: #FFA938; - span { + .cir { background-color: #FFA938; } } .status0 { color: #1CCEB0; - span { + .cir { background-color: #1CCEB0; } } diff --git a/src/project/pingchang/AppCommunityManagement/Detail.vue b/src/project/pingchang/AppCommunityManagement/Detail.vue new file mode 100644 index 00000000..005256bd --- /dev/null +++ b/src/project/pingchang/AppCommunityManagement/Detail.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/src/project/pingchang/AppNucleicAcidSampling/Add.vue b/src/project/pingchang/AppNucleicAcidSampling/Add.vue index 576f9ce7..7e8a5f8a 100644 --- a/src/project/pingchang/AppNucleicAcidSampling/Add.vue +++ b/src/project/pingchang/AppNucleicAcidSampling/Add.vue @@ -1,63 +1,48 @@ @@ -91,26 +84,72 @@ import { mapState } from 'vuex' export default { - data() { + data() { return { - areaId: '', - areaName: '', - files: [] + id: '', + info: {}, + form: { + createUserName: '', + createUserPhone: '', + createTime: '' + }, + dateShow: false, + deteParams: {year: true, month: true, day: true, hour: true, minute: true, second: true}, } }, computed: { ...mapState(['user']), }, - onLoad() { - this.areaId = this.user.areaId - this.areaName = this.user.areaName + onLoad(option) { + this.id = option.id + this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy').then(() => { + this.id = option.id + this.getDetail() + }) + var myDate = new Date(); + this.form.createTime = `${myDate.getFullYear()}-${myDate.getMonth()+1}-${myDate.getDate()} ${myDate.getHours()}:${myDate.getMinutes()}:${myDate.getSeconds()}` }, onShow() { document.title = '核酸采样' }, methods: { - areaSelect(e) { - this.areaId = e + submit() { + if(!this.form.createUserName) { + return this.$u.toast('请输入采样人员') + } + if(!this.form.createUserPhone) { + return this.$u.toast('请输入联系方式') + } + if(this.form.createUserPhone && !/^1[0-9]{10,10}$/.test(this.form.createUserPhone)) { + return this.$u.toast("请输入正确的手机号码"); + } + if(!this.form.createTime) { + return this.$u.toast('请输入采样时间') + } + this.form.cmId = this.id + + this.$http.post(`/app/appepidemicpreventioncommunitymanagement/nucleicAcidSamplin`, this.form).then((res) => { + if (res.code == 0) { + this.$u.toast('提交成功') + uni.$emit('updateDetail') + uni.$emit('updateList') + uni.navigateBack() + } + }) + + }, + selectTime() { + this.dateShow = true + }, + dateConfirm(e) { + this.form.createTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}` + }, + getDetail() { + this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => { + if (res.code == 0) { + this.info = res.data + } + }) }, }, } diff --git a/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue b/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue index aa5875f1..76d54686 100644 --- a/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue +++ b/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue @@ -13,29 +13,32 @@
- + -
-
+
+
- 李主任 - 返乡登记 + {{item.name}} + {{$dict.getLabel('EP_registerInfoType', item.infoType)}} +
+
+ + 核酸采样{{item.nucleicAcidSamplingCount}}次 + 核酸未采样
-
核酸待采样
-

429012********2341

-

1834912340

-
采样
- +

{{item.idNumberText}}

+

{{item.phone}}

+
采样
- +
@@ -46,6 +49,9 @@ export default { appName: '核酸采样', data() { return { + areaId: '', + areaName: '', + current: 1, keyword: '', currentTabs: 0, tabList: [ @@ -64,57 +70,63 @@ export default { }, activeStyle: { 'font-weight' : '400', - } + }, + list: [] } }, computed: { ...mapState(['user']), }, - watch: {}, onLoad() { this.areaId = this.user.areaId this.areaName = this.user.areaName + this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => { + this.getListInit() + }) + uni.$on('updateList', () => { + this.getListInit() + }) }, onShow() { document.title = '核酸采样' }, methods: { + getListInit() { + this.current = 1 + this.list = [] + this.getList() + }, getList() { - this.$http.post('/app/appepidemicreportmember/list', null, { - params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword }, + this.$http.post('/app/appepidemicpreventioncommunitymanagement/list', null, { + params: { size: 10, current: this.current, queryType: this.currentTabs, areaId: this.areaId, name: this.keyword}, }).then((res) => { if (res.code == 0) { - this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records + res.data.records.map((item) => { + item.idNumberText = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") + }) + this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records } }) }, - - toDetail() { - uni.navigateTo({url: './Detail'}) + toDetail(id) { + uni.navigateTo({url: `./Detail?id=${id}`}) }, - toAdd() { - uni.navigateTo({url: './Add'}) + toEdit(id) { + uni.navigateTo({url: `./Add?id=${id}`}) }, change(index) { this.keyword = '' this.currentTabs = index + this.getListInit() }, areaSelect(e) { this.areaId = e - this.getList() - }, - - handerSearch(e) { - this.keyword = e - this.current = 1 - this.getList() - }, - - handerClear() { - this.keyword = '' - this.current = 1 - this.getList() + this.getListInit() }, + typeConfirm(e) { + this.infoType = e[0].value + this.getListInit() + } }, onReachBottom() { this.current++ @@ -179,7 +191,7 @@ export default { line-height: 20px; font-family: PingFangSC-Regular; font-size: 28px; - span { + .cir { display: inline-block; width: 8px; height: 8px; @@ -189,13 +201,13 @@ export default { } .status0 { color: #FFA938; - span { + .cir { background-color: #FFA938; } } .status0 { color: #1CCEB0; - span { + .cir { background-color: #1CCEB0; } } diff --git a/src/project/pingchang/AppNucleicAcidSampling/Detail.vue b/src/project/pingchang/AppNucleicAcidSampling/Detail.vue index 5a07315c..a4b77cdd 100644 --- a/src/project/pingchang/AppNucleicAcidSampling/Detail.vue +++ b/src/project/pingchang/AppNucleicAcidSampling/Detail.vue @@ -4,15 +4,15 @@
基本信息
管理区域
-
{{info.name}}
+
{{info.areaName}}
管理对象
-
{{info.idNumber}}
+
{{info.name}}
身份证号
-
{{info.idNumber}}
+
{{info.idNumberText}}
手机号码
@@ -22,30 +22,31 @@
居家状态
-
{{info.idNumber}}
+
{{$dict.getLabel('EP_homeStatus2', info.homeStatus)}}
隔离时间
-
{{info.idNumber}}
+
{{info.quarantineBeginTime}}至{{info.quarantineEndTime}}
隔离策略
-
{{info.idNumber}}
+
{{$dict.getLabel('EP_quarantineStrategy', info.quarantineStrategy)}}
-
-
核酸采集信息(已采样3次)
+
+
核酸采集信息(已采样{{info.nucleicAcidSamplingCount}}次)
-
+
- 采样人:张三 - 联系方式:18164065622 + 采样人:{{item.createUserName}} + 联系方式:{{item.createUserPhone}}
-

采样时间:2022-09-22 16:06:59

+

采样时间:{{item.createTime}}

+
@@ -57,7 +58,6 @@ export default { return { id: '', info: {}, - list: [] } }, computed: { ...mapState(['user']) }, @@ -65,36 +65,25 @@ export default { document.title = '采样信息' }, onLoad(option) { - // this.$dict.load('epidemicRecentPersonType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth').then(() => { - // this.id = option.id - // this.getDetail() - // this.getList() - // }) - // uni.$on('updateDetail', () => { - // this.getList() - // this.getDetail() - // }) + this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy').then(() => { + this.id = option.id + this.getDetail() + }) + uni.$on('updateDetail', () => { + this.getDetail() + }) }, methods: { - getList() { - this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`).then((res) => { + getDetail() { + this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => { if (res.code == 0) { - this.list = res.data.records + this.info = res.data + this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") } }) }, - getDetail() { - this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => { - if (res.code == 0) { - if(res.data.checkTime) { - res.data.checkTime = res.data.checkTime.substring(0, 10) - } - this.info = res.data - this.info.checkPhoto = JSON.parse(this.info.checkPhoto) - this.info.health = this.info.health.split(',') - this.info.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") - } - }) + toAdd() { + uni.navigateTo({ url: `./Add?id=${this.id}` }) }, callPhone(phone) { uni.makePhoneCall({phoneNumber: phone}) @@ -105,8 +94,8 @@ export default { current: img }) }, - toError() { - uni.navigateTo({url: `./ErrorInfo?id=${this.id}`}) + toEdit() { + uni.navigateTo({url: `./Add?id=${this.id}`}) } }, }