wangyi
2026-01-19 7fb0a8f0ab16c149484bf043754cd10cfa94de2f
src/views/component/printList/index.vue
@@ -3,6 +3,7 @@
        <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>
@@ -66,13 +67,17 @@
        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)
@@ -165,7 +170,7 @@
            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
                },
@@ -190,7 +195,7 @@
        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