From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示
---
src/views/component/printList/index.vue | 31 +++++++++----------------------
1 files changed, 9 insertions(+), 22 deletions(-)
diff --git a/src/views/component/printList/index.vue b/src/views/component/printList/index.vue
index 6ec004b..7e2d9d7 100644
--- a/src/views/component/printList/index.vue
+++ b/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>
@@ -33,7 +34,7 @@
return {
openPrint: false,
selRowData: [],
- baseURL: 'http://47.96.97.237/API',
+ baseURL: process.env.VUE_APP_BASE_API,
user: 'admin',//鐧诲綍鐢ㄦ埛鍚�
// 琛ㄦ牸鏁版嵁
printdata: [],
@@ -66,31 +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');
- // window.open("/hBarPlanPrint", '_blank');
-
},
getDisplay() {
- // var vars = [], hash;
- // var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
- // for (var i = 0; i < hashes.length; i++) {
- // hash = hashes[i].split('=');
- // vars.push(hash[0]);
- // vars[hash[0]] = hash[1];
- // }
- // var params = vars;
- // console.log(params)
- // var linterid = params[params[0]];
- // var MyMsg = params[params[1]];
- // var Type = params[params[2]];
- // console.log(Type)
- // return vars;
-
this.loading = true
- // this.HModName = "Kf_SellOutBillList"
- 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)
@@ -183,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
},
@@ -208,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
--
Gitblit v1.9.1