Commit 091d4de4 authored by jingnan's avatar jingnan 👀

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

parents 7e6a350e 4d552f17
...@@ -54,15 +54,22 @@ export default { ...@@ -54,15 +54,22 @@ export default {
open() { open() {
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.getTablesData() this.getTablesData(1)
this.getTablesData(2)
this.getFrockTable()
}) })
}, },
handleClose() {}, handleClose() {},
getTablesData() { getTablesData(value) {
var that = this var that = this
if (value === 1) {
this.$refs.table1.loading = true
} else {
this.$refs.table2.loading = true
}
this.$refs.table1.loading = true this.$refs.table1.loading = true
this.$refs.table2.loading = true this.$refs.table2.loading = true
this.$refs.table3.loading = true // this.$refs.table3.loading = true
const params = { const params = {
'searchItems': { 'searchItems': {
'children': [ 'children': [
...@@ -71,13 +78,13 @@ export default { ...@@ -71,13 +78,13 @@ export default {
{ {
'fieldName': 'extProcessDocLinks.sourceId', 'fieldName': 'extProcessDocLinks.sourceId',
'operator': 'EQ', 'operator': 'EQ',
'value': '249403670569000' // 'value': '249403670569000'
// 'value': this.$parent.headerData.aoId 'value': this.$parent.headerData.aoId
}, },
{ {
'fieldName': 'subTypeName', 'fieldName': 'subTypeName',
'operator': 'EQ', 'operator': value === 1 ? 'EQ' : 'IN',
'value': 'DxProcessPlanDesignView' 'value': value === 1 ? 'DxProcessPlanDesignView' : ['DocInnerRef', 'DocOuterRef']
} }
], ],
'operator': 'AND' 'operator': 'AND'
...@@ -103,15 +110,86 @@ export default { ...@@ -103,15 +110,86 @@ export default {
params) params)
.then((res) => { .then((res) => {
if (res.message.includes('成功')) { if (res.message.includes('成功')) {
this.tableDesign = res.items.designViews || [] if (value === 1) {
this.tableFile = res.items.docRefs || [] this.tableDesign = res.items.content || []
this.tableClothes = res.items.materialVos || [] } else {
this.versionChangeDesc = res.items.dxProcessPlanVo.versionChangeDesc this.tableFile = res.items.content || []
this.prepareDescription = res.items.dxProcessPlanVo.prepareDescription }
this.workDescription = res.items.dxProcessPlanVo.workDescription // this.versionChangeDesc = res.items.dxProcessPlanVo.versionChangeDesc
// this.prepareDescription = res.items.dxProcessPlanVo.prepareDescription
// this.workDescription = res.items.dxProcessPlanVo.workDescription
this.$nextTick(() => {
if (value === 1) {
this.$refs.table1.init()
} else {
this.$refs.table2.init()
}
})
} else {
that.$message({
showClose: true,
message: '保存失败',
type: 'error'
})
}
})
.catch((err) => console.error(err))
.finally(() => {
if (value === 1) {
this.$refs.table1.loading = false
} else {
this.$refs.table2.loading = false
}
// this.$refs.table1.loading = false
// this.$refs.table2.loading = false
// this.$refs.table3.loading = false
})
},
getFrockTable() {
var that = this
this.$refs.table3.loading = true
const params = {
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'source.targetExtProcessUsageLink.sourceId',
'operator': 'EQ',
// 'value': '249391817076000'
'value': this.$parent.headerData.aoId
},
{
'fieldName': 'subTypeName',
'operator': 'EQ',
'value': 'ExtProcessOperation'
}
],
'operator': 'AND'
}
],
'items': [],
'operator': 'AND'
},
'openProps': [
{
'name': 'target'
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
],
'toValidateKeys': ''
}
post(`/ExtProcessResourceLink/search`,
params)
.then((res) => {
if (res.message.includes('成功')) {
this.tableClothes = res.items.content || []
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.table1.init()
this.$refs.table2.init()
this.$refs.table3.init() this.$refs.table3.init()
}) })
} else { } else {
...@@ -124,8 +202,6 @@ export default { ...@@ -124,8 +202,6 @@ export default {
}) })
.catch((err) => console.error(err)) .catch((err) => console.error(err))
.finally(() => { .finally(() => {
this.$refs.table1.loading = false
this.$refs.table2.loading = false
this.$refs.table3.loading = false this.$refs.table3.loading = false
}) })
} }
......
...@@ -812,23 +812,23 @@ export default { ...@@ -812,23 +812,23 @@ export default {
isOKClothesLink: p.joExecuteOpPlan[0].isOKClothesLink, isOKClothesLink: p.joExecuteOpPlan[0].isOKClothesLink,
isOKToolLink: p.joExecuteOpPlan[0].isOKToolLink, isOKToolLink: p.joExecuteOpPlan[0].isOKToolLink,
deviceLink: p.joExecuteOpPlan[0].deviceLink, deviceLink: p.joExecuteOpPlan[0].deviceLink,
operator: p.joExecuteOpPlan.length && operator: p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans &&
p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorUser p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorUser
? p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorUser.userName + ? p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorUser.userName +
' ' + ' ' +
p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorTime p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorTime
: '', : '',
testor: testor:
p.joExecuteOpPlan.length && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans &&
p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testor ? p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testor.userName + p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testor ? p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testor.userName +
' ' + ' ' +
p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testorTime : '', p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testorTime : '',
dmir: { dmir: {
dmriImg: dmriImg:
p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans && p.joExecuteOpPlan[0].jrExecuteOpPlans.length &&
p.joExecuteOpPlan[0].jrExecuteOpPlans[0].dmriImg, p.joExecuteOpPlan[0].jrExecuteOpPlans[0].dmriImg,
dmirTime: dmirTime:
p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans && p.joExecuteOpPlan[0].jrExecuteOpPlans.length &&
p.joExecuteOpPlan[0].jrExecuteOpPlans[0].dmirTime p.joExecuteOpPlan[0].jrExecuteOpPlans[0].dmirTime
}, },
fileList: p.objFileLinks ? p.objFileLinks : [] fileList: p.objFileLinks ? p.objFileLinks : []
......
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