ed5dfa74 by renchao@pashanhoo.com

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents f96d4091 f27b61d3
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-28 15:49:38 4 * @LastEditTime: 2023-07-28 15:49:38
5 */ 5 */
...@@ -12,6 +12,7 @@ const getters = { ...@@ -12,6 +12,7 @@ const getters = {
12 token: state => state.user.token, 12 token: state => state.user.token,
13 avatar: state => state.user.avatar, 13 avatar: state => state.user.avatar,
14 name: state => state.user.name, 14 name: state => state.user.name,
15 userInfo: state => state.user.userInfo,
15 userData: state => state.user.userData, 16 userData: state => state.user.userData,
16 permission_routes: state => state.permission.routes, 17 permission_routes: state => state.permission.routes,
17 addRoutes: state => state.permission.addRoutes, 18 addRoutes: state => state.permission.addRoutes,
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-28 15:45:21 4 * @LastEditTime: 2023-07-28 15:45:21
5 */ 5 */
6 import { getUserInfo } from '@/api/user' 6 import { getUserInfo } from '@/api/user'
7 import { log } from 'bpmn-js-token-simulation'
7 const state = { 8 const state = {
8 name: '', 9 name: '',
10 userInfo:{},
9 avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png', 11 avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
10 isRefresh: false, 12 isRefresh: false,
11 // 业务流程刷新 13 // 业务流程刷新
...@@ -14,8 +16,10 @@ const state = { ...@@ -14,8 +16,10 @@ const state = {
14 const mutations = { 16 const mutations = {
15 SET_NAME: (state, data) => { 17 SET_NAME: (state, data) => {
16 state.name = data.loginName 18 state.name = data.loginName
19 state.userInfo = data
17 }, 20 },
18 REFRESH: (state, data) => { 21 REFRESH: (state, data) => {
22
19 state.isRefresh = data 23 state.isRefresh = data
20 }, 24 },
21 SETWORKFRESH: (state, data) => { 25 SETWORKFRESH: (state, data) => {
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
29 <div> 29 <div>
30 <p v-if="item.operate=='D'">{{ item.qllxmc }} <span class="tpcolor">(删除)</span></p> 30 <p v-if="item.operate=='D'">{{ item.qllxmc }} <span class="tpcolor">(删除)</span></p>
31 <p v-else>{{ item.qllxmc }} <span class="tpcolor">({{ item.operate=="U"?"编辑":"新增" }})</span></p> 31 <p v-else>{{ item.qllxmc }} <span class="tpcolor">({{ item.operate=="U"?"编辑":"新增" }})</span></p>
32 <div class="ywh">(业务号:{{ item.blywh}}</div>
32 </div> 33 </div>
33 <i class="el-icon-delete" @click.stop="handleDel(item)" v-if="delel"></i> 34 <i class="el-icon-delete" @click.stop="handleDel(item)" v-if="delel"></i>
34 </el-menu-item> 35 </el-menu-item>
...@@ -75,6 +76,7 @@ ...@@ -75,6 +76,7 @@
75 qllx: this.$route.query.qllx, 76 qllx: this.$route.query.qllx,
76 // 默认选中 77 // 默认选中
77 activeIndex: "0", 78 activeIndex: "0",
79 clickindex:"",
78 // 折叠 80 // 折叠
79 isShowdrawer: true, 81 isShowdrawer: true,
80 delel: true, 82 delel: true,
...@@ -138,7 +140,6 @@ ...@@ -138,7 +140,6 @@
138 * @author: renchao 140 * @author: renchao
139 */ 141 */
140 getleftMenubl (row) { 142 getleftMenubl (row) {
141
142 leftMenubl(this.bsmSlsq).then((res) => { 143 leftMenubl(this.bsmSlsq).then((res) => {
143 this.supplementarylist = res.result; 144 this.supplementarylist = res.result;
144 if (row) { 145 if (row) {
...@@ -149,6 +150,10 @@ ...@@ -149,6 +150,10 @@
149 this.unitClick(index) 150 this.unitClick(index)
150 } 151 }
151 }) 152 })
153 if(row=="change"){
154 this.unitClick(this.clickindex)
155
156 }
152 }else{ 157 }else{
153 if (this.supplementarylist.length) { 158 if (this.supplementarylist.length) {
154 this.unitClick(0) 159 this.unitClick(0)
...@@ -183,6 +188,7 @@ ...@@ -183,6 +188,7 @@
183 * @author: renchao 188 * @author: renchao
184 */ 189 */
185 unitClick (index) { 190 unitClick (index) {
191 this.clickindex=index
186 this.currentSelectProps = this.supplementarylist[index]; 192 this.currentSelectProps = this.supplementarylist[index];
187 this.$emit("getCurrentSelectProps", this.currentSelectProps); 193 this.$emit("getCurrentSelectProps", this.currentSelectProps);
188 }, 194 },
...@@ -317,7 +323,11 @@ ...@@ -317,7 +323,11 @@
317 color: red; 323 color: red;
318 line-height: 22px; 324 line-height: 22px;
319 } 325 }
326 .ywh{
327 font-size: 12px;
328 }
320 .el-icon-delete { 329 .el-icon-delete {
330 margin-top: 10px;
321 margin-right: 3px; 331 margin-right: 3px;
322 // background-color: saddlebrown; 332 // background-color: saddlebrown;
323 height: 27px; 333 height: 27px;
......
...@@ -47,7 +47,11 @@ ...@@ -47,7 +47,11 @@
47 </div> 47 </div>
48 <el-row :gutter="10"> 48 <el-row :gutter="10">
49 <el-col :span="8"> 49 <el-col :span="8">
50 <el-form-item label="查封不动产权信息:" prop="ztQlxx.bdcqzh" :rules="rules.ztQlxxrules"> 50 <el-form-item
51 label="查封不动产权信息:"
52 prop="ztQlxx.bdcqzh"
53 :rules="rules.ztQlxxrules"
54 >
51 <select-table 55 <select-table
52 v-model="ruleForm.ztQlxx" 56 v-model="ruleForm.ztQlxx"
53 :table-width="550" 57 :table-width="550"
...@@ -165,7 +169,11 @@ ...@@ -165,7 +169,11 @@
165 </el-form-item> 169 </el-form-item>
166 </el-col> 170 </el-col>
167 <el-col :span="8"> 171 <el-col :span="8">
168 <el-form-item label="业务号:"> 172 <el-form-item
173 label="业务号:"
174 prop="qlxx.ywh"
175 :rules="rules.ywhrules"
176 >
169 <el-input v-model="ruleForm.qlxx.ywh"></el-input> 177 <el-input v-model="ruleForm.qlxx.ywh"></el-input>
170 </el-form-item> 178 </el-form-item>
171 </el-col> 179 </el-col>
...@@ -182,9 +190,11 @@ ...@@ -182,9 +190,11 @@
182 </el-form-item> 190 </el-form-item>
183 </el-col> 191 </el-col>
184 <el-col :span="8"> 192 <el-col :span="8">
185 <el-form-item label="是否被续封:" 193 <el-form-item
194 label="是否被续封:"
186 prop="cfdj.sfbxf" 195 prop="cfdj.sfbxf"
187 :rules="rules.sfbxfrules"> 196 :rules="rules.sfbxfrules"
197 >
188 <el-select v-model="ruleForm.cfdj.sfbxf" @change="djlxchange"> 198 <el-select v-model="ruleForm.cfdj.sfbxf" @change="djlxchange">
189 <el-option 199 <el-option
190 v-for="item in sfbxflist" 200 v-for="item in sfbxflist"
...@@ -356,9 +366,9 @@ ...@@ -356,9 +366,9 @@
356 </el-col> 366 </el-col>
357 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'"> 367 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'">
358 <el-form-item label="解封登记时间:"> 368 <el-form-item label="解封登记时间:">
359 <el-date-picker 369 <el-date-picker
360 v-model="ruleForm.cfdj.jfdjsj" 370 v-model="ruleForm.cfdj.jfdjsj"
361 class="width100" 371 class="width100"
362 type="date" 372 type="date"
363 placeholder="选择日期" 373 placeholder="选择日期"
364 value-format="yyyy-MM-dd HH:mm:ss" 374 value-format="yyyy-MM-dd HH:mm:ss"
...@@ -478,7 +488,10 @@ export default { ...@@ -478,7 +488,10 @@ export default {
478 djjgrules: [{ required: true, message: "登记机构", trigger: "blur" }], 488 djjgrules: [{ required: true, message: "登记机构", trigger: "blur" }],
479 dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }], 489 dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }],
480 djsjrules: [{ required: true, message: "登记时间", trigger: "blur" }], 490 djsjrules: [{ required: true, message: "登记时间", trigger: "blur" }],
481 sfbxfrules: [{ required: true, message: "是否被续封", trigger: "change" }], 491 ywhrules: [{ required: true, message: "业务号", trigger: "blur" }],
492 sfbxfrules: [
493 { required: true, message: "是否被续封", trigger: "change" },
494 ],
482 }, 495 },
483 }; 496 };
484 }, 497 },
...@@ -620,6 +633,7 @@ export default { ...@@ -620,6 +633,7 @@ export default {
620 message: "保存成功!", 633 message: "保存成功!",
621 type: "success", 634 type: "success",
622 }); 635 });
636 this.$parent.changeywh()
623 this.$store.dispatch("user/refreshPage", true); 637 this.$store.dispatch("user/refreshPage", true);
624 } else { 638 } else {
625 this.$message({ 639 this.$message({
......
...@@ -792,6 +792,7 @@ export default { ...@@ -792,6 +792,7 @@ export default {
792 message: "保存成功!", 792 message: "保存成功!",
793 type: "success", 793 type: "success",
794 }); 794 });
795 this.$parent.changeywh()
795 this.$store.dispatch("user/refreshPage", true); 796 this.$store.dispatch("user/refreshPage", true);
796 } else { 797 } else {
797 this.$message({ 798 this.$message({
......
...@@ -676,6 +676,7 @@ export default { ...@@ -676,6 +676,7 @@ export default {
676 message: "保存成功!", 676 message: "保存成功!",
677 type: "success", 677 type: "success",
678 }); 678 });
679 this.$parent.changeywh()
679 this.$store.dispatch("user/refreshPage", true); 680 this.$store.dispatch("user/refreshPage", true);
680 } else { 681 } else {
681 this.$message({ 682 this.$message({
......
...@@ -561,7 +561,6 @@ ...@@ -561,7 +561,6 @@
561 this.ssqlxxshow = true; 561 this.ssqlxxshow = true;
562 } 562 }
563 }, 563 },
564
565 /** 564 /**
566 * @description: loadData 565 * @description: loadData
567 * @author: renchao 566 * @author: renchao
...@@ -699,6 +698,7 @@ ...@@ -699,6 +698,7 @@
699 message: "保存成功!", 698 message: "保存成功!",
700 type: "success", 699 type: "success",
701 }); 700 });
701 this.$parent.changeywh()
702 this.$store.dispatch("user/refreshPage", true); 702 this.$store.dispatch("user/refreshPage", true);
703 } else { 703 } else {
704 this.$message({ 704 this.$message({
......
...@@ -539,6 +539,7 @@ export default { ...@@ -539,6 +539,7 @@ export default {
539 message: "保存成功!", 539 message: "保存成功!",
540 type: "success", 540 type: "success",
541 }); 541 });
542 this.$parent.changeywh()
542 this.$store.dispatch("user/refreshPage", true); 543 this.$store.dispatch("user/refreshPage", true);
543 } else { 544 } else {
544 this.$message({ 545 this.$message({
......
...@@ -650,6 +650,7 @@ export default { ...@@ -650,6 +650,7 @@ export default {
650 message: "保存成功!", 650 message: "保存成功!",
651 type: "success", 651 type: "success",
652 }); 652 });
653 this.$parent.changeywh()
653 this.$store.dispatch("user/refreshPage", true); 654 this.$store.dispatch("user/refreshPage", true);
654 } else { 655 } else {
655 this.$message({ 656 this.$message({
......
...@@ -719,6 +719,7 @@ export default { ...@@ -719,6 +719,7 @@ export default {
719 message: "保存成功!", 719 message: "保存成功!",
720 type: "success", 720 type: "success",
721 }); 721 });
722 this.$parent.changeywh()
722 this.$store.dispatch("user/refreshPage", true); 723 this.$store.dispatch("user/refreshPage", true);
723 } else { 724 } else {
724 this.$message({ 725 this.$message({
......
...@@ -618,6 +618,7 @@ export default { ...@@ -618,6 +618,7 @@ export default {
618 message: "保存成功!", 618 message: "保存成功!",
619 type: "success", 619 type: "success",
620 }); 620 });
621 this.$parent.changeywh()
621 this.$store.dispatch("user/refreshPage", true); 622 this.$store.dispatch("user/refreshPage", true);
622 } else { 623 } else {
623 this.$message({ 624 this.$message({
......
...@@ -616,6 +616,7 @@ export default { ...@@ -616,6 +616,7 @@ export default {
616 message: "保存成功!", 616 message: "保存成功!",
617 type: "success", 617 type: "success",
618 }); 618 });
619 this.$parent.changeywh()
619 this.$store.dispatch("user/refreshPage", true); 620 this.$store.dispatch("user/refreshPage", true);
620 } else { 621 } else {
621 this.$message({ 622 this.$message({
......
...@@ -275,7 +275,7 @@ export default { ...@@ -275,7 +275,7 @@ export default {
275 height: 100%; 275 height: 100%;
276 line-height: 80px; 276 line-height: 80px;
277 border: 1px solid $borderColor; 277 border: 1px solid $borderColor;
278 text-align: center; 278 margin: auto;
279 font-size: 22px; 279 font-size: 22px;
280 font-weight: 400; 280 font-weight: 400;
281 } 281 }
......
...@@ -262,13 +262,9 @@ export default { ...@@ -262,13 +262,9 @@ export default {
262 getFromRouter(tabname) { 262 getFromRouter(tabname) {
263 this.componentTag = getForm(tabname); 263 this.componentTag = getForm(tabname);
264 }, 264 },
265 // closefp () { 265 changeywh () {
266 // this.splitScreen = this.splitScreen ? false : true; 266 this.$refs.Menu.getleftMenubl("change");
267 // this.$store.dispatch("app/set1tScreen", this.splitScreen); 267 },
268 // this.getFromRouter(this.tabList[0].value);
269 // this.clxxForm = getForm(this.tabList[1].value);
270 // this.tabName = this.tabList[0].value
271 // },
272 // 增加补录记录 268 // 增加补录记录
273 /** 269 /**
274 * @description: 增加补录记录 270 * @description: 增加补录记录
......
1 <!-- 1 <!--
2 * @Description :宗地基本信息 2 * @Description :宗地基本信息
3 * @Autor : miaofang 3 * @Autor : miaofang
4 * @LastEditTime : 2023-05-24 15:08:51 4 * @LastEditTime : 2023-07-31 17:21:56
5 --> 5 -->
6 <template> 6 <template>
7 <div class="tableDivCss"> 7 <div class="tableDivCss">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 </tr> 11 </tr>
12 <tr> 12 <tr>
13 <td>单位</td> 13 <td>单位</td>
14 <td colspan="4">{{ zdjbxx.mjdw | dictionary('A7') }}</td> 14 <td colspan="4">{{ zdjbxx.mjdw | dictionary("A7") }}</td>
15 </tr> 15 </tr>
16 <tr> 16 <tr>
17 <td>不动产类型</td> 17 <td>不动产类型</td>
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
25 <td rowspan="8">土地状况</td> 25 <td rowspan="8">土地状况</td>
26 </tr> 26 </tr>
27 <tr> 27 <tr>
28 <td style="width:15%">宗地面积</td> 28 <td style="width: 15%">宗地面积</td>
29 <td style="width:30%">{{ zdjbxx.zdmj }}</td> 29 <td style="width: 30%">{{ zdjbxx.zdmj }}</td>
30 <td style="width:15%">用途</td> 30 <td style="width: 15%">用途</td>
31 <td style="width:30%">{{ zdjbxx.ghytmc }}</td> 31 <td style="width: 30%">{{ zdjbxx.yt | dicyt("tdyt") }}</td>
32 </tr> 32 </tr>
33 <tr> 33 <tr>
34 <td>等级</td> 34 <td>等级</td>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
44 </tr> 44 </tr>
45 <tr> 45 <tr>
46 <td>权利设定方式</td> 46 <td>权利设定方式</td>
47 <td>{{zdjbxx.qlsdfs | dictionary('A10')}}</td> 47 <td>{{ zdjbxx.qlsdfs | dictionary("A10") }}</td>
48 <td>容积率</td> 48 <td>容积率</td>
49 <td>{{ zdjbxx.rjl }}</td> 49 <td>{{ zdjbxx.rjl }}</td>
50 </tr> 50 </tr>
...@@ -111,7 +111,6 @@ ...@@ -111,7 +111,6 @@
111 <td class="bhqkTh">{{ item.label }}</td> 111 <td class="bhqkTh">{{ item.label }}</td>
112 </tr> 112 </tr>
113 </table> --> 113 </table> -->
114
115 </tr> 114 </tr>
116 115
117 <tr v-if="showGroup"> 116 <tr v-if="showGroup">
...@@ -126,90 +125,116 @@ ...@@ -126,90 +125,116 @@
126 <td>{{ zdbhqks[0].djsj }}</td> 125 <td>{{ zdbhqks[0].djsj }}</td>
127 <td>{{ zdbhqks[0].dbr }}</td> 126 <td>{{ zdbhqks[0].dbr }}</td>
128 </tr> --> 127 </tr> -->
129
130 </table> 128 </table>
131 </div> 129 </div>
132 </template> 130 </template>
133 131
134 <script> 132 <script>
135 import store from '@/store/index.js' 133 import store from "@/store/index.js";
136 import { getZdjjxxBybdcdyid } from "@/api/djbDetail.js"; 134 import { getZdjjxxBybdcdyid } from "@/api/djbDetail.js";
137 135
138 export default { 136 export default {
139 data () { 137 data() {
140 return { 138 return {
141 bhqkColumns: [ 139 bhqkColumns: [
142 { 140 {
143 prop: "ssywh", 141 prop: "ssywh",
144 label: "上手业务号", 142 label: "上手业务号",
145 }, 143 },
146 { 144 {
147 prop: "zddm", 145 prop: "zddm",
148 label: "宗地代码", 146 label: "宗地代码",
149 }, 147 },
150 { 148 {
151 prop: "bhqzddm", 149 prop: "bhqzddm",
152 label: "变化前宗地代码", 150 label: "变化前宗地代码",
153 }, 151 },
154 { 152 {
155 prop: "bhnr", 153 prop: "bhnr",
156 label: "变化内容", 154 label: "变化内容",
157 }, 155 },
158 { 156 {
159 prop: "bhyy", 157 prop: "bhyy",
160 label: "变化原因", 158 label: "变化原因",
161 }, 159 },
162 { 160 {
163 prop: "djsj", 161 prop: "djsj",
164 label: "登记时间", 162 label: "登记时间",
165 }, 163 },
166 { 164 {
167 prop: "dbr", 165 prop: "dbr",
168 label: "登簿人", 166 label: "登簿人",
169 }, 167 },
170 { 168 {
171 prop: "fj", 169 prop: "fj",
172 label: "附记", 170 label: "附记",
173 }, 171 },
174 ], 172 ],
175 bhqkTableWidth: 745, 173 bhqkTableWidth: 745,
176 zdjbxx: {}, 174 zdjbxx: {},
177 zdbhqks: [], 175 zdbhqks: [],
178 propsParam: this.$attrs, 176 propsParam: this.$attrs,
179 showGroup: false, 177 showGroup: false,
180 bdclxList: ["", "宗地", "宗海", "自然幢", "多幢", "构筑物", "林权", "户"] 178 bdclxList: ["", "宗地", "宗海", "自然幢", "多幢", "构筑物", "林权", "户"],
179 foundItemaa: {},
180 foundItemaaa: {},
181 };
182 },
183 filters: {
184 dictionary: function (value, param) {
185 const foundItem = store.getters.dictData[param].find(
186 (item) => item.dcode === String(value)
187 );
188 if (foundItem) {
189 return foundItem.dname;
181 } 190 }
182 }, 191 },
183 filters: { 192 dicyt: function (value, param) {
184 dictionary: function (value, param) { 193 const res = store.getters.dictData[param].filter((item) => {
185 const foundItem = store.getters.dictData[param].find(item => item.dcode === String(value)) 194 if (item.dcode === String(value)) {
186 if (foundItem) { 195 return item;
187 return foundItem.dname 196 } else {
197 if (item.children.length) {
198 const res2 = item.children.filter((items) => {
199 if (items.dcode === String(value)) {
200 return items;
201 }
202 });
203 if (res2.length) {
204 return res2;
205
206 }
207
208 }
188 } 209 }
210 });
211 if (res[0]) {
212 return res[0].dname
189 } 213 }
190 }, 214 },
191 created () { 215 },
192 this.loadData() 216 created() {
193 }, 217 this.loadData();
194 methods: { 218 },
195 /** 219 methods: {
196 * @description: loadData 220 /**
197 * @author: renchao 221 * @description: loadData
198 */ 222 * @author: renchao
199 loadData () { 223 */
200 getZdjjxxBybdcdyid({ bdcdyid: this.propsParam.bdcdyid }).then((res) => { 224 loadData() {
201 if (res.code === 200) { 225 getZdjjxxBybdcdyid({ bdcdyid: this.propsParam.bdcdyid }).then((res) => {
202 this.zdjbxx = res.result.zdjbxx; 226 if (res.code === 200) {
203 this.zdbhqks = res.result.zdbhqkList; 227 this.zdjbxx = res.result.zdjbxx;
204 if (this.zdbhqks != null && this.zdbhqks.length > 0) { 228 this.zdbhqks = res.result.zdbhqkList;
205 this.showGroup = true; 229 if (this.zdbhqks != null && this.zdbhqks.length > 0) {
206 } 230 this.showGroup = true;
207 } 231 }
208 }) 232 }
209 } 233 });
210 } 234 },
211 } 235 },
236 };
212 </script> 237 </script>
213 <style lang="scss" scoped> 238 <style lang="scss" scoped>
214 @import "~@/styles/tablecss.scss"; 239 @import "~@/styles/tablecss.scss";
215 </style> 240 </style>
......
1 <!-- 1 <!--
2 * @Description: 功能:审批意见 2 * @Description: 审批意见
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-20 09:52:48 4 * @LastEditTime: 2023-05-17 10:41:24
5 --> 5 -->
6 <template> 6 <template>
7 <div class='spyj loadingtext'> 7 <div class="spyj loadingtext">
8 <div class="box"> 8 <div class="box">
9 <b class="spyj_title">审批表</b> 9 <div class="spyj_title">
10 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> 10 <div class="righttitle">审批表</div>
11 <div class="spyj_form" v-for="(item, index) in tableData" :key="index"> 11 </div>
12 <div class="item_left"> 12
13 {{ item.jdmc }}意见 13 <div v-for="(item, index) in tableData" :key="index">
14 </div> 14 <el-form
15 <div class="item_right"> 15 :model="tableData[index]"
16 <el-row> 16 label-width="120px"
17 <el-col :span="24"> 17 ref="ruleFormRef'"
18 <el-form-item label-width="0" class="opinion_item" prop="shyj"> 18 >
19 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入审批意见" 19 <div class="spyj_form">
20 v-if="item.stepShjy == '1' && ableOperation" v-model="ruleForm.shyj"></el-input> 20 <div class="item_left">
21 <el-input type="textarea" :rows="4" class="opinion" v-model="item.shyj" v-else :disabled="true"> 21 <div class="right">{{ jdmc }}意见</div>
22 </el-input> 22 </div>
23 <el-button class="opinion_btn" @click="commonOpinion" 23 <div class="item_right">
24 v-if="item.stepShjy == '1' && ableOperation">常用意见</el-button> 24 <el-row>
25 </el-form-item> 25 <el-col :span="24">
26 </el-col> 26 <el-form-item label-width="0" class="opinion_item">
27 </el-row> 27 <el-input
28 <el-row> 28 :disabled="!ableOperation"
29 <el-col :span="16"> 29 type="textarea"
30 <el-form-item label="审查人" prop="shryxm"> 30 :rows="4"
31 {{ item.shryxm }} 31 class="opinion"
32 </el-form-item> 32 placeholder="请输入审批意见"
33 </el-col> 33 v-model="item.shyj"
34 <el-col :span="8"> 34 ></el-input>
35 <el-form-item label="审核时间" prop="shjssj" :key="refresh"> 35 <el-button
36 {{ item.shjssj }} 36 class="opinion_btn"
37 </el-form-item> 37 @click="commonOpinion(index)"
38 </el-col> 38 v-if="ableOperation"
39 </el-row> 39 >常用意见</el-button
40 >
41 </el-form-item>
42 </el-col>
43 </el-row>
44 <el-row>
45 <el-col :span="16">
46 <el-form-item label="审查人">
47 <el-input
48 :disabled="!ableOperation"
49 v-model="item.shryxm"
50 ></el-input>
51 </el-form-item>
52 </el-col>
53 <el-col :span="8">
54 <el-form-item class="sjxzq" label="审核时间">
55 <el-date-picker
56 :disabled="!ableOperation"
57 v-model="item.shjssj"
58 type="date"
59 placeholder="选择日期"
60 value-format="yyyy-MM-dd HH:mm:ss"
61 format="yyyy-MM-dd"
62 >
63 </el-date-picker>
64 </el-form-item>
65 </el-col>
66 </el-row>
67 </div>
40 </div> 68 </div>
41 </div> 69 </el-form>
42 <div class="submit_button" v-if="ableOperation"> 70 </div>
43 <el-button type="primary" @click="onSubmit">保存</el-button> 71 <div class="submit_button" v-if="ableOperation">
44 </div> 72 <el-button type="primary" @click="onSubmit()">保存</el-button>
45 </el-form> 73 </div>
46 </div> 74 </div>
47 <el-empty v-if="isNoData" description="暂无数据"></el-empty> 75 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> -->
48 </div> 76 </div>
49 </template> 77 </template>
50 <script> 78 <script>
51 import { getSpyjList, saveSpyj, saveSpyjBySlsq } from "@/api/opinion.js"; 79 import { saveSpyjBySlsq, getSpyjList } from "@/api/opinion.js";
52 import { mapGetters } from 'vuex' 80 import { mapGetters } from "vuex";
53 export default { 81 export default {
54 computed: { 82 computed: {
55 ...mapGetters(['userData', 'yjsqOptions']) 83 ...mapGetters(["userData", "yjsqOptions", "userInfo"]),
84 },
85 data() {
86 return {
87 isNoData: false,
88 currentindex: 0,
89 bsmSlsq: "",
90 ableOperation: false,
91 bsmSlsq: this.$route.query.bsmSlsq,
92 bestepid: this.$route.query.bestepid,
93 propsParam: {},
94 tableData: [],
95 falg: false,
96 falg1: false,
97 jdmc: "",
98 indexdqlc: 0,
99 };
100 },
101
102 watch: {
103 yjsqOptions: {
104 handler(val) {
105 console.log("val", val);
106 this.add(val);
107 },
108 deep: true,
109 immediate: true,
56 }, 110 },
57 data () { 111 },
58 return { 112 created() {},
59 isNoData: false, 113 mounted() {
60 bsmSlsq: '', 114 this.propsParam = this.$attrs;
61 //刷新值 115 console.log("this.$parent.dqhj", this.$parent.dqhj);
62 refresh: 10, 116 this.ableOperation = this.$parent.currentSelectTab.ableOperation;
63 ableOperation: true, 117 // this.ableOperation = this.$parent.ableOperation;
64 bsmSlsq: this.$route.query.bsmSlsq, 118 this.getShList();
65 bestepid: this.$route.query.bestepid, 119
66 ruleForm: {}, 120 switch (this.$parent.dqhj) {
67 rules: { 121 case "cs":
68 shyj: [ 122 this.indexdqlc = 0;
69 { required: true, message: '请输入审批意见', trigger: 'blur' } 123 this.jdmc = "初审";
70 ], 124 break;
71 }, 125 case "fs":
72 tableData: [], 126 this.indexdqlc = 1;
73 propsParam: {} 127 this.jdmc = "复审";
74 } 128 break;
129 case "hd":
130 this.indexdqlc = 2;
131 this.jdmc = "核定";
132 break;
133 }
134 },
135 methods: {
136 /**
137 * @description: getShList
138 * @param {*} obj
139 * @author: renchao
140 */
141 getShList() {
142 let that = this;
143 this.$startLoading();
144 console.log(this.userInfo);
145 var formdata = new FormData();
146 formdata.append("bsmBusiness",this.$parent.bsmSlsq);
147 formdata.append("bestepid", this.$route.query.bestepid);
148
149 getSpyjList(formdata).then((res) => {
150 this.$endLoading();
151 if (res.code === 200 && res.result) {
152 this.tableData = res.result;
153 if (this.tableData.length == 0) {
154 this.tableData.push({ jdmc: "初审" });
155 }
156 console.log("this.tableData", this.tableData);
157 }
158 });
75 }, 159 },
76 watch: { 160 /**
77 yjsqOptions: { 161 * @description: judgment
78 handler (val) { 162 * @param {*} obj
79 this.ruleForm.shyj = val 163 * @author: renchao
80 }, 164 */
81 deep: true, 165 judgment(obj) {},
82 immediate: true 166 /**
83 }, 167 * @description: onSubmit
168 * @author: renchao
169 */
170 onSubmit() {
171 this.tableData.forEach((item, index) => {
172 item["bsmSlsq"] = this.$parent.bsmSlsq;
173 item["bestepid"] = this.$parent.bestepid;
174 item["shryxm"] = this.userInfo.name;
175 item["userid"] = this.userInfo.id;
176 item["jddm"] = this.$parent.dqhj;
177 item["jdmc"] = this.jdmc;
178 item["shjssj"] = item.shkssj;
179 item["czjg"] = "1";
180 item["stepid"] = "1";
181
182 });
183 console.log("this.tableData", this.tableData);
184 saveSpyjBySlsq(this.tableData).then((res) => {
185 if (res.code === 200) {
186 this.$message.success("保存成功");
187 this.refresh += 1;
188 } else {
189 this.$message.error(res.message);
190 }
191 });
192 // } else {
193 // return false;
194 // }
84 }, 195 },
85 mounted () { 196 //打开常用意见列表弹窗
86 this.ableOperation = this.$parent.currentSelectTab.ableOperation 197 /**
87 this.list(); 198 * @description: 打开常用意见列表弹窗
199 * @param {*} index
200 * @author: renchao
201 */
202 commonOpinion(index) {
203 this.currentindex = index;
204 this.$popupDialog(
205 "常用意见",
206 "workflow/components/dialog/commonOpinion",
207 {},
208 "70%",
209 true
210 );
88 }, 211 },
89 methods: { 212 /**
90 //审批意见数据初始化 213 * @description: add
91 /** 214 * @param {*} val
92 * @description: 审批意见数据初始化 215 * @author: renchao
93 * @author: renchao 216 */
94 */ 217 add(val) {
95 list () { 218 if (val != "") {
96 let that = this 219 this.$set(this.tableData[this.currentindex], "shyj", val);
97 this.$startLoading()
98 var formdata = new FormData();
99 formdata.append("bsmBusiness", this.propsParam.bsmBusiness);
100 formdata.append("bestepid", this.$route.query.bestepid);
101 getSpyjList(formdata).then((res) => {
102 this.$endLoading()
103 if (res.code === 200 && res.result) {
104 this.tableData = res.result ? res.result : []
105 if (res.result.length == 0) {
106 that.isNoData = true
107 }
108 this.ruleForm = res.result[res.result.length - 1]
109 }
110 })
111 },
112 /**
113 * @description: onSubmit
114 * @author: renchao
115 */
116 onSubmit () {
117 this.ruleForm.bsmSlsq = this.bsmSlsq
118 this.ruleForm.bestepid = this.bestepid
119 saveSpyjBySlsq(this.ruleForm).then(res => {
120 if (res.code === 200) {
121 this.$message.success("保存成功")
122 this.refresh += 1
123 } else {
124 this.$message.error(res.message)
125 }
126 })
127 },
128 //打开常用意见列表弹窗
129 /**
130 * @description: 打开常用意见列表弹窗
131 * @author: renchao
132 */
133 commonOpinion () {
134 this.$popupDialog("常用意见", "workflow/components/dialog/commonOpinion", {}, "70%", true)
135 },
136 //使用常用意见
137 /**
138 * @description: 使用常用意见
139 * @author: renchao
140 */
141 useOpinion (opinion) {
142 this.ruleForm.shyj = opinion
143 } 220 }
144 } 221 },
145 } 222 },
223 };
146 </script> 224 </script>
147 <style scoped lang='scss'> 225 <style scoped lang="scss">
148 @import "~@/styles/mixin.scss"; 226 @import "~@/styles/mixin.scss";
149 227
150 .spyj { 228 .spyj {
229 width: 100%;
230 height: 100%;
231 background-color: #f5f5f5;
232 padding: 5px;
233 .box {
234 overflow-x: auto;
151 width: 100%; 235 width: 100%;
152 height: 100%; 236 height: 95%;
153 background-color: #f5f5f5; 237 background: #fff;
154 padding: 5px; 238 text-align: center;
155 .box { 239 padding: 4px;
156 overflow-x: auto; 240 overflow-y: scroll;
241 padding-top: 20px;
242 padding: 20px 40px;
243 .spyj_title {
157 width: 100%; 244 width: 100%;
158 height: 95%; 245 height: 80px;
159 background: #fff; 246 border: 1px solid $borderColor;
160 text-align: center; 247 background-color: #eceef2;
161 padding: 4px; 248 display: flex;
162 overflow-y: scroll;
163 padding-top: 20px;
164 padding: 20px 40px;
165 } 249 }
166 .spyj_title { 250 .leftadd {
167 line-height: 68px; 251 width: 3%;
252 height: 100%;
253 display: flex;
254 font-size: 14px;
255 text-indent: 20px;
256 align-items: center;
257 border: 1px solid $borderColor;
258 }
259 .righttitle {
260 width: 80%;
261 height: 100%;
262 line-height: 80px;
168 border: 1px solid $borderColor; 263 border: 1px solid $borderColor;
169 text-align: center; 264 margin: auto;
170 font-size: 22px; 265 font-size: 22px;
171 font-weight: 400; 266 font-weight: 400;
172 background-color: #eceef2;
173 display: block;
174 border-bottom: none;
175 } 267 }
268 }
176 269
177 /deep/.el-form-item { 270 /deep/.el-form-item {
178 margin-bottom: 0; 271 margin-bottom: 0;
179 } 272 }
180 273
181 .bottom10 { 274 .bottom10 {
182 margin-bottom: 15px; 275 margin-bottom: 15px;
183 } 276 }
184 277
185 .spyj_form { 278 .spyj_form {
279 display: flex;
280 border: 1px solid $borderColor;
281
282 .item_left {
283 width: 150px;
284 background-color: #f8f8fa;
285 color: #606266;
186 display: flex; 286 display: flex;
187 border: 1px solid $borderColor; 287 font-size: 14px;
288 text-indent: 50px;
289 align-items: center;
290 border-right: 1px solid $borderColor;
291 }
292
293 .item_right {
294 flex: 1;
295 width: 100%;
188 296
189 .item_left { 297 /deep/.el-form-item__label {
190 width: 150px;
191 background-color: #f8f8fa; 298 background-color: #f8f8fa;
192 color: #606266;
193 display: flex;
194 font-size: 14px;
195 text-indent: 80px;
196 align-items: center;
197 border-right: 1px solid $borderColor;
198 } 299 }
199 300 /deep/.el-form-item__content {
200 .item_right { 301 display: block;
201 flex: 1; 302 text-align: left;
202 width: 100%; 303 }
203 304 .opinion_item {
204 /deep/.el-form-item__label { 305 /deep/.el-form-item__error {
205 background-color: #f8f8fa; 306 margin-top: -16px !important;
206 } 307 left: 3px;
207 /deep/.el-form-item__content {
208 display: block;
209 text-align: left;
210 text-indent: 10px;
211 }
212 .opinion_item {
213 /deep/.el-form-item__error {
214 margin-top: -16px !important;
215 left: 3px;
216 }
217
218 border-bottom: 1px solid $borderColor;
219 } 308 }
309 border-bottom: 1px solid $borderColor;
310 }
220 311
221 .opinion { 312 .opinion {
222 position: relative; 313 position: relative;
223 font-size: 14px; 314 font-size: 14px;
224 315
225 /deep/.el-textarea__inner { 316 /deep/.el-textarea__inner {
226 border: none; 317 border: none;
227 }
228 } 318 }
319 }
229 320
230 .opinion_btn { 321 .opinion_btn {
231 position: absolute; 322 position: absolute;
232 right: 15px; 323 right: 15px;
233 bottom: 10px; 324 bottom: 10px;
234 }
235 } 325 }
236 } 326 }
327 }
237 328
238 .submit_button { 329 .submit_button {
239 text-align: center; 330 text-align: center;
240 margin: 15px 0; 331 margin: 15px 0;
241 } 332 }
333
334 .el-date-editor.el-input {
335 width: 100%;
242 } 336 }
337 }
243 </style> 338 </style>
......
...@@ -73,9 +73,10 @@ ...@@ -73,9 +73,10 @@
73 * @author: renchao 73 * @author: renchao
74 */ 74 */
75 onSubmit () { 75 onSubmit () {
76 console.log(this.formData.bsmSlsq); 76 if(!this.outstepopinion){
77 console.log(this.selectItem); 77 this.$message.error("请填写退回意见");
78 sendBackTask({ 78 }else{
79 sendBackTask({
79 bsmSlsq: this.formData.bsmSlsq, 80 bsmSlsq: this.formData.bsmSlsq,
80 backNodeList: [this.selectItem], 81 backNodeList: [this.selectItem],
81 message:this.outstepopinion 82 message:this.outstepopinion
...@@ -92,6 +93,7 @@ ...@@ -92,6 +93,7 @@
92 this.$emit("input", false); 93 this.$emit("input", false);
93 }, 1000); 94 }, 1000);
94 }); 95 });
96 }
95 }, 97 },
96 /** 98 /**
97 * @description: changeSelectItem 99 * @description: changeSelectItem
......
...@@ -35,7 +35,8 @@ export default { ...@@ -35,7 +35,8 @@ export default {
35 //批量按钮名称 35 //批量按钮名称
36 batchButtonName: '', 36 batchButtonName: '',
37 // 受理申请信息 37 // 受理申请信息
38 slsq: {} 38 slsq: {},
39 dqhj:""
39 } 40 }
40 }, 41 },
41 mounted () { 42 mounted () {
...@@ -57,6 +58,9 @@ export default { ...@@ -57,6 +58,9 @@ export default {
57 stepExpandInfo(formdata).then((res) => { 58 stepExpandInfo(formdata).then((res) => {
58 if (res.code === 200) { 59 if (res.code === 200) {
59 this.leftButtonList = res.result.button; 60 this.leftButtonList = res.result.button;
61 if (res.result.properties&&res.result.properties.length) {
62 this.dqhj = res.result.properties[0].value
63 }
60 this.rightButtonList = res.result.operation; 64 this.rightButtonList = res.result.operation;
61 this.slsq = res.result.slsq 65 this.slsq = res.result.slsq
62 } 66 }
......