c4499985 by renchao@pashanhoo.com

style:申请业务规则

1 parent e305382e
...@@ -103,17 +103,6 @@ class data extends filter { ...@@ -103,17 +103,6 @@ class data extends filter {
103 return [ 103 return [
104 { 104 {
105 width: '60', 105 width: '60',
106 renderHeader: (h, scope) => {
107 return <i class="el-icon-plus pointer" onClick={() => { vm.addDjqx() }} style="color:#409EFF"></i>
108 },
109 render: (h, scope) => {
110 return (
111 <i class="el-icon-minus pointer" onClick={() => { vm.removeDjqx(scope.$index, scope.row) }}></i>
112 )
113 }
114 },
115 {
116 width: '60',
117 label: '序号', 106 label: '序号',
118 type: 'index' 107 type: 'index'
119 }, 108 },
...@@ -165,7 +154,7 @@ class data extends filter { ...@@ -165,7 +154,7 @@ class data extends filter {
165 return ( 154 return (
166 <div> 155 <div>
167 <el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row, 'djqx') }}>上移</el-button> 156 <el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row, 'djqx') }}>上移</el-button>
168 <el-button type='text' disabled={(scope.$index + 1) == vm.form.djqx.length} onClick={() => { vm.moveDown(scope.$index, scope.row, 'djqx') }}>下移</el-button > 157 <el-button type='text' disabled={(scope.$index + 1) == vm.form.djlx.length} onClick={() => { vm.moveDown(scope.$index, scope.row, 'djqx') }}>下移</el-button >
169 </div> 158 </div>
170 ) 159 )
171 } 160 }
...@@ -260,7 +249,7 @@ class data extends filter { ...@@ -260,7 +249,7 @@ class data extends filter {
260 }, 249 },
261 { 250 {
262 prop: 'djqxbm', 251 prop: 'djqxbm',
263 label: '登记情形', 252 label: '登记情形名称',
264 width: '180', 253 width: '180',
265 render: (h, scope) => { 254 render: (h, scope) => {
266 return ( 255 return (
...@@ -269,7 +258,126 @@ class data extends filter { ...@@ -269,7 +258,126 @@ class data extends filter {
269 { 258 {
270 vm.form.djqx.map(option => { 259 vm.form.djqx.map(option => {
271 return ( 260 return (
272 <el-option label={option.nodename} value={option.nodecode}></el-option> 261 <el-option label={option.nodename} value={option.bsmSqyw}></el-option>
262 )
263 })
264 }
265 </el-select>
266 )
267 }
268 },
269 {
270 label: '移动',
271 width: '90',
272 render: (h, scope) => {
273 return (
274 <div>
275 <el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row, 'clxx') }}>上移</el-button>
276 <el-button type='text' disabled={(scope.$index + 1) == vm.form.clxx.length} onClick={() => { vm.moveDown(scope.$index, scope.row, 'clxx') }}>下移</el-button >
277 </div>
278 )
279 }
280 }
281 ]
282 }
283 ybsqClxxCol () {
284 return [
285 {
286 width: '60',
287 renderHeader: (h, scope) => {
288 return <i class="el-icon-plus pointer" onClick={() => { vm.addClxx() }} style="color:#409EFF"></i>
289 },
290 render: (h, scope) => {
291 return (
292 <i class="el-icon-minus pointer" onClick={() => { vm.removeClxx(scope.$index, scope.row) }}></i>
293 )
294 }
295 },
296 {
297 width: '60',
298 label: '序号',
299 type: 'index'
300 },
301 {
302 label: '是否必填',
303 prop: 'isrequired',
304 width: '110',
305 render: (h, scope) => {
306 return (
307 <el-radio-group value={scope.row[scope.column.property]} onInput={(val) => {
308 scope.row[scope.column.property] = val
309 }}>
310 <el-radio label={'0'}></el-radio>
311 <el-radio label={'1'}></el-radio>
312 </el-radio-group>
313 )
314 }
315 },
316 {
317 prop: 'clbm',
318 label: '材料编码',
319 width: '100',
320 render: (h, scope) => {
321 return (
322 <el-input placeholder="材料编码" value={scope.row[scope.column.property]}
323 onInput={(val) => { scope.row[scope.column.property] = val; orderNoChange() }} maxlength="8"></el-input>
324 )
325 }
326 },
327 {
328 prop: 'clmc',
329 label: '材料名称',
330 render: (h, scope) => {
331 return (
332 <el-input placeholder="材料名称" value={scope.row[scope.column.property]}
333 onInput={(val) => { scope.row[scope.column.property] = val; orderNoChange() }}></el-input>
334 )
335 }
336 },
337 {
338 prop: 'cllx',
339 label: '材料类型',
340 width: '115',
341 render: (h, scope) => {
342 return (
343 <el-select value={scope.row[scope.column.property]}
344 onChange={(val) => { scope.row[scope.column.property] = val }} clearable>
345 {
346 store.getters.dictData['A40'].map(option => {
347 return (
348 <el-option label={option.dname} value={option.dcode}></el-option>
349 )
350 })
351 }
352 </el-select>
353 )
354 }
355 },
356 {
357 label: '是否公共材料',
358 prop: 'sfggcl',
359 width: '110',
360 render: (h, scope) => {
361 return (
362 <el-radio-group value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}>
363 <el-radio label={'1'}></el-radio>
364 <el-radio label={'0'}></el-radio>
365 </el-radio-group>
366 )
367 }
368 },
369 {
370 prop: 'djqxbm',
371 label: '业务名称',
372 width: '180',
373 render: (h, scope) => {
374 return (
375 <el-select disabled={scope.row.sfggcl == '1'} value={scope.row[scope.column.property]}
376 onChange={(val) => { scope.row[scope.column.property] = val }} clearable>
377 {
378 vm.form.ywmcList.map(option => {
379 return (
380 <el-option label={option.nodename} value={option.bsmSqyw}></el-option>
273 ) 381 )
274 }) 382 })
275 } 383 }
...@@ -291,7 +399,6 @@ class data extends filter { ...@@ -291,7 +399,6 @@ class data extends filter {
291 } 399 }
292 ] 400 ]
293 } 401 }
294
295 } 402 }
296 let datas = new data() 403 let datas = new data()
297 export { 404 export {
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-10-13 09:30:24 4 * @LastEditTime: 2023-10-13 10:07:31
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
111 </lb-table> 111 </lb-table>
112 </el-collapse-item> 112 </el-collapse-item>
113 <el-collapse-item title="材料信息设置" name="2"> 113 <el-collapse-item title="材料信息设置" name="2">
114 <lb-table :column="clxxCol" :heightNumSetting="true" :minHeight="160" 114 <lb-table :column="clxxList" :heightNumSetting="true" :minHeight="160"
115 :pagination="false" :data="form.clxx"> 115 :pagination="false" :data="form.clxx">
116 </lb-table> 116 </lb-table>
117 </el-collapse-item> 117 </el-collapse-item>
...@@ -188,7 +188,9 @@ ...@@ -188,7 +188,9 @@
188 // clxx: [] 188 // clxx: []
189 }, 189 },
190 djqxCol: datas.djqxCol(), 190 djqxCol: datas.djqxCol(),
191 clxxList: [],
191 clxxCol: datas.clxxCol(), 192 clxxCol: datas.clxxCol(),
193 ybsqClxxCol: datas.ybsqClxxCol(),
192 qlxxCol: datas.qlxxCol(), 194 qlxxCol: datas.qlxxCol(),
193 }; 195 };
194 }, 196 },
...@@ -206,7 +208,9 @@ ...@@ -206,7 +208,9 @@
206 this.tn = 0; 208 this.tn = 0;
207 if (this.formData.sqfl == "2") { 209 if (this.formData.sqfl == "2") {
208 this.getDetail(this.formData.bsmSqyw); 210 this.getDetail(this.formData.bsmSqyw);
211 this.clxxList = this.ybsqClxxCol
209 } else { 212 } else {
213 this.clxxList = this.clxxCol
210 getDjlxInfo(this.formData.bsmSqyw).then((res) => { 214 getDjlxInfo(this.formData.bsmSqyw).then((res) => {
211 let { result } = res; 215 let { result } = res;
212 this.djlxList = result ? result : []; 216 this.djlxList = result ? result : [];
...@@ -273,8 +277,10 @@ ...@@ -273,8 +277,10 @@
273 getSqdjywDetail(bsmSqyw).then((res) => { 277 getSqdjywDetail(bsmSqyw).then((res) => {
274 if (res.code === 200) { 278 if (res.code === 200) {
275 this.form = res.result; 279 this.form = res.result;
280 console.log(this.form.clxx);
276 if (that.formData.sqfl == "2") { 281 if (that.formData.sqfl == "2") {
277 that.form.djqx = that.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw })) 282 that.form.ywmcList = that.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw }))
283 console.log(that.form.ywmcList, ' that.form.ywmcList');
278 } 284 }
279 // _this.form.bsmSqyw = res.result.bsmSqyw; 285 // _this.form.bsmSqyw = res.result.bsmSqyw;
280 // _this.form.ywDetail = res.result.ywDetail; 286 // _this.form.ywDetail = res.result.ywDetail;
...@@ -328,7 +334,7 @@ ...@@ -328,7 +334,7 @@
328 if (type == "clxx") { 334 if (type == "clxx") {
329 upward(index, this.form.clxx); 335 upward(index, this.form.clxx);
330 } else { 336 } else {
331 upward(index, this.form.djqx); 337 upward(index, this.form.djlx);
332 } 338 }
333 }, 339 },
334 /** 340 /**
...@@ -342,7 +348,7 @@ ...@@ -342,7 +348,7 @@
342 if (type == "clxx") { 348 if (type == "clxx") {
343 down(index, this.form.clxx); 349 down(index, this.form.clxx);
344 } else { 350 } else {
345 down(index, this.form.djqx); 351 down(index, this.form.djlx);
346 } 352 }
347 }, 353 },
348 /** 354 /**
......