feat: 打通出库作业链路

This commit is contained in:
zgw
2026-06-24 09:13:18 +08:00
parent a3c023a8d3
commit 1af5b3cbd3
141 changed files with 17337 additions and 1065 deletions

View File

@@ -98,6 +98,17 @@
v-hasPermi="['out:job:complete']"
>手动完成</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-upload2"
size="mini"
:disabled="single"
@click="handlePushWcs"
v-hasPermi="['out:job:edit']"
>推送WCS</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -202,7 +213,7 @@
</template>
<script>
import { listJob, cancelJob, completeJob } from "@/api/out/job"
import { listJob, cancelJob, completeJob, pushJobToWcs } from "@/api/out/job"
import { listJobdetail } from "@/api/out/jobdetail"
export default {
@@ -309,6 +320,16 @@ export default {
this.getList()
}).catch(() => {})
},
/** 推送 WCS 按钮操作 */
handlePushWcs() {
const jobId = this.ids[0]
this.$modal.confirm('是否确认推送选中的出库作业到WCS?').then(() => {
return pushJobToWcs(jobId)
}).then(() => {
this.$modal.msgSuccess("推送成功")
this.getList()
}).catch(() => {})
},
/** 点击主作业行 —— 联动刷新子作业 */
handleRowClick(row) {
this.currentJob = row