| | |
| | | |
| | | // import gridHeader from "./demo_Product/Dt_BillGroupStockDetail.vue"; |
| | | // import gridHeader from './extend/printView.vue' |
| | | // import gridBody from './extend/OtherOutBound.vue' |
| | | import gridBody from './extend/Remark.vue' |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridBody: gridBody, |
| | | gridFooter: '', |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: '', |
| | |
| | | type: 'primary', |
| | | plain: true, |
| | | onClick: function () { |
| | | this.$confirm('æ¯å¦å
¶ä»åºåº', "è¦åä½ æ£å¨ä½¿ç¨å
¶ä»åºåº", { |
| | | this.$confirm('æ¯å¦å
¶ä»åºåº', 'è¦å', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | center: true |
| | | }).then(() => { |
| | | this.http.post(`/api/Task/OtherOutBoundTaskAsync`, this.$refs.detail.rowData, "æ£å¨å®æä»»å¡").then((res) => { |
| | | if (res.status) { |
| | | this.$Message.success(res.message) |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | } |
| | | }) |
| | | this.http |
| | | .post( |
| | | `/api/Task/OtherOutBoundTaskAsync`, |
| | | this.$refs.detail.rowData, |
| | | 'æ£å¨çæåºåºä»»å¡' |
| | | ) |
| | | .then((res) => { |
| | | if (res.status) { |
| | | this.$Message.success(res.message) |
| | | this.boxModel = false |
| | | this.refresh() |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | type: 'danger', |
| | | plain: true, |
| | | onClick: function () { |
| | | this.$confirm('æ¯å¦è°æ¨åºåº', "è¦åä½ æ£å¨ä½¿ç¨è°æ¨åºåº", { |
| | | this.$confirm('æ¯å¦è°æ¨åºåº', 'è¦å', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | center: true |
| | | }).then(() => { |
| | | this.http.post(`/api/Task/HandAllocateOutBoundTaskAsync`, this.$refs.detail.rowData, "æ£å¨å®æä»»å¡").then((res) => { |
| | | if (res.status) { |
| | | this.$Message.success(res.message) |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | } |
| | | }) |
| | | this.http |
| | | .post( |
| | | `/api/Task/HandAllocateOutBoundTaskAsync`, |
| | | this.$refs.detail.rowData, |
| | | 'æ£å¨çæåºåºä»»å¡' |
| | | ) |
| | | .then((res) => { |
| | | if (res.status) { |
| | | this.$Message.success(res.message) |
| | | this.boxModel = false |
| | | this.refresh() |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | // }) |
| | | // } |
| | | // }); |
| | | // this.columns.push({ |
| | | // field: 'æä½', |
| | | // title: 'æä½', |
| | | // width: 90, |
| | | // fixed: 'right', |
| | | // align: 'center', |
| | | // type:'jsx', |
| | | // formatter: (row) => { |
| | | // //return '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">çç¹åºåº</i>' |
| | | // return [{ |
| | | // name:"btn1", |
| | | // type:"primary" |
| | | // },{ |
| | | // name:"btn1", |
| | | // type:"success" |
| | | // }] |
| | | // }, |
| | | // click: (row,formatter) => { |
| | | // console.log(formatter); |
| | | // this.http |
| | | // .post(`/api/Task/OutBoundTaskAsync?palletCode=${row.palletCode}`, {}, 'æ£å¨çæä»»å¡') |
| | | // .then((res) => { |
| | | // //示ä¾ï¼è°ç¨åå°æ¥å£ |
| | | // if (res.status) { |
| | | // this.$Message.success(row.palletCode + 'åºåºæå') |
| | | // this.refresh() |
| | | // } else { |
| | | // this.$Message.error(res.message) //é误æç¤º |
| | | // this.refresh() |
| | | // } |
| | | // }) |
| | | // } |
| | | // }) |
| | | this.columns.push({ |
| | | field: 'æä½', |
| | | title: 'æä½', |
| | | width: 90, |
| | | fixed: 'right', |
| | | align: 'center', |
| | | formatter: (row) => { |
| | | field: 'æä½', |
| | | width: 250, |
| | | align: 'center', // 'center', |
| | | render: (h, { row, column, index }) => { |
| | | return ( |
| | | '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">çç¹åºåº</i>' |
| | | ); |
| | | }, |
| | | click: (row) => { |
| | | this.http.post(`/api/Task/OutBoundTaskAsync?palletCode=${row.palletCode}`, {}, "æ£å¨çæä»»å¡").then((res) => { |
| | | //示ä¾ï¼è°ç¨åå°æ¥å£ |
| | | if (res.status) { |
| | | this.$Message.success(row.palletCode + "åºåºæå"); |
| | | this.refresh(); |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | this.refresh(); |
| | | } |
| | | }) |
| | | <div> |
| | | <el-button onClick={($e) => { }} type="primary"> |
| | | å
¶ä»åºåº |
| | | </el-button> |
| | | |
| | | <el-button onClick={($e) => { |
| | | |
| | | }} type="success" > |
| | | è°æ¨åºåº |
| | | </el-button> |
| | | |
| | | <el-button onClick={($e) => { |
| | | // this.http |
| | | // .post(`/api/Task/OutBoundTaskAsync?palletCode=${row.palletCode}`, {}, 'æ£å¨çæä»»å¡') |
| | | // .then((res) => { |
| | | // //示ä¾ï¼è°ç¨åå°æ¥å£ |
| | | // if (res.status) { |
| | | // this.$Message.success(row.palletCode + 'åºåºæå') |
| | | // this.refresh() |
| | | // } else { |
| | | // this.$Message.error(res.message) //é误æç¤º |
| | | // this.refresh() |
| | | // } |
| | | // }) |
| | | this.$refs.gridBody.open(row.palletCode); |
| | | }} type="warning"> |
| | | çç¹åºåº |
| | | </el-button> |
| | | </div> |
| | | ) |
| | | } |
| | | }); |
| | | }) |
| | | // this.columns.push({ |
| | | // title: "æä½", |
| | | // field: "æä½", |
| | |
| | | // style="height:26px; padding: 10px !important;" |
| | | // > |
| | | // æå° |
| | | // </el-button> |
| | | // </el-button> |
| | | // </div> |
| | | // ); |
| | | // }, |
| | |
| | | this.boxOptions.labelWidth = 150 |
| | | this.buttons.forEach((btn) => { |
| | | if (btn.name == 'ç¼è¾') { |
| | | btn.hidden = true; |
| | | btn.hidden = true |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | this.columns.forEach((column) => { |
| | | |
| | | if (column.field == 'floor') { |
| | | |
| | | const floorMap = { |
| | | '1F': '䏿¥¼', |
| | | '2F': 'äºæ¥¼', |
| | | }; |
| | | '2F': 'äºæ¥¼' |
| | | } |
| | | column.formatter = (row) => { |
| | | return floorMap[row?.locationInfo?.floor] || '' |
| | | } |
| | | } |
| | | if (column.field == 'areaId') { |
| | | |
| | | const floorMap = { |
| | | '1': '䏿¥¼å åæºåºå', |
| | | '2': '䏿¥¼AGVåºåºç¼ååº', |
| | | '3': '䏿¥¼AGVç«åºç¼ååº', |
| | | '4': '䏿¥¼AGVå
¥åºç¼ååº', |
| | | '5': 'äºæ¥¼B4-G4ç¼ååº', |
| | | '6': 'äºæ¥¼B5-G5ç¼ååº', |
| | | }; |
| | | 1: '䏿¥¼å åæºåºå', |
| | | 2: '䏿¥¼AGVåºåºç¼ååº', |
| | | 3: '䏿¥¼AGVç«åºç¼ååº', |
| | | 4: '䏿¥¼AGVå
¥åºç¼ååº', |
| | | 5: 'äºæ¥¼B4-G4ç¼ååº', |
| | | 6: 'äºæ¥¼B5-G5ç¼ååº' |
| | | } |
| | | column.formatter = (row) => { |
| | | return floorMap[row?.locationInfo?.areaId] || '' |
| | | } |
| | | } |
| | | if (column.field == 'locationStatus') { |
| | | const statusMap = { |
| | | '0': '空é²', |
| | | '1': 'éå®', |
| | | '2': 'æè´§', |
| | | '3': 'æè´§ç¦ç¨', |
| | | '4': 'æ è´§ç¦ç¨' |
| | | }; |
| | | 0: '空é²', |
| | | 1: 'éå®', |
| | | 2: 'æè´§', |
| | | 3: 'æè´§ç¦ç¨', |
| | | 4: 'æ è´§ç¦ç¨' |
| | | } |
| | | column.formatter = (row) => { |
| | | return statusMap[row?.locationInfo?.locationStatus] || ''; |
| | | return statusMap[row?.locationInfo?.locationStatus] || '' |
| | | } |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | this.detailOptions.columns.forEach(column => { |
| | | |
| | | }); |
| | | this.detailOptions.columns.forEach((column) => {}) |
| | | }, |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | |
| | | //this.$refs.table.$refs.table.toggleRowSelection(row) //åå»è¡æ¶éä¸å½åè¡; |
| | | }, |
| | | modelOpenAfter(row) { |
| | | const isAdd = this.currentAction == 'Add';//夿æ¯å¦ä¸ºæ°å»ºæä½ |
| | | const isAdd = this.currentAction == 'Add' //夿æ¯å¦ä¸ºæ°å»ºæä½ |
| | | //éèæç»è¡¨æé® |
| | | this.detailOptions.buttons.forEach((btn) => { |
| | | if (btn.name == 'æ·»å è¡') { |
| | | btn.hidden = true; |
| | | btn.hidden = true |
| | | //æè
设置åªè¯» |
| | | //btn.readonly=true; |
| | | } |
| | | }); |
| | | const isDel = this.currentAction == 'Add';//夿æ¯å¦ä¸ºæ°å»ºæä½ |
| | | }) |
| | | const isDel = this.currentAction == 'Add' //夿æ¯å¦ä¸ºæ°å»ºæä½ |
| | | //éèæç»è¡¨æé® |
| | | this.detailOptions.buttons.forEach((btn) => { |
| | | if (btn.name == 'å é¤è¡') { |
| | | btn.hidden = true; |
| | | btn.hidden = true |
| | | //æè
设置åªè¯» |
| | | //btn.readonly=true; |
| | | } |
| | | }); |
| | | }) |
| | | this.detailOptions.buttons.forEach((btn) => { |
| | | if (btn.name == '导å
¥') { |
| | | btn.hidden = true; |
| | | btn.hidden = true |
| | | //æè
设置åªè¯» |
| | | //btn.readonly=true; |
| | | } |
| | | }); |
| | | }) |
| | | this.detailOptions.buttons.forEach((btn) => { |
| | | if (btn.name == '导åº') { |
| | | btn.hidden = true; |
| | | btn.hidden = true |
| | | //æè
设置åªè¯» |
| | | //btn.readonly=true; |
| | | } |
| | | }); |
| | | }) |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add'; |
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼ |