Commit c110d83e authored by 何远江's avatar 何远江

添加执行解析

parent 5cbc90f2
......@@ -47,6 +47,11 @@
<vxe-column field="productType" title="产品类型" width="120"></vxe-column>
<vxe-column field="productCode" title="产品编码" width="120"></vxe-column>
<vxe-column field="productName" title="产品名称" width="240"></vxe-column>
<vxe-column title="解析" width="100">
<template #default="{ row }">
<el-button v-if="!!row.varOrderFileId" type="text" size="small" @click="toRun(row)">执行解析</el-button>
</template>
</vxe-column>
<vxe-column title="操作" width="240">
<template #default="{ row }">
<el-button type="text" size="small" @click="handleImportVar(row)">上传变量</el-button>
......@@ -196,6 +201,17 @@ const changeUpload = (file: any) => {
}
})
}
const toRun = async (row) => {
const { data } = await apiOrderVarRun(row.orderItemId)
if (data?.code == '200') {
ElMessage.success(data.message || '解析成功!')
importVisible.value = false
onQuery()
nextTick(() => {
handleShowVarRun(row)
})
}
}
const submitImport = async () => {
const params = {
...importForm.value,
......
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