修改绑定工序

This commit is contained in:
17630416519 2025-12-31 15:38:32 +08:00
parent c60a2fdab3
commit 9e27dfe63e
2 changed files with 19 additions and 6 deletions

View File

@ -106,9 +106,9 @@ export function addProcessRoutingOperation(data) {
}
//删除
export function delProcessRoutingOperation(operationId) {
export function delProcessRoutingOperation(id) {
return request({
url: 'MasterDataManagement/Process/ProcessOperation/operation_delete_flow',
method: 'delete/' + operationId,
url: 'MasterDataManagement/Process/ProcessOperation/operation_delete_flow/' + id,
method: 'delete',
})
}

View File

@ -212,6 +212,8 @@
<el-button type="primary" size="small" @click="addTableRow">新增</el-button>
</div>
<el-table :data="tableData" style="width: 100%" border>
<el-table-column label="序号" align="center" type="index" width="70">
</el-table-column>
<el-table-column prop="flowName" label="流程名称">
<template #default="scope">
<el-select @change="handleFlowName($event, scope.row)" v-model="scope.row.flowName" placeholder="请选择流程名称">
@ -222,7 +224,7 @@
</el-table-column>
<el-table-column prop="flowCode" label="流程编码">
<template #default="scope">
<el-input v-model="scope.row.flowCode" placeholder="请输入流程编码" />
<el-input v-model="scope.row.flowCode" placeholder="请输入流程编码" disabled />
</template>
</el-table-column>
<el-table-column label="操作" width="120">
@ -309,6 +311,10 @@ const tableData = ref([])
//
function addTableRow() {
if (!tableData.value || !Array.isArray(tableData.value)) {
tableData.value = []
}
const newRow = {
flowCode: ``,
flowName: ``,
@ -322,8 +328,8 @@ function addSubmit() {
//
function deleteTableRow(row) {
console.log(row, '090909');
const Ids = row.operationId
console.log(row.id, '090909');
const Ids = row.id
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.then(function () {
@ -331,6 +337,11 @@ function deleteTableRow(row) {
})
.then(() => {
proxy.$modal.msgSuccess("删除成功")
getProcessOperation(operationIdData.value).then(res => {
if (res.code == 200) {
tableData.value = res.data.operationFlows
}
})
})
}
@ -633,9 +644,11 @@ function handleAdd() {
const fkRoutingCodeData = ref('')
const operationCodeData = ref('')
const operationIdData = ref('')
function handleView(val) {
fkRoutingCodeData.value = val.fkRoutingCode
operationCodeData.value = val.operationCode
operationIdData.value = val.operationId
resetForm1()
drawer.value = true
form1.value = { ...val }