Commit 555efc01 authored by renjintao's avatar renjintao

分卡、回收

parent 18bbcc0a
...@@ -25,7 +25,13 @@ ...@@ -25,7 +25,13 @@
<Record :eid="recordId" /> <Record :eid="recordId" />
</Modal> </Modal>
<Modal v-model="SpeedModal" title="工单信息" fullscreen footer-hide class="recordM"> <Modal v-model="SpeedModal" title="工单信息" fullscreen footer-hide class="recordM">
<Speed :result="result" :load="loading" @on-close="clsoeSpeedModal" :executeId="dispatchExecuteId" :orderId="orderId" /> <Speed
:result="result"
:load="loading"
@on-close="clsoeSpeedModal"
:executeId="dispatchExecuteId"
:orderId="orderId"
/>
</Modal> </Modal>
<Modal v-model="recycleModal" title="确定回收订单" width="600" class="suspend"> <Modal v-model="recycleModal" title="确定回收订单" width="600" class="suspend">
<Form ref="form" :model="recovery" :rules="rulesRecycle" :label-width="120"> <Form ref="form" :model="recovery" :rules="rulesRecycle" :label-width="120">
...@@ -383,7 +389,10 @@ export default { ...@@ -383,7 +389,10 @@ export default {
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
h( h(
params.row.status == 5 && params.row.upSplitId == 0 (params.row.status == 5 && params.row.upSplitId == 0) ||
(params.row.status == 5 &&
params.row.upSplitId > 0 &&
params.row.splitCardStatus == 1)
? "Button" ? "Button"
: "", //订单状态暂停,启动 : "", //订单状态暂停,启动
{ {
...@@ -408,7 +417,7 @@ export default { ...@@ -408,7 +417,7 @@ export default {
"" ""
), ),
h( h(
params.row.status == 6 && params.row.upSplitId == 0 params.row.status == 6
? "Button" ? "Button"
: "", //订单状态执行中,暂停 : "", //订单状态执行中,暂停
{ {
...@@ -434,7 +443,7 @@ export default { ...@@ -434,7 +443,7 @@ export default {
"" ""
), ),
h( h(
params.row.status == 5 && params.row.upSplitId > 0 ? "op" : "", //订单状态执行中,暂停 params.row.status == 5 && params.row.splitCardStatus == 0 ? "op" : "", //订单状态执行中,暂停
{ {
attrs: { attrs: {
icon: "md-sync", icon: "md-sync",
...@@ -542,9 +551,8 @@ export default { ...@@ -542,9 +551,8 @@ export default {
} }
}); });
}, },
clsoeSpeedModal() clsoeSpeedModal() {
{ this.SpeedModal = false;
this.SpeedModal=false;
}, },
suspend(row) { suspend(row) {
console.log(row); console.log(row);
...@@ -634,5 +642,4 @@ export default { ...@@ -634,5 +642,4 @@ export default {
.ivu-btn-group { .ivu-btn-group {
height: 21px !important; height: 21px !important;
} }
</style> </style>
\ No newline at end of file
...@@ -310,11 +310,11 @@ export default { ...@@ -310,11 +310,11 @@ export default {
split(row, index) { split(row, index) {
//工单分卡 //工单分卡
this.getProduct(row.id); this.getProduct(row.id);
(this.initeId = { this.initeId = {
routingDetailId: row.detailId, routingDetailId: row.detailId,
dispatchId: row.id dispatchId: row.id
}), };
(this.modalSplit = true); this.modalSplit = true;
}, },
onchangeAction(val) { onchangeAction(val) {
//选择移入排产时显示排产模型下拉框 //选择移入排产时显示排产模型下拉框
...@@ -353,7 +353,7 @@ export default { ...@@ -353,7 +353,7 @@ export default {
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.$Message.success("分卡成功"); this.$Message.success("分卡成功");
this.$emit("on-close") this.$emit("on-close");
} else { } else {
this.$Message.error("分卡失败"); this.$Message.error("分卡失败");
} }
......
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