Commit 273c671d authored by renjintao's avatar renjintao

工艺设置

parent 02181f3c
......@@ -586,7 +586,11 @@ div::-webkit-scrollbar-corner {
transform: scale(.96);
}
/*字体颜色*/
.font_fff
{
color:#fff;
}
/*按钮颜色*/
.bluebg {
......
......@@ -40,7 +40,7 @@
<Row class="row-down" :gutter="10">
<Col span="7">
<div class="img-i">
<img :src="downUrl +row.productUrl" />
<img :src="downUrl +row.productUrl" onerror="this.src='/imgicon/noPic_product.png';"/>
</div>
</Col>
<Col span="17" class="c">
......
......@@ -14,4 +14,7 @@ export default {
ordersetroutingids(params) {
return Api.post(`${technologyUrl}orderrouting/ordersetroutingids`, params);
},
createnew(params) {
return Api.post(`${technologyUrl}materiallist/createnew`, params);
},
}
......@@ -25,13 +25,13 @@
</Content>
</Layout>
<FooterToolbar extra v-if="footerBar">
<Row class="footer">
<div class="fr font_fff">
<Checkbox @on-change="handleSelectAll(single)" v-model="single">全选</Checkbox>
<span class="footerSpan">已选 {{selectCount}}</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<Button type="primary" @click="modalDispatch">设置工艺</Button>
<Button @click="canselFooter">取消</Button>
</Row>
</div>
</FooterToolbar>
</div>
</template>
......@@ -275,8 +275,14 @@ export default {
orderIds: this.eid.orderIds,
routingList: this.routingList,
};
Api.routingset(data).then((r) => {
this.$Message.success("工艺设置成功");
if (r.success) {
//this.$Message.success("工艺设置成功");
this.saveBill();
} else {
this.$Message.error("工艺设置失败");
}
});
},
onCancel: () => {
......@@ -284,17 +290,24 @@ export default {
},
});
},
saveBill() {//生成料单
saveBill() {
//生成料单
let temRouId = [];
this.routingList.forEach((el) => {
temRouId.push(el.routingHeaderId);
});
let params = {
routingHeaderId: this.routingList,
routingHeaderId: temRouId,
orderId: this.eid.orderIds,
orderCount: this.eid.count,
};
Api.post(`${technologyUrl}materiallist/createnew`, params).then(res => {
Api.createnew(params).then((res) => {
if (res.success) {
// this.$emit("on-ok");
this.$emit("on-ok");
//this.loaddata(this.orderId);
//this.materialBillSetStatus = 1;
} else {
this.$Message.error("生成料单失败");
}
});
},
......@@ -333,9 +346,9 @@ export default {
margin-bottom: 10px;
}
}
.ivu-footer-toolbar-right {
margin-right: 72% !important;
}
//.ivu-footer-toolbar-right {
// margin-right: 72% !important;
//}
.ivu-footer-toolbar {
background: rgba(0, 0, 0, 0.7) !important;
.footer {
......
......@@ -450,6 +450,10 @@ div::-webkit-scrollbar-corner {
.d-button:active {
transform: scale(0.96);
}
/*字体颜色*/
.font_fff {
color: #fff;
}
/*按钮颜色*/
.bluebg {
background: #237bdf;
......
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