diff --git a/src/api/homestead/index.js b/src/api/homestead/index.js index e9c7866f..644e7dd0 100644 --- a/src/api/homestead/index.js +++ b/src/api/homestead/index.js @@ -91,6 +91,14 @@ export function treeselectByUser(query) { params: query }) } +//获取区、镇、村地区 +export function bookListByDeptId(query) { + return request({ + url: '/finance/book/listByDeptId', + method: 'get', + params: query + }) +} //获取村的经纬度 diff --git a/src/api/onlineHome/bankAgriculture/paymentApproval.js b/src/api/onlineHome/bankAgriculture/paymentApproval.js index 58e891bd..02e0e2f0 100644 --- a/src/api/onlineHome/bankAgriculture/paymentApproval.js +++ b/src/api/onlineHome/bankAgriculture/paymentApproval.js @@ -89,7 +89,14 @@ export function listProject(query) { params: query }) } - +// 通过外部信息查询合同信息 +export function getInfoto(query) { + return request({ + url: '/contraction/info/selectInfoByOutId/', + method: 'get', + params: query + }) +} // 新增工程项目关联关系 export function addProjectto(data) { return request({ @@ -98,7 +105,14 @@ export function addProjectto(data) { data: data }) } - +// 新增关联合同 +export function addInfoto(data) { + return request({ + url: '/contraction/info/relationAdd', + method: 'post', + data: data + }) +} // 提交审批 export function customSubmit(id) { return request({ @@ -286,7 +300,15 @@ export function listAccount(query) { // 查询村虚拟出纳账户设置列表 export function listAccount1(query) { return request({ - url: '/cashier/account/list1', + url: '/cashier/account/list', + method: 'get', + params: query + }) +} +// 查询合同信息列表 +export function listInfo(query) { + return request({ + url: '/contraction/info/list', method: 'get', params: query }) diff --git a/src/api/onlineHome/done.js b/src/api/onlineHome/done.js index 049aec0a..7ffd95dd 100644 --- a/src/api/onlineHome/done.js +++ b/src/api/onlineHome/done.js @@ -36,3 +36,11 @@ export function changeDept(query) { params: query }) } +// 切换账套 +export function changeBook(query) { + return request({ + url: '/system/user/changeBook', + method: 'get', + params: query + }) +} diff --git a/src/utils/request.js b/src/utils/request.js index f10a2b07..2aae44a6 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -76,7 +76,9 @@ service.interceptors.response.use(res => { window.location.href = '/authenticRight/login'; } else if (window.location.href.indexOf('homesteadSurvey')!= -1) { window.location.href = '/homesteadLogin'; - } else { + } else if (window.location.href.indexOf('onlineHome')!= -1) { + window.location.href = '/onlineHomeLogin'; + }else { // 农村宅基地调查 window.location.href = '/homesteadLogin'; diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 36c228f3..f2795cf4 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -295,7 +295,7 @@ { if(r.rows.length>0){ this.$toast({ - icon: 'erroe', // 找到自己需要的图标 + type: 'fail',// 找到自己需要的图标 message: '无法删除,此自然幢下有房屋信息!', duration:"1000", onClose:function(){ @@ -4357,8 +4357,9 @@ }); }, showPopupnh(item){ - this.shownh = true; + if(item==""){ + this.shownh = true; let params = { "deptId" : this.item.deptId } @@ -4396,68 +4397,78 @@ 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 - } - }) + if(response.rows.length>0){ + this.nhform = response.rows[0] + this.shownh = true; + 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 + } + }) + }else{ + this.$toast({ + type: 'fail', // 找到自己需要的图标 + message: '无对应农户信息,请先新增户主信息后再进行关联!', + duration:"3000", + onClose:function(){ + } + }) + } }); } diff --git a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue index 209e3b78..ea95550c 100644 --- a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue +++ b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue @@ -60,7 +60,7 @@ diff --git a/src/views/onlineHome/threeAffairs.vue b/src/views/onlineHome/threeAffairs.vue index f7269d78..23426e31 100644 --- a/src/views/onlineHome/threeAffairs.vue +++ b/src/views/onlineHome/threeAffairs.vue @@ -6,7 +6,7 @@ @click-left="$router.back(-1)" /> - + @@ -22,7 +22,7 @@ - + @@ -38,7 +38,7 @@ - + diff --git a/src/views/onlineHome/workbench.vue b/src/views/onlineHome/workbench.vue index d14d7c4c..cb117b17 100644 --- a/src/views/onlineHome/workbench.vue +++ b/src/views/onlineHome/workbench.vue @@ -20,7 +20,18 @@ @@ -360,7 +371,7 @@
-

信用卡转账

+

公务卡转账