933d34a1 by 任超

style:证书领取界面的开发

1 parent a5311638
...@@ -59,13 +59,13 @@ export default { ...@@ -59,13 +59,13 @@ export default {
59 if (this.btnShow) { //判断按钮的显影来决定是否需要计算高度 59 if (this.btnShow) { //判断按钮的显影来决定是否需要计算高度
60 if (this.height == 'auto') { 60 if (this.height == 'auto') {
61 this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px' 61 this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px'
62 }else{ 62 } else {
63 this.contentHeight = this.height 63 this.contentHeight = this.height
64 } 64 }
65 } else { 65 } else {
66 if(this.height=='auto'){ 66 if (this.height == 'auto') {
67 this.contentHeight = this.$refs.contentRef.offsetHeight 67 this.contentHeight = this.$refs.contentRef.offsetHeight
68 }else{ 68 } else {
69 this.contentHeight = this.height 69 this.contentHeight = this.height
70 } 70 }
71 } 71 }
...@@ -131,7 +131,10 @@ export default { ...@@ -131,7 +131,10 @@ export default {
131 .ls-title { 131 .ls-title {
132 padding: 16px; 132 padding: 16px;
133 color: #ffffff; 133 color: #ffffff;
134 background: linear-gradient(3deg, #409EFF, transparent); 134 background: linear-gradient(3deg, #409EFF, #a7cbee);
135 border-top-left-radius: 5px;
136 border-top-right-radius: 5px;
137 overflow: hidden;
135 } 138 }
136 139
137 .ls-title .svg-icon { 140 .ls-title .svg-icon {
...@@ -145,15 +148,15 @@ export default { ...@@ -145,15 +148,15 @@ export default {
145 } 148 }
146 149
147 .ls-mask-footer { 150 .ls-mask-footer {
148 height: 50px; 151 height: 50px;
149 display: flex; 152 display: flex;
150 justify-content: center; 153 justify-content: center;
151 width: 100%; 154 width: 100%;
152 box-shadow: 0px 0px 2px 0px; 155 box-shadow: 0px 0px 1px 0px;
153 border-radius: 0 0 10px 10px; 156 border-radius: 0 0 5px 5px;
154 position: absolute; 157 position: absolute;
155 bottom: 0; 158 bottom: 0;
156 background: #ffffff; 159 background: #ffffff;
157 } 160 }
158 161
159 162
......
1 <template> 1 <template>
2 <dialogBox title="证书领取" @submitForm="submitForm" saveButton="保存" width="60%" height='30%' @closeDialog="closeDialog" 2 <div class="zslq">
3 v-model="value"> 3 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
4 <div class="from-clues-content"> 4 <el-row>
5 <el-col :span="8">
6 <el-form-item label="发证人姓名">
7 <el-input v-model="ruleForm.fzrxm" disabled></el-input>
8 </el-form-item>
9 </el-col>
10 <el-col :span="8">
11 <el-form-item label="发证时间">
12 <el-input v-model="ruleForm.fzrxm" disabled></el-input>
13 </el-form-item>
14 </el-col>
15 <el-col :span="8">
16 <el-form-item label="发证数量">
17 <el-input v-model="ruleForm.fzsl" disabled></el-input>
18 </el-form-item>
19 </el-col>
20 </el-row>
21
5 <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :heightNum="600"> 22 <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :heightNum="600">
6 </lb-table> 23 </lb-table>
7 </div> 24 <el-row>
8 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" style="display:flex;"> 25 <el-col :span="6">
9 <el-form-item label="领证人" prop="lzrxm"> 26 <el-form-item label="领证人" prop="lzrxm">
10 <el-input v-model="ruleForm.lzrxm"></el-input> 27 <el-input v-model="ruleForm.lzrxm"></el-input>
11 </el-form-item> 28 </el-form-item>
12 <el-form-item label="证件类型" prop="lzrzjlb"> 29 </el-col>
13 <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> 30 <el-col :span="6">
14 <el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode"> 31 <el-form-item label="证件类型" prop="lzrzjlb">
15 </el-option> 32 <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择">
16 </el-select> 33 <el-option v-for="item in zslqList" :key="item.dcode" :label="item.dname" :value="item.dcode">
17 </el-form-item> 34 </el-option>
18 <el-form-item label="证件号" prop="lzrzjh"> 35 </el-select>
19 <el-input v-model="ruleForm.lzrzjh"></el-input> 36 </el-form-item>
20 </el-form-item> 37 </el-col>
21 <el-form-item label="领证人电话" prop="lzrdh"> 38 <el-col :span="6">
22 <el-input v-model="ruleForm.lzrdh"></el-input> 39 <el-form-item label="证件号" prop="lzrzjh">
23 </el-form-item> 40 <el-input v-model="ruleForm.lzrzjh"></el-input>
41 </el-form-item>
42 </el-col>
43 <el-col :span="6">
44 <el-form-item label="领证人电话" prop="lzrdh">
45 <el-input v-model="ruleForm.lzrdh"></el-input>
46 </el-form-item>
47 </el-col>
48 </el-row>
49 <el-row style="text-align:center">
50 <el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
51 <el-button @click="resetForm('ruleForm')">取消</el-button>
52 </el-row>
24 </el-form> 53 </el-form>
25 </dialogBox> 54 </div>
26 </template> 55 </template>
27 56
28 <script> 57 <script>
58 import store from '@/store/index.js'
29 import table from "@/utils/mixin/table"; 59 import table from "@/utils/mixin/table";
30 import { getCertificateList, issueCertificate } from "@/api/fqsq.js"; 60 import { getCertificateList, issueCertificate } from "@/api/fqsq.js";
31 import { datas } from "../javascript/fzxxdata"; 61 import { datas } from "../javascript/fzxxdata";
32 import { mapGetters } from 'vuex'
33 export default { 62 export default {
34 mixins: [table], 63 mixins: [table],
35 components: {
36 ...mapGetters(['dictData']),
37 },
38 props: {
39 value: { type: Boolean, default: false },
40 },
41 data () { 64 data () {
42 return { 65 return {
66 zslqList: [],
43 ruleForm: { 67 ruleForm: {
68 fzrxm: '',
69 fzsj: '',
70 fzsl: '',
44 bsmBdcqz: [], 71 bsmBdcqz: [],
45 lzrxm: '', 72 lzrxm: '',
46 lzrzjlb: '', 73 lzrzjlb: '',
...@@ -68,7 +95,9 @@ export default { ...@@ -68,7 +95,9 @@ export default {
68 }, 95 },
69 } 96 }
70 }, 97 },
71 98 created () {
99 this.zslqList = store.getters.dictData['A30']
100 },
72 methods: { 101 methods: {
73 fetchData () { }, 102 fetchData () { },
74 //列表初始化 103 //列表初始化
......
...@@ -11,11 +11,7 @@ ...@@ -11,11 +11,7 @@
11 </ul> 11 </ul>
12 <!-- 右侧流程按钮 --> 12 <!-- 右侧流程按钮 -->
13 <ul> 13 <ul>
14 <li 14 <li @click="operation(index, item)" v-for="(item, index) in rightButtonList" :key="index">
15 @click="operation(index, item)"
16 v-for="(item, index) in rightButtonList"
17 :key="index"
18 >
19 <svg-icon class="icon" :icon-class="item.icon" /> 15 <svg-icon class="icon" :icon-class="item.icon" />
20 <span class="iconName">{{ item.name }}</span> 16 <span class="iconName">{{ item.name }}</span>
21 </li> 17 </li>
...@@ -28,50 +24,28 @@ ...@@ -28,50 +24,28 @@
28 <div v-if="this.isShowdrawer"> 24 <div v-if="this.isShowdrawer">
29 <div class="title"> 25 <div class="title">
30 申请单元列表({{ unitData.length }}) 26 申请单元列表({{ unitData.length }})
31 <el-button 27 <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button>
32 type="text"
33 class="batchDel"
34 @click="handleBatchDel"
35 v-if="unitData.length > 1"
36 >批量删除</el-button
37 >
38 </div> 28 </div>
39 <el-menu :default-active="activeIndex" @select="unitClick"> 29 <el-menu :default-active="activeIndex" @select="unitClick">
40 <el-menu-item 30 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index">
41 v-for="(item, index) in unitData"
42 :index="index.toString()"
43 :key="index"
44 >
45 <div> 31 <div>
46 <p>{{ item.bdcdyh }}</p> 32 <p>{{ item.bdcdyh }}</p>
47 <p class="title-detail">{{ item.zl }}</p> 33 <p class="title-detail">{{ item.zl }}</p>
48 </div> 34 </div>
49 <i 35 <i class="el-icon-delete" v-if="unitData.length > 1" @click.stop="handleDel(item)"></i>
50 class="el-icon-delete"
51 v-if="unitData.length > 1"
52 @click.stop="handleDel(item)"
53 ></i>
54 </el-menu-item> 36 </el-menu-item>
55 </el-menu> 37 </el-menu>
56 </div> 38 </div>
57 <div 39 <div class="map-drawer-click map-drawer" v-if="!isShowdrawer" @click="
58 class="map-drawer-click map-drawer" 40 () => {
59 v-if="!isShowdrawer" 41 this.isShowdrawer = !this.isShowdrawer;
60 @click=" 42 }
61 () => { 43 "></div>
62 this.isShowdrawer = !this.isShowdrawer; 44 <div class="map-drawer-expand map-drawer" v-else @click="
63 } 45 () => {
64 " 46 this.isShowdrawer = !this.isShowdrawer;
65 ></div> 47 }
66 <div 48 "></div>
67 class="map-drawer-expand map-drawer"
68 v-else
69 @click="
70 () => {
71 this.isShowdrawer = !this.isShowdrawer;
72 }
73 "
74 ></div>
75 </div> 49 </div>
76 <div class="leftCon"> 50 <div class="leftCon">
77 <!-- 分屏左侧预览 --> 51 <!-- 分屏左侧预览 -->
...@@ -81,28 +55,14 @@ ...@@ -81,28 +55,14 @@
81 <!-- 表单内容区域 --> 55 <!-- 表单内容区域 -->
82 <div class="rightContainer"> 56 <div class="rightContainer">
83 <el-tabs v-model="tabName" @tab-click="tabClick"> 57 <el-tabs v-model="tabName" @tab-click="tabClick">
84 <el-tab-pane 58 <el-tab-pane :label="item.name" :name="item.value" v-for="item in tabList" :key="item.value">
85 :label="item.name"
86 :name="item.value"
87 v-for="item in tabList"
88 :key="item.value"
89 >
90 </el-tab-pane> 59 </el-tab-pane>
91 </el-tabs> 60 </el-tabs>
92 <component 61 <component :key="fresh" :is="componentTag" v-bind="currentSelectProps" />
93 :key="fresh"
94 :is="componentTag"
95 v-bind="currentSelectProps"
96 />
97 </div> 62 </div>
98 </div> 63 </div>
99 </div> 64 </div>
100 <fqsqDialog 65 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" />
101 v-model="isDialog"
102 :djywbm="$route.query.sqywbm"
103 :isJump="true"
104 @updateDialog="updateDialog"
105 />
106 </div> 66 </div>
107 </template> 67 </template>
108 68
...@@ -127,7 +87,7 @@ export default { ...@@ -127,7 +87,7 @@ export default {
127 components: { 87 components: {
128 fqsqDialog, 88 fqsqDialog,
129 }, 89 },
130 data() { 90 data () {
131 return { 91 return {
132 isDialog: false, 92 isDialog: false,
133 // 流程图 93 // 流程图
...@@ -166,17 +126,17 @@ export default { ...@@ -166,17 +126,17 @@ export default {
166 clxxTab: {}, 126 clxxTab: {},
167 }; 127 };
168 }, 128 },
169 mounted() { 129 mounted () {
170 this.loadBdcdylist(); 130 this.loadBdcdylist();
171 this.flowInitParam(); 131 this.flowInitParam();
172 }, 132 },
173 methods: { 133 methods: {
174 // 更新列表 134 // 更新列表
175 updateDialog() { 135 updateDialog () {
176 this.loadBdcdylist(); 136 this.loadBdcdylist();
177 }, 137 },
178 // 删除左侧列表 138 // 删除左侧列表
179 handleDel(item) { 139 handleDel (item) {
180 this.$confirm("确定要删除吗, 是否继续?", "提示", { 140 this.$confirm("确定要删除吗, 是否继续?", "提示", {
181 confirmButtonText: "确定", 141 confirmButtonText: "确定",
182 cancelButtonText: "取消", 142 cancelButtonText: "取消",
...@@ -202,7 +162,7 @@ export default { ...@@ -202,7 +162,7 @@ export default {
202 }); 162 });
203 }); 163 });
204 }, 164 },
205 handleBatchDel() { 165 handleBatchDel () {
206 let that = this; 166 let that = this;
207 this.$popup({ 167 this.$popup({
208 title: "批量删除", 168 title: "批量删除",
...@@ -214,14 +174,14 @@ export default { ...@@ -214,14 +174,14 @@ export default {
214 bsmSlsq: this.bsmSlsq, 174 bsmSlsq: this.bsmSlsq,
215 dataList: this.unitData, 175 dataList: this.unitData,
216 }, 176 },
217 cancel: function () {}, //取消事件的回调 177 cancel: function () { }, //取消事件的回调
218 confirm: function () { 178 confirm: function () {
219 that.loadBdcdylist(); 179 that.loadBdcdylist();
220 }, //确认事件的回调 180 }, //确认事件的回调
221 }); 181 });
222 }, 182 },
223 //加载流程初始参数 183 //加载流程初始参数
224 flowInitParam() { 184 flowInitParam () {
225 var formdata = new FormData(); 185 var formdata = new FormData();
226 formdata.append("bsmSlsq", this.bsmSlsq); 186 formdata.append("bsmSlsq", this.bsmSlsq);
227 formdata.append("bestepid", this.bestepid); 187 formdata.append("bestepid", this.bestepid);
...@@ -261,6 +221,7 @@ export default { ...@@ -261,6 +221,7 @@ export default {
261 this.$popup({ 221 this.$popup({
262 title: "流程图", 222 title: "流程图",
263 btnShow: true, 223 btnShow: true,
224 height: '250px',
264 editItem: "workflow/components/flowChart", 225 editItem: "workflow/components/flowChart",
265 formData: this.imgSrc, 226 formData: this.imgSrc,
266 }); 227 });
...@@ -268,8 +229,8 @@ export default { ...@@ -268,8 +229,8 @@ export default {
268 break; 229 break;
269 case "B2": //材料分屏按钮 230 case "B2": //材料分屏按钮
270 this.splitScreen = this.splitScreen ? false : true; 231 this.splitScreen = this.splitScreen ? false : true;
271 this.$store.dispatch("app/settScreen", this.splitScreen); 232 this.$store.dispatch("app/settScreen", this.splitScreen);
272 if (this.splitScreen) { 233 if (this.splitScreen) {
273 //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 234 //如果当前选项卡为材料信息内容,递减到上一个选项卡内容
274 if (this.tabName == this.clxxTab.value) { 235 if (this.tabName == this.clxxTab.value) {
275 this.tabName = this.tabList[this.clxxIndex - 1].value; 236 this.tabName = this.tabList[this.clxxIndex - 1].value;
...@@ -278,7 +239,7 @@ export default { ...@@ -278,7 +239,7 @@ export default {
278 //删除材料信息选项卡数据 239 //删除材料信息选项卡数据
279 this.tabList.splice(this.clxxIndex, 1); 240 this.tabList.splice(this.clxxIndex, 1);
280 } else { 241 } else {
281 //新增材料信息选项卡数据 242 //新增材料信息选项卡数据
282 this.tabList.splice(this.clxxIndex, 0, this.clxxTab); 243 this.tabList.splice(this.clxxIndex, 0, this.clxxTab);
283 } 244 }
284 break; 245 break;
...@@ -303,6 +264,20 @@ export default { ...@@ -303,6 +264,20 @@ export default {
303 case "B5": 264 case "B5":
304 this.zsylFlag = true; 265 this.zsylFlag = true;
305 break; 266 break;
267 case "B7":
268 this.$popup({
269 title: "证书领取",
270 editItem: "workflow/components/zslq",
271 height: "500px",
272 formData: {},
273 cancel: () => {
274 console.log("取消回调");
275 },
276 confirm: () => {
277 console.log("确认回调");
278 },
279 })
280 break;
306 case "back": //退回按钮 281 case "back": //退回按钮
307 break; 282 break;
308 case "transfer": //转件按钮 283 case "transfer": //转件按钮
...@@ -339,7 +314,7 @@ export default { ...@@ -339,7 +314,7 @@ export default {
339 } 314 }
340 }, 315 },
341 //读取申请单元信息 316 //读取申请单元信息
342 loadBdcdylist() { 317 loadBdcdylist () {
343 var formdata = new FormData(); 318 var formdata = new FormData();
344 formdata.append("bsmSlsq", this.bsmSlsq); 319 formdata.append("bsmSlsq", this.bsmSlsq);
345 formdata.append("bestepid", this.bestepid); 320 formdata.append("bestepid", this.bestepid);
...@@ -351,22 +326,22 @@ export default { ...@@ -351,22 +326,22 @@ export default {
351 }); 326 });
352 }, 327 },
353 //申请单元点击事件 328 //申请单元点击事件
354 unitClick(index) { 329 unitClick (index) {
355 if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) { 330 if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) {
356 this.currentSelectProps = this.unitData[index]; 331 this.currentSelectProps = this.unitData[index];
357 this.fresh += 1; 332 this.fresh += 1;
358 } 333 }
359 }, 334 },
360 //表单选项卡事件 335 //表单选项卡事件
361 tabClick(tab, event) { 336 tabClick (tab, event) {
362 this.getFromRouter(tab.name); 337 this.getFromRouter(tab.name);
363 }, 338 },
364 //切换选项卡内容组件 339 //切换选项卡内容组件
365 getFromRouter(tabname) { 340 getFromRouter (tabname) {
366 this.componentTag = getForm(tabname); 341 this.componentTag = getForm(tabname);
367 }, 342 },
368 //发送下一个环节 343 //发送下一个环节
369 send(obj) { 344 send (obj) {
370 const h = this.$createElement; 345 const h = this.$createElement;
371 this.$msgbox({ 346 this.$msgbox({
372 title: "您确定转出吗?", 347 title: "您确定转出吗?",
......