From 3e1bfbd7e09aaad1eab253e0b745c74c40cc63ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Tue, 2 Sep 2025 16:35:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?task=20=E9=93=B6=E5=86=9C=E5=BE=85=E5=8A=9E?= =?UTF-8?q?=E5=B7=B2=E5=8A=9E=E5=88=97=E8=A1=A8=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yinnong/doneCompleted/completedNew.vue | 59 ++++++++++--------- src/views/yinnong/doneCompleted/doneNew.vue | 54 ++++++++--------- 2 files changed, 57 insertions(+), 56 deletions(-) diff --git a/src/views/yinnong/doneCompleted/completedNew.vue b/src/views/yinnong/doneCompleted/completedNew.vue index 1da415d4..ef678d18 100644 --- a/src/views/yinnong/doneCompleted/completedNew.vue +++ b/src/views/yinnong/doneCompleted/completedNew.vue @@ -87,7 +87,7 @@ electronicSignature:"", queryParams: { pageNum: 1, - pageSize:10, + pageSize:20, systemType: null, deptId: null, }, @@ -99,13 +99,6 @@ this.getDicts("transfer_type").then(response => { this.transferTypeOptions = response.data; }); - this.getDicts("activity_business_type").then((response) => { - this.activityBusinessTypeOptions = response.data; - if(this.$route.query.activeName){ - this.activeName = this.$route.query.activeName - } - // this.getList(); - }); console.log(this.$route.query.fr) if(this.$route.query.fr){ this.$cookies.set("from",this.$route.query.fr,"0") @@ -128,29 +121,37 @@ }, getListReq(pageInfo) { //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize); - return new Promise((resolve, reject) => { this.$set(this.queryParams, "deptId", this.$store.state.user.deptId); - A_myTodoList(this.queryParams).then((response) => { - //console.info(_this.taskList.length) - response.rows.forEach(res => { - // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ - // res.tableName = '来自农村宅基地管理系统' - // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // } - if(this.activityBusinessTypeOptions){ - this.activityBusinessTypeOptions.map(t => { - if(t.dictValue === res.businessType){ - console.log('aaaaa') - res.businessType = t.dictLabel - this.taskList.push(res) - } - }); - } + + + return new Promise((resolve, reject) => { + this.getDicts("activity_business_type").then((response) => { + this.activityBusinessTypeOptions = response.data; + if(this.$route.query.activeName){ + this.activeName = this.$route.query.activeName + } + A_myTodoList(this.queryParams).then((response) => { + //console.info(_this.taskList.length) + response.rows.forEach(res => { + // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ + // res.tableName = '来自农村宅基地管理系统' + // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // } + if(this.activityBusinessTypeOptions){ + this.activityBusinessTypeOptions.map(t => { + if(t.dictValue === res.businessType){ + console.log('aaaaa') + res.businessType = t.dictLabel + this.taskList.push(res) + } + }); + } + }); + resolve(response); }); - resolve(response); }); }); }, diff --git a/src/views/yinnong/doneCompleted/doneNew.vue b/src/views/yinnong/doneCompleted/doneNew.vue index 66f47b82..c58161a2 100644 --- a/src/views/yinnong/doneCompleted/doneNew.vue +++ b/src/views/yinnong/doneCompleted/doneNew.vue @@ -82,7 +82,7 @@ total:0, queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 20, systemType: null, deptId: null, }, @@ -94,13 +94,7 @@ this.getDicts("transfer_type").then(response => { this.transferTypeOptions = response.data; }); - this.getDicts("activity_business_type").then((response) => { - this.activityBusinessTypeOptions = response.data; - if(this.$route.query.activeName){ - this.activeName = this.$route.query.activeName - } - // this.getList(); - }); + //console.log(this.$route.query.fr) if(this.$route.query.fr){ this.$cookies.set("from",this.$route.query.fr,"0") @@ -119,26 +113,32 @@ //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize) this.$set(this.queryParams, "deptId", this.$store.state.user.deptId); return new Promise((resolve, reject) => { - A_myDoneList(this.queryParams).then((response) => { - //console.info(_this.taskList.length) - response.rows.forEach(res => { - // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ - // res.tableName = '来自农村宅基地管理系统' - // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // } - if(this.activityBusinessTypeOptions){ - this.activityBusinessTypeOptions.map(t => { - if(t.dictValue === res.businessType){ - res.businessType = t.dictLabel - this.taskList.push(res) - } - }); - } + this.getDicts("activity_business_type").then((response) => { + this.activityBusinessTypeOptions = response.data; + if(this.$route.query.activeName){ + this.activeName = this.$route.query.activeName + } + A_myDoneList(this.queryParams).then((response) => { + //console.info(_this.taskList.length) + response.rows.forEach(res => { + // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ + // res.tableName = '来自农村宅基地管理系统' + // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // } + if(this.activityBusinessTypeOptions){ + this.activityBusinessTypeOptions.map(t => { + if(t.dictValue === res.businessType){ + res.businessType = t.dictLabel + this.taskList.push(res) + } + }); + } + }); + resolve(response); }); - resolve(response); }); }); }, From ee8d6484c35b9446a460431f2b0809c792989dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Tue, 2 Sep 2025 17:10:07 +0800 Subject: [PATCH 2/4] =?UTF-8?q?task=20=E9=93=B6=E5=86=9C=E5=BE=85=E5=8A=9E?= =?UTF-8?q?=E5=B7=B2=E5=8A=9E=E5=88=97=E8=A1=A8=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yinnong/doneCompleted/completedNew.vue | 50 ++++++++----------- src/views/yinnong/doneCompleted/doneNew.vue | 48 ++++++++---------- 2 files changed, 43 insertions(+), 55 deletions(-) diff --git a/src/views/yinnong/doneCompleted/completedNew.vue b/src/views/yinnong/doneCompleted/completedNew.vue index ef678d18..aeb106a8 100644 --- a/src/views/yinnong/doneCompleted/completedNew.vue +++ b/src/views/yinnong/doneCompleted/completedNew.vue @@ -90,6 +90,7 @@ pageSize:20, systemType: null, deptId: null, + translate_dict:'1' }, activityBusinessTypeOptions:[], images:['../../../../static/images/yinnong/banner_03.jpg'], @@ -99,6 +100,12 @@ this.getDicts("transfer_type").then(response => { this.transferTypeOptions = response.data; }); + this.getDicts("activity_business_type").then((response) => { + this.activityBusinessTypeOptions = response.data; + if(this.$route.query.activeName){ + this.activeName = this.$route.query.activeName + } + }); console.log(this.$route.query.fr) if(this.$route.query.fr){ this.$cookies.set("from",this.$route.query.fr,"0") @@ -121,37 +128,22 @@ }, getListReq(pageInfo) { //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize); - this.$set(this.queryParams, "deptId", this.$store.state.user.deptId); - - + this.$set(this.queryParams, "deptId", this.$store.state.user.deptId); return new Promise((resolve, reject) => { - this.getDicts("activity_business_type").then((response) => { - this.activityBusinessTypeOptions = response.data; - if(this.$route.query.activeName){ - this.activeName = this.$route.query.activeName - } - A_myTodoList(this.queryParams).then((response) => { - //console.info(_this.taskList.length) - response.rows.forEach(res => { - // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ - // res.tableName = '来自农村宅基地管理系统' - // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // } - if(this.activityBusinessTypeOptions){ - this.activityBusinessTypeOptions.map(t => { - if(t.dictValue === res.businessType){ - console.log('aaaaa') - res.businessType = t.dictLabel - this.taskList.push(res) - } - }); - } - }); - resolve(response); + A_myTodoList(this.queryParams).then((response) => { + //console.info(_this.taskList.length) + response.rows.forEach(res => { + // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ + // res.tableName = '来自农村宅基地管理系统' + // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // } + res.businessType = this.selectDictLabel(this.activityBusinessTypeOptions, res.businessType); + this.taskList.push(res) }); + resolve(response); }); }); }, diff --git a/src/views/yinnong/doneCompleted/doneNew.vue b/src/views/yinnong/doneCompleted/doneNew.vue index c58161a2..fb3dc810 100644 --- a/src/views/yinnong/doneCompleted/doneNew.vue +++ b/src/views/yinnong/doneCompleted/doneNew.vue @@ -64,6 +64,7 @@ import yinnongIndex from "../../yinnongIndex"; import {A_myDoneList, A_myTodoList} from "../../../api/audit/aauditpipeline"; import PagedList from "@/components/common/PagedList.vue"; + import {selectDictLabel} from "@/utils/utils"; export default { components: { @@ -85,6 +86,7 @@ pageSize: 20, systemType: null, deptId: null, + translate_dict:'1' }, activityBusinessTypeOptions:[], images:['../../../../static/images/yinnong/banner_02.jpg'], @@ -94,7 +96,12 @@ this.getDicts("transfer_type").then(response => { this.transferTypeOptions = response.data; }); - + this.getDicts("activity_business_type").then((response) => { + this.activityBusinessTypeOptions = response.data; + if(this.$route.query.activeName){ + this.activeName = this.$route.query.activeName + } + }); //console.log(this.$route.query.fr) if(this.$route.query.fr){ this.$cookies.set("from",this.$route.query.fr,"0") @@ -113,32 +120,21 @@ //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize) this.$set(this.queryParams, "deptId", this.$store.state.user.deptId); return new Promise((resolve, reject) => { - this.getDicts("activity_business_type").then((response) => { - this.activityBusinessTypeOptions = response.data; - if(this.$route.query.activeName){ - this.activeName = this.$route.query.activeName - } - A_myDoneList(this.queryParams).then((response) => { - //console.info(_this.taskList.length) - response.rows.forEach(res => { - // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ - // res.tableName = '来自农村宅基地管理系统' - // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ - // res.tableName = '来自银农直联审批管理系统' - // } - if(this.activityBusinessTypeOptions){ - this.activityBusinessTypeOptions.map(t => { - if(t.dictValue === res.businessType){ - res.businessType = t.dictLabel - this.taskList.push(res) - } - }); - } - }); - resolve(response); + + A_myDoneList(this.queryParams).then((response) => { + //console.info(_this.taskList.length) + response.rows.forEach(res => { + // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){ + // res.tableName = '来自农村宅基地管理系统' + // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ + // res.tableName = '来自银农直联审批管理系统' + // } + res.businessType = this.selectDictLabel(this.activityBusinessTypeOptions, res.businessType); + this.taskList.push(res) }); + resolve(response); }); }); }, From 1728168d92227ca3c214448c05e3531b519dd27f Mon Sep 17 00:00:00 2001 From: zzl <961867786@qq.com> Date: Wed, 10 Sep 2025 14:10:12 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=B0=9A=E5=BF=97=EF=BC=9A=E6=89=BF?= =?UTF-8?q?=E5=8C=85=E6=96=B9=E5=AE=B6=E5=BA=AD=E6=88=90=E5=91=98=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contractor/contractorFamilyDetail.vue | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/views/contracted/village/contractor/contractorFamilyDetail.vue b/src/views/contracted/village/contractor/contractorFamilyDetail.vue index dfe1cb91..ed1afb1e 100644 --- a/src/views/contracted/village/contractor/contractorFamilyDetail.vue +++ b/src/views/contracted/village/contractor/contractorFamilyDetail.vue @@ -170,6 +170,14 @@ + + + + + +

保存

@@ -183,6 +191,7 @@ import FieldSelect from "@/components/form/FieldSelect"; import FieldDatePicker from "@/components/form/FieldDatePicker"; import { getJtcy, addJtcy, updateJtcy } from "@/api/contracted/cbfjtcy"; + import {commonUpload} from "@/api/sunVillage_info/fixedAssets"; export default { name: "contractedVillageContractor", @@ -208,6 +217,8 @@ showNewAt: false, // 控制新建日期弹出层的显示和隐藏 minDate: new Date(1978, 0, 1), maxDate: new Date(2100, 11, 31), + cyImg:[], + cyImg2:[], }; }, created() { @@ -242,6 +253,14 @@ methods: { getDetail(){ getJtcy(this.$route.params.id).then(response => { + if (response.data.cyImg!='' && response.data.cyImg != null && response.data.cyImg != undefined){ + this.cyImg = response.data.cyImg.split(',') + this.cyImg2 = response.data.cyImg.split(',') + this.cyImg.map((rrr,i)=>{ + this.cyImg[i] = {url:'/api'+rrr} + }) + } + this.form = response.data; this.familyStatusText = this.selectDictLabel(this.familyStatusOptions, response.data.yhzgx); this.cyzjlxText = this.selectDictLabel(this.cyzjlxOptions, response.data.cyzjlx); @@ -292,6 +311,7 @@ } } this.$refs.formData.validate().then(() => { + this.form.cyImg = this.cyImg2.join(',') if (this.$route.params.id) { updateJtcy(this.form).then(response => { if (response.code == 200) { @@ -331,6 +351,32 @@ this.$notify({ type: 'danger', message: '请填写完整的表单项' }); }); }, + deleteFile(file,detail){ + this.cyImg2.splice(detail.index,1) + }, + afterRead(file) { + this.$toast.loading({ + message: "上传中...", + forbidClick: true, + duration: 0, + }); + // 此时可以自行将文件上传至服务器 + if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false + file.map(res=>{ + let params1 = new FormData(); + params1.append("file", res.file); + commonUpload(params1).then((r1) => { + this.cyImg2.push(r1.fileName); + }) + }) + }else{ + let params1 = new FormData(); + params1.append("file", file.file); + commonUpload(params1).then((r1) => { + this.cyImg2.push(r1.fileName); + }) + } + }, resetForm() { this.form = { deptId: null, @@ -353,6 +399,7 @@ wdyy: null, sfhdr: 'N', // householdStatus: '1', + cyImg: null }; this.cyzjlxText = '居民身份证'; } From f976a9d42838ef20aac2b5df0276512860b9e203 Mon Sep 17 00:00:00 2001 From: zzl <961867786@qq.com> Date: Thu, 18 Sep 2025 17:04:46 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=B8=83=E6=98=9F=E5=85=B3=EF=BC=9A?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sunVillage_info/resourceAdd.vue | 74 +++++--- src/views/sunVillage_info/resourceDetail.vue | 76 +++++--- src/views/sunVillage_info/resourceEdit.vue | 172 ++++++++++--------- 3 files changed, 187 insertions(+), 135 deletions(-) diff --git a/src/views/sunVillage_info/resourceAdd.vue b/src/views/sunVillage_info/resourceAdd.vue index 483942d8..140b4f14 100644 --- a/src/views/sunVillage_info/resourceAdd.vue +++ b/src/views/sunVillage_info/resourceAdd.vue @@ -100,31 +100,34 @@ /> - - - - + requiredx + remote-url="/open/zdzh/list/sys_normal_disable" + :on-remote-response="'data'"/> + + + + + + + + @@ -252,7 +255,7 @@ addType:'1', buildTime:this.format(new Date(),'yyyy-MM-dd'), useType:'1', - assetStatus:'1', + status:'0', isMin:'Y', isFormAsset:'N', quantity:1.00, @@ -268,7 +271,10 @@ netSalvage:0.00, fixedValue:null, perYearDepreciationValue:null, - depreciationValue:0 + depreciationValue:0, + utilizationStatus: "1", + useBy: null, + checkSituation: null, }, //资产类别 assetType:'房屋及建筑物', @@ -288,6 +294,9 @@ //资产状态 assetStatusOptions:[], showAssetStatus:false, + utilizationStatusOptions: [], + showUtilizationStatus:false, + utilizationStatus: '已利用', assetStatus:'正常', //资产状态 depreciationTypeOptions:[], @@ -311,21 +320,21 @@ }; }, created() { - this.houseGetDicts("resource_sort").then((response) => { + /*this.houseGetDicts("resource_sort").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.resourceSortOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } - }); + });*/ this.houseGetDicts("operation_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.operationTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); - this.houseGetDicts("add_type").then((response) => { + /*this.houseGetDicts("add_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.addTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } - }); + });*/ this.houseGetDicts("use_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.useTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); @@ -336,10 +345,15 @@ this.assetStatusOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); - this.houseGetDicts("depreciation_type").then((response) => { + /* this.houseGetDicts("depreciation_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.depreciationTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } + });*/ + this.getDicts("utilization_status").then(response => { + for(var i = 0 ; i < response.data.length ; i++){ + this.utilizationStatusOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); + } }); // this.houseGetDicts("resource_farming_type").then((response) => { // for(var i = 0 ; i < response.data.length ; i++){ @@ -426,7 +440,11 @@ this.form.status = data.value; this.showAssetStatus = false; }, - + onConfirmUtilizationStatus(data){ + this.utilizationStatus = data.text; + this.form.utilizationStatus = data.value; + this.showUtilizationStatus = false; + }, onSubmit(){ addResource(this.form).then(response => { if (response.code == 200){ diff --git a/src/views/sunVillage_info/resourceDetail.vue b/src/views/sunVillage_info/resourceDetail.vue index 32cbe823..8b1fc879 100644 --- a/src/views/sunVillage_info/resourceDetail.vue +++ b/src/views/sunVillage_info/resourceDetail.vue @@ -51,28 +51,36 @@ remote-url="/open/zdzh/list/operation_type" :on-remote-response="'data'"/> - + remote-url="/open/zdzh/list/use_type" + :on-remote-response="'data'"/> - + remote-url="/open/zdzh/list/sys_normal_disable" + :on-remote-response="'data'"/> + + + + + + @@ -203,7 +211,7 @@ addType:'1', buildTime:this.format(new Date(),'yyyy-MM-dd'), useType:'1', - assetStatus:'1', + status:'1', isMin:'Y', isFormAsset:'N', quantity:1.00, @@ -219,7 +227,10 @@ netSalvage:0.00, fixedValue:null, perYearDepreciationValue:null, - depreciationValue:0 + depreciationValue:0, + utilizationStatus: null, + useBy: null, + checkSituation: null, }, //资产类别 assetType:'房屋及建筑物', @@ -245,7 +256,9 @@ depreciationTypeOptions:[], showDepreciationType:false, depreciationType:'不折旧', - + utilizationStatusOptions: [], + showUtilizationStatus:false, + utilizationStatus: '已利用', showBuildTime:false, auditStatus:[], loading: false, @@ -263,21 +276,26 @@ }; }, created() { - this.houseGetDicts("resource_sort").then((response) => { + /* this.houseGetDicts("resource_sort").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.resourceSortOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } - }); + });*/ this.houseGetDicts("operation_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.operationTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); - this.houseGetDicts("add_type").then((response) => { + this.getDicts("utilization_status").then(response => { for(var i = 0 ; i < response.data.length ; i++){ - this.addTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); + this.utilizationStatusOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); + /*this.houseGetDicts("add_type").then((response) => { + for(var i = 0 ; i < response.data.length ; i++){ + this.addTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); + } + });*/ this.houseGetDicts("use_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.useTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); @@ -288,11 +306,11 @@ this.assetStatusOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); - this.houseGetDicts("depreciation_type").then((response) => { + /*this.houseGetDicts("depreciation_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.depreciationTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } - }); + });*/ this.houseGetDicts("resource_type").then((response) => { this.resourceTypeOptionsSelect = response.data; for(var i = 0 ; i < response.data.length ; i++){ @@ -394,7 +412,11 @@ this.form.status = data.value; this.showAssetStatus = false; }, - + onConfirmUtilizationStatus(data){ + this.utilizationStatus = data.text; + this.form.utilizationStatus = data.value; + this.showUtilizationStatus = false; + }, onSubmit(){ updateResource(this.form).then(response => { if (response.code == 200){ diff --git a/src/views/sunVillage_info/resourceEdit.vue b/src/views/sunVillage_info/resourceEdit.vue index e2c4c347..2de3c75a 100644 --- a/src/views/sunVillage_info/resourceEdit.vue +++ b/src/views/sunVillage_info/resourceEdit.vue @@ -77,51 +77,42 @@ remote-url="/open/zdzh/list/operation_type" :on-remote-response="'data'"/> - - - - + :rulesx="[{ required: true }]" + requiredx + remote-url="/open/zdzh/list/use_type" + :on-remote-response="'data'"/> - - - - + :rulesx="[{ required: true }]" + requiredx + remote-url="/open/zdzh/list/sys_normal_disable" + :on-remote-response="'data'"/> + + + + + + @@ -247,33 +238,40 @@ applicationList:[], applicationListSecond:[], form:{ - assetType:'151001', + assetType: null, operationType: null, - addType:'1', - buildTime:this.format(new Date(),'yyyy-MM-dd'), - useType:'1', - assetStatus:'1', - isMin:'Y', - isFormAsset:'N', - quantity:1.00, - depreciationSubject:"152:累计折旧", - fixedSubject:"153:固定资产清理", - depreciationFeeSubject:"541005:管理费用-折旧及修理费", - depreciationType:'3', - expectedYears:1, - depreciationYears:0, - netValue:0.00, - originalValue:0.00, - residualsRate:1, - netSalvage:0.00, - fixedValue:null, - perYearDepreciationValue:null, - depreciationValue:0 + addType: null, + buildTime: null, + useType: null, + assetStatus: null, + isMin: null, + isFormAsset: null, + quantity: null, + depreciationSubject: null, + fixedSubject: null, + depreciationFeeSubject:null, + depreciationType: null, + expectedYears: null, + depreciationYears: null, + netValue: null, + originalValue: null, + residualsRate: null, + netSalvage: null, + fixedValue: null, + perYearDepreciationValue: null, + depreciationValue: null, + utilizationStatus: null, + useBy: null, + checkSituation: null, }, //资产类别 assetType:'房屋及建筑物', showAssetType:false, resourceSortOptions:[], + // 利用状况 + utilizationStatusOptions: [], + showUtilizationStatus:false, + utilizationStatus: '已利用', //经营属性 operationType:'经营性', showOperationType:false, @@ -312,21 +310,26 @@ }; }, created() { - this.houseGetDicts("resource_sort").then((response) => { + /*this.houseGetDicts("resource_sort").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.resourceSortOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } - }); + });*/ this.houseGetDicts("operation_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.operationTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); - this.houseGetDicts("add_type").then((response) => { + this.getDicts("utilization_status").then(response => { for(var i = 0 ; i < response.data.length ; i++){ - this.addTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); + this.utilizationStatusOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); +/* this.houseGetDicts("add_type").then((response) => { + for(var i = 0 ; i < response.data.length ; i++){ + this.addTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); + } + });*/ this.houseGetDicts("use_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.useTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); @@ -337,11 +340,11 @@ this.assetStatusOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } }); - this.houseGetDicts("depreciation_type").then((response) => { + /*this.houseGetDicts("depreciation_type").then((response) => { for(var i = 0 ; i < response.data.length ; i++){ this.depreciationTypeOptions.push({text:response.data[i].dictLabel,value:response.data[i].dictValue}); } - }); + });*/ this.houseGetDicts("resource_type").then((response) => { this.resourceTypeOptionsSelect = response.data; for(var i = 0 ; i < response.data.length ; i++){ @@ -358,22 +361,29 @@ this.houseGetDicts("resources_unused_type").then((response) => { this.unusedResourceTypeOptionsSelect = response.data; }); + this.getDetail(); }, methods: { getDetail(){ getResource(this.$route.query.id).then(response => { + if (response.code == 200) { + this.form = response.data; - this.form = response.data; - this.resourceType = this.selectDictLabel(this.resourceTypeOptionsSelect, response.data.resourceType); - if(response.data.resourceType == 1){ - this.resourceSort = this.selectDictLabel(this.farmingResourceTypeOptionsSelect, response.data.resourceSort); - } - if(response.data.resourceType == 2){ - this.resourceSort = this.selectDictLabel(this.buildResourceTypeOptionsSelect, response.data.resourceSort); - } - if(response.data.resourceType == 3){ - this.resourceSort = this.selectDictLabel(this.unusedResourceTypeOptionsSelect, response.data.resourceSort); + this.resourceType = this.selectDictLabel(this.resourceTypeOptionsSelect, response.data.resourceType); + if (response.data.resourceType == 1) { + this.resourceSort = this.selectDictLabel(this.farmingResourceTypeOptionsSelect, response.data.resourceSort); + } + if (response.data.resourceType == 2) { + this.resourceSort = this.selectDictLabel(this.buildResourceTypeOptionsSelect, response.data.resourceSort); + } + if (response.data.resourceType == 3) { + this.resourceSort = this.selectDictLabel(this.unusedResourceTypeOptionsSelect, response.data.resourceSort); + } + //this.operationType = this.selectDictLabel(this.operationTypeOptions, response.data.operationType); + //this.useType = this.selectDictLabel(this.useTypeOptions, response.data.useType); + //this.assetStatus = this.selectDictLabel(this.assetStatusOptions, response.data.status); + //this.utilizationStatus = this.selectDictLabel(this.utilizationStatusOptions, response.data.utilizationStatus); } }); @@ -425,8 +435,6 @@ }); } - - }, onConfirmResourceSort(data){ this.resourceSort = data.text; @@ -443,7 +451,11 @@ this.form.status = data.value; this.showAssetStatus = false; }, - + onConfirmUtilizationStatus(data){ + this.utilizationStatus = data.text; + this.form.utilizationStatus = data.value; + this.showUtilizationStatus = false; + }, onSubmit(){ updateResource(this.form).then(response => { if (response.code == 200){