| | |
| | | uploadInfo: { |
| | | // 是否展示上传EXCEL以及对应的url |
| | | isShow: false, |
| | | download:true, |
| | | url: '/mes/param/upload' |
| | | }, |
| | | prelang: 'operation', |
| | |
| | | multipleSelection: [], |
| | | isCheck: false, |
| | | dataway:{}, |
| | | goid:'', |
| | | datalist:[], |
| | | testStandardParams: [], |
| | | packageBoxId:{}, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //包装详情 |
| | | |
| | | //打印按钮 |
| | | printFun() { |
| | | this.diaPrintTab = false; |
| | |
| | | }, |
| | | handleSelectionChange(val){ |
| | | this.multipleSelection = val |
| | | console.log(this.multipleSelection[0].id,"数据"); |
| | | let lastRow = val[val.length - 1] |
| | | this.handleCurrentChange(lastRow) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | handleCurrentChange(row){ |
| | | if(row.state=='已报检'){ |
| | | if(row.state=='未报检'){ |
| | | this.isCheck = false |
| | | }else{ |
| | | this.isCheck = true |
| | | } |
| | | this.dataway = row |
| | | this.packageBoxId = { |
| | | packageBoxId:row.id |
| | | } |
| | | this.goid = row.id |
| | | this.rightquery() |
| | | }, |
| | | rightquery(){ |
| | | list({packageBoxId:this.goid}).then((res) =>{ |
| | | list({packageBoxId:this.packageBoxId.packageBoxId}).then((res) =>{ |
| | | this.testStandardParams = res.data.data |
| | | }) |
| | | }, |
| | |
| | | //右边保存 |
| | | addpreserve(){ |
| | | this.datalist.forEach(el => { |
| | | el.packageBoxId =this.goid |
| | | el.packageBoxId =this.packageBoxId.packageBoxId |
| | | }); |
| | | console.log(this.datalist); |
| | | // return |
| | |
| | | */ |
| | | |
| | | |
| | | const url = 'http://192.168.2.7:9999' |
| | | // const url = 'https://ztms-mes.chinaztt.cn/' |
| | | // const url = 'http://192.168.2.7:9999' |
| | | const url = 'https://ztms-mes.chinaztt.cn/' |
| | | |
| | | // const url = 'http://localhost:9999' |
| | | |