diff --git a/src/views/keyprojects/outsourced/components/edit.vue b/src/views/keyprojects/outsourced/components/edit.vue index 0997503..be43721 100644 --- a/src/views/keyprojects/outsourced/components/edit.vue +++ b/src/views/keyprojects/outsourced/components/edit.vue @@ -608,17 +608,17 @@ export default { immediate: false }, - 'form.ENDTIME': { - handler: function() { - // eslint-disable-next-line no-unused-vars - var time = formatDate(new Date(), 'YYYY-MM-DD') - if (this.form.ENDTIME > time) { - this.form.STATE = '1' - } else { - this.form.STATE = '2' - } - } - }, + //'form.ENDTIME': { + // handler: function() { + // // eslint-disable-next-line no-unused-vars + // var time = formatDate(new Date(), 'YYYY-MM-DD') + // if (this.form.ENDTIME > time) { + // this.form.STATE = '1' + // } else { + // this.form.STATE = '2' + // } + // } + //}, TRAINING_TIME: function(newData, oldData) { if (!newData) { this.TRAINING_TIME = ['', ''] diff --git a/src/views/keyprojects/outsourced/components/list.vue b/src/views/keyprojects/outsourced/components/list.vue index c838516..86162af 100644 --- a/src/views/keyprojects/outsourced/components/list.vue +++ b/src/views/keyprojects/outsourced/components/list.vue @@ -195,6 +195,7 @@ export default { directives: { waves }, data() { return { + CORPINFO_ID: '', userInfoUserId: JSON.parse(sessionStorage.getItem('user')).USER_ID, qrcodeStr: '', listLoading: true, @@ -268,6 +269,7 @@ export default { } }, created() { + this.CORPINFO_ID = this.$parent.CORPINFO_ID this.getList() this.getUnitsList() this.getCorpList() @@ -315,7 +317,7 @@ export default { CONTRACT_STIME: this.CONTRACTTIME[0], CONTRACT_ETIME: this.CONTRACTTIME[1], STATE: this.STATE, - CORPINFO_ID: this.$parent.CORPINFO_ID, + CORPINFO_ID: this.CORPINFO_ID, INVOLVING_CORP: this.INVOLVING_CORP, DEPARTMENT_ID: this.DEPARTMENT_ID, COMPETENT_DEPT_ID: this.COMPETENT_DEPT_ID, diff --git a/src/views/keyprojects/outsourced/index.vue b/src/views/keyprojects/outsourced/index.vue index 6206755..16bf2f5 100644 --- a/src/views/keyprojects/outsourced/index.vue +++ b/src/views/keyprojects/outsourced/index.vue @@ -26,7 +26,8 @@ export default { data() { return { activeName: 'OutSourced', - OUTSOURCED_ID: '' + OUTSOURCED_ID: '', + CORPINFO_ID: '' } }, watch: {