Commit 2a6e77c4 authored by renjintao's avatar renjintao

sendOk

parent 8e69ae17
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<Send :row="rowDataArry" ref="orderSplit" /> <Send :row="rowDataArry" ref="orderSplit" />
<div slot="footer"> <div slot="footer">
<Button @click="sendModal = false">取消</Button> <Button @click="sendModal = false">取消</Button>
<Button type="primary">确定派发</Button> <Button type="primary" @click="sendOk">确定派发</Button>
</div> </div>
</Modal> </Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel"> <Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
...@@ -707,7 +707,9 @@ export default { ...@@ -707,7 +707,9 @@ export default {
rowDataArry: [], rowDataArry: [],
ModalInfoStaut: "", ModalInfoStaut: "",
sendList: [], sendList: [],
metCodesStrTxt: "" metCodesStrTxt: "",
actIds: [], //批量处理时ids
actMescodes:[],
}; };
}, },
created() { created() {
...@@ -867,30 +869,57 @@ export default { ...@@ -867,30 +869,57 @@ export default {
openSendModal() { openSendModal() {
if (this.rowDataArry.length > 0) { if (this.rowDataArry.length > 0) {
this.sendModal = true; this.sendModal = true;
this.actIds = [];
this.rowDataArry.forEach(data => {
this.actIds.push(data.id);
});
} else { } else {
this.$Message.error("请选择订单"); this.$Message.error("请选择订单");
} }
}, },
remove(id) { //确定派发
this.deletelModal = true; sendOk() {
this.curId = id; this.$refs.orderSplit.$refs["formValidate"].validate(valid => {
}, if (valid) {
removeOk() { let objInfo = this.$refs.orderSplit.returnData();
Api.delete({ id: this.curId }).then(r => { let params = {
if (r.success) { ids: this.delIds
this.$refs.grid.load(); };
this.deletelModal = false;
this.$Message.success("删除成功");
} }
}); });
}, },
//单条删除
remove(id) {
this.deletelModal = true;
//this.curId = id;
this.actIds = [];
this.actIds.push(id);
},
//批量删除
removeList() { removeList() {
if (this.rowDataArry.length > 0) { if (this.rowDataArry.length > 0) {
this.deletelModal = true; this.deletelModal = true;
this.deactIdslIds = [];
this.rowDataArry.forEach(data => {
this.actIds.push(data.id);
});
} else { } else {
this.$Message.error("请选择订单"); this.$Message.error("请选择订单");
} }
}, },
//删除确定
removeOk() {
let params = {
ids: this.delIds
};
// Api.delete({ id: this.curId }).then(r => {
// if (r.success) {
// this.$refs.grid.load();
// this.deletelModal = false;
// this.$Message.success("删除成功");
// }
// });
},
removeCancel() { removeCancel() {
this.deletelModal = false; this.deletelModal = false;
}, },
......
<template> <template>
<div style="width:100%;margin:0 auto" > <div style="width:100%;margin:0 auto">
<Detail ref="detailRow" :row="row1" v-show="dataList.length==1"></Detail> <Detail ref="detailRow" :row="row1" v-show="dataList.length==1"></Detail>
<Table <Table
border border
:columns="columns1" :columns="columns1"
...@@ -20,10 +20,7 @@ ...@@ -20,10 +20,7 @@
<Row> <Row>
<Col span="6"> <Col span="6">
<FormItem label="生产准备" style="width:100%" prop="ProductingPreparationPeople"> <FormItem label="生产准备" style="width:100%" prop="ProductingPreparationPeople">
<WorkShopSelect <WorkShopSelect ref="userSelected" v-model="orderForm.ProductingPreparationPeople" />
ref="userSelected"
v-model="orderForm.ProductingPreparationPeople"
/>
</FormItem> </FormItem>
</Col> </Col>
<Col span="6"> <Col span="6">
...@@ -38,10 +35,7 @@ ...@@ -38,10 +35,7 @@
</Col> </Col>
<Col span="6"> <Col span="6">
<FormItem label="订单报价人员" style="width:100%" prop="QuotationPeople"> <FormItem label="订单报价人员" style="width:100%" prop="QuotationPeople">
<UserSelect <UserSelect ref="userSelected" v-model="orderForm.QuotationPeople" />
ref="userSelected"
v-model="orderForm.QuotationPeople"
/>
</FormItem> </FormItem>
</Col> </Col>
<Col span="6"> <Col span="6">
...@@ -71,21 +65,9 @@ export default { ...@@ -71,21 +65,9 @@ export default {
data() { data() {
return { return {
divHeight: "400px", divHeight: "400px",
osrOneList: false, //一条数据显示详细
osrMoreList: false, //多条数据只显示列表
info: {
status: true,
orderInfo: []
},
roleTitle: "工艺员", roleTitle: "工艺员",
orderForm: { orderForm: {
DistributeMainRouting: null, //主工艺人员 ProductingPreparationPeople: null, //生产准备
MainRoutingFinishDate: "", //主工艺人员完成时间
MajorRoutingPeople: null, //专业工艺人员
MajorRoutingFinishDate: "", //专业工艺人员完成时间
CheckUpPeople: 1, //校对人员 暂时不用
CheckUpFinishDate: "2019-12-19", //校对人员完成时间
ProductingPreparationPeople: null, //生产准备人员
ProductingPreparationFinishDate: "", //生产准备完成时间 ProductingPreparationFinishDate: "", //生产准备完成时间
QuotationPeople: null, //订单报价人员 QuotationPeople: null, //订单报价人员
QuotationFinishDate: "" //订单报价完成时间 QuotationFinishDate: "" //订单报价完成时间
...@@ -128,7 +110,7 @@ export default { ...@@ -128,7 +110,7 @@ export default {
} }
], ],
dataList: [], dataList: [],
row1:{}, row1: {},
dataListRetrun: [], //确定后返回数据 dataListRetrun: [], //确定后返回数据
ruleValidate: { ruleValidate: {
...@@ -164,8 +146,8 @@ export default { ...@@ -164,8 +146,8 @@ export default {
] ]
}, },
rowList: [], rowList: [],
row1:{}, row1: {},
tbHeight:0, tbHeight: 0
}; };
}, },
props: { props: {
...@@ -177,35 +159,14 @@ export default { ...@@ -177,35 +159,14 @@ export default {
} }
}, },
methods: { methods: {
returnDataList() { returnData() {
this.dataListRetrun = []; let objStr = {};
this.dataList.forEach(item => { objStr.ProductingPreparationPeople = this.orderForm.ProductingPreparationPeople;
let objStr = {}; objStr.ProductingPreparationFinishDate = this.orderForm.ProductingPreparationFinishDate;
objStr.id = item.id; objStr.QuotationPeople = this.orderForm.QuotationPeople;
objStr.mesCode = item.mesCode; objStr.QuotationFinishDate = this.orderForm.QuotationFinishDate;
objStr.DistributeMainRouting = this.orderForm.DistributeMainRouting;
objStr.MainRoutingFinishDate = this.orderForm.MainRoutingFinishDate;
objStr.MajorRoutingPeople = this.orderForm.MajorRoutingPeople;
objStr.MajorRoutingFinishDate = this.orderForm.MajorRoutingFinishDate;
objStr.CheckUpPeople = this.orderForm.CheckUpPeople;
objStr.CheckUpFinishDate = this.orderForm.CheckUpFinishDate;
objStr.ProductingPreparationPeople = this.orderForm.ProductingPreparationPeople;
objStr.ProductingPreparationFinishDate = this.orderForm.ProductingPreparationFinishDate;
objStr.QuotationPeople = this.orderForm.QuotationPeople;
objStr.QuotationFinishDate = this.orderForm.QuotationFinishDate;
this.dataListRetrun.push(objStr);
});
//返回审批数据 //返回审批数据
return this.dataListRetrun; return objStr;
},
getTimeMainRFD(value) {
this.orderForm.MainRoutingFinishDate = value;
},
getTimeMajorRFD(value) {
this.orderForm.MajorRoutingFinishDate = value;
},
getTimeCheckFD(value) {
this.orderForm.CheckUpFinishDate = value;
}, },
getTimeProductPFD(value) { getTimeProductPFD(value) {
this.orderForm.ProductingPreparationFinishDate = value; this.orderForm.ProductingPreparationFinishDate = value;
...@@ -216,7 +177,7 @@ export default { ...@@ -216,7 +177,7 @@ export default {
}, },
created() { created() {
//var theight = window.innerHeight - 400 + "px"; //var theight = window.innerHeight - 400 + "px";
// this.divHeight = theight; // this.divHeight = theight;
}, },
mounted() { mounted() {
// window.onresize = () => { // window.onresize = () => {
...@@ -231,11 +192,10 @@ export default { ...@@ -231,11 +192,10 @@ export default {
row(v) { row(v) {
if (v != []) { if (v != []) {
this.dataList = this.$u.clone(this.row); this.dataList = this.$u.clone(this.row);
this.row1=this.dataList[0] this.row1 = this.dataList[0];
this.tbHeight=0 this.tbHeight = 0;
if(this.dataList.length>3) if (this.dataList.length > 3) {
{ this.tbHeight = 200;
this.tbHeight=200
} }
} }
} }
......
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