Commit 9f691aef authored by renjintao's avatar renjintao

配套

parent 5bbb1b8c
...@@ -158,11 +158,10 @@ export default { ...@@ -158,11 +158,10 @@ export default {
el.count = el.totalCount; el.count = el.totalCount;
el._checked = true; el._checked = true;
el._index = i++; el._index = i++;
//el._disabled=true
}); });
}); });
this.datas = r.result; this.datas = r.result;
//----测试多个工艺start //----测试多个工艺start----
// let temre = this.$u.clone(r.result); // let temre = this.$u.clone(r.result);
// temre.forEach((ele) => { // temre.forEach((ele) => {
// ele.routingHeaderId = 281; // ele.routingHeaderId = 281;
...@@ -173,7 +172,7 @@ export default { ...@@ -173,7 +172,7 @@ export default {
// }); // });
// }); // });
// this.datas = r.result.concat(temre); // this.datas = r.result.concat(temre);
//----测试多个工艺end //----测试多个工艺end----
} }
}); });
}, },
...@@ -222,44 +221,16 @@ export default { ...@@ -222,44 +221,16 @@ export default {
this.$set(this.datas[v].suport, index, ele); this.$set(this.datas[v].suport, index, ele);
}); });
} }
// if (this.curArr.length == 0) {
// //取消全部时
// let temc = this.$u.clone(this.selectItems);
// let temb = this.delByHeadId(temc, v);
// this.selectItems = [];
// this.selectItems = temb;
// this.footerToolbar = this.selectItems.length > 0;
// //alert("this.selectAllCancel___" + JSON.stringify(this.selectItems));
// }
}, },
selectList(items, row) { selectList(items, row) {
this.curArr = 1; this.curArr = 1;
//this.selectItems.push(row);
// alert("this.selectItems___" + JSON.stringify(this.selectItems));
//this.footerToolbar = this.selectItems.length > 0;
this.cRow = row; this.cRow = row;
}, },
selectListAll(items) { selectListAll(items) {
this.curArr = 2; this.curArr = 2;
// let tema = this.selectItems.concat(items);
// let temo = this.delSame(tema);
// this.selectItems = [];
// this.selectItems = temo;
//alert("this.selectListAlls___" + JSON.stringify(this.selectItems));
// this.footerToolbar = this.selectItems.length > 0;
}, },
selectListCancel(items, row) { selectListCancel(items, row) {
this.curArr = 3; this.curArr = 3;
// let tempSelectItems = this.$u.clone(this.selectItems);
//let delId = row.id;
// let arrs = this.delById(tempSelectItems, delId);
// this.selectItems = [];
// this.selectItems = arrs;
//alert("this.selectListCancel___" + JSON.stringify(this.selectItems));
//this.footerToolbar = this.selectItems.length > 0;
// this.$set(this.datas[i].suport, index, row);
this.cRow = row; this.cRow = row;
}, },
selectAllCancel(items) { selectAllCancel(items) {
......
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
</FormItem> </FormItem>
</Form> </Form>
<Button type="primary" class="mr10 ml10" @click="application">申请配套</Button> <Button type="primary" class="mr10 ml10" @click="application">申请配套</Button>
<Button @click="cancelBatch" v-show="false">取消</Button>
</FooterToolbar> </FooterToolbar>
<Modal v-model="modalAccessoryList" :title="title" fullscreen footer-hide> <Modal v-model="modalAccessoryList" :title="title" fullscreen footer-hide>
...@@ -320,11 +319,6 @@ export default { ...@@ -320,11 +319,6 @@ export default {
} }
}); });
}, },
l(key) {
let vkey = "plan_resource" + "." + key;
return this.$t(vkey) || key;
},
getTimeQuotationFD(value) { getTimeQuotationFD(value) {
this.orderForm.QuotationFinishDate = this.orderForm.QuotationFinishDate =
value != "" ? this.getFormatDateEnd(value) : value; value != "" ? this.getFormatDateEnd(value) : value;
...@@ -348,6 +342,7 @@ export default { ...@@ -348,6 +342,7 @@ export default {
return s < 10 ? "0" + s : s; return s < 10 ? "0" + s : s;
}, },
selectionChange(v) { selectionChange(v) {
//根据状态修改this.datas数组数据
if (this.curArr == 3) { if (this.curArr == 3) {
//单条取消选择 //单条取消选择
this.cRow._checked = false; this.cRow._checked = false;
...@@ -383,7 +378,6 @@ export default { ...@@ -383,7 +378,6 @@ export default {
}, },
selectListCancel(items, row) { selectListCancel(items, row) {
this.curArr = 3; this.curArr = 3;
this.cRow = row; this.cRow = row;
}, },
selectAllCancel(items) { selectAllCancel(items) {
...@@ -436,7 +430,6 @@ export default { ...@@ -436,7 +430,6 @@ export default {
Api.supportmainCreate(parms).then((res) => { Api.supportmainCreate(parms).then((res) => {
if (res.success) { if (res.success) {
this.$Message.success("申请成功"); this.$Message.success("申请成功");
//this.$emit("cancel");
this.$emit("on-ok"); this.$emit("on-ok");
} }
}); });
...@@ -494,31 +487,18 @@ export default { ...@@ -494,31 +487,18 @@ export default {
this.entity = row; this.entity = row;
this.modalAccSet = true; this.modalAccSet = true;
}, },
cancelBatch() { openAcc() {//打开申请单页面
//取消选择
this.selectItems = [];
let temd = this.$u.clone(this.datas);
temd.forEach((res) => {
this.$refs["table" + res.routingHeaderId][0].selectAll(false);
});
this.footerToolbar = false;
},
openAcc() {
this.title = "申请单"; this.title = "申请单";
this.detailAcc = () => import("./detailAccessory"); this.detailAcc = () => import("./detailAccessory");
this.modalAccessoryList = true; this.modalAccessoryList = true;
}, },
ok() {
this.modalAccessory = false;
this.curId = 0;
},
cancel() { cancel() {
this.modalAccessoryList = false; this.modalAccessoryList = false;
}, },
canelSet() { canelSet() {//临时设置取消
this.modalAccSet = false; this.modalAccSet = false;
}, },
onOk() { onOk() {//重新加载页面数据
this.load(this.eid); this.load(this.eid);
}, },
}, },
......
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