Commit 811e2f2c authored by 15008242619's avatar 15008242619

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents ae4f3a35 227a5a2f
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -260,6 +260,7 @@ export default { ...@@ -260,6 +260,7 @@ export default {
} }
}, },
'form.airModel': { 'form.airModel': {
immediate: true,
handler: function(val) { handler: function(val) {
val && this.changeSorties() val && this.changeSorties()
} }
......
...@@ -561,7 +561,11 @@ export default { ...@@ -561,7 +561,11 @@ export default {
'items': paramsItems, 'items': paramsItems,
'operator': 'AND' 'operator': 'AND'
}, },
'openProps': [], 'openProps': [
{
'name': 'shellacDeploy'
}
],
'sortItem': [ 'sortItem': [
{ {
'fieldName': 'modifyTime', 'fieldName': 'modifyTime',
...@@ -581,6 +585,7 @@ export default { ...@@ -581,6 +585,7 @@ export default {
this.$set(this.form, 'humidity', res.items.content[0].humidity) this.$set(this.form, 'humidity', res.items.content[0].humidity)
this.$set(this.form, 'component', res.items.content[0].component) this.$set(this.form, 'component', res.items.content[0].component)
this.$set(this.form, 'shellacDeployId', res.items.content[0].id) this.$set(this.form, 'shellacDeployId', res.items.content[0].id)
this.$set(this.form, 'shellacDeploy', { constructionTime: res.items.content[0].constructionTime })
this.$set(this.form, 'storeUp', res.items.content[0].storeUp) this.$set(this.form, 'storeUp', res.items.content[0].storeUp)
this.$set(this.form, 'storeUpTo', res.items.content[0].storeUpTo) this.$set(this.form, 'storeUpTo', res.items.content[0].storeUpTo)
if (this.form.validityStart && this.form.freeTemperature) { if (this.form.validityStart && this.form.freeTemperature) {
......
...@@ -533,6 +533,42 @@ ...@@ -533,6 +533,42 @@
<!-- 物料确认 --> <!-- 物料确认 -->
<RecordMaintenance ref="RecordMaintenance" @refreshPage="refreshPage" /> <RecordMaintenance ref="RecordMaintenance" @refreshPage="refreshPage" />
<!-- 物料确认 --> <!-- 物料确认 -->
<!-- 试验申请创建 -->
<el-drawer
v-if="drawerShowExperimentAdd"
title="试验申请"
size="50%"
append-to-body
:before-close="onClose"
:visible.sync="drawerShowExperimentAdd"
>
<dee-as-com
:lay-config="{
typeName: 'ExperimentRecord',
layKey: 'NotGeneral_Experiment_Create'
}"
:form="experimentApplyForm"
parent-show-mode="dialog"
@on-cancel="onClose"
/>
</el-drawer>
<!-- 检验员 -->
<dee-dialog
width="40%"
title="选择检验员"
:before-close="closeDialog"
:dialog-visible="showDialog"
@handleClose="closeDialog"
>
<dee-as-com
:lay-config="{
typeName: 'ExperimentRecord',
layKey: 'checker'
}"
:form="checkerForm"
@on-cancel="closeDialog"
/>
</dee-dialog>
</div> </div>
</template> </template>
...@@ -598,7 +634,11 @@ export default { ...@@ -598,7 +634,11 @@ export default {
showHeader: true, showHeader: true,
sideShow: true, sideShow: true,
isOK: !this.$route.query.isOK || this.$route.query.isOK === 'false', isOK: !this.$route.query.isOK || this.$route.query.isOK === 'false',
isRevoke: this.$route.query.isRevoke && this.$route.query.isRevoke === 'true' isRevoke: this.$route.query.isRevoke && this.$route.query.isRevoke === 'true',
drawerShowExperimentAdd: false,
experimentApplyForm: {},
showDialog: false,
checkerForm: {}
} }
}, },
computed: {}, computed: {},
...@@ -607,6 +647,7 @@ export default { ...@@ -607,6 +647,7 @@ export default {
handler(to, from) { handler(to, from) {
if (to && to.name === 'assemblyPerform') { if (to && to.name === 'assemblyPerform') {
this.getWorkingProcedure() this.getWorkingProcedure()
this.refreshPage()
} }
} }
// immediate: true // immediate: true
...@@ -645,6 +686,23 @@ export default { ...@@ -645,6 +686,23 @@ export default {
} }
}) })
}) })
this.$bus.$on('completeExperimentAdd', ({ items }) => {
this.$nextTick(() => {
this.onClose()
if (items.id) {
this.getProcessInfo(items.id)
}
})
})
this.$bus.$on('refreshAssemblyPerform', () => {
this.$nextTick(() => {
this.closeDialog()
})
})
},
beforeDestroy() {
this.$bus.$off('completeExperimentAdd')
this.$bus.$off('refreshAssemblyPerform')
}, },
methods: { methods: {
getQRcode(info) { getQRcode(info) {
...@@ -1247,21 +1305,36 @@ export default { ...@@ -1247,21 +1305,36 @@ export default {
if (this.editor.countRecord) { if (this.editor.countRecord) {
this.$refs.RecordMaintenance.open() this.$refs.RecordMaintenance.open()
} else { } else {
var that = this if (!this.headerData) return
this.$confirm('确定要试验申请吗', '提示', { this.drawerShowExperimentAdd = true
confirmButtonText: '确定', this.$set(this.experimentApplyForm, 'isGeneral', false)
cancelButtonText: '取消', this.$set(this.experimentApplyForm, 'aircraftType', this.headerData.resName)
type: 'warning' this.$set(this.experimentApplyForm, 'sorties', this.headerData.serialNo)
this.$set(this.experimentApplyForm, 'extProcessPlan', {
serialNumber: this.headerData.serialNumber,
name: this.headerData.name,
id: this.headerData.aoId
}) })
.then(() => { this.$set(this.experimentApplyForm, 'extProcessOperation', {
that.testApplication() serialNumber: this.editor.serialNumber,
}) name: this.editor.title,
.catch(() => { id: this.editor.tableId
this.$message({ })
type: 'info', // var that = this
message: '已取消' // this.$confirm('确定要试验申请吗11', '提示', {
}) // confirmButtonText: '确定',
}) // cancelButtonText: '取消',
// type: 'warning'
// })
// .then(() => {
// that.testApplication()
// })
// .catch(() => {
// this.$message({
// type: 'info',
// message: '已取消'
// })
// })
} }
}, },
getHandledValue(num) { getHandledValue(num) {
...@@ -1410,7 +1483,50 @@ export default { ...@@ -1410,7 +1483,50 @@ export default {
}, },
refreshPage() { refreshPage() {
this.getWorkingProcedure() this.getWorkingProcedure()
},
getProcessInfo(id) {
post(
`/workflow/task/?page=1&size=9999`,
{
'pbo': `com.yonde.tf.mom.common.vo.execute.ExperimentRecordVO_dex_wfc_${id}`
}
)
.then((res) => {
if (res && res.items && res.items.content) {
const info = res.items.content[0] || {}
this.showDialog = true
this.checkerForm = {
'operationName': 'completeTask',
'operator': localStorage.getItem('userId'),
'description': '',
'id': info.id,
'processDefinitionId': info.processDefinitionId,
'processInstId': info.processInstanceId,
'routerSelect': 'check',
'taskDefinitionKey': info.taskDefinitionKey,
'participants': {
'wf_act_TeamRole_checker_userList': [
]
},
'variables': {},
'taskVariables': {}
}
}
})
.catch((err) => console.error(err))
.finally(() => {
// that.editShow = false
})
},
onClose() {
this.drawerShowExperimentAdd = false
this.experimentApplyForm = {}
},
closeDialog() {
this.showDialog = false
this.refreshPage()
} }
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment