| | |
| | | // var data = { |
| | | // palletCode: row.palletCode |
| | | // }; |
| | | console.log(row.palletCode); |
| | | //console.log(row.palletCode); |
| | | var _this = this; |
| | | this.http |
| | | .post("/api/BoxingInfoDetail/GetBarcodeDetial", row.palletCode, "æ¥è¯¢æ°æ®ä¸") |
| | | .post("/api/Dt_PalletStockInfoDetail/GetBarcodeDetial", row.palletCode, "æ¥è¯¢æ°æ®ä¸") |
| | | .then((x) => { |
| | | console.log(x.data); |
| | | //console.log(x.data); |
| | | if (x.status == 1) { |
| | | _this.$refs.gridHeader.materielList = x.data; |
| | | } |
| | |
| | | }; |
| | | this.columns.splice(1, 0, options); |
| | | |
| | | |
| | | var ManualOutbound = this.buttons.find(x => x.value == "ManualOutBound"); |
| | | if (ManualOutbound != null) { |
| | | ManualOutbound.onClick = () => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) { |
| | | return this.$error("è¯·éæ©æ°æ®!"); |
| | | } else if (rows.length > 1) { |
| | | return this.$error("åªè½éæ©åæ¡æ°æ®"); |
| | | } |
| | | this.$refs.gridBody.open(rows[0].palletCode); |
| | | |
| | | console.log(rows); |
| | | |
| | | let errmsg = ""; |
| | | rows.forEach(element => { |
| | | if (element.stockStatus != 2) |
| | | errmsg = "å½åéæ©æ°æ®ä¸æä¸ç¬¦ååºåºç¶æåºå!"; |
| | | |
| | | if(element.areaCode != rows[0].areaCode) |
| | | errmsg = "å½åéæ©æ°æ®ä¸å«æä¸ååºåºçæ°æ®"; |
| | | }); |
| | | |
| | | if (errmsg != "") |
| | | return this.$error(errmsg) |
| | | |
| | | |
| | | var barcodeList = rows.map(x => |
| | | x.palletCode |
| | | ); |
| | | |
| | | if (barcodeList.length == 0) |
| | | return this.$error("è¯·éæ©è¦åºåºçåºåæ°æ®!"); |
| | | |
| | | // else if (rows.length > 1) { |
| | | // return this.$error("åªè½éæ©åæ¡æ°æ®"); |
| | | // } |
| | | this.$refs.gridBody.open(barcodeList); |
| | | this.refresh(); |
| | | } |
| | | }; |