|
|
@@ -230,8 +230,13 @@
|
|
230
|
230
|
methods: {
|
|
231
|
231
|
formtDept(row, column) {
|
|
232
|
232
|
if (row.F_ProposerDept && row.F_ApplicationDept != '0') {
|
|
233
|
|
- return this.$store.getters.deptmap[parseInt(row.F_ProposerDept)]
|
|
234
|
|
- .text;
|
|
|
233
|
+ if (this.$store.getters.deptmap[parseInt(row.F_ProposerDept)]) {
|
|
|
234
|
+ return this.$store.getters.deptmap[parseInt(row.F_ProposerDept)]
|
|
|
235
|
+ .text;
|
|
|
236
|
+ } else {
|
|
|
237
|
+ return '';
|
|
|
238
|
+ }
|
|
|
239
|
+
|
|
235
|
240
|
}
|
|
236
|
241
|
},
|
|
237
|
242
|
// formtLocation(row, column) {
|
|
|
@@ -249,13 +254,23 @@
|
|
249
|
254
|
},
|
|
250
|
255
|
formtOrder(row, column) {
|
|
251
|
256
|
if (row.F_SonType) {
|
|
252
|
|
- const typeText = this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text;
|
|
253
|
|
- return typeText.split('/').slice(1).join('/');
|
|
|
257
|
+ if (this.$store.getters.workTypeMap[parseInt(row.F_SonType)]) {
|
|
|
258
|
+ const typeText = this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text;
|
|
|
259
|
+ return typeText.split('/').slice(1).join('/');
|
|
|
260
|
+ } else {
|
|
|
261
|
+ return '';
|
|
|
262
|
+ }
|
|
|
263
|
+
|
|
254
|
264
|
}
|
|
255
|
265
|
},
|
|
256
|
266
|
formtSonOrder(row, column) {
|
|
257
|
267
|
if (row.F_SonType) {
|
|
258
|
|
- return this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text.split('/')[1];
|
|
|
268
|
+ if (this.$store.getters.workTypeMap[parseInt(row.F_SonType)]) {
|
|
|
269
|
+ return this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text.split('/')[1];
|
|
|
270
|
+ } else {
|
|
|
271
|
+ return '';
|
|
|
272
|
+ }
|
|
|
273
|
+
|
|
259
|
274
|
}
|
|
260
|
275
|
},
|
|
261
|
276
|
btnClickEvents(button, wocode, row) {
|