c79ccafc by renchao@pashanhoo.com

style:申请业务规则

1 parent bd208a6f
1 @import "~@/styles/mixin.scss";
1 .dialogBox { 2 .dialogBox {
2 border-radius: 8px; 3 border-radius: 8px;
3 overflow: hidden; 4 overflow: hidden;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
20 20
21 <div class="text-center"> 21 <div class="text-center">
22 <el-button @click="$popupCacel">取消</el-button> 22 <el-button @click="$popupCacel">取消</el-button>
23 <el-button type="primary" @click="handleSubmit">确定</el-button> 23 <el-button type="primary" @click="handleSubmit" plain>确定</el-button>
24 </div> 24 </div>
25 </div> 25 </div>
26 </template> 26 </template>
......
1 <template> 1 <template>
2 <el-dialog 2 <div>
3 :title="sqqlRule.nodename"
4 custom-class="dialogBox contentCenter"
5 width="80%"
6 top="0"
7 :visible.sync="dialogVisible"
8 :before-close="cancelDialog"
9 >
10 <ul class="edit-title-list" v-if="djlxList.length > 0"> 3 <ul class="edit-title-list" v-if="djlxList.length > 0">
11 <li 4 <li v-for="(item, index) in djlxList" @click="handleTitleSelct(item, index)" :key="index"
12 v-for="(item, index) in djlxList" 5 :class="{ active: index == tn }">
13 @click="handleTitleSelct(item, index)"
14 :key="index"
15 :class="{ active: index == tn }"
16 >
17 {{ item.nodename }} 6 {{ item.nodename }}
18 </li> 7 </li>
19 </ul> 8 </ul>
...@@ -22,18 +11,8 @@ ...@@ -22,18 +11,8 @@
22 <el-row> 11 <el-row>
23 <el-col :span="8"> 12 <el-col :span="8">
24 <el-form-item label="申请分类"> 13 <el-form-item label="申请分类">
25 <el-select 14 <el-select v-model="form.ywDetail.sqfl" disabled placeholder="请选择" class="width100">
26 v-model="form.ywDetail.sqfl" 15 <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
27 disabled
28 placeholder="请选择"
29 class="width100"
30 >
31 <el-option
32 v-for="item in options"
33 :key="item.value"
34 :label="item.label"
35 :value="item.value"
36 >
37 </el-option> 16 </el-option>
38 </el-select> 17 </el-select>
39 </el-form-item> 18 </el-form-item>
...@@ -52,18 +31,8 @@ ...@@ -52,18 +31,8 @@
52 <el-row> 31 <el-row>
53 <el-col :span="8"> 32 <el-col :span="8">
54 <el-form-item label="发起业务单元类型"> 33 <el-form-item label="发起业务单元类型">
55 <el-select 34 <el-select v-model="form.ywDetail.fqywdylx" disabled placeholder="请选择" class="width100">
56 v-model="form.ywDetail.fqywdylx" 35 <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
57 disabled
58 placeholder="请选择"
59 class="width100"
60 >
61 <el-option
62 v-for="item in options"
63 :key="item.value"
64 :label="item.label"
65 :value="item.value"
66 >
67 </el-option> 36 </el-option>
68 </el-select> 37 </el-select>
69 </el-form-item> 38 </el-form-item>
...@@ -94,42 +63,20 @@ ...@@ -94,42 +63,20 @@
94 </el-col> 63 </el-col>
95 <el-col :span="8"> 64 <el-col :span="8">
96 <el-form-item label="登记情形及材料"> 65 <el-form-item label="登记情形及材料">
97 <el-input 66 <el-input v-model="form.ywDetail.djqxcl" placeholder="仅支持execl文件导入"></el-input>
98 v-model="form.ywDetail.djqxcl"
99 placeholder="仅支持execl文件导入"
100 ></el-input>
101 </el-form-item> 67 </el-form-item>
102 </el-col> 68 </el-col>
103 <el-col :span="1"> 69 <el-col :span="1">
104 <el-upload 70 <el-upload ref="upload" :action="imgUploadUrl" :limit="1" accept=".xls, .xlsx" :show-file-list="false"
105 ref="upload" 71 :disabled="requested" :file-list="fileList" :before-upload="uploadRecord" :on-success="handleSuccess">
106 :action="imgUploadUrl" 72 <el-button type="primary" icon="el-icon-upload" :loading="requested">上传材料</el-button>
107 :limit="1"
108 accept=".xls, .xlsx"
109 :show-file-list="false"
110 :disabled="requested"
111 :file-list="fileList"
112 :before-upload="uploadRecord"
113 :on-success="handleSuccess"
114 >
115 <el-button
116 type="primary"
117 icon="el-icon-upload"
118 :loading="requested"
119 >上传材料</el-button
120 >
121 </el-upload> 73 </el-upload>
122 </el-col> 74 </el-col>
123 </el-row> 75 </el-row>
124 <el-row> 76 <el-row>
125 <el-col :span="24"> 77 <el-col :span="24">
126 <el-form-item label="登记原因模板" prop="djyy"> 78 <el-form-item label="登记原因模板" prop="djyy">
127 <el-input 79 <el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="form.ywDetail.djyy">
128 type="textarea"
129 :rows="4"
130 placeholder="请输入内容"
131 v-model="form.ywDetail.djyy"
132 >
133 </el-input> 80 </el-input>
134 </el-form-item> 81 </el-form-item>
135 </el-col> 82 </el-col>
...@@ -137,35 +84,18 @@ ...@@ -137,35 +84,18 @@
137 </el-form> 84 </el-form>
138 <el-collapse class="modifycollapse" accordion> 85 <el-collapse class="modifycollapse" accordion>
139 <el-collapse-item title="登记情形设置" name="1"> 86 <el-collapse-item title="登记情形设置" name="1">
140 <lb-table 87 <lb-table :column="djqxCol" border :pagination="false" heightNumSetting :data="form.djqx">
141 :column="djqxCol"
142 border
143 :pagination="false"
144 heightNumSetting
145 :data="form.djqx"
146 >
147 </lb-table> 88 </lb-table>
148 </el-collapse-item> 89 </el-collapse-item>
149 <el-collapse-item title="材料信息设置" name="2"> 90 <el-collapse-item title="材料信息设置" name="2">
150 <lb-table 91 <lb-table :column="clxxCol" border heightNumSetting :pagination="false" :data="form.clxx">
151 :column="clxxCol"
152 border
153 heightNumSetting
154 :pagination="false"
155 :data="form.clxx"
156 >
157 </lb-table> 92 </lb-table>
158 </el-collapse-item> 93 </el-collapse-item>
159 <el-collapse-item 94 <el-collapse-item title="刷选权利设置" name="3" v-if="form.ywDetail.sfsxql == '1'">
160 title="刷选权利设置"
161 name="3"
162 v-if="form.ywDetail.sfsxql == '1'"
163 >
164 <div class="dyztsd-title"> 95 <div class="dyztsd-title">
165 <b>请勾选需要查询的权利信息</b> 96 <b>请勾选需要查询的权利信息</b>
166 <div> 97 <div>
167 <el-button type="text" @click="handleSelectall" 98 <el-button type="text" @click="handleSelectall">选择全部
168 >选择全部
169 </el-button> 99 </el-button>
170 <el-button type="text" @click="handleInvert">清除全部</el-button> 100 <el-button type="text" @click="handleInvert">清除全部</el-button>
171 </div> 101 </div>
...@@ -191,11 +121,11 @@ ...@@ -191,11 +121,11 @@
191 </el-collapse-item> 121 </el-collapse-item>
192 </el-collapse> 122 </el-collapse>
193 </div> 123 </div>
194 <div slot="footer" class="dialog_footer"> 124 <div slot="footer" class="dialog_footer text-center">
195 <el-button type="primary" @click="submit">提 交</el-button>
196 <el-button @click="cancelDialog">取 消</el-button> 125 <el-button @click="cancelDialog">取 消</el-button>
126 <el-button type="primary" @click="submit" plain>提 交</el-button>
127 </div>
197 </div> 128 </div>
198 </el-dialog>
199 </template> 129 </template>
200 <script> 130 <script>
201 import { mapGetters } from "vuex"; 131 import { mapGetters } from "vuex";
...@@ -203,24 +133,14 @@ import { upward, down } from "@/utils/operation"; ...@@ -203,24 +133,14 @@ import { upward, down } from "@/utils/operation";
203 import { getDjlxInfo, getSqdjywDetail, saveSqdjyw } from "@/api/system.js"; 133 import { getDjlxInfo, getSqdjywDetail, saveSqdjyw } from "@/api/system.js";
204 import { datas, sendThis } from "./sqywDetail"; 134 import { datas, sendThis } from "./sqywDetail";
205 export default { 135 export default {
206 //父组件 传 过来的 值 136 name: "componentDialog",
207 props: { 137 props: {
208 dialogVisible: { type: Boolean, default: false }, 138 formData: {
209 sqqlRule: { type: Object, default: {} }, 139 type: Object,
210 }, 140 default: () => { }
211 watch: {
212 dialogVisible: {
213 handler: function (newVal, oldVal) {
214 if (newVal) {
215 this.init();
216 } 141 }
217 }, 142 },
218 immediate: true, 143 data () {
219 },
220 },
221 components: {},
222 name: "componentDialog",
223 data() {
224 return { 144 return {
225 tn: 0, 145 tn: 0,
226 n: 0, 146 n: 0,
...@@ -235,32 +155,32 @@ export default { ...@@ -235,32 +155,32 @@ export default {
235 computed: { 155 computed: {
236 ...mapGetters(["dictData"]), 156 ...mapGetters(["dictData"]),
237 }, 157 },
238 mounted() { 158 mounted () {
239 sendThis(this); 159 sendThis(this)
160 this.init()
240 }, 161 },
241 methods: { 162 methods: {
242 //页面初始化 163 //页面初始化
243 init() { 164 init () {
244 this.tn = 0; 165 this.tn = 0;
245 getDjlxInfo(this.sqqlRule.bsmSqyw).then((res) => { 166 getDjlxInfo(this.formData.bsmSqyw).then((res) => {
246 let { result } = res; 167 let { result } = res;
247 this.djlxList = result ? result : []; 168 this.djlxList = result ? result : [];
248 if (this.djlxList.length > 0) { 169 if (this.djlxList.length > 0) {
249 this.getDetail(this.djlxList[0].bsmSqyw); 170 this.getDetail(this.djlxList[0].bsmSqyw);
250 } else { 171 } else {
251 this.getDetail(this.sqqlRule.bsmSqyw); 172 this.getDetail(this.formData.bsmSqyw);
252 } 173 }
253 }); 174 })
254 //}
255 }, 175 },
256 //tab选项卡事件 176 //tab选项卡事件
257 handleTitleSelct(obj, index) { 177 handleTitleSelct (obj, index) {
258 this.n = 0; 178 this.n = 0;
259 this.tn = index; 179 this.tn = index;
260 this.getDetail(this.djlxList[index].bsmSqyw); 180 this.getDetail(this.djlxList[index].bsmSqyw);
261 }, 181 },
262 //获取业务具体明细内容 182 //获取业务具体明细内容
263 getDetail(bsmSqyw) { 183 getDetail (bsmSqyw) {
264 getSqdjywDetail(bsmSqyw).then((res) => { 184 getSqdjywDetail(bsmSqyw).then((res) => {
265 if (res.code === 200) { 185 if (res.code === 200) {
266 this.form = res.result; 186 this.form = res.result;
...@@ -270,7 +190,7 @@ export default { ...@@ -270,7 +190,7 @@ export default {
270 }); 190 });
271 }, 191 },
272 //提交保存数据 192 //提交保存数据
273 submit() { 193 submit () {
274 let that = this; 194 let that = this;
275 saveSqdjyw(this.form).then((res) => { 195 saveSqdjyw(this.form).then((res) => {
276 if (res.code == 200) { 196 if (res.code == 200) {
...@@ -283,25 +203,25 @@ export default { ...@@ -283,25 +203,25 @@ export default {
283 }); 203 });
284 }, 204 },
285 //修改父组件传过来的值 205 //修改父组件传过来的值
286 cancelDialog() { 206 cancelDialog () {
287 this.$emit("update:dialogVisible", false); 207 this.$emit("update:dialogVisible", false);
288 }, 208 },
289 // 上移下移 209 // 上移下移
290 moveUpward(index, row, type) { 210 moveUpward (index, row, type) {
291 if (type == "clxx") { 211 if (type == "clxx") {
292 upward(index, this.form.clxx); 212 upward(index, this.form.clxx);
293 } else { 213 } else {
294 upward(index, this.form.djqx); 214 upward(index, this.form.djqx);
295 } 215 }
296 }, 216 },
297 moveDown(index, row, type) { 217 moveDown (index, row, type) {
298 if (type == "clxx") { 218 if (type == "clxx") {
299 down(index, this.form.clxx); 219 down(index, this.form.clxx);
300 } else { 220 } else {
301 down(index, this.form.djqx); 221 down(index, this.form.djqx);
302 } 222 }
303 }, 223 },
304 addDjqx() { 224 addDjqx () {
305 this.form.djqx.push({ 225 this.form.djqx.push({
306 nodecode: "", 226 nodecode: "",
307 nodename: "", 227 nodename: "",
...@@ -310,10 +230,10 @@ export default { ...@@ -310,10 +230,10 @@ export default {
310 sfqydjyymb: "0", 230 sfqydjyymb: "0",
311 }); 231 });
312 }, 232 },
313 removeDjqx(index, row) { 233 removeDjqx (index, row) {
314 this.form.djqx.splice(index, 1); 234 this.form.djqx.splice(index, 1);
315 }, 235 },
316 addClxx() { 236 addClxx () {
317 this.form.clxx.push({ 237 this.form.clxx.push({
318 isrequired: "1", 238 isrequired: "1",
319 djqxbm: "", 239 djqxbm: "",
...@@ -323,7 +243,7 @@ export default { ...@@ -323,7 +243,7 @@ export default {
323 sfggcl: "1", 243 sfggcl: "1",
324 }); 244 });
325 }, 245 },
326 removeClxx(index, row) { 246 removeClxx (index, row) {
327 this.form.clxx.splice(index, 1); 247 this.form.clxx.splice(index, 1);
328 }, 248 },
329 }, 249 },
...@@ -334,6 +254,7 @@ export default { ...@@ -334,6 +254,7 @@ export default {
334 @import "~@/styles/dialogBox.scss"; 254 @import "~@/styles/dialogBox.scss";
335 @import "~@/styles/collapse.scss"; 255 @import "~@/styles/collapse.scss";
336 @import "~@/styles/dialogBoxheader.scss"; 256 @import "~@/styles/dialogBoxheader.scss";
257
337 .contentBox { 258 .contentBox {
338 height: 75vh; 259 height: 75vh;
339 overflow-y: scroll; 260 overflow-y: scroll;
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
6 <el-row :gutter="20"> 6 <el-row :gutter="20">
7 <el-col :span="6"> 7 <el-col :span="6">
8 <el-form-item label="权利类型"> 8 <el-form-item label="权利类型">
9 <el-select v-model="queryForm.qllx" filterable class="width100" clearable 9 <el-select v-model="queryForm.qllx" filterable class="width100" clearable placeholder="请选择权利类型">
10 placeholder="请选择权利类型">
11 <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value"> 10 <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value">
12 </el-option> 11 </el-option>
13 </el-select> 12 </el-select>
...@@ -34,8 +33,6 @@ ...@@ -34,8 +33,6 @@
34 :column="tableData.columns" :data="tableData.data"> 33 :column="tableData.columns" :data="tableData.data">
35 </lb-table> 34 </lb-table>
36 </div> 35 </div>
37 <component-dialog :dialogVisible="dialogVisible" v-if="sqqlRule && flag" :sqqlRule="sqqlRule"
38 @update:dialogVisible="dialogVisibles"></component-dialog>
39 </div> 36 </div>
40 </template> 37 </template>
41 <script> 38 <script>
...@@ -51,15 +48,12 @@ export default { ...@@ -51,15 +48,12 @@ export default {
51 componentDialog, 48 componentDialog,
52 }, 49 },
53 mixins: [table], 50 mixins: [table],
54 mounted() { 51 mounted () {
55 sendThis(this); 52 sendThis(this);
56 this.queryClick(); 53 this.queryClick();
57 }, 54 },
58 data() { 55 data () {
59 return { 56 return {
60 flag: false,
61 //控制弹窗 显示
62 dialogVisible: false,
63 qllxmc: "", 57 qllxmc: "",
64 isDialog: false, 58 isDialog: false,
65 queryForm: { 59 queryForm: {
...@@ -79,7 +73,7 @@ export default { ...@@ -79,7 +73,7 @@ export default {
79 }, 73 },
80 methods: { 74 methods: {
81 // 初始化数据 75 // 初始化数据
82 queryClick() { 76 queryClick () {
83 this.$startLoading(); 77 this.$startLoading();
84 getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then( 78 getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(
85 (res) => { 79 (res) => {
...@@ -92,29 +86,14 @@ export default { ...@@ -92,29 +86,14 @@ export default {
92 } 86 }
93 ); 87 );
94 }, 88 },
95 //编辑 89 // 修改
96 editClick(row) { 90 editClick (row) {
97 this.flag = true;
98 this.sqqlRule = row; 91 this.sqqlRule = row;
99 this.dialogVisible = true; 92 // this.dialogVisible = true;
100 // if (row.nodecode === 'B50') { 93 this.$popupDialog(row.nodename, "system/sqywgz/sqywDetail", this.sqqlRule, '80%')
101 // this.detailList = [] 94 }
102 // this.bsmSqyw = row.bsmSqyw 95 }
103 // this.isDialog = true 96 }
104 // } else {
105 // getDjlxInfo(row.bsmSqyw).then(res => {
106 // let { result } = res
107 // this.detailList = result ? result : []
108 // this.isDialog = true
109 // })
110 // }
111 },
112 //子组件传 过来的 数据
113 dialogVisibles(v) {
114 this.dialogVisible = v;
115 },
116 },
117 };
118 </script> 97 </script>
119 <style scoped lang="scss"> 98 <style scoped lang="scss">
120 @import "~@/styles/public.scss"; 99 @import "~@/styles/public.scss";
......
1 /*
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-04-11 11:28:15
5 */
1 import filter from '@/utils/filter.js' 6 import filter from '@/utils/filter.js'
2 let vm = null 7 let vm = null
3 8
...@@ -29,7 +34,6 @@ class data extends filter { ...@@ -29,7 +34,6 @@ class data extends filter {
29 render: (h, scope) => { 34 render: (h, scope) => {
30 return <div>{this.sqfls(scope.row.sqfl)}</div>; 35 return <div>{this.sqfls(scope.row.sqfl)}</div>;
31 } 36 }
32
33 }, 37 },
34 { 38 {
35 prop: "nodecode", 39 prop: "nodecode",
...@@ -42,7 +46,7 @@ class data extends filter { ...@@ -42,7 +46,7 @@ class data extends filter {
42 }, 46 },
43 { 47 {
44 label: "是否启用", 48 label: "是否启用",
45 width: '72', 49 width: '80',
46 render: (h, scope) => { 50 render: (h, scope) => {
47 return ( 51 return (
48 <div> 52 <div>
...@@ -67,9 +71,7 @@ class data extends filter { ...@@ -67,9 +71,7 @@ class data extends filter {
67 71
68 { 72 {
69 label: '操作', 73 label: '操作',
70 width: '150', 74 width: '80',
71 align: 'center',
72 fixed: 'right',
73 render: (h, scope) => { 75 render: (h, scope) => {
74 return ( 76 return (
75 <div> 77 <div>
...@@ -80,7 +82,6 @@ class data extends filter { ...@@ -80,7 +82,6 @@ class data extends filter {
80 } 82 }
81 ] 83 ]
82 } 84 }
83
84 qllxs () { 85 qllxs () {
85 return [ 86 return [
86 { value: 1, label: "国有建设用地使用权" }, 87 { value: 1, label: "国有建设用地使用权" },
......