Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -303,11 +303,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<!-- <j-multi-select-tag class="box-input" v-model="formInline.dutyTerritory"-->
|
<!-- <j-multi-select-tag class="box-input" v-model="formInline.dutyTerritory"-->
|
||||||
<!-- :disabled="disabled"-->
|
<!-- :disabled="disabled"-->
|
||||||
<!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"-->
|
<!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"-->
|
||||||
<!-- :type="'select'"-->
|
<!-- :type="'select'"-->
|
||||||
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
|
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -659,7 +659,8 @@
|
|||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
<a-button style="margin-right: 8px" @click="handleCancel">{{$t('cancel')}}</a-button>
|
<a-button style="margin-right: 8px" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
<a-button @click="handleSubmit" v-if="!disabled" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
<a-button @click="handleSubmit" v-if="!disabled" type="primary" :loading="confirmLoading">{{$t('submit')}}
|
||||||
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"/>
|
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"/>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
@@ -739,21 +740,21 @@
|
|||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dutyDepart:[
|
dutyDepart: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('statisticalNodes') + this.$t('cannotEmpty'),
|
message: this.$t('statisticalNodes') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
formInline: {},
|
formInline: {},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
title: '',
|
title: '',
|
||||||
CategoryTreeList: [],
|
CategoryTreeList: [],
|
||||||
DeliverableTreeList: [],
|
DeliverableTreeList: [],
|
||||||
firstLevelDutyTerritoryList:[],
|
firstLevelDutyTerritoryList: [],
|
||||||
dutyTerritoryList:[],
|
dutyTerritoryList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -764,7 +765,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
DutyDepartChange(event) {
|
DutyDepartChange(event) {
|
||||||
this.formInline.dutyTerritory = []
|
this.formInline.dutyTerritory = []
|
||||||
this.formInline = {...this.formInline}
|
this.formInline = { ...this.formInline }
|
||||||
this.getDutyTerritory(event.join(','))
|
this.getDutyTerritory(event.join(','))
|
||||||
},
|
},
|
||||||
getDutyTerritory(row) {
|
getDutyTerritory(row) {
|
||||||
@@ -810,6 +811,7 @@
|
|||||||
this.visible = true
|
this.visible = true
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.title = this.$t('edit')
|
this.title = this.$t('edit')
|
||||||
|
this.dutyTerritoryList = []
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = item || {}
|
this.formInline = item || {}
|
||||||
this.formInline.technologyTerritory = this.formInline.technologyTerritory ? this.formInline.technologyTerritory.split(',') : []
|
this.formInline.technologyTerritory = this.formInline.technologyTerritory ? this.formInline.technologyTerritory.split(',') : []
|
||||||
@@ -817,6 +819,9 @@
|
|||||||
this.formInline.prehomoDeliverableType = this.formInline.prehomoDeliverableType ? this.formInline.prehomoDeliverableType.split(',') : []
|
this.formInline.prehomoDeliverableType = this.formInline.prehomoDeliverableType ? this.formInline.prehomoDeliverableType.split(',') : []
|
||||||
this.formInline.verifyDeliverableType = this.formInline.verifyDeliverableType ? this.formInline.verifyDeliverableType.split(',') : []
|
this.formInline.verifyDeliverableType = this.formInline.verifyDeliverableType ? this.formInline.verifyDeliverableType.split(',') : []
|
||||||
this.formInline.dutyDepart = this.formInline.dutyDepart ? this.formInline.dutyDepart.split(',') : []
|
this.formInline.dutyDepart = this.formInline.dutyDepart ? this.formInline.dutyDepart.split(',') : []
|
||||||
|
if (this.formInline.dutyDepart && this.formInline.dutyDepart.length > 0) {
|
||||||
|
this.getDutyTerritory(this.formInline.dutyDepart.join(','))
|
||||||
|
}
|
||||||
this.formInline.dutyTerritory = this.formInline.dutyTerritory ? this.formInline.dutyTerritory.split(',') : []
|
this.formInline.dutyTerritory = this.formInline.dutyTerritory ? this.formInline.dutyTerritory.split(',') : []
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
@@ -825,6 +830,7 @@
|
|||||||
this.visible = true
|
this.visible = true
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
this.title = this.$t('view')
|
this.title = this.$t('view')
|
||||||
|
this.dutyTerritoryList = []
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = item || {}
|
this.formInline = item || {}
|
||||||
this.formInline.technologyTerritory = this.formInline.technologyTerritory ? this.formInline.technologyTerritory.split(',') : []
|
this.formInline.technologyTerritory = this.formInline.technologyTerritory ? this.formInline.technologyTerritory.split(',') : []
|
||||||
@@ -832,6 +838,9 @@
|
|||||||
this.formInline.prehomoDeliverableType = this.formInline.prehomoDeliverableType ? this.formInline.prehomoDeliverableType.split(',') : []
|
this.formInline.prehomoDeliverableType = this.formInline.prehomoDeliverableType ? this.formInline.prehomoDeliverableType.split(',') : []
|
||||||
this.formInline.verifyDeliverableType = this.formInline.verifyDeliverableType ? this.formInline.verifyDeliverableType.split(',') : []
|
this.formInline.verifyDeliverableType = this.formInline.verifyDeliverableType ? this.formInline.verifyDeliverableType.split(',') : []
|
||||||
this.formInline.dutyDepart = this.formInline.dutyDepart ? this.formInline.dutyDepart.split(',') : []
|
this.formInline.dutyDepart = this.formInline.dutyDepart ? this.formInline.dutyDepart.split(',') : []
|
||||||
|
if (this.formInline.dutyDepart && this.formInline.dutyDepart.length > 0) {
|
||||||
|
this.getDutyTerritory(this.formInline.dutyDepart.join(','))
|
||||||
|
}
|
||||||
this.formInline.dutyTerritory = this.formInline.dutyTerritory ? this.formInline.dutyTerritory.split(',') : []
|
this.formInline.dutyTerritory = this.formInline.dutyTerritory ? this.formInline.dutyTerritory.split(',') : []
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
@@ -1084,6 +1093,7 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 0 0 2px 2px;
|
border-radius: 0 0 2px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-form-item-with-help {
|
::v-deep .ant-form-item-with-help {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -853,6 +853,7 @@
|
|||||||
},
|
},
|
||||||
editModel(value) {
|
editModel(value) {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
|
this.dutyTerritoryList = []
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.personnelVisible = true
|
this.personnelVisible = true
|
||||||
value.dutyDepart = value.dutyDepart ? value.dutyDepart.split(',') : []
|
value.dutyDepart = value.dutyDepart ? value.dutyDepart.split(',') : []
|
||||||
|
|||||||
@@ -757,16 +757,26 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
isEdit(val) {
|
isEdit(val) {
|
||||||
if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
|
// if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
|
||||||
val.designFlowStatus == 'Results to be reviewed') {
|
// val.designFlowStatus == 'Results to be reviewed') {
|
||||||
|
// return true
|
||||||
|
// } else {
|
||||||
|
// return false
|
||||||
|
// }
|
||||||
|
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isEditVerifi(val) {
|
isEditVerifi(val) {
|
||||||
if (val.verifyFlowStatus == 'Task to be confirmed' || val.verifyFlowStatus == 'Results to be submitted' ||
|
// if (val.verifyFlowStatus == 'Task to be confirmed' || val.verifyFlowStatus == 'Results to be submitted' ||
|
||||||
val.verifyFlowStatus == 'Results to be reviewed') {
|
// val.verifyFlowStatus == 'Results to be reviewed') {
|
||||||
|
// return true
|
||||||
|
// } else {
|
||||||
|
// return false
|
||||||
|
// }
|
||||||
|
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
@@ -896,6 +906,7 @@
|
|||||||
},
|
},
|
||||||
editModel(item) {
|
editModel(item) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.dutyTerritoryList = []
|
||||||
this.regulatoryEngineerList = []
|
this.regulatoryEngineerList = []
|
||||||
this.engineeringInterfacePersonList = []
|
this.engineeringInterfacePersonList = []
|
||||||
this.certificationEngineerList = []
|
this.certificationEngineerList = []
|
||||||
|
|||||||
@@ -369,6 +369,7 @@
|
|||||||
editModel(item, data) {
|
editModel(item, data) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.title = this.$t('edit')
|
this.title = this.$t('edit')
|
||||||
|
this.dutyTerritoryList = []
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = item || {}
|
this.formInline = item || {}
|
||||||
if (this.formInline.deliverableType) {
|
if (this.formInline.deliverableType) {
|
||||||
@@ -381,6 +382,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.formInline.dutyDepart = []
|
this.formInline.dutyDepart = []
|
||||||
}
|
}
|
||||||
|
if (this.formInline.dutyDepart && this.formInline.dutyDepart.length > 0) {
|
||||||
|
this.getDutyTerritory(this.formInline.dutyDepart.join(','))
|
||||||
|
}
|
||||||
if (this.formInline.dutyTerritory) {
|
if (this.formInline.dutyTerritory) {
|
||||||
this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',')
|
this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',')
|
||||||
} else {
|
} else {
|
||||||
@@ -388,7 +392,6 @@
|
|||||||
}
|
}
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
console.log(this.formInline)
|
|
||||||
if (data == 1) {
|
if (data == 1) {
|
||||||
this.title = this.$t('view')
|
this.title = this.$t('view')
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
|
|||||||
Reference in New Issue
Block a user