| | |
| | | // }); |
| | | this.boxButtons.push({ |
| | | name: 'å
¶ä»åºåº', //æé®åç§° |
| | | icon: 'el-icon-document', //æé®å¾æ :ç»ä»¶ç¤ºä¾->徿 |
| | | //icon: 'el-icon-document', //æé®å¾æ :ç»ä»¶ç¤ºä¾->徿 |
| | | //primaryãsuccessãwarningãerrorãinfoãtextãdanger |
| | | type: 'primary', |
| | | plain: true, |
| | |
| | | }) |
| | | this.boxButtons.push({ |
| | | name: 'è°æ¨åºåº', //æé®åç§° |
| | | icon: 'el-icon-document', //æé®å¾æ :ç»ä»¶ç¤ºä¾->徿 |
| | | //icon: 'el-icon-document', //æé®å¾æ :ç»ä»¶ç¤ºä¾->徿 |
| | | //primaryãsuccessãwarningãerrorãinfoãtextãdanger |
| | | type: 'danger', |
| | | plain: true, |
| | |
| | | }) |
| | | } |
| | | }) |
| | | // this.detailOptions.buttons.unshift({ |
| | | // name: 'è°æ¨åºåº', |
| | | // icon: '', |
| | | // type: 'primary', |
| | | // onClick: function (e) { |
| | | // let row = this.$refs.table.getSelected() //è·åéä¸çè¡ |
| | | // if (row <= 0) { |
| | | // //å¦ææ²¡æéä¸è¡ |
| | | // this.$Message.error('è¯·éæ©ä¸è¡æ°æ®') |
| | | // return |
| | | // } |
| | | // let taskNum = row[0].taskNum |
| | | // this.http.post(`/api/Task/CompleteTaskAsync?taskNum=${taskNum}`, {}, "æ£å¨å®æä»»å¡").then((res) => { |
| | | // //示ä¾ï¼è°ç¨åå°æ¥å£ |
| | | // if (res.status) { |
| | | // this.$Message.success(res.message) |
| | | // } 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({ |
| | | title: 'æä½', |
| | | field: 'æä½', |
| | |
| | | ) |
| | | } |
| | | }) |
| | | |
| | | // this.columns.push({ |
| | | // title: "æä½", |
| | | // field: "æä½", |
| | | // width: 150, |
| | | // align: "left", // 'center', |
| | | // render: (h, { row, column, index }) => { |
| | | // return ( |
| | | // <div> |
| | | // <el-button |
| | | // onClick={($e) => { |
| | | // // this.$refs.table.load(); |
| | | // // console.log(this.$refs.table); |
| | | // this.$refs.gridHeader.open(row); |
| | | // }} |
| | | // type="primary" |
| | | // plain |
| | | // style="height:26px; padding: 10px !important;" |
| | | // > |
| | | // æå° |
| | | // </el-button> |
| | | // </div> |
| | | // ); |
| | | // }, |
| | | // }); |
| | | |
| | | //示ä¾ï¼è®¾ç½®ä¿®æ¹æ°å»ºãç¼è¾å¼¹åºæ¡å段æ ç¾çé¿åº¦ |
| | | this.boxOptions.labelWidth = 150 |
| | | this.buttons.forEach((btn) => { |