修改规则设置
Showing
1 changed file
with
230 additions
and
0 deletions
src/views/system/sqywgz/sqywDetail.js
0 → 100644
1 | import filter from '@/utils/filter.js' | ||
2 | let vm = null | ||
3 | |||
4 | const sendThis = (_this) => { | ||
5 | vm = _this | ||
6 | } | ||
7 | class data extends filter { | ||
8 | constructor() { | ||
9 | super() | ||
10 | } | ||
11 | djqxCol (){ | ||
12 | return [ | ||
13 | { | ||
14 | width: '60', | ||
15 | renderHeader: (h, scope) => { | ||
16 | return <i class="el-icon-plus pointer" onClick={() => { vm.handleAdd() }} style="color:#409EFF"></i> | ||
17 | }, | ||
18 | render: (h, scope) => { | ||
19 | return ( | ||
20 | <i class="el-icon-minus pointer" onClick={() => { vm.handleMinus(scope.$index, scope.row) }}></i> | ||
21 | ) | ||
22 | } | ||
23 | }, | ||
24 | { | ||
25 | width: '60', | ||
26 | label: '序号', | ||
27 | type: 'index' | ||
28 | }, | ||
29 | { | ||
30 | prop: 'nodecode', | ||
31 | width: '105', | ||
32 | label: '登记情形编码', | ||
33 | render: (h, scope) => { | ||
34 | return ( | ||
35 | <div> | ||
36 | <el-input placeholder="登记情形编码" class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'} | ||
37 | value={scope.row[scope.column.property]} | ||
38 | onInput={(val) => { scope.row[scope.column.property] = val }} onBlur={() => { vm.nodecodeBlur(scope.$index, scope.row) }} maxlength="8"> | ||
39 | </el-input> | ||
40 | </div> | ||
41 | ) | ||
42 | } | ||
43 | }, | ||
44 | { | ||
45 | prop: 'nodename', | ||
46 | label: '登记情形名称', | ||
47 | render: (h, scope) => { | ||
48 | return ( | ||
49 | <div> | ||
50 | <el-input placeholder="登记情形名称" disabled={scope.row.sftsdjqx == '1'} | ||
51 | value={scope.row[scope.column.property]} | ||
52 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | ||
53 | </div> | ||
54 | ) | ||
55 | } | ||
56 | }, | ||
57 | { | ||
58 | label: '是否启用登记情形', | ||
59 | width: '141', | ||
60 | render: (h, scope) => { | ||
61 | return ( | ||
62 | <el-radio-group v-model={scope.row.enabled} disabled={scope.row.sftsdjqx == '1'} onChange={(val) => { scope.row[scope.column.property] = val }}> | ||
63 | <el-radio label={'1'}>启用</el-radio> | ||
64 | <el-radio label={'0'}>禁用</el-radio> | ||
65 | </el-radio-group> | ||
66 | ) | ||
67 | } | ||
68 | }, | ||
69 | { | ||
70 | prop: 'djyy', | ||
71 | label: '登记原因模板', | ||
72 | render: (h, scope) => { | ||
73 | return ( | ||
74 | <div> | ||
75 | <el-input placeholder="登记原因模板" disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]} | ||
76 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | ||
77 | </div> | ||
78 | |||
79 | ) | ||
80 | } | ||
81 | }, | ||
82 | { | ||
83 | label: '是否启用模板', | ||
84 | width: '140', | ||
85 | render: (h, scope) => { | ||
86 | return ( | ||
87 | <el-radio-group v-model={scope.row.sfqydjyymb} disabled={scope.row.sftsdjqx == '1'} onChange={(val) => { scope.row[scope.column.property] = val }}> | ||
88 | <el-radio label={'1'}>启用</el-radio> | ||
89 | <el-radio label={'0'}>禁用</el-radio> | ||
90 | </el-radio-group> | ||
91 | ) | ||
92 | } | ||
93 | }, | ||
94 | { | ||
95 | label: '移动', | ||
96 | width: '100', | ||
97 | render: (h, scope) => { | ||
98 | return ( | ||
99 | <div> | ||
100 | <el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row,'djqx') }}>上移</el-button> | ||
101 | <el-button type='text' disabled={(scope.$index + 1) == vm.form.djqx.length} onClick={() => { vm.moveDown(scope.$index, scope.row,'djqx') }}>下移</el-button > | ||
102 | </div> | ||
103 | ) | ||
104 | } | ||
105 | } | ||
106 | ] | ||
107 | } | ||
108 | |||
109 | clxxCol(){ | ||
110 | return [ | ||
111 | { | ||
112 | width: '60', | ||
113 | renderHeader: (h, scope) => { | ||
114 | return <i class="el-icon-plus pointer" onClick={() => { vm.handleAdd() }} style="color:#409EFF"></i> | ||
115 | }, | ||
116 | render: (h, scope) => { | ||
117 | return ( | ||
118 | <i class="el-icon-minus pointer" onClick={() => { vm.handleMinus(scope.$index, scope.row) }}></i> | ||
119 | ) | ||
120 | } | ||
121 | }, | ||
122 | { | ||
123 | width: '60', | ||
124 | label: '序号', | ||
125 | type: 'index' | ||
126 | }, | ||
127 | { | ||
128 | label: '是否必填', | ||
129 | width: '100', | ||
130 | render: (h, scope) => { | ||
131 | return ( | ||
132 | <el-radio-group v-model={scope.row.isrequired} onChange={(val) => { scope.row[scope.column.property] = val }}> | ||
133 | <el-radio label={'1'}>是</el-radio> | ||
134 | <el-radio label={'0'}>否</el-radio> | ||
135 | </el-radio-group> | ||
136 | ) | ||
137 | } | ||
138 | }, | ||
139 | { | ||
140 | prop: 'clbm', | ||
141 | label: '材料编码', | ||
142 | width: '100', | ||
143 | render: (h, scope) => { | ||
144 | return ( | ||
145 | <el-input placeholder="材料编码" value={scope.row[scope.column.property]} | ||
146 | onInput={(val) => { scope.row[scope.column.property] = val }} maxlength="8"></el-input> | ||
147 | ) | ||
148 | } | ||
149 | }, | ||
150 | { | ||
151 | prop: 'clmc', | ||
152 | label: '材料名称', | ||
153 | render: (h, scope) => { | ||
154 | return ( | ||
155 | <el-input placeholder="材料名称" value={scope.row[scope.column.property]} | ||
156 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | ||
157 | ) | ||
158 | } | ||
159 | }, | ||
160 | { | ||
161 | prop: 'cllx', | ||
162 | label: '材料类型', | ||
163 | width: '115', | ||
164 | render: (h, scope) => { | ||
165 | return ( | ||
166 | <el-select value={scope.row[scope.column.property]} | ||
167 | onChange={(val) => { scope.row[scope.column.property] = val }} clearable> | ||
168 | { | ||
169 | vm.dictData['A40'].map(option => { | ||
170 | return ( | ||
171 | <el-option label={option.dname} value={option.dcode}></el-option> | ||
172 | ) | ||
173 | }) | ||
174 | } | ||
175 | </el-select> | ||
176 | ) | ||
177 | } | ||
178 | }, | ||
179 | { | ||
180 | label: '是否公共材料', | ||
181 | width: '110', | ||
182 | render: (h, scope) => { | ||
183 | return ( | ||
184 | <el-radio-group v-model={scope.row.sfggcl} onChange={(val) => { scope.row[scope.column.property] = val; vm.handleSelectGgcl(scope.row) }}> | ||
185 | <el-radio label={'1'}>是</el-radio> | ||
186 | <el-radio label={'0'}>否</el-radio> | ||
187 | </el-radio-group> | ||
188 | ) | ||
189 | } | ||
190 | }, | ||
191 | { | ||
192 | prop: 'djqxbm', | ||
193 | label: '登记情形', | ||
194 | width: '180', | ||
195 | render: (h, scope) => { | ||
196 | return ( | ||
197 | <el-select disabled={scope.row.sfggcl == '1'} value={scope.row[scope.column.property]} | ||
198 | onChange={(val) => { scope.row[scope.column.property] = val }} clearable> | ||
199 | { | ||
200 | vm.form.djqx.map(option => { | ||
201 | return ( | ||
202 | <el-option label={option.nodename} value={option.nodecode}></el-option> | ||
203 | ) | ||
204 | }) | ||
205 | } | ||
206 | </el-select> | ||
207 | ) | ||
208 | } | ||
209 | }, | ||
210 | { | ||
211 | label: '移动', | ||
212 | width: '90', | ||
213 | render: (h, scope) => { | ||
214 | return ( | ||
215 | <div> | ||
216 | <el-button type='text' disabled={scope.$index == 0} onClick={() => { vm.moveUpward(scope.$index, scope.row,'clxx') }}>上移</el-button> | ||
217 | <el-button type='text' disabled={(scope.$index + 1) == vm.form.clxx.length} onClick={() => { vm.moveDown(scope.$index, scope.row,'clxx') }}>下移</el-button > | ||
218 | </div> | ||
219 | ) | ||
220 | } | ||
221 | } | ||
222 | ] | ||
223 | } | ||
224 | |||
225 | } | ||
226 | let datas = new data() | ||
227 | export { | ||
228 | datas, | ||
229 | sendThis | ||
230 | } |
-
Please register or sign in to post a comment