|
|
@ -89,7 +89,7 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'COMPLETED' || scope.row.flowStatus === 'TERMINATED'" @click="handleRestart(scope.row)">重新审批</el-link> |
|
|
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'COMPLETED' || scope.row.flowStatus === 'TERMINATED'" @click="handleRestart(scope.row)">重新审批</el-link> |
|
|
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'RUNNING'" @click="openApproveDialog(scope.row)">审批</el-link> |
|
|
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'RUNNING'" @click="openApproveDialog(scope.row)">审批</el-link> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -158,7 +158,7 @@ |
|
|
</el-row> --> |
|
|
</el-row> --> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="是否特殊放行"> |
|
|
|
|
|
|
|
|
<el-form-item label="是否特别放行"> |
|
|
<el-select v-model="approveData.specialRelease" style="width: 100%"> |
|
|
<el-select v-model="approveData.specialRelease" style="width: 100%"> |
|
|
<el-option label="否" value="N"></el-option> |
|
|
<el-option label="否" value="N"></el-option> |
|
|
<el-option label="是" value="Y"></el-option> |
|
|
<el-option label="是" value="Y"></el-option> |
|
|
@ -498,7 +498,7 @@ export default { |
|
|
// } |
|
|
// } |
|
|
], |
|
|
], |
|
|
exportName: '产品信息' + this.dayjs().format('YYYYMMDDHHmmss') |
|
|
exportName: '产品信息' + this.dayjs().format('YYYYMMDDHHmmss') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
/* 组件 */ |
|
|
/* 组件 */ |
|
|
@ -520,7 +520,7 @@ export default { |
|
|
this.height = (window.innerHeight - 280) / 2 |
|
|
this.height = (window.innerHeight - 280) / 2 |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
getBaseList (val, type) { |
|
|
getBaseList (val, type) { |
|
|
@ -539,9 +539,9 @@ export default { |
|
|
// if (this.tagNo === 1100) { |
|
|
// if (this.tagNo === 1100) { |
|
|
// this.searchData.partNo = val.part_no |
|
|
// this.searchData.partNo = val.part_no |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getMainData () { |
|
|
getMainData () { |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.page = this.pageIndex |
|
|
@ -563,11 +563,11 @@ export default { |
|
|
this.dataListLoading = false |
|
|
this.dataListLoading = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tabClick (tab, event) { |
|
|
tabClick (tab, event) { |
|
|
this.refreshCurrentTabTable() |
|
|
this.refreshCurrentTabTable() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 每页数 |
|
|
// 每页数 |
|
|
sizeChangeHandle (val) { |
|
|
sizeChangeHandle (val) { |
|
|
this.pageSize = val |
|
|
this.pageSize = val |
|
|
@ -580,12 +580,12 @@ export default { |
|
|
this.pageIndex = val |
|
|
this.pageIndex = val |
|
|
this.getMainData() |
|
|
this.getMainData() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeData (row) { |
|
|
changeData (row) { |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)) |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)) |
|
|
this.refreshCurrentTabTable() |
|
|
this.refreshCurrentTabTable() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshCurrentTabTable () { |
|
|
refreshCurrentTabTable () { |
|
|
if (this.currentRow === '' || this.currentRow === null) { |
|
|
if (this.currentRow === '' || this.currentRow === null) { |
|
|
this.currentRow = {site: '', partNo: ''} |
|
|
this.currentRow = {site: '', partNo: ''} |
|
|
@ -606,7 +606,7 @@ export default { |
|
|
this.refreshAttachments() |
|
|
this.refreshAttachments() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async exportExcel () { |
|
|
async exportExcel () { |
|
|
this.searchData.limit = -1 |
|
|
this.searchData.limit = -1 |
|
|
this.searchData.page = 1 |
|
|
this.searchData.page = 1 |
|
|
@ -621,7 +621,7 @@ export default { |
|
|
dropColumns: [] |
|
|
dropColumns: [] |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshBasicInfo () { |
|
|
refreshBasicInfo () { |
|
|
let inData = { |
|
|
let inData = { |
|
|
site: this.currentRow.site, |
|
|
site: this.currentRow.site, |
|
|
@ -631,7 +631,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$refs.basicInfo.init(inData) |
|
|
this.$refs.basicInfo.init(inData) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshSpecParams () { |
|
|
refreshSpecParams () { |
|
|
let inData = { |
|
|
let inData = { |
|
|
site: this.currentRow.site, |
|
|
site: this.currentRow.site, |
|
|
@ -642,7 +642,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$refs.specParams.init(inData) |
|
|
this.$refs.specParams.init(inData) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshSuppliers () { |
|
|
refreshSuppliers () { |
|
|
let inData = { |
|
|
let inData = { |
|
|
site: this.currentRow.site, |
|
|
site: this.currentRow.site, |
|
|
@ -651,7 +651,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$refs.suppliers.init(inData) |
|
|
this.$refs.suppliers.init(inData) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshApproval () { |
|
|
refreshApproval () { |
|
|
let inData = { |
|
|
let inData = { |
|
|
site: this.currentRow.site, |
|
|
site: this.currentRow.site, |
|
|
@ -661,7 +661,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$refs.approval.init(inData) |
|
|
this.$refs.approval.init(inData) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshAttachments () { |
|
|
refreshAttachments () { |
|
|
let inData = { |
|
|
let inData = { |
|
|
orderRef1: this.currentRow.site, |
|
|
orderRef1: this.currentRow.site, |
|
|
@ -671,8 +671,8 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$refs.attachments.init(inData) |
|
|
this.$refs.attachments.init(inData) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 打开审批对话框 |
|
|
// 打开审批对话框 |
|
|
openApproveDialog(row) { |
|
|
openApproveDialog(row) { |
|
|
this.approveData = { |
|
|
this.approveData = { |
|
|
@ -682,8 +682,9 @@ export default { |
|
|
flowCode: row.flowCode, |
|
|
flowCode: row.flowCode, |
|
|
flowVersion: row.flowVersion, |
|
|
flowVersion: row.flowVersion, |
|
|
nodeCode: row.nodeCode, |
|
|
nodeCode: row.nodeCode, |
|
|
|
|
|
specialRelease :'N', |
|
|
comment: '' |
|
|
comment: '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
this.approveDialogVisible = true |
|
|
this.approveDialogVisible = true |
|
|
}, |
|
|
}, |
|
|
@ -737,7 +738,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}).catch(() => {}) |
|
|
}).catch(() => {}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@ -860,4 +861,4 @@ export default { |
|
|
height: 28px; |
|
|
height: 28px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
|
|
|
|
|
|
</style> |