From 597f156ba7b9d62861eff02d38c8569be11abb5c Mon Sep 17 00:00:00 2001
From: yujk <990961482@qq.com>
Date: Thu, 3 Mar 2022 16:32:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/homesteadSurvey/index.js | 9 ++
src/components/circleProccess.vue | 25 +++--
src/views/homesteadSurvey/add.vue | 155 ++++++++++++++++++++++------
src/views/homesteadSurvey/index.vue | 88 +++++++++++++---
src/views/homesteadSurvey/list.vue | 26 ++---
5 files changed, 234 insertions(+), 69 deletions(-)
diff --git a/src/api/homesteadSurvey/index.js b/src/api/homesteadSurvey/index.js
index 1e2a1812..743fd338 100644
--- a/src/api/homesteadSurvey/index.js
+++ b/src/api/homesteadSurvey/index.js
@@ -75,3 +75,12 @@ export function sysConfig(query) {
params: query
})
}
+
+// 查询数据调查任务列表
+export function userList() {
+ return request({
+ url: '/houseSurvey/task/userList',
+ method: 'get'
+ })
+}
+
diff --git a/src/components/circleProccess.vue b/src/components/circleProccess.vue
index f620ec77..be0de655 100644
--- a/src/components/circleProccess.vue
+++ b/src/components/circleProccess.vue
@@ -35,11 +35,17 @@ export default {
let cc = this.counts
if(this.counts>0&&this.counts<99){
cc+=1
- }
+ }
let time_canvas = document.getElementById(this.ids);
time_canvas.width = document.documentElement.clientWidth/6;
time_canvas.height = document.documentElement.clientWidth/6;
- this.drawMain(time_canvas, cc, "#85d824", "#eef7e4");
+ if(this.counts<50){
+ this.drawMain(time_canvas, cc, "#FA5353", "#eef7e4");
+ }else if(this.counts<100){
+ this.drawMain(time_canvas, cc, "#22B7F2", "#eef7e4");
+ }else{
+ this.drawMain(time_canvas, cc, "#85d824", "#eef7e4");
+ }
},
methods: {
drawMain(drawing_elem, percent, forecolor, bgcolor){
@@ -96,10 +102,17 @@ export default {
text(n,forecolor) {
this.context.save(); //save和restore可以保证样式属性只运用于该段canvas元素
this.context.fillStyle = forecolor;
- var font_size = document.documentElement.clientWidth/35;
- this.context.font = font_size + "px arial";
- var text_width = this.context.measureText(n.toFixed(0) + "%").width;
- this.context.fillText(n.toFixed(0) + "%", this.center_x - text_width / 2, this.center_y + font_size / 2.5);
+ if(this.counts==100){
+ var font_size = document.documentElement.clientWidth/15;
+ this.context.font = font_size + "px arial";
+ var text_width = this.context.measureText(n.toFixed(0) + "%").width;
+ this.context.fillText("✔", this.center_x - text_width / 6, this.center_y + font_size / 2.5);
+ }else{
+ var font_size = document.documentElement.clientWidth/35;
+ this.context.font = font_size + "px arial";
+ var text_width = this.context.measureText(n.toFixed(0) + "%").width;
+ this.context.fillText(n.toFixed(0) + "%", this.center_x - text_width / 2, this.center_y + font_size / 2.5);
+ }
this.context.restore();
}
}
diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue
index c834846d..b01c5547 100644
--- a/src/views/homesteadSurvey/add.vue
+++ b/src/views/homesteadSurvey/add.vue
@@ -468,9 +468,9 @@
{{item.nhdm}}
- 查看使用权人信息
- 查看户内成员信息
-
+ 查看使用权人
+ 查看户主信息
+ 查看成员信息
@@ -1357,8 +1357,6 @@
name="房屋编码"
label="房屋编码"
placeholder="房屋编码"
- required
- :rules="[{ required: true, message: '房屋编码不能为空' }]"
/>
{
- if(response.rows.length>0){
- this.nhform.suyqrdm = response.rows[0].suyqrdm
- }else{
- this.nhform.suyqrdm = this.form.suyqrdm
+ if(item==""){
+ let params = {
+ "deptId" : this.item.deptId
}
- });
+ this.nhform={
+ "suyqrdm":null,
+ "deptId":this.item.deptId,
+ "hzzjlx":'01',
+ "hzzjlxName":"身份证",
+ "hyzk":'02',
+ "occupation":'1',
+ "occupationName":'务农',
+ "jzqk":'3',
+ "jzqkName":'常年居住',
+ "jzhcssfyzf":'1',
+ "jzhcssfyzfName":'无住房',
+ "zqtczsfyzf":'Y',
+ "sfbccm":'Y',
+ "sfpkh":'N',
+ "sfwbh":'N',
+ "sjly":'07',
+ "sjlyName":'农村集体产权制度改革',
+ }
+ listSuyqr(params).then((response) => {
+ if(response.rows.length>0){
+ this.nhform.suyqrdm = response.rows[0].suyqrdm
+ }else{
+ this.nhform.suyqrdm = this.form.suyqrdm
+ }
+ });
+ }else{
+ let params = {
+ "deptId" : this.item.deptId,
+ nhdm:item.nhdm
+ }
+ listNh(params).then((response) => {
+ this.nhform = response.rows[0]
+ if(this.nhform.hzzjlx==null||this.nhform.hzzjlx==''){
+ this.nhform.hzzjlx = '01'
+ this.nhform.hzzjlxName = '身份证'
+ }
+ if(this.nhform.hyzk==null||this.nhform.hyzk==''){
+ this.nhform.hyzk = '02'
+ }
+ if(this.nhform.occupation==null||this.nhform.occupation==''){
+ this.nhform.occupation = '1'
+ this.nhform.occupationName = '务农'
+ }
+ if(this.nhform.jzqk==null||this.nhform.jzqk==''){
+ this.nhform.jzqk = '3'
+ this.nhform.jzqkName = '常年居住'
+ }
+ if(this.nhform.jzhcssfyzf==null||this.nhform.jzhcssfyzf==''){
+ this.nhform.jzhcssfyzf = '1'
+ this.nhform.jzhcssfyzfName = '无住房'
+ }
+ if(this.nhform.zqtczsfyzf==null||this.nhform.zqtczsfyzf==''){
+ this.nhform.zqtczsfyzf = 'Y'
+ }
+ if(this.nhform.sfbccm==null||this.nhform.sfbccm==''){
+ this.nhform.sfbccm = 'Y'
+ }
+ if(this.nhform.sfpkh==null||this.nhform.sfpkh==''){
+ this.nhform.sfpkh = 'N'
+ }
+ if(this.nhform.sfwbh==null||this.nhform.sfwbh==''){
+ this.nhform.sfwbh = 'N'
+ }
+ if(this.nhform.sjly==null||this.nhform.sjly==''){
+ this.nhform.sjly = '07'
+ this.nhform.sjlyName = '农村集体产权制度改革'
+ }
+
+ this.jzhcssfyzfOptions.map(res => {
+ if(res.dictValue == this.nhform.jzhcssfyzf){
+ this.nhform.jzhcssfyzfName = res.dictLabel
+ }
+ })
+ this.zjlxOptions.map(res => {
+ if(res.dictValue == this.nhform.hzzjlx){
+ this.nhform.hzzjlxName = res.dictLabel
+ }
+ })
+ this.occupationOptions.map(res => {
+ if(res.dictValue == this.nhform.occupation){
+ this.nhform.occupationName = res.dictLabel
+ }
+ })
+ this.jzqkOptions.map(res => {
+ if(res.dictValue == this.nhform.jzqk){
+ this.nhform.jzqkName = res.dictLabel
+ }
+ })
+ this.sjlyOptions.map(res => {
+ if(res.dictValue == this.nhform.sjly){
+ this.nhform.sjlyName = res.dictLabel
+ }
+ })
+ });
+ }
+
},
getZjd() {
let _this = this
@@ -4180,6 +4250,22 @@
},
// 户主保存
onSubmitnh(){
+ if(this.nhform.id!=null){
+ updateNh(this.nhform).then(
+ response => {
+ let _this =this
+ this.$toast({
+ icon: 'success', // 找到自己需要的图标
+ message: '修改成功',
+ duration:"1000",
+ onClose:function(){
+ _this.shownh = false
+ _this.getNh()
+ }
+ })
+ }
+ );
+ }else{
this.nhform.deptId = this.item.deptId
addNh(this.nhform).then(
response => {
@@ -4194,6 +4280,7 @@
})
}
);
+ }
},
// 自然幢保存
onSubmitzrz(){
diff --git a/src/views/homesteadSurvey/index.vue b/src/views/homesteadSurvey/index.vue
index 4755a8b2..690575e0 100644
--- a/src/views/homesteadSurvey/index.vue
+++ b/src/views/homesteadSurvey/index.vue
@@ -64,14 +64,23 @@
-
-
+
+
+ {{item.deptName}}
+
+ {{item.confirmZjdzdNumber}}/{{item.reportZjdzdNumber}}
+
+
+
- 开始时间:{{item.planBeginTime}}
结束时间:{{item.planEndTime}}
+ {{item.planBeginTime}}~{{item.planEndTime}}
+
+ {{taskExecutorChange(item)}}
@@ -81,13 +90,20 @@
-
+
+ {{item.deptName}}
+ {{item.confirmZjdzdNumber}}/{{item.reportZjdzdNumber}}
+
+
- 开始时间:{{item.planBeginTime}}
结束时间:{{item.planEndTime}}
+ {{item.planBeginTime}}~{{item.planEndTime}}
+
+ {{taskExecutorChange(item)}}
@@ -97,13 +113,20 @@
-
+
+ {{item.deptName}}
+ {{item.confirmZjdzdNumber}}/{{item.reportZjdzdNumber}}
+
+
- 开始时间:{{item.planBeginTime}}
结束时间:{{item.planEndTime}}
+ {{item.planBeginTime}}~{{item.planEndTime}}
+
+ {{taskExecutorChange(item)}}
@@ -116,7 +139,7 @@