Commit a07dad2b by yiyu.li

add

parent 6de01783
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<Button type="primary" @click="feedReady()" <Button type="primary" @click="feedReady()"
>准备上料</Button >准备上料</Button
> >
<Button type="primary">安装完成</Button> <Button type="primary" @click="installOver()">安装完成</Button>
</div> </div>
</TabPane> </TabPane>
<TabPane label="下料" :disabled="attr2" name="2" <TabPane label="下料" :disabled="attr2" name="2"
......
...@@ -106,7 +106,6 @@ ...@@ -106,7 +106,6 @@
class="tableClass" class="tableClass"
:columns="columns1" :columns="columns1"
:data="data1" :data="data1"
@on-row-click="onExpand" @on-row-click="onExpand"
></Table> ></Table>
<div class="pageDiv"> <div class="pageDiv">
...@@ -275,7 +274,10 @@ export default { ...@@ -275,7 +274,10 @@ export default {
highlightRow: true, highlightRow: true,
}, },
on: { on: {
'on-current-change': (currentRow,oldCurrentRow) => { "on-current-change": (
currentRow,
oldCurrentRow
) => {
this.childObj = currentRow; this.childObj = currentRow;
console.log(currentRow); console.log(currentRow);
}, },
...@@ -426,7 +428,7 @@ export default { ...@@ -426,7 +428,7 @@ export default {
fileurl: "", fileurl: "",
filename: "", filename: "",
UploadAction: this.axios.publicPath + "config/upload/UploadImage", UploadAction: this.axios.publicPath + "config/upload/UploadImage",
childObj:{} childObj: {},
}; };
}, },
created() { created() {
...@@ -477,7 +479,7 @@ export default { ...@@ -477,7 +479,7 @@ export default {
this.type = 1; this.type = 1;
}, },
addPost() { addPost() {
let url = ''; let url = "";
let data = { let data = {
parentid: this.toolingId1, //父级工装ID parentid: this.toolingId1, //父级工装ID
fixturetoolid: this.toolingId2, //工装ID fixturetoolid: this.toolingId2, //工装ID
...@@ -486,7 +488,7 @@ export default { ...@@ -486,7 +488,7 @@ export default {
status: 1, status: 1,
}; };
if (this.type == 1) { if (this.type == 1) {
url = '/acc/FixtureToolsAssembly/Add' url = "/acc/FixtureToolsAssembly/Add";
} }
if (this.type == 2) { if (this.type == 2) {
data.id = this.childObj.id; data.id = this.childObj.id;
...@@ -501,25 +503,59 @@ export default { ...@@ -501,25 +503,59 @@ export default {
); );
}, },
edit() { edit() {
if(!this.childObj.id){ if (!this.childObj.id) {
this.$Message.error('请先选择子工装信息'); this.$Message.error("请先选择子工装信息");
return false; return false;
} }
this.parentType = this.childObj.parentcategoryids; this.parentType = this.childObj.parentcategoryids;
this.sonType = this.childObj.categoryids; this.sonType = this.childObj.categoryids;
this.parentId = this.childObj.parentcategoryid; this.parentId = this.childObj.parentcategoryid;
this.getToolingList(1); this.getToolingList(1);
this.sonId = this.childObj.categoryid; this.sonId = this.childObj.categoryid;
this.getToolingList(2); this.getToolingList(2);
this.$nextTick(()=>{ this.$nextTick(() => {
this.toolingId1 = this.childObj.parentid; this.toolingId1 = this.childObj.parentid;
this.toolingId2 = this.childObj.fixturetoolid; this.toolingId2 = this.childObj.fixturetoolid;
}) });
this.filename = this.childObj.filename;
this.fileurl = this.childObj.fileurl;
this.remark = this.childObj.remark;
this.modal = true; this.modal = true;
}, },
dele() {}, dele() {
return;
if (this.detailobj.id === undefined || this.detailobj.id === null) {
this.$Message.error(this.$t("1017"));
return false;
} else {
var params = {
id: this.detailobj.id,
};
this.$Modal.confirm({
title: this.$t("1018"),
content: "",
width: "290px",
closable: true,
okText: this.$t("1004"),
onOk: () => {
this.axios
.request({
url: "/acc/FixtureToolsProduct/Delete",
params,
method: "get",
})
.then((res) => {
if (res.data.ret === 1) {
this.$Message.success(this.$t("1058"));
this.search(0);
} else {
this.$Message.error(this.$t(res.data.msg));
}
});
},
});
}
},
loadExcel() {}, loadExcel() {},
exportEecel() {}, exportEecel() {},
//工装类型 //工装类型
...@@ -617,6 +653,7 @@ export default { ...@@ -617,6 +653,7 @@ export default {
}); });
this.data1[index]._expanded = !this.data1[index]._expanded; this.data1[index]._expanded = !this.data1[index]._expanded;
this.data1.sort(); this.data1.sort();
this.childObj = {};
}, },
handlePageSize(value) { handlePageSize(value) {
this.page = 1; this.page = 1;
......
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