933c8c1c by xiaomiao

登记簿补录接口字段调整

1 parent 7990d2b4
This file is too large to display.
No preview for this file type
...@@ -17,56 +17,53 @@ export function addRepairRecord (data) { ...@@ -17,56 +17,53 @@ export function addRepairRecord (data) {
17 data 17 data
18 }) 18 })
19 } 19 }
20
21 /** 20 /**
22 * @description: 删除流程 21 * @description: 删除流程
23 * @param {*} data 22 * @param {*} params
24 * @author: renchao 23 * @author: renchao
25 */ 24 */
26 export function deleteFlow (data) { 25 export function deleteFlow (params) {
27 return request({ 26 return request({
28 url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow', 27 url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow',
29 method: 'post', 28 method: 'get',
30 data 29 params:params
31 }) 30 })
32 } 31 }
33 32
34 /** 33 /**
35 * @description: 删除补录记录 34 * @description: 删除补录记录
36 * @param {*} data 35 * @param {*} params
37 * @author: renchao 36 * @author: renchao
38 */ 37 */
39 export function deleteRepairRecord (data) { 38 export function deleteRepairRecord (params) {
40 return request({ 39 return request({
41 url: SERVER.SERVERAPI + '/rest/djbRepair/deleteRepairRecord', 40 url: SERVER.SERVERAPI + '/rest/djbRepair/deleteRepairRecord?bsmRepair='+params,
42 method: 'post', 41 method: 'get',
43 data
44 }) 42 })
45 } 43 }
46 44
47 /** 45 /**
48 * @description: 初始化内容 46 * @description: 初始化内容
49 * @param {*} data 47 * @param {*} params
50 * @author: renchao 48 * @author: renchao
51 */ 49 */
52 export function init (data) { 50 export function init (params) {
53 return request({ 51 return request({
54 url: SERVER.SERVERAPI + '/rest/djbRepair/init', 52 url: SERVER.SERVERAPI + '/rest/djbRepair/init?bsmRepair='+params,
55 method: 'post', 53 method: 'get',
56 data
57 }) 54 })
58 } 55 }
59 56
60 /** 57 /**
61 * @description: 左侧菜单集合 58 * @description: 左侧菜单集合
62 * @param {*} data 59 * @param {*} params
63 * @author: renchao 60 * @author: renchao
64 */ 61 */
65 export function leftMenubl (data) { 62 export function leftMenubl (params) {
66 return request({ 63 return request({
67 url: SERVER.SERVERAPI + '/rest/djbRepair/leftMenu', 64 url: SERVER.SERVERAPI + '/rest/djbRepair/leftMenu?bsmSlsq='+params,
68 method: 'post', 65 method: 'get',
69 data 66 params
70 }) 67 })
71 } 68 }
72 69
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
44 <script> 44 <script>
45 import { mapGetters } from 'vuex' 45 import { mapGetters } from 'vuex'
46 import { leftMenu } from "@/api/fqsq.js" 46 import { leftMenu } from "@/api/fqsq.js"
47 import { deleteRepairRecord } from "@/api/djbbl.js"
47 import { leftMenubl } from "@/api/djbbl.js" 48 import { leftMenubl } from "@/api/djbbl.js"
48 import { deleteSlbdcdy } from "@/api/ywbl.js"; 49 import { deleteSlbdcdy } from "@/api/ywbl.js";
49 import { getBdcqljqtsx } from "@/api/registerBook.js"; 50 import { getBdcqljqtsx } from "@/api/registerBook.js";
...@@ -110,10 +111,11 @@ import { loadTreeData, getNode } from "./djbFrameData.js"; ...@@ -110,10 +111,11 @@ import { loadTreeData, getNode } from "./djbFrameData.js";
110 }) 111 })
111 this.getleftMenubl() 112 this.getleftMenubl()
112 }, 113 },
114 // 获取右侧菜单
113 getleftMenubl(){ 115 getleftMenubl(){
114 var formdata = new FormData(); 116 // var formdata = new FormData();
115 formdata.append("bsmSlsq", this.bsmSlsq); 117 // formdata.append("bsmSlsq", this.bsmSlsq);
116 leftMenubl(formdata).then((res) => { 118 leftMenubl(this.bsmSlsq).then((res) => {
117 this.supplementarylist=res.result; 119 this.supplementarylist=res.result;
118 } 120 }
119 ) 121 )
...@@ -124,23 +126,33 @@ import { loadTreeData, getNode } from "./djbFrameData.js"; ...@@ -124,23 +126,33 @@ import { loadTreeData, getNode } from "./djbFrameData.js";
124 }, 126 },
125 //申请单元点击事件 127 //申请单元点击事件
126 unitClick (index) { 128 unitClick (index) {
127 this.$parent.currentSelectProps=this.supplementarylist[index]; 129 this.currentSelectProps=this.supplementarylist[index];
128 this.$parent.tabset(); 130 // this.$parent.tabset();
129 // console.log("this.currentSelectProps", this.supplementarylist[index]); 131 // console.log("this.currentSelectProps", this.supplementarylist[index]);
130 // this.currentSelectProps.batchOperation = false; 132 // this.currentSelectProps.batchOperation = false;
131 // this.activeIndex = index.toString(); 133 // this.activeIndex = index.toString();
132 // //选中表单传递数据 134 // //选中表单传递数据
133 // this.$emit('getCurrentSelectProps', this.currentSelectProps); 135 this.$emit('getCurrentSelectProps', this.currentSelectProps);
134 // this.$parent.stepForm(index); 136 // this.$parent.stepForm(index);
135 // this.$store.dispatch('user/refreshPage', false); 137 // this.$store.dispatch('user/refreshPage', false);
136 }, 138 },
137 //登记簿点击事件 139 //登记簿点击事件
138 djbClick () { 140 djbClick () {
139 console.log("this.currentSelectProps",this.currentSelectProps); 141 this.loadBdcdylist ()
142 // console.log("this.currentSelectProps",this.currentSelectProps);
140 this.currentSelectProps.batchOperation = true; 143 this.currentSelectProps.batchOperation = true;
141 this.$parent.getdjblist() 144 this.$parent.getdjblist()
142 145
143 }, 146 },
147 // 删除补录记录
148 handleDel(row){
149 console.log("是",row);
150 deleteRepairRecord(row.bsmRepair).then((res) => {
151 if (res.code === 200) {
152 alert("删除成功")
153 }
154 })
155 },
144 //补录信息点击事件 156 //补录信息点击事件
145 blxxClick () { 157 blxxClick () {
146 this.$parent.tabset() 158 this.$parent.tabset()
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
52 </template> 52 </template>
53 <script> 53 <script>
54 import { mapGetters } from "vuex"; 54 import { mapGetters } from "vuex";
55 import { init } from "@/api/djbbl.js"; 55 import { init } from "@/api/djbbl.js"
56 export default { 56 export default {
57 props: { 57 props: {
58 currentSelectProps: { 58 currentSelectProps: {
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
60 default: () => {}, 60 default: () => {},
61 }, 61 },
62 }, 62 },
63
63 data() { 64 data() {
64 return { 65 return {
65 //传递参数 66 //传递参数
...@@ -85,8 +86,7 @@ export default { ...@@ -85,8 +86,7 @@ export default {
85 ...mapGetters(["dictData"]), 86 ...mapGetters(["dictData"]),
86 }, 87 },
87 created() { 88 created() {
88 this.init2(); 89 this.init()
89 //console.log("this.propsParam", this.propsParam);
90 // this.clmlInitList(1) 90 // this.clmlInitList(1)
91 }, 91 },
92 mounted() { 92 mounted() {
...@@ -110,8 +110,20 @@ export default { ...@@ -110,8 +110,20 @@ export default {
110 }, 110 },
111 111
112 methods: { 112 methods: {
113 init2() { 113 init() {
114 console.log("this.currentSelectProps", this.currentSelectProps); 114 init(this.propsParam.bsmRepair).then((res) => {
115 if (res.code === 200) {
116 console.log("/rest/djbRepair/init",res);
117 // this.tableData = res.result;
118 // if (this.tableData.length < datas.columns().emptycolNum) {
119 // this.emptycolNum =
120 // datas.columns().emptycolNum - this.tableData.length;
121 // } else {
122 // this.emptycolNum = 0;
123 // }
124 }
125 });
126
115 }, 127 },
116 // 受理信息保存 128 // 受理信息保存
117 slxxsubmitForm() { 129 slxxsubmitForm() {
......
...@@ -26,7 +26,6 @@ export default { ...@@ -26,7 +26,6 @@ export default {
26 getHomeNoticeList().then(res => { 26 getHomeNoticeList().then(res => {
27 if (res.result) { 27 if (res.result) {
28 this.noticeList = res.result.noticeList 28 this.noticeList = res.result.noticeList
29 console.log("this.noticeList11111111111111111111111111111111111",this.noticeList);
30 } 29 }
31 }) 30 })
32 }, 31 },
......
...@@ -124,15 +124,19 @@ export default { ...@@ -124,15 +124,19 @@ export default {
124 methods: { 124 methods: {
125 getCurrentSelectProps (val) { 125 getCurrentSelectProps (val) {
126 this.currentSelectProps = val 126 this.currentSelectProps = val
127 if(this.currentSelectProps.bsmRepair){
128 this.tabset()
129 }else{
127 this.getdjblist() 130 this.getdjblist()
131 }
132
128 }, 133 },
129 // 获取登记簿列表 134 // 获取渲染登记簿列表
130 getdjblist(){ 135 getdjblist(){
131 getBdcqljqtsx({ 136 getBdcqljqtsx({
132 bdcdyid: this.currentSelectProps.bdcdyid, 137 bdcdyid: this.currentSelectProps.bdcdyid,
133 bdcdyh: this.currentSelectProps.bdcdyh, 138 bdcdyh: this.currentSelectProps.bdcdyh,
134 }).then((res) => { 139 }).then((res) => {
135 console.log("登记簿列表",res);
136 if (res.code === 200) { 140 if (res.code === 200) {
137 this.treedata = loadTreeData(res.result, this.bdcdyh); 141 this.treedata = loadTreeData(res.result, this.bdcdyh);
138 this.$nextTick(function () { 142 this.$nextTick(function () {
...@@ -154,10 +158,43 @@ export default { ...@@ -154,10 +158,43 @@ export default {
154 }, 200) 158 }, 200)
155 159
156 }, 160 },
161 // // 获取渲染补录信息列表
162 // getdjblist(){
163 // console.log("执行1",this.currentSelectProps);
164 // getBdcqljqtsx({
165 // bdcdyid: this.currentSelectProps.bdcdyid,
166 // bdcdyh: this.currentSelectProps.bdcdyh,
167 // }).then((res) => {
168 // if (res.code === 200) {
169 // this.treedata = loadTreeData(res.result, this.bdcdyh);
170 // this.$nextTick(function () {
171 // this.defaultNode = getNode(this.currentSelectProps.qllx, { linShi: 0, xianShi: 0, liShi: 0 }, "");
172 // this.tabName =this.defaultNode.id; //data[0].id为默认选中的节点
173 // });
174 // }
175 // });
176
177 // setTimeout(() => {
178 // let settree=JSON.parse(JSON.stringify(this.treedata))
179 // this.tabdata=[...settree,...settree[1].children[0].children[0].children]
180 // this.tabdata.forEach((item,index,arr) => {
181 // arr[index].name=item.label;
182 // arr[index].value=item.id
183 // })
184 // this.tabList=this.tabdata
185 // //console.log("登记簿列表",this.tabList);
186 // }, 200)
187
188 // },
189
190 // 增加补录记录
157 addRepairRecord(){ 191 addRepairRecord(){
158 addRepairRecord({ 192 addRepairRecord({
159 bdcdyid: this.currentSelectProps.bdcdyid, 193 bsmQlxx:"a8a979f688fc9afc6ca7f0c124f64ede",
160 bdcdyh: this.currentSelectProps.bdcdyh, 194 bsmSlsq:this.bsmSlsq,
195 bsmSldy:this.currentSelectProps.bsmSldy,
196 operate:"C",
197 qllx:this.currentSelectProps.qllx
161 }).then((res) => { 198 }).then((res) => {
162 console.log("添加补录记录",res); 199 console.log("添加补录记录",res);
163 if (res.code === 200) { 200 if (res.code === 200) {
......