| | |
| | | <el-form ref="formData" :model="formData" label-width="100px"> |
| | | <div style="padding: 10px; "> |
| | | <el-button type="primary" size="small" @click="printClick">报表打印</el-button> |
| | | <el-button type="primary" size="small" @click="printClickWeb">报表打印(网页)</el-button> |
| | | </div> |
| | | <el-table v-loading="loading" :data="printdata" ref="printTable" max-height="540" |
| | | @selection-change="handleSelectionChange" :row-class-name="rowSysIndex" border> |
| | |
| | | handlePrint() { |
| | | this.openPrint = true |
| | | }, |
| | | printClickWeb() { |
| | | const routeUrl = this.$router.resolve({ path: '/hBarPlanPrintWeb',query:{linterid:this.linterid.toString(),Type:this.Type.toString(),OpenTmp: encodeURIComponent(this.rowForm.模板名称)} }); |
| | | window.open(routeUrl.href, '_blank'); |
| | | }, |
| | | printClick() { |
| | | const routeUrl = this.$router.resolve({ path: '/hBarPlanPrint',query:{linterid:this.linterid.toString(),Type:this.Type.toString(),OpenTmp: encodeURIComponent(this.rowForm.模板名称)} }); |
| | | window.open(routeUrl.href, '_blank'); |
| | | }, |
| | | getDisplay() { |
| | | this.loading = true |
| | | axios.get(this.baseURL + '/Open_PrintTem/GetOpenTmpList_Json', { |
| | | axios.get(this.$baseUrl + '/Open_PrintTem/GetOpenTmpList_Json', { |
| | | params: { "HNumber": this.Type }, |
| | | }).then(response => { |
| | | console.log(response) |
| | |
| | | const sMainSub = `${sMainStr};${sSubStr};${this.HModName};${OperationType};${this.user}` |
| | | axios({ |
| | | method: 'post', |
| | | url: this.baseURL + "/Xt_grdAlignment_WMES/AddgrdAlignmentWMES", |
| | | url: this.$baseUrl + "/Xt_grdAlignment_WMES/AddgrdAlignmentWMES", |
| | | data: { |
| | | 'sMainSub': sMainSub |
| | | }, |
| | |
| | | handleDel() { |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | console.log(this.rowForm.hmainid.toString()) |
| | | axios.get(this.baseURL + "/Xt_grdAlignment_WMES/DelgrdAlignmentWMES", { |
| | | axios.get(this.$baseUrl + "/Xt_grdAlignment_WMES/DelgrdAlignmentWMES", { |
| | | params: { "HModName": this.HModName, "user": this.user } |
| | | }).then(response => { |
| | | let result = response.data |