Commit a1303788 by xin.yang
parents c5ad9b97 58359ff3
...@@ -505,7 +505,7 @@ export default { ...@@ -505,7 +505,7 @@ export default {
feedReady() { feedReady() {
// 准备上料 // 准备上料
if (this.sectionid == 0) { if (this.sectionid == 0) {
this.$Message.error("请选择工位"); this.$Message.error("请选择生产线、工位");
return false; return false;
} }
let data = { let data = {
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
class="searchSelect" class="searchSelect"
:data="datalevel" :data="datalevel"
:value="leveldata" :value="leveldata"
@on-change="getSectionId"
></Cascader> ></Cascader>
</div> </div>
<div class="filter"> <div class="filter">
...@@ -300,6 +301,7 @@ export default { ...@@ -300,6 +301,7 @@ export default {
startTime: [], startTime: [],
endTime: [], endTime: [],
detailobj: {}, detailobj: {},
sectionid:0
}; };
}, },
created() { created() {
...@@ -311,7 +313,7 @@ export default { ...@@ -311,7 +313,7 @@ export default {
methods: { methods: {
search(page, pagesize) { search(page, pagesize) {
let params = { let params = {
section: this.sectionId, section: this.sectionid,
tasktype: this.taskType, tasktype: this.taskType,
productCode: this.productCode, productCode: this.productCode,
sn: this.sn, sn: this.sn,
...@@ -340,6 +342,13 @@ export default { ...@@ -340,6 +342,13 @@ export default {
this.total = res.data.data.total; this.total = res.data.data.total;
}); });
}, },
getSectionId(val) {
this.leveldata = val;
this.sectionid =
this.leveldata.length > 0
? this.leveldata[this.leveldata.length - 1]
: 0;
},
cancel() { cancel() {
console.log(this.detailobj); console.log(this.detailobj);
if (!this.detailobj.id) { if (!this.detailobj.id) {
......
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