apply-clients 3.3.16 → 3.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +33 -33
- package/package.json +1 -1
- package/src/AndroidApp.vue +30 -30
- package/src/android.js +21 -21
- package/src/apply.js +3 -6
- package/src/applyAndroid.js +35 -35
- package/src/components/android/AppOnetomany.vue +285 -285
- package/src/components/android/AppServiceView.vue +570 -570
- package/src/components/android/AppTakePic.vue +143 -143
- package/src/components/android/Function/AppFunctionServiceControl.vue +329 -329
- package/src/components/android/Function/AppInstallFunction.vue +327 -327
- package/src/components/android/Process/AppExplorationUser.vue +268 -268
- package/src/components/android/Process/AppServiceControl.vue +711 -686
- package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +490 -490
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +466 -466
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +261 -261
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +265 -265
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
- package/src/components/product/Function/InstallFunction.vue +122 -122
- package/src/components/product/Function/InstallInfoSelect.vue +289 -289
- package/src/components/product/Function/Service/FunctionServiceControl.vue +254 -254
- package/src/components/product/Onetomany.vue +296 -296
- package/src/components/product/Order/OrderApply.vue +47 -47
- package/src/components/product/Order/OrderApplyList.vue +62 -62
- package/src/components/product/Order/OrderMessage.vue +237 -237
- package/src/components/product/Process/ExplorationSelect.vue +145 -143
- package/src/components/product/Process/ExplorationUser.vue +128 -128
- package/src/components/product/Process/Processes/InstallationDetails.vue +421 -352
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/{printCharge.vue → Print/printCharge.vue} +139 -121
- package/src/components/product/Process/Processes/Print/printRefund.vue +193 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +181 -181
- package/src/components/product/Process/Processes/chargeManagement.vue +639 -639
- package/src/components/product/Process/Processes/devicesManagement.vue +458 -458
- package/src/components/product/Process/Processes/selectApply.vue +250 -250
- package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
- package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
- package/src/components/product/Process/Service/ServiceControl.vue +916 -810
- package/src/components/product/Process/ShowBackReason.vue +33 -33
- package/src/components/product/ServiceView.vue +301 -307
- package/src/components/product/Stop/StopApplyList.vue +254 -254
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +512 -517
- package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
- package/src/components/product/Supervisory/SupervisoryList.vue +226 -226
- package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
- package/src/main.js +23 -23
- package/src/components/product/Function/Inform.vue +0 -74
- package/src/components/product/Function/MarketSurvey.vue +0 -80
|
@@ -276,363 +276,357 @@
|
|
|
276
276
|
|
|
277
277
|
</template>
|
|
278
278
|
<script>
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
279
|
+
import Vue from 'vue'
|
|
280
|
+
import {isEmpty} from '../Util'
|
|
281
|
+
// Date格式化
|
|
282
|
+
Date.prototype.Format = function (fmt) {
|
|
283
|
+
var o = {
|
|
284
|
+
'M+': this.getMonth() + 1, // 月份
|
|
285
|
+
'd+': this.getDate(), // 日
|
|
286
|
+
'H+': this.getHours(), // 小时
|
|
287
|
+
'm+': this.getMinutes(), // 分
|
|
288
|
+
's+': this.getSeconds(), // 秒
|
|
289
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
290
|
+
'S': this.getMilliseconds() // 毫秒
|
|
291
|
+
}
|
|
292
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
293
|
+
for (var k in o) {
|
|
294
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
295
|
+
}
|
|
296
|
+
return fmt
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export default {
|
|
300
|
+
title: '报建业务通用组件',
|
|
301
|
+
props: {
|
|
302
|
+
data: {
|
|
303
|
+
type: Object
|
|
291
304
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
305
|
+
},
|
|
306
|
+
data () {
|
|
307
|
+
return {
|
|
308
|
+
model: {}, // 公司等属性
|
|
309
|
+
disable_button: true, // 控制按钮禁用
|
|
310
|
+
disable_modal_button: true, // 控制按钮禁用
|
|
311
|
+
showButModal: false
|
|
295
312
|
}
|
|
296
|
-
|
|
297
|
-
|
|
313
|
+
},
|
|
314
|
+
watch: {
|
|
315
|
+
deep: true
|
|
316
|
+
},
|
|
317
|
+
computed: {
|
|
318
|
+
|
|
319
|
+
},
|
|
320
|
+
created () {
|
|
321
|
+
// 初始化数据
|
|
322
|
+
this.initializtion()
|
|
323
|
+
if (this.data.readyEvent) {
|
|
324
|
+
this.$dispatch(this.data.readyEvent)
|
|
325
|
+
}
|
|
326
|
+
this.$dispatch('initializtionView')
|
|
327
|
+
},
|
|
328
|
+
methods: {
|
|
329
|
+
// 初始化数据
|
|
330
|
+
initializtion () {
|
|
331
|
+
for (const item of this.data.fields) {
|
|
332
|
+
this.data[item.field] = item.value
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// 是否禁用按钮
|
|
336
|
+
this.disableButton()
|
|
298
337
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
338
|
+
// 公司等属性初始化
|
|
339
|
+
if (this.data.orgs) {
|
|
340
|
+
this.model.orgs = this.data.orgs
|
|
341
|
+
} else {
|
|
342
|
+
this.model.orgs = this.$login.f.orgs
|
|
304
343
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
model
|
|
309
|
-
disable_button: true, // 控制按钮禁用
|
|
310
|
-
disable_modal_button: true, // 控制按钮禁用
|
|
311
|
-
showButModal: false
|
|
344
|
+
if (this.data.parentname) {
|
|
345
|
+
this.model.parentname = this.data.parentname
|
|
346
|
+
} else {
|
|
347
|
+
this.model.parentname = this.$login.f.f_department_name
|
|
312
348
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.initializtion()
|
|
323
|
-
if (this.data.readyEvent) {
|
|
324
|
-
this.$dispatch(this.data.readyEvent)
|
|
349
|
+
if (this.data.operate_date) {
|
|
350
|
+
this.model.operate_date = this.data.operate_date
|
|
351
|
+
} else {
|
|
352
|
+
this.model.operate_date = new Date().Format('yyyy-MM-dd')
|
|
353
|
+
}
|
|
354
|
+
if (this.data.operator) {
|
|
355
|
+
this.model.operator = this.data.operator
|
|
356
|
+
} else {
|
|
357
|
+
this.model.operator = this.$login.f.name
|
|
325
358
|
}
|
|
326
|
-
this.$dispatch('initializtionView')
|
|
327
359
|
},
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
360
|
+
// 是否禁用按钮
|
|
361
|
+
disableButton () {
|
|
362
|
+
let flag = false
|
|
363
|
+
|
|
364
|
+
for (const field of this.data.fields) {
|
|
365
|
+
if (field.required && !field.value) {
|
|
366
|
+
if (field.value === 0) {
|
|
367
|
+
flag = false
|
|
368
|
+
} else {
|
|
369
|
+
flag = true
|
|
370
|
+
}
|
|
333
371
|
}
|
|
334
372
|
|
|
335
|
-
//
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
console.log("----------"+this.$login.f)
|
|
339
|
-
// 公司等属性初始化
|
|
340
|
-
if (this.data.orgs) {
|
|
341
|
-
this.model.orgs = this.data.orgs
|
|
342
|
-
} else {
|
|
343
|
-
this.model.orgs = this.$login.f.orgs
|
|
344
|
-
}
|
|
345
|
-
if (this.data.parentname) {
|
|
346
|
-
this.model.parentname = this.data.parentname
|
|
347
|
-
} else {
|
|
348
|
-
this.model.parentname = this.$login.f.f_department_name
|
|
349
|
-
}
|
|
350
|
-
if (this.data.operate_date) {
|
|
351
|
-
this.model.operate_date = this.data.operate_date
|
|
352
|
-
} else {
|
|
353
|
-
this.model.operate_date = new Date().Format('yyyy-MM-dd')
|
|
373
|
+
// 任何选择框只要是否都不能提交
|
|
374
|
+
if (field.type === 'select' && field.value === '否' && field.value_no_disable) {
|
|
375
|
+
flag = true
|
|
354
376
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
this.model.operator = this.$login.f.name
|
|
377
|
+
|
|
378
|
+
if (field.type === 'checkbox' && field.required && field.value.length === 0) {
|
|
379
|
+
flag = true
|
|
359
380
|
}
|
|
360
|
-
}
|
|
361
|
-
// 是否禁用按钮
|
|
362
|
-
disableButton () {
|
|
363
|
-
let flag = false
|
|
364
|
-
for (const field of this.data.fields) {
|
|
365
|
-
if (field.required && !field.value) {
|
|
366
|
-
if (field.value === 0) {
|
|
367
|
-
flag = false
|
|
368
|
-
} else {
|
|
369
|
-
flag = true
|
|
370
|
-
}
|
|
371
|
-
}
|
|
381
|
+
}
|
|
372
382
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
383
|
+
this.disable_button = flag
|
|
384
|
+
},
|
|
385
|
+
// 失去焦点且值最终发生变化触发
|
|
386
|
+
async onchange (index) {
|
|
387
|
+
// 是否禁用按钮
|
|
388
|
+
this.disableButton()
|
|
377
389
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
390
|
+
if (!isEmpty(this.data.fields[index].value)) {
|
|
391
|
+
// 前缀、后缀
|
|
392
|
+
if (this.data.fields[index].prefix) {
|
|
393
|
+
this.data.fields[index].value = this.data.fields[index].prefix + this.data.fields[index].value
|
|
381
394
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
if( this.data.onetomany[0].rows.length==0 && this.data.onetomany[1].rows.length==0) {
|
|
385
|
-
flag = true
|
|
386
|
-
}
|
|
395
|
+
if (this.data.fields[index].suffix) {
|
|
396
|
+
this.data.fields[index].value = this.data.fields[index].value + this.data.fields[index].suffix
|
|
387
397
|
}
|
|
398
|
+
}
|
|
388
399
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
// 失去焦点且值最终发生变化触发
|
|
392
|
-
async onchange (index) {
|
|
393
|
-
// 是否禁用按钮
|
|
394
|
-
this.disableButton()
|
|
395
|
-
|
|
396
|
-
if (!isEmpty(this.data.fields[index].value)) {
|
|
397
|
-
// 前缀、后缀
|
|
398
|
-
if (this.data.fields[index].prefix) {
|
|
399
|
-
this.data.fields[index].value = this.data.fields[index].prefix + this.data.fields[index].value
|
|
400
|
-
}
|
|
401
|
-
if (this.data.fields[index].suffix) {
|
|
402
|
-
this.data.fields[index].value = this.data.fields[index].value + this.data.fields[index].suffix
|
|
403
|
-
}
|
|
404
|
-
}
|
|
400
|
+
// data赋值
|
|
401
|
+
this.data[this.data.fields[index].field] = this.data.fields[index].value
|
|
405
402
|
|
|
406
|
-
|
|
407
|
-
this.
|
|
403
|
+
if (this.data.fields[index].type === 'datepicker') {
|
|
404
|
+
this.check_datepicker(index)
|
|
405
|
+
}
|
|
408
406
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
407
|
+
if (this.data.fields[index].onchange) {
|
|
408
|
+
this.$dispatch(this.data.fields[index].onchange, index)
|
|
409
|
+
}
|
|
410
|
+
this.$dispatch('onchange', index)
|
|
412
411
|
|
|
413
|
-
if (this.data.fields[index].onchange) {
|
|
414
|
-
this.$dispatch(this.data.fields[index].onchange, index)
|
|
415
|
-
}
|
|
416
|
-
this.$dispatch('onchange', index)
|
|
417
412
|
|
|
413
|
+
},
|
|
414
|
+
// 失去焦点触发,无论值是否发生变化
|
|
415
|
+
onblur (index) {
|
|
416
|
+
this.disableButton()
|
|
418
417
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
this.disableButton()
|
|
418
|
+
if (this.data.fields[index].onblur) {
|
|
419
|
+
this.$dispatch(this.data.fields[index].onblur, index)
|
|
420
|
+
}
|
|
423
421
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
422
|
+
this.$dispatch('onblur', index)
|
|
423
|
+
},
|
|
424
|
+
oninput (index) {
|
|
425
|
+
// 是否禁用按钮
|
|
426
|
+
this.disableButton()
|
|
427
427
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
if (this.data.fields[index].oninput) {
|
|
429
|
+
this.$dispatch(this.data.fields[index].oninput, index)
|
|
430
|
+
}
|
|
431
|
+
this.$dispatch('oninput', index)
|
|
432
|
+
},
|
|
433
|
+
// 点击按钮组按钮
|
|
434
|
+
async click_but (button) {
|
|
435
|
+
this.disable_button = true
|
|
433
436
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
this.$dispatch('oninput', index)
|
|
438
|
-
},
|
|
439
|
-
// 点击按钮组按钮
|
|
440
|
-
async click_but (button) {
|
|
441
|
-
this.disable_button = true
|
|
437
|
+
this.data.fields.forEach(item => {
|
|
438
|
+
this.data[item.field] = item.value
|
|
439
|
+
})
|
|
442
440
|
|
|
443
|
-
|
|
444
|
-
this.data[item.field] = item.value
|
|
445
|
-
})
|
|
441
|
+
this.data.button = button
|
|
446
442
|
|
|
447
|
-
|
|
443
|
+
if (button.button_fields && button.button_fields.length > 0) {
|
|
444
|
+
this.showButModal = true
|
|
445
|
+
return
|
|
446
|
+
}
|
|
448
447
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
448
|
+
if (this.data.button.event) {
|
|
449
|
+
this.$dispatch(this.data.button.event)
|
|
450
|
+
} else {
|
|
451
|
+
this.$dispatch('button')
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
confirmModal () {
|
|
455
|
+
this.closeModal()
|
|
453
456
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
this.$dispatch('button')
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
confirmModal () {
|
|
461
|
-
this.closeModal()
|
|
457
|
+
this.data.button.button_fields.forEach(item => {
|
|
458
|
+
this.data.button[item.field] = item.value
|
|
459
|
+
})
|
|
462
460
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
461
|
+
if (this.data.button.event) {
|
|
462
|
+
this.$dispatch(this.data.button.event)
|
|
463
|
+
} else {
|
|
464
|
+
this.$dispatch('button')
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
// 关闭模态框
|
|
468
|
+
closeModal () {
|
|
469
|
+
this.showButModal = false
|
|
470
|
+
this.disable_modal_button = false
|
|
471
|
+
},
|
|
472
|
+
onbutchange (index) {
|
|
473
|
+
// 是否禁用按钮
|
|
474
|
+
this.disableModalButton()
|
|
466
475
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
},
|
|
473
|
-
// 关闭模态框
|
|
474
|
-
closeModal () {
|
|
475
|
-
this.showButModal = false
|
|
476
|
-
this.disable_modal_button = false
|
|
477
|
-
},
|
|
478
|
-
onbutchange (index) {
|
|
479
|
-
// 是否禁用按钮
|
|
480
|
-
this.disableModalButton()
|
|
481
|
-
|
|
482
|
-
if (this.data.button.button_fields[index].onchange) {
|
|
483
|
-
this.$dispatch(this.data.button.button_fields[index].onchange, index)
|
|
484
|
-
} else {
|
|
485
|
-
this.$dispatch('onbutchange', index)
|
|
486
|
-
}
|
|
476
|
+
if (this.data.button.button_fields[index].onchange) {
|
|
477
|
+
this.$dispatch(this.data.button.button_fields[index].onchange, index)
|
|
478
|
+
} else {
|
|
479
|
+
this.$dispatch('onbutchange', index)
|
|
480
|
+
}
|
|
487
481
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
482
|
+
},
|
|
483
|
+
onbutblur (index) {
|
|
484
|
+
this.disableModalButton()
|
|
491
485
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
486
|
+
if (this.data.button.button_fields[index].onblur) {
|
|
487
|
+
this.$dispatch(this.data.button.button_fields[index].onblur, index)
|
|
488
|
+
} else {
|
|
489
|
+
this.$dispatch('onbutblur', index)
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
onbutinput (index) {
|
|
493
|
+
// 是否禁用按钮
|
|
494
|
+
this.disableModalButton()
|
|
501
495
|
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
496
|
+
if (this.data.button.button_fields[index].oninput) {
|
|
497
|
+
this.$dispatch(this.data.button.button_fields[index].oninput, index)
|
|
498
|
+
} else {
|
|
499
|
+
this.$dispatch('onbutinput', index)
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
disableModalButton () {
|
|
503
|
+
let flag = false
|
|
510
504
|
|
|
511
505
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
506
|
+
for (const item of this.data.button.button_fields) {
|
|
507
|
+
if (item.required && !item.value) {
|
|
508
|
+
if (item.value === 0) {
|
|
509
|
+
flag = false
|
|
510
|
+
} else {
|
|
511
|
+
flag = true
|
|
519
512
|
}
|
|
520
513
|
}
|
|
514
|
+
}
|
|
521
515
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
if (!dateReg.test(this.data.fields[index].value)) {
|
|
534
|
-
this.data.fields[index].value = ''
|
|
535
|
-
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
if (this.data.fields[index].format === 'HH:mm:ss') {
|
|
539
|
-
if (!timeReg.test(this.data.fields[index].value)) {
|
|
540
|
-
this.data.fields[index].value = ''
|
|
541
|
-
this.$showAlert(this.data.fields[index].label + '格式错误如:00:00:00', 'warning', 2000)
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
if (this.data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
545
|
-
if (!datetimeReg.test(this.data.fields[index].value)) {
|
|
546
|
-
this.data.fields[index].value = ''
|
|
547
|
-
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01 00:00:00', 'warning', 2000)
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
} else {
|
|
516
|
+
this.disable_modal_button = flag
|
|
517
|
+
},
|
|
518
|
+
check_datepicker (index) {
|
|
519
|
+
// 时间格式检测
|
|
520
|
+
if (!isEmpty(this.data.fields[index].value)) {
|
|
521
|
+
|
|
522
|
+
let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
|
|
523
|
+
let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
524
|
+
let datetimeReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
525
|
+
if (this.data.fields[index].format) {
|
|
526
|
+
if (this.data.fields[index].format === 'yyyy-MM-dd') {
|
|
551
527
|
if (!dateReg.test(this.data.fields[index].value)) {
|
|
552
528
|
this.data.fields[index].value = ''
|
|
553
529
|
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
554
530
|
}
|
|
555
531
|
}
|
|
532
|
+
if (this.data.fields[index].format === 'HH:mm:ss') {
|
|
533
|
+
if (!timeReg.test(this.data.fields[index].value)) {
|
|
534
|
+
this.data.fields[index].value = ''
|
|
535
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:00:00:00', 'warning', 2000)
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
if (this.data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
539
|
+
if (!datetimeReg.test(this.data.fields[index].value)) {
|
|
540
|
+
this.data.fields[index].value = ''
|
|
541
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01 00:00:00', 'warning', 2000)
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
} else {
|
|
545
|
+
if (!dateReg.test(this.data.fields[index].value)) {
|
|
546
|
+
this.data.fields[index].value = ''
|
|
547
|
+
this.$showAlert(this.data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
548
|
+
}
|
|
556
549
|
}
|
|
557
550
|
}
|
|
558
|
-
},
|
|
559
|
-
events: {
|
|
560
|
-
|
|
561
551
|
}
|
|
552
|
+
},
|
|
553
|
+
events: {
|
|
554
|
+
|
|
562
555
|
}
|
|
556
|
+
}
|
|
563
557
|
</script>
|
|
564
558
|
<style>
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
559
|
+
.datepicker{
|
|
560
|
+
width: 100%!important;
|
|
561
|
+
}
|
|
562
|
+
.datepicker-input{
|
|
563
|
+
background-color: #ffffff!important;
|
|
564
|
+
width: 100%!important;
|
|
565
|
+
}
|
|
566
|
+
.datepicker-input:disabled{
|
|
567
|
+
border: 1px solid #DDD!important;
|
|
568
|
+
color: #ACA899!important;
|
|
569
|
+
width: 100%!important;
|
|
570
|
+
}
|
|
577
571
|
</style>
|
|
578
572
|
<style scoped>
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
573
|
+
th{
|
|
574
|
+
font-size: 15px !important;
|
|
575
|
+
text-align: center !important;
|
|
576
|
+
background-color: #dfedfb!important;
|
|
577
|
+
color: #666666 !important;
|
|
578
|
+
font-family: PINGFANG-BOLD !important;
|
|
579
|
+
font-weight: normal!important;
|
|
580
|
+
}
|
|
581
|
+
/*清除model中的浮动*/
|
|
582
|
+
.clearfix:after,.clearfix:before{
|
|
583
|
+
display: table;
|
|
584
|
+
}
|
|
585
|
+
.clearfix:after{
|
|
586
|
+
clear: both;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.input_view{
|
|
590
|
+
padding: 8px;
|
|
591
|
+
background-color: #ffffff;
|
|
592
|
+
border-radius: 2px;
|
|
593
|
+
border: solid 1px #c7c7c7!important;
|
|
594
|
+
color: #333333!important;
|
|
595
|
+
font-size: 15px!important;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.input_view[readonly]{
|
|
599
|
+
border: 1px solid #DDD!important;
|
|
600
|
+
color:#ACA899!important;
|
|
601
|
+
}
|
|
602
|
+
.input_view:disabled{
|
|
603
|
+
border: 1px solid #DDD!important;
|
|
604
|
+
color:#ACA899!important;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.control-label-justify {
|
|
608
|
+
display: inline-block;
|
|
609
|
+
vertical-align: top;
|
|
610
|
+
width: 110px;
|
|
611
|
+
text-align: justify;
|
|
612
|
+
font-family: PingFang-SC-Bold;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.control-label-justify::after {
|
|
616
|
+
content: "";
|
|
617
|
+
display: inline-block;
|
|
618
|
+
width: 100%;
|
|
619
|
+
overflow: hidden;
|
|
620
|
+
height: 0;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
input::-webkit-outer-spin-button,
|
|
624
|
+
input::-webkit-inner-spin-button {
|
|
625
|
+
-webkit-appearance: none;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
input[type="number"] {
|
|
629
|
+
-moz-appearance: textfield;
|
|
630
|
+
}
|
|
637
631
|
|
|
638
632
|
</style>
|