|
@@ -123,37 +123,39 @@ export default defineComponent({
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
onLoad(e?: any) {
|
|
onLoad(e?: any) {
|
|
- commonService.checkLoadStatusView(
|
|
|
|
- this,
|
|
|
|
- commonService.getView('api/selectTcsDeftView/' + this.$route.params.id).then((view) => {
|
|
|
|
- this.dataView = view;
|
|
|
|
- switch (this.dataView?.deftPrcgStusCd) {
|
|
|
|
- case 'A':
|
|
|
|
- case 'B':
|
|
|
|
- case 'C':
|
|
|
|
- this.toolbars[0].disabled = false;
|
|
|
|
- this.toolbars[1].disabled = false;
|
|
|
|
- this.toolbars[2].disabled = false;
|
|
|
|
- this.toolbars[3].disabled = false;
|
|
|
|
- break;
|
|
|
|
- case 'D':
|
|
|
|
- this.toolbars[0].disabled = true;
|
|
|
|
- this.toolbars[1].disabled = false;
|
|
|
|
- this.toolbars[2].disabled = false;
|
|
|
|
- this.toolbars[3].disabled = false;
|
|
|
|
- break;
|
|
|
|
- case 'Z':
|
|
|
|
- case 'X':
|
|
|
|
- default:
|
|
|
|
- this.toolbars[0].disabled = true;
|
|
|
|
- this.toolbars[1].disabled = true;
|
|
|
|
- this.toolbars[2].disabled = true;
|
|
|
|
- this.toolbars[3].disabled = false;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- this.onLoadElps();
|
|
|
|
- }, e)
|
|
|
|
- );
|
|
|
|
|
|
+ if (commonService.isNotNull(this.$route.params.id)) {
|
|
|
|
+ commonService.checkLoadStatusView(
|
|
|
|
+ this,
|
|
|
|
+ commonService.getView('api/selectTcsDeftView/' + this.$route.params.id).then((view) => {
|
|
|
|
+ this.dataView = view;
|
|
|
|
+ switch (this.dataView?.deftPrcgStusCd) {
|
|
|
|
+ case 'A':
|
|
|
|
+ case 'B':
|
|
|
|
+ case 'C':
|
|
|
|
+ this.toolbars[0].disabled = false;
|
|
|
|
+ this.toolbars[1].disabled = false;
|
|
|
|
+ this.toolbars[2].disabled = false;
|
|
|
|
+ this.toolbars[3].disabled = false;
|
|
|
|
+ break;
|
|
|
|
+ case 'D':
|
|
|
|
+ this.toolbars[0].disabled = true;
|
|
|
|
+ this.toolbars[1].disabled = false;
|
|
|
|
+ this.toolbars[2].disabled = false;
|
|
|
|
+ this.toolbars[3].disabled = false;
|
|
|
|
+ break;
|
|
|
|
+ case 'Z':
|
|
|
|
+ case 'X':
|
|
|
|
+ default:
|
|
|
|
+ this.toolbars[0].disabled = true;
|
|
|
|
+ this.toolbars[1].disabled = true;
|
|
|
|
+ this.toolbars[2].disabled = true;
|
|
|
|
+ this.toolbars[3].disabled = false;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ this.onLoadElps();
|
|
|
|
+ }, e)
|
|
|
|
+ );
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onLoadElps() {
|
|
onLoadElps() {
|
|
if (commonService.isNotNull(this.dataView) && commonService.isNotNull(this.dataView?.deftNo)) {
|
|
if (commonService.isNotNull(this.dataView) && commonService.isNotNull(this.dataView?.deftNo)) {
|