修改申请业务规则
Showing
3 changed files
with
339 additions
and
21 deletions
src/views/system/sqywgz/sqywDetail.vue
0 → 100644
1 | <template> | ||
2 | <el-dialog | ||
3 | :title="sqqlRule.nodename" | ||
4 | :visible.sync="dialogVisible" | ||
5 | :before-close="cancelDialog" | ||
6 | > | ||
7 | <ul class="edit-title-list" v-if="djlxList.length > 0"> | ||
8 | <li | ||
9 | v-for="(item, index) in djlxList" | ||
10 | @click="handleTitleSelct(item, index)" | ||
11 | :key="index" | ||
12 | :class="{ active: index == tn }" | ||
13 | > | ||
14 | {{ item.nodename }} | ||
15 | </li> | ||
16 | </ul> | ||
17 | <el-collapse v-model="activeName" accordion> | ||
18 | <el-collapse-item title="业务详情" name="1"> | ||
19 | <el-form | ||
20 | :model="form" | ||
21 | v-show="n == 0" | ||
22 | :rules="rules" | ||
23 | label-width="135px" | ||
24 | ref="ruleForm" | ||
25 | > | ||
26 | <el-row> | ||
27 | <el-col :span="8"> | ||
28 | <el-form-item label="权利类型编码"> | ||
29 | <el-input v-model="form.ywDetail.qllxbm" disabled></el-input> | ||
30 | </el-form-item> | ||
31 | </el-col> | ||
32 | <!-- <el-col :span="8"> | ||
33 | <el-form-item label="权利类型名称"> | ||
34 | <el-input v-model="form.ywDetail.qllxmc" disabled></el-input> | ||
35 | </el-form-item> | ||
36 | </el-col> | ||
37 | <el-col :span="8"> | ||
38 | <el-form-item label="申请分类"> | ||
39 | <el-select v-model="form.ywDetail.sqfl" disabled placeholder="请选择" class="width100"> | ||
40 | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> | ||
41 | </el-option> | ||
42 | </el-select> | ||
43 | </el-form-item> | ||
44 | </el-col> --> | ||
45 | </el-row> | ||
46 | <!-- <el-row> | ||
47 | <el-col :span="8"> | ||
48 | <el-form-item label="登记类型编码"> | ||
49 | <el-input v-model="form.ywDetail.djlxbm" disabled></el-input> | ||
50 | </el-form-item> | ||
51 | </el-col> | ||
52 | <el-col :span="8"> | ||
53 | <el-form-item label="登记类型名称"> | ||
54 | <el-input v-model="form.ywDetail.djlxmc" disabled></el-input> | ||
55 | </el-form-item> | ||
56 | </el-col> | ||
57 | <el-col :span="8"> | ||
58 | <el-form-item label="发起业务单元类型"> | ||
59 | <el-select v-model="form.ywDetail.fqywdylx" disabled placeholder="请选择" class="width100"> | ||
60 | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> | ||
61 | </el-option> | ||
62 | </el-select> | ||
63 | </el-form-item> | ||
64 | </el-col> | ||
65 | </el-row> | ||
66 | <el-row> | ||
67 | <el-col :span="8"> | ||
68 | <el-form-item label="登记业务编码"> | ||
69 | <el-input v-model="form.ywDetail.djywbm" disabled></el-input> | ||
70 | </el-form-item> | ||
71 | </el-col> | ||
72 | <el-col :span="16"> | ||
73 | <el-form-item label="登记业务名称"> | ||
74 | <el-input v-model="form.ywDetail.djywmc" disabled></el-input> | ||
75 | </el-form-item> | ||
76 | </el-col> | ||
77 | </el-row> | ||
78 | <el-row> | ||
79 | <el-col :span="8"> | ||
80 | <el-form-item label="是否启用" prop="enabled"> | ||
81 | <el-radio-group v-model="form.ywDetail.enabled"> | ||
82 | <el-radio label="1">启用</el-radio> | ||
83 | <el-radio label="0">禁用</el-radio> | ||
84 | </el-radio-group> | ||
85 | </el-form-item> | ||
86 | </el-col> | ||
87 | <el-col :span="16"> | ||
88 | <el-form-item label="业务流程ID" prop="flowid"> | ||
89 | <el-input v-model="form.ywDetail.flowid"></el-input> | ||
90 | </el-form-item> | ||
91 | </el-col> | ||
92 | </el-row> | ||
93 | <el-row> | ||
94 | <el-col :span="8"> | ||
95 | <el-form-item label="登记情形及材料"> | ||
96 | <el-input v-model="form.ywDetail.djqxcl" placeholder="仅支持execl文件导入"></el-input> | ||
97 | </el-form-item> | ||
98 | </el-col> | ||
99 | <el-col :span="1"> | ||
100 | <el-upload ref="upload" :action="imgUploadUrl" :limit="1" accept=".xls, .xlsx" :show-file-list="false" | ||
101 | :disabled='requested' :file-list="fileList" :before-upload="uploadRecord" :on-success="handleSuccess"> | ||
102 | <el-button type="primary" icon="el-icon-upload" :loading="requested">上传材料</el-button> | ||
103 | </el-upload> | ||
104 | </el-col> | ||
105 | </el-row> | ||
106 | <el-row> | ||
107 | <el-col :span="8"> | ||
108 | <el-form-item label="登记原因设置" prop="sfqydjyymb"> | ||
109 | <el-radio-group v-model="form.ywDetail.sfqydjyymb"> | ||
110 | <el-radio label="1">启用</el-radio> | ||
111 | <el-radio label="0">禁用</el-radio> | ||
112 | </el-radio-group> | ||
113 | </el-form-item> | ||
114 | </el-col> | ||
115 | </el-row> | ||
116 | <el-row> | ||
117 | <el-col :span="24"> | ||
118 | <el-form-item label="登记原因模板" prop="djyy"> | ||
119 | <el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="form.ywDetail.djyy"> | ||
120 | </el-input> | ||
121 | </el-form-item> | ||
122 | </el-col> | ||
123 | </el-row> --> | ||
124 | </el-form> | ||
125 | </el-collapse-item> | ||
126 | <el-collapse-item title="登记情形设置" name="2"> | ||
127 | <div> | ||
128 | 控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作; | ||
129 | </div> | ||
130 | <div>页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。</div> | ||
131 | </el-collapse-item> | ||
132 | <el-collapse-item title="材料信息设置" name="3"> | ||
133 | <div>简化流程:设计简洁直观的操作流程;</div> | ||
134 | <div> | ||
135 | 清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策; | ||
136 | </div> | ||
137 | <div> | ||
138 | 帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。 | ||
139 | </div> | ||
140 | </el-collapse-item> | ||
141 | <el-collapse-item title="刷选条件设置" name="4"> | ||
142 | <div> | ||
143 | 用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策; | ||
144 | </div> | ||
145 | <div> | ||
146 | 结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。 | ||
147 | </div> | ||
148 | </el-collapse-item> | ||
149 | </el-collapse> | ||
150 | <div slot="footer" class="dialog-footer"> | ||
151 | <el-button @click="cancelDialog">取 消</el-button> | ||
152 | <el-button type="primary" @click="cancelDialog">确 定</el-button> | ||
153 | </div> | ||
154 | </el-dialog> | ||
155 | </template> | ||
156 | <script> | ||
157 | import { getDjlxInfo, getSqdjywDetail } from "@/api/system.js"; | ||
158 | export default { | ||
159 | //父组件 传 过来的 值 | ||
160 | props: { | ||
161 | dialogVisible: { type: Boolean, default: false }, | ||
162 | sqqlRule: { type: Object, default: {} }, | ||
163 | }, | ||
164 | watch: { | ||
165 | dialogVisible: { | ||
166 | handler: function (newVal, oldVal) { | ||
167 | if (newVal) { | ||
168 | this.init(); | ||
169 | } | ||
170 | }, | ||
171 | immediate: true, | ||
172 | }, | ||
173 | }, | ||
174 | components: {}, | ||
175 | name: "componentDialog", | ||
176 | data() { | ||
177 | return { | ||
178 | tn: 0, | ||
179 | n: 0, | ||
180 | djlxList: [], | ||
181 | title: "", | ||
182 | activeName: "1", | ||
183 | form: {}, | ||
184 | }; | ||
185 | }, | ||
186 | mounted() {}, | ||
187 | methods: { | ||
188 | //页面初始化 | ||
189 | init() { | ||
190 | getDjlxInfo(this.sqqlRule.bsmSqyw).then((res) => { | ||
191 | let { result } = res; | ||
192 | this.djlxList = result ? result : []; | ||
193 | this.getDetail(this.djlxList[0].bsmSqyw); | ||
194 | }); | ||
195 | //} | ||
196 | }, | ||
197 | //tab选项卡事件 | ||
198 | handleTitleSelct(obj, index) { | ||
199 | this.n = 0; | ||
200 | this.tn = index; | ||
201 | this.getDetail(this.djlxList[index].bsmSqyw); | ||
202 | }, | ||
203 | getDetail(bsmSqyw) { | ||
204 | getSqdjywDetail(bsmSqyw).then((res) => { | ||
205 | if (res.code === 200) { | ||
206 | this.form = res.result; | ||
207 | } else { | ||
208 | this.$alert(res.message); | ||
209 | } | ||
210 | }); | ||
211 | }, | ||
212 | //修改父组件传过来的值 | ||
213 | cancelDialog() { | ||
214 | this.$emit("update:dialogVisible", false); | ||
215 | }, | ||
216 | }, | ||
217 | }; | ||
218 | </script> | ||
219 | <style lang='scss' scoped> | ||
220 | @import "~@/styles/mixin.scss"; | ||
221 | .form { | ||
222 | background: #eee; | ||
223 | padding: 0 10px; | ||
224 | } | ||
225 | .dialog-footer { | ||
226 | text-align: center; | ||
227 | } | ||
228 | .edit-title-list { | ||
229 | @include flex; | ||
230 | |||
231 | li { | ||
232 | flex: 1; | ||
233 | @include flex-center; | ||
234 | border: 1px solid $borderColor; | ||
235 | line-height: 36px; | ||
236 | margin-bottom: 10px; | ||
237 | cursor: pointer; | ||
238 | transition: all 0.3s; | ||
239 | |||
240 | &:hover { | ||
241 | @extend .active; | ||
242 | } | ||
243 | } | ||
244 | } | ||
245 | .active { | ||
246 | background: $light-blue !important; | ||
247 | color: #fff; | ||
248 | } | ||
249 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -34,18 +34,21 @@ | ... | @@ -34,18 +34,21 @@ |
34 | :column="tableData.columns" :data="tableData.data"> | 34 | :column="tableData.columns" :data="tableData.data"> |
35 | </lb-table> | 35 | </lb-table> |
36 | </div> | 36 | </div> |
37 | <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> | 37 | <!-- <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> --> |
38 | <component-dialog :dialogVisible="dialogVisible" v-if="sqqlRule&&flag" :sqqlRule="sqqlRule" @update:dialogVisible="dialogVisibles"></component-dialog> | ||
38 | </div> | 39 | </div> |
39 | </template> | 40 | </template> |
40 | <script> | 41 | <script> |
41 | import table from "@/utils/mixin/table" | 42 | import table from "@/utils/mixin/table" |
42 | import editDialog from "./components/editDialog.vue" | 43 | import editDialog from "./components/editDialog.vue" |
44 | import componentDialog from "./sqywDetail.vue" | ||
43 | import { datas, sendThis } from "./sqywgzdata" | 45 | import { datas, sendThis } from "./sqywgzdata" |
44 | import { getSysSqdjywBysearch, getDjlxInfo } from "@/api/system.js" | 46 | import { getSysSqdjywBysearch, getDjlxInfo } from "@/api/system.js" |
45 | export default { | 47 | export default { |
46 | name: "djbcx", | 48 | name: "djbcx", |
47 | components: { | 49 | components: { |
48 | editDialog | 50 | editDialog, |
51 | componentDialog | ||
49 | }, | 52 | }, |
50 | mixins: [table], | 53 | mixins: [table], |
51 | mounted () { | 54 | mounted () { |
... | @@ -54,6 +57,10 @@ export default { | ... | @@ -54,6 +57,10 @@ export default { |
54 | }, | 57 | }, |
55 | data () { | 58 | data () { |
56 | return { | 59 | return { |
60 | flag:false, | ||
61 | //控制弹窗 显示 | ||
62 | dialogVisible: false, | ||
63 | qllxmc:"", | ||
57 | isDialog: false, | 64 | isDialog: false, |
58 | queryForm: { | 65 | queryForm: { |
59 | qllx: "", | 66 | qllx: "", |
... | @@ -66,7 +73,8 @@ export default { | ... | @@ -66,7 +73,8 @@ export default { |
66 | data: [] | 73 | data: [] |
67 | }, | 74 | }, |
68 | detailList: [], | 75 | detailList: [], |
69 | bsmSqyw: '' | 76 | bsmSqyw:"", |
77 | sqqlRule:"", | ||
70 | } | 78 | } |
71 | }, | 79 | }, |
72 | methods: { | 80 | methods: { |
... | @@ -84,17 +92,24 @@ export default { | ... | @@ -84,17 +92,24 @@ export default { |
84 | }, | 92 | }, |
85 | //编辑 | 93 | //编辑 |
86 | editClick (row) { | 94 | editClick (row) { |
87 | if (row.nodecode === 'B50') { | 95 | this.flag=true; |
88 | this.detailList = [] | 96 | this.sqqlRule = row; |
89 | this.bsmSqyw = row.bsmSqyw | 97 | this.dialogVisible = true; |
90 | this.isDialog = true | 98 | // if (row.nodecode === 'B50') { |
91 | } else { | 99 | // this.detailList = [] |
92 | getDjlxInfo(row.bsmSqyw).then(res => { | 100 | // this.bsmSqyw = row.bsmSqyw |
93 | let { result } = res | 101 | // this.isDialog = true |
94 | this.detailList = result ? result : [] | 102 | // } else { |
95 | this.isDialog = true | 103 | // getDjlxInfo(row.bsmSqyw).then(res => { |
96 | }) | 104 | // let { result } = res |
97 | } | 105 | // this.detailList = result ? result : [] |
106 | // this.isDialog = true | ||
107 | // }) | ||
108 | // } | ||
109 | }, | ||
110 | //子组件传 过来的 数据 | ||
111 | dialogVisibles(v){ | ||
112 | this.dialogVisible = v; | ||
98 | } | 113 | } |
99 | }, | 114 | }, |
100 | }; | 115 | }; | ... | ... |
... | @@ -28,12 +28,7 @@ | ... | @@ -28,12 +28,7 @@ |
28 | </el-form-item> | 28 | </el-form-item> |
29 | </el-form> | 29 | </el-form> |
30 | </div> | 30 | </div> |
31 | <div | 31 | <div class="aaaa" v-if="bdcqz.bdcqzlx==1" :style="{backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')',}"> |
32 | class="aaaa" | ||
33 | :style="{ | ||
34 | backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')', | ||
35 | }" | ||
36 | > | ||
37 | <div class="bdcqzh"> | 32 | <div class="bdcqzh"> |
38 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> | 33 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> |
39 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> | 34 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> |
... | @@ -76,6 +71,45 @@ | ... | @@ -76,6 +71,45 @@ |
76 | </div> | 71 | </div> |
77 | </div> | 72 | </div> |
78 | </div> | 73 | </div> |
74 | <div class="bdcdjzm" v-else :style="{backgroundImage: 'url(' + require('@/image/bdcqz/bdcdjzm.jpg') + ')',}"> | ||
75 | <div class="bdcqzh"> | ||
76 | <span>{{ bdcqz.sjjc }}</span> <span>{{ bdcqz.djnd }}</span> | ||
77 | <span>{{ bdcqz.sxqc }}</span> <span>{{ bdcqz.sxh }}</span> | ||
78 | </div> | ||
79 | <div class="zmyl-box"> | ||
80 | <div class="qlr"> | ||
81 | {{ bdcqz.qlr }} | ||
82 | </div> | ||
83 | <div class="gyqk"> | ||
84 | {{ bdcqz.gyqk }} | ||
85 | </div> | ||
86 | <div class="zl"> | ||
87 | {{ bdcqz.zl }} | ||
88 | </div> | ||
89 | <div class="bdcdyh"> | ||
90 | {{ bdcqz.bdcdyh }} | ||
91 | </div> | ||
92 | <div class="qllx"> | ||
93 | {{ bdcqz.qllx }} | ||
94 | </div> | ||
95 | <div class="qlxz"> | ||
96 | {{ bdcqz.qlxz }} | ||
97 | </div> | ||
98 | <div class="yt"> | ||
99 | {{ bdcqz.yt }} | ||
100 | </div> | ||
101 | <div class="mj"> | ||
102 | {{ bdcqz.mj }} | ||
103 | </div> | ||
104 | <div class="syqx"> | ||
105 | {{ bdcqz.syqx }} | ||
106 | </div> | ||
107 | <div class="qt"> | ||
108 | {{ bdcqz.qlqtzk }} | ||
109 | </div> | ||
110 | <div class="fj">{{ bdcqz.fj }}</div> | ||
111 | </div> | ||
112 | </div> | ||
79 | </div> | 113 | </div> |
80 | </dialogBox> | 114 | </dialogBox> |
81 | </template> | 115 | </template> |
... | @@ -118,13 +152,18 @@ export default { | ... | @@ -118,13 +152,18 @@ export default { |
118 | this.columns = datas.columns(); | 152 | this.columns = datas.columns(); |
119 | }, | 153 | }, |
120 | }, | 154 | }, |
121 | created() {}, | 155 | created() { |
156 | this.ysxlhList(); | ||
157 | }, | ||
122 | methods: { | 158 | methods: { |
123 | //获取印刷序列号列表 | 159 | //获取印刷序列号列表 |
124 | ysxlhList() { | 160 | ysxlhList() { |
161 | console.log(this.bdcqz); | ||
125 | readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => { | 162 | readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => { |
126 | if (res.code === 200) { | 163 | if (res.code === 200) { |
127 | this.ysxlh = res.result; | 164 | this.ysxlh = res.result; |
165 | console.log(this.ysxlh); | ||
166 | //this.bdcqz.ysxlh= this.ysxlh[0]; | ||
128 | } | 167 | } |
129 | }); | 168 | }); |
130 | }, | 169 | }, |
... | @@ -164,6 +203,21 @@ export default { | ... | @@ -164,6 +203,21 @@ export default { |
164 | font-family: KaiTi; | 203 | font-family: KaiTi; |
165 | font-weight: 700; | 204 | font-weight: 700; |
166 | } | 205 | } |
206 | .bdcdjzm { | ||
207 | width: 1123px; | ||
208 | height: 794px; | ||
209 | font-family: KaiTi; | ||
210 | font-weight: 700; | ||
211 | } | ||
212 | .zmyl-box { | ||
213 | //position: relative; | ||
214 | position:absolute; | ||
215 | height: 600px; | ||
216 | width: 280px; | ||
217 | margin-left: 775px; | ||
218 | font-size: 16px; | ||
219 | justify-content: space-between; | ||
220 | } | ||
167 | .bdcqzh { | 221 | .bdcqzh { |
168 | height: 70px; | 222 | height: 70px; |
169 | left: 0; | 223 | left: 0; | ... | ... |
-
Please register or sign in to post a comment