Commit 89977b59 authored by renjintao's avatar renjintao

工藝設置

parent 1c34f423
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<template> <template>
<div class="new_box"> <div class="new_box">
<span class="mr10">订单编号:{{mescodes}}</span> <span class="mr10">订单编号:{{mescodes}}</span>
<Button v-if="materialbillStatuss!=1" type="primary" @click="saveBill">生成料单</Button> <Button v-if="materialBillSetStatus!=1" type="primary" @click="saveBill">生成料单</Button>
<Table stripe ref="table" border :columns="columns" :data="datas" class="tableCommon mt5"></Table> <Table stripe ref="table" border :columns="columns" :data="datas" class="tableCommon mt5"></Table>
</div> </div>
</template> </template>
...@@ -100,7 +100,10 @@ export default { ...@@ -100,7 +100,10 @@ export default {
}, },
props: { props: {
mesCode: String, mesCode: String,
materialBillSetStatus: Number, materialBillSetStatus: {
type: Number,
default: -1
},
mainRoutingID: Number, mainRoutingID: Number,
id: Number, id: Number,
quantity: Number quantity: Number
...@@ -116,9 +119,9 @@ export default { ...@@ -116,9 +119,9 @@ export default {
}; };
Api.post(`${technologyUrl}materiallist/createnew`, params).then(res => { Api.post(`${technologyUrl}materiallist/createnew`, params).then(res => {
if (res.success) { if (res.success) {
this.materialbillStatuss = 1;
this.$emit("on-ok"); this.$emit("on-ok");
this.loaddata(this.orderId); this.loaddata(this.orderId);
this.materialBillSetStatus = 1;
} }
}); });
}, },
...@@ -146,16 +149,16 @@ export default { ...@@ -146,16 +149,16 @@ export default {
watch: { watch: {
mainRoutingID(v) { mainRoutingID(v) {
this.routingHeaderId = v; this.routingHeaderId = v;
this.loaddata(); this.loaddata(this.orderId);
}, },
mesCode(v) { mesCode(v) {
this.mescodes = v; this.mescodes = v;
}, },
materialBillSetStatus(v) { materialBillSetStatus(v) {
if (v == 1) { if (v == 1) {
this.materialbillStatuss = v; this.materialBillSetStatus =v;
} else { } else {
this.materialbillStatuss = -1; this.materialBillSetStatus = -1;
} }
}, },
id(v) { id(v) {
...@@ -164,6 +167,7 @@ export default { ...@@ -164,6 +167,7 @@ export default {
this.loaddata(v); this.loaddata(v);
} else { } else {
this.datas = []; this.datas = [];
this.materialBillSetStatus = -1;
} }
}, },
quantity(v) { quantity(v) {
......
...@@ -298,6 +298,7 @@ ...@@ -298,6 +298,7 @@
fullscreen fullscreen
:mask-closable="false" :mask-closable="false"
:loading="myloading" :loading="myloading"
:closable="false"
> >
<orderMaterial <orderMaterial
ref="orderMaterial" ref="orderMaterial"
...@@ -309,7 +310,7 @@ ...@@ -309,7 +310,7 @@
@on-ok="ok" @on-ok="ok"
></orderMaterial> ></orderMaterial>
<div slot="footer"> <div slot="footer">
<Button type="text" size="large" @click="saveCancelModel">关闭</Button> <Button type="primary" size="large" @click="saveCancelModel">关闭窗口</Button>
</div> </div>
</Modal> </Modal>
...@@ -1003,6 +1004,11 @@ export default { ...@@ -1003,6 +1004,11 @@ export default {
this.modalliao = false; this.modalliao = false;
// this.$refs.orderMaterial.cleardata() // this.$refs.orderMaterial.cleardata()
this.dataListRetrunNew.idList = []; this.dataListRetrunNew.idList = [];
this.mainRoutingID= null;
this.id= null;
this.materialBillSetStatus=null
this.mesCode= "";
this.quantity= null;
}, },
modalOk() { modalOk() {
if (this.createtype == 2 && this.headerid == 0) { if (this.createtype == 2 && this.headerid == 0) {
......
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