style:申请业务规则
Showing
5 changed files
with
29 additions
and
33 deletions
... | @@ -17,22 +17,26 @@ | ... | @@ -17,22 +17,26 @@ |
17 | </el-col> | 17 | </el-col> |
18 | </el-row> | 18 | </el-row> |
19 | </el-form> | 19 | </el-form> |
20 | <lb-table :column="column" border :key="key" :heightNum="390" :pagination="false" heightNumSetting | 20 | <lb-table :column="column" border :key="key" :heightNum="405" :pagination="false" :data="tableData"> |
21 | :data="tableData"> | ||
22 | </lb-table> | 21 | </lb-table> |
23 | </div> | 22 | </div> |
24 | </template> | 23 | </template> |
25 | <script> | 24 | <script> |
26 | import { mapGetters } from 'vuex' | 25 | import { mapGetters } from 'vuex' |
27 | import { realMove, findParents } from '@/utils/operation' | 26 | import { upward, down } from '@/utils/operation' |
28 | export default { | 27 | export default { |
29 | props: { | 28 | props: { |
30 | ruleForm: { | 29 | ruleForm: { |
31 | type: Object, default: {} | 30 | type: Object, default: {} |
32 | }, | 31 | }, |
33 | subData: { | 32 | clzt: { |
34 | type: Object, default: () => { | 33 | type: Array, default: () => { |
35 | return {} | 34 | return [] |
35 | } | ||
36 | }, | ||
37 | djqx: { | ||
38 | type: Array, default: () => { | ||
39 | return [] | ||
36 | } | 40 | } |
37 | } | 41 | } |
38 | }, | 42 | }, |
... | @@ -74,10 +78,11 @@ export default { | ... | @@ -74,10 +78,11 @@ export default { |
74 | { | 78 | { |
75 | prop: 'clbm', | 79 | prop: 'clbm', |
76 | label: '材料编码', | 80 | label: '材料编码', |
81 | width: '100', | ||
77 | render: (h, scope) => { | 82 | render: (h, scope) => { |
78 | return ( | 83 | return ( |
79 | <el-input placeholder="材料编码" value={scope.row[scope.column.property]} | 84 | <el-input placeholder="材料编码" value={scope.row[scope.column.property]} |
80 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 85 | onInput={(val) => { scope.row[scope.column.property] = val }} maxlength="8"></el-input> |
81 | ) | 86 | ) |
82 | } | 87 | } |
83 | }, | 88 | }, |
... | @@ -94,6 +99,7 @@ export default { | ... | @@ -94,6 +99,7 @@ export default { |
94 | { | 99 | { |
95 | prop: 'cllx', | 100 | prop: 'cllx', |
96 | label: '材料类型', | 101 | label: '材料类型', |
102 | width: '115', | ||
97 | render: (h, scope) => { | 103 | render: (h, scope) => { |
98 | return ( | 104 | return ( |
99 | <el-select value={scope.row[scope.column.property]} | 105 | <el-select value={scope.row[scope.column.property]} |
... | @@ -130,7 +136,7 @@ export default { | ... | @@ -130,7 +136,7 @@ export default { |
130 | <el-select disabled={scope.row.sfggcl == '1'} value={scope.row[scope.column.property]} | 136 | <el-select disabled={scope.row.sfggcl == '1'} value={scope.row[scope.column.property]} |
131 | onChange={(val) => { scope.row[scope.column.property] = val }} clearable> | 137 | onChange={(val) => { scope.row[scope.column.property] = val }} clearable> |
132 | { | 138 | { |
133 | this.subData['djqx'].map(option => { | 139 | this.djqx.map(option => { |
134 | return ( | 140 | return ( |
135 | <el-option label={option.nodename} value={option.nodecode}></el-option> | 141 | <el-option label={option.nodename} value={option.nodecode}></el-option> |
136 | ) | 142 | ) |
... | @@ -159,15 +165,15 @@ export default { | ... | @@ -159,15 +165,15 @@ export default { |
159 | watch: { | 165 | watch: { |
160 | tableData: { | 166 | tableData: { |
161 | handler (newValue, oldValue) { | 167 | handler (newValue, oldValue) { |
162 | if (!_.isEqual(newValue, this.subData.clxx)) { | 168 | if (!_.isEqual(newValue, this.clzt)) { |
163 | this.$emit('updateValue', newValue) | 169 | this.$emit('updateValue', newValue) |
164 | } | 170 | } |
165 | }, | 171 | }, |
166 | deep: true | 172 | deep: true |
167 | }, | 173 | }, |
168 | subData: { | 174 | clzt: { |
169 | handler: function (newValue) { | 175 | handler: function (newValue) { |
170 | this.tableData = _.cloneDeep(newValue.clxx) | 176 | this.tableData = _.cloneDeep(newValue) |
171 | }, | 177 | }, |
172 | deep: true | 178 | deep: true |
173 | }, | 179 | }, |
... | @@ -184,7 +190,6 @@ export default { | ... | @@ -184,7 +190,6 @@ export default { |
184 | sfggcl: '1' | 190 | sfggcl: '1' |
185 | } | 191 | } |
186 | ) | 192 | ) |
187 | this.key++ | ||
188 | }, | 193 | }, |
189 | handleSelectGgcl (item) { | 194 | handleSelectGgcl (item) { |
190 | if (item.sfggcl == '1') { | 195 | if (item.sfggcl == '1') { |
... | @@ -196,17 +201,11 @@ export default { | ... | @@ -196,17 +201,11 @@ export default { |
196 | }, | 201 | }, |
197 | // 上移下移 | 202 | // 上移下移 |
198 | moveUpward (index, row) { | 203 | moveUpward (index, row) { |
199 | realMove(row.bsmClxx, 'UP', this.tableData) | 204 | upward(index, this.tableData) |
200 | this.key++ | ||
201 | let id = findParents(this.tableData, row.bsmClxx) | ||
202 | this.keyList = id | ||
203 | }, | 205 | }, |
204 | moveDown (index, row) { | 206 | moveDown (index, row) { |
205 | realMove(row.bsmClxx, 'DOWN', this.tableData) | 207 | down(index, this.tableData) |
206 | this.key++ | 208 | }, |
207 | let id = findParents(this.tableData, row.bsmClxx) | ||
208 | this.keyList = id | ||
209 | } | ||
210 | } | 209 | } |
211 | } | 210 | } |
212 | </script> | 211 | </script> | ... | ... |
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | </div> | 23 | </div> |
24 | </template> | 24 | </template> |
25 | <script> | 25 | <script> |
26 | import { judgeSort, realMove, findParents } from '@/utils/operation' | 26 | import { upward, down } from '@/utils/operation' |
27 | export default { | 27 | export default { |
28 | props: { | 28 | props: { |
29 | ruleForm: { | 29 | ruleForm: { |
... | @@ -203,16 +203,10 @@ export default { | ... | @@ -203,16 +203,10 @@ export default { |
203 | }, | 203 | }, |
204 | // 上移下移 | 204 | // 上移下移 |
205 | moveUpward (index, row) { | 205 | moveUpward (index, row) { |
206 | realMove(row.bsmDict, 'UP', this.tableData) | 206 | upward(index, this.tableData) |
207 | this.key++ | ||
208 | let id = findParents(this.tableData, row.bsmDict) | ||
209 | this.keyList = id | ||
210 | }, | 207 | }, |
211 | moveDown (index, row) { | 208 | moveDown (index, row) { |
212 | realMove(row.bsmDict, 'DOWN', this.tableData) | 209 | down(index, this.tableData) |
213 | this.key++ | ||
214 | let id = findParents(this.tableData, row.bsmDict) | ||
215 | this.keyList = id | ||
216 | } | 210 | } |
217 | } | 211 | } |
218 | } | 212 | } | ... | ... |
... | @@ -32,6 +32,7 @@ | ... | @@ -32,6 +32,7 @@ |
32 | </li> | 32 | </li> |
33 | </ul> | 33 | </ul> |
34 | </div> | 34 | </div> |
35 | <b>限制办理状态</b> | ||
35 | <ul class="screen-list"> | 36 | <ul class="screen-list"> |
36 | <li v-for="(item, index) in dataList.sxzt" :key="index"> | 37 | <li v-for="(item, index) in dataList.sxzt" :key="index"> |
37 | <div class="screen-list-left"> | 38 | <div class="screen-list-left"> | ... | ... |
... | @@ -115,7 +115,8 @@ | ... | @@ -115,7 +115,8 @@ |
115 | </el-row> | 115 | </el-row> |
116 | </el-form> | 116 | </el-form> |
117 | <djqxsd v-show="n == 1" :ruleForm="ruleForm" :djqx="subData.djqx" @updateValue="getDjqxValue" /> | 117 | <djqxsd v-show="n == 1" :ruleForm="ruleForm" :djqx="subData.djqx" @updateValue="getDjqxValue" /> |
118 | <clgzsd v-show="n == 2" :ruleForm="ruleForm" :subData="subData" @updateValue="getClgzValue" /> | 118 | <clgzsd v-show="n == 2" :ruleForm="ruleForm" :clzt="subData.clxx" :djqx="subData.djqx" |
119 | @updateValue="getClgzValue" /> | ||
119 | <dyztsd :ruleForm="ruleForm" :subData="subData" v-show="n == 3" @updateValue="getDyztsdValue" /> | 120 | <dyztsd :ruleForm="ruleForm" :subData="subData" v-show="n == 3" @updateValue="getDyztsdValue" /> |
120 | </div> | 121 | </div> |
121 | </div> | 122 | </div> |
... | @@ -164,6 +165,7 @@ export default { | ... | @@ -164,6 +165,7 @@ export default { |
164 | data () { | 165 | data () { |
165 | return { | 166 | return { |
166 | djqx: [], | 167 | djqx: [], |
168 | clzt: [], | ||
167 | myValue: this.value, | 169 | myValue: this.value, |
168 | btnDisabled: false, | 170 | btnDisabled: false, |
169 | tn: 0, | 171 | tn: 0, |
... | @@ -256,7 +258,7 @@ export default { | ... | @@ -256,7 +258,7 @@ export default { |
256 | if (valid) { | 258 | if (valid) { |
257 | this.subData.ywDetail = this.ruleForm | 259 | this.subData.ywDetail = this.ruleForm |
258 | saveSqdjyw(this.subData).then(res => { | 260 | saveSqdjyw(this.subData).then(res => { |
259 | that.$emit('input', false) | 261 | // that.$emit('input', false) |
260 | }) | 262 | }) |
261 | } else { | 263 | } else { |
262 | this.$message('请检查表单完整性') | 264 | this.$message('请检查表单完整性') | ... | ... |
... | @@ -79,7 +79,7 @@ class data extends filter { | ... | @@ -79,7 +79,7 @@ class data extends filter { |
79 | align: 'center', | 79 | align: 'center', |
80 | fixed: 'right', | 80 | fixed: 'right', |
81 | render: (h, scope) => { | 81 | render: (h, scope) => { |
82 | return <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope) }}>编辑</el-button> | 82 | return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope) }}>删除</el-button> |
83 | } | 83 | } |
84 | } | 84 | } |
85 | ] | 85 | ] | ... | ... |
-
Please register or sign in to post a comment