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/basic/gyStockPlace/gyStockPlace.vue | 124 +++++++++++++++++++++++++++++++++++-----
1 files changed, 107 insertions(+), 17 deletions(-)
diff --git a/src/views/basic/gyStockPlace/gyStockPlace.vue b/src/views/basic/gyStockPlace/gyStockPlace.vue
index 20d228e..32f4bc2 100644
--- a/src/views/basic/gyStockPlace/gyStockPlace.vue
+++ b/src/views/basic/gyStockPlace/gyStockPlace.vue
@@ -1,5 +1,5 @@
<template>
- <div style="padding: 10px">
+ <div style="padding: 10px; position: relative">
<el-form
:model="queryParams"
ref="queryForm"
@@ -20,6 +20,13 @@
<el-input
v-model="queryParams.HName"
placeholder="璇疯緭鍏ヤ粨浣嶅悕绉�"
+ @keyup.enter.native="handleQuery"
+ class="ForFilteringSchemes"
+ />
+ </el-form-item><el-form-item label="浠撳簱鍚嶇О" prop="HWHName">
+ <el-input
+ v-model="queryParams.HWHName"
+ placeholder="璇疯緭鍏ヤ粨搴撳悕绉�"
@keyup.enter.native="handleQuery"
class="ForFilteringSchemes"
/>
@@ -205,6 +212,16 @@
type="primary"
icon="el-icon-plus"
size="mini"
+ @click="get_PrintReport"
+ id="btn-printer"
+ >搴撲綅鐮佹墦鍗�</el-button
+ >
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="primary"
+ icon="el-icon-plus"
+ size="mini"
@click="handleAddEdit((OperationType = 1))"
id="btn-Add"
>鏂板</el-button
@@ -302,7 +319,7 @@
}}</span>
<el-button
type="text"
- @click="handleEdit(row, (OperationType = 3))"
+ @click.stop="handleEdit(row, (OperationType = 3))"
v-else-if="column.property == '浠撲綅浠g爜'"
>{{ row.浠撲綅浠g爜 }}</el-button
>
@@ -411,6 +428,22 @@
/>
</el-dialog>
</div>
+ <el-dialog
+ title="鎵撳嵃妯℃澘閫夋嫨"
+ :visible.sync="openPrintList"
+ width="800px"
+ append-to-body
+ >
+ <PrintList
+ :linterid="encodeURI(rowSel.toString())"
+ :MyMsg="rowSel.toString()"
+ Type="HGyStockPlaceBarCode"
+ HModName="HGyStockPlaceBarCode"
+ @rowEditClose="rowSetClose"
+ v-if="printListShow"
+ />
+ <!-- <div>111</div> -->
+ </el-dialog>
</div>
</template>
@@ -419,18 +452,21 @@
import RowSettings from "@/views/component/rowSettings";
import Edit from "@/views/basic/gyStockPlace/gyStockPlaceEdit";
import GyStockPlace from "@/views/basic/gyStockPlace/gyStockPlace";
+import PrintList from "@/views/component/printList";
export default {
name: "GyStockPlace",
- components: { RowSettings, Edit, GyStockPlace },
+ components: { RowSettings, Edit, GyStockPlace, PrintList },
props: {
openPage: { type: String },
},
data() {
return {
+ rowSel: [],
+ danganSelList: [],
editRef: null,
activeSeach: "",
- HModName: "Gy_Warehouse",
+ HModName: "Gy_StockPlace",
editShow: false,
openEdit: false,
totalNameList: [],
@@ -579,7 +615,7 @@
// 浠撲綅鍚屾(API涓殏鏃舵病鏈夊搴旂殑API)
async handleSync() {
try {
- let res = await axios.get(this.baseURL + "/Gy_StockPlace/Gy_StockPlaceViewApi", {
+ let res = await axios.get(this.$baseUrl + "/Gy_StockPlace/Gy_StockPlaceViewApi", {
params: {
Number: this.queryParams.HSyncNumber,
Type: "CW",
@@ -596,6 +632,33 @@
}
} catch (err) {
this.$modal.msgError(`鎺ュ彛璇锋眰澶辫触: ${err}`);
+ }
+ },
+ get_PrintReport() {
+ if (this.danganSelList.length == 0) {
+ this.$modal.msgError("璇烽�夋嫨鏁版嵁");
+ } else {
+ this.rowSel = [];
+ for (var i = 0; i < this.danganSelList.length; i++) {
+ this.rowSel.push(`'${this.danganSelList[i]['鏉$爜缂栧彿'].toString()}'`);
+ }
+ this.printListShow = true;
+ this.openPrintList = true;
+ // axios.get(this.$baseUrl + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
+ // params: { HInterID: this.rowForm.hmainid },
+ // })
+ // .then((response) => {
+ // var result = response.data;
+ // if (result.count == 1) {
+ // this.printListShow = true;
+ // this.openPrintList = true;
+ // } else {
+ // this.$modal.msgError(result.code + result.Message);
+ // }
+ // })
+ // .catch((error) => {
+ // this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+ // });
}
},
getSummaries(param) {
@@ -629,7 +692,7 @@
defaintOperationByCompanyName() {
var result = false;
axios
- .get(this.baseURL + "/Xt_getInfo/getCompanyName")
+ .get(this.$baseUrl + "/Xt_getInfo/getCompanyName")
.then((response) => {
var data1 = response.data;
if (data1.count == 1) {
@@ -718,7 +781,7 @@
this.sWhere += "";
//浠撲綅鍒楄〃
axios
- .get(this.baseURL + "/Gy_StockPlace/list2Page", {
+ .get(this.$baseUrl + "/Gy_StockPlace/list2Page", {
params: {
sWhere: `${this.sWhere}`,
user: sessionStorage["HUserName"],
@@ -825,7 +888,7 @@
DisPlay_HideColumn(HModName, user, option, dataOption) {
this.totalNameList = [];
axios
- .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
+ .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
params: {
HModName: HModName,
user: user,
@@ -973,6 +1036,9 @@
this.selectedRow = row; // 璁板綍褰撳墠閫変腑鐨勮
this.lastSelectedRowIndex = this.tableData.indexOf(row);
this.$refs.tableData.toggleRowSelection(row);
+ if (this.openPage) {
+ this.$emit("deptEmit", row, 9);
+ }
},
//閫変腑琛岄珮浜牱寮�
rowStyle({ row, rowIndex }) {
@@ -983,16 +1049,35 @@
//鍙屽嚮琛�
handleDblclick(row, column, cell, event) {
this.OperationType = 3;
- this.handleEdit();
+ if (this.openPage) {
+ this.$emit("deptEmitDb", row, 9);
+ } else {
+ this.handleEdit(row);
+ }
},
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
+ console.log(selection)
+ this.danganSelList = selection;
+
// this.rowForm = {}
- this.ids = selection.map((item) => item.HItemID);
- this.single = selection.length != 1;
- this.multiple = !selection.length;
- if (!this.single) {
+ if (this.openPage) {
+ //鍒楄〃鍗曢��
+ if (selection.length > 1) {
+ const del_row = selection.shift();
+ this.$refs.tableData.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
+ }
+ this.rowForm = {};
+ this.ids = selection.map((item) => item.HItemID);
this.rowForm = selection[0];
+ } else {
+ //澶氶��
+ this.ids = selection.map((item) => item.HItemID);
+ this.single = selection.length != 1;
+ this.multiple = !selection.length;
+ if (!this.single) {
+ this.rowForm = selection[0];
+ }
}
},
//鎵撳紑渚ц竟鎼滅储寮圭獥
@@ -1078,6 +1163,9 @@
if (this.queryParams.HName) {
this.sWhere += " and 浠撲綅鍚嶇О like '%" + this.queryParams.HName + "%'";
}
+ if (this.queryParams.HWHName) {
+ this.sWhere += " and 浠撳簱鍚嶇О like '%" + this.queryParams.HWHName + "%'";
+ }
if (this.queryParams.HOrgID) {
let OrgName = this.organizationList.find((e) => e.ID == this.queryParams.HOrgID)
?.Name;
@@ -1103,7 +1191,7 @@
getOrgIDByUser() {
var res = "";
axios
- .get(this.baseURL + "/Xt_User/getOrgIDListByUser", {
+ .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", {
params: {
HModName: this.HModName,
user: sessionStorage["HUserName"],
@@ -1133,6 +1221,7 @@
this.queryParams = {
HNumber: "",
HName: "",
+ HWHName: "",
HBillNo: "",
HInitTimeCycle: 29,
HProjectNumber: "",
@@ -1169,7 +1258,8 @@
});
},
//鎵撳紑淇敼缁勪欢寮圭獥
- handleEdit() {
+ handleEdit(row) {
+ this.rowForm = row;
this.$nextTick(() => {
this.openEdit = true;
this.editShow = true;
@@ -1188,7 +1278,7 @@
.then(() => {
if (!this.rowForm.瀹℃牳浜�) {
axios
- .get(this.baseURL + "Deltet_Gy_StockPlace", {
+ .get(this.$baseUrl + "Deltet_Gy_StockPlace", {
params: {
HItemID: this.rowForm.HItemID.toString(),
user: sessionStorage["HUserName"],
@@ -1265,7 +1355,7 @@
var sMainSub = sSubStr + "&鍜�" + sessionStorage["HUserName"];
axios({
method: "post",
- url: this.baseURL + "/Gy_Warehouse/Gy_Process_Excel",
+ url: this.$baseUrl + "/Gy_Warehouse/Gy_Process_Excel",
data: {
sMainSub: sMainSub,
},
--
Gitblit v1.9.1