feat: 打通出库作业链路
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user