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/purchase/postockInBack/Kf_POStockInBackBillList.vue | 97 ++++++++++++++++++++----------------------------
1 files changed, 40 insertions(+), 57 deletions(-)
diff --git a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
index c8f6701..b9de7e6 100644
--- a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
+++ b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
@@ -202,42 +202,31 @@
</el-col>
</el-row>
<div class="tableBox" v-loading="loading">
- <el-row>
- <el-col :span="4">
- <div class="cgtlType" v-for="(item, index) in backTypeList" :key="index" :class="{ 'cgtlActive': typeIndex==index }" @click="backTypeClick(item,index)">
- {{item.name}}
- </div>
- </el-col>
- <el-col :span="20">
- <el-table :data="tableData" ref="tableData" max-height="710" :summary-method="getSummaries"
- @selection-change="handleSelectionChange" show-summary border @row-click="handleRowClick"
- :row-style="rowStyle" @cell-dblclick="handleDblclick" v-if="tableShow">
- <template v-for="(item, index) in btList">
- <el-table-column type="selection" width="55" align="center" :fixed="item.fixed"
- v-if="item.type == 'checkbox'" :key="index" />
- <el-table-column :align="item.align" :prop="item.field" :label="item.title"
- :width="item.width" :key="item.id" v-else-if="!item.hide && item.type != 'checkbox'"
- :sortable="item.sort" show-overflow-tooltip :fixed="item.fixed">
- <template slot-scope="{ row, column }">
- <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox>
- <div :style="item.style">
- <span v-if="column.property.includes('鏃ユ湡')">{{
- parseTime(row[column.property], "{y}-{m}-{d}")
- }}</span>
- <el-button type="text" @click="handleEdit(row, (OperationType = 3))"
- v-else-if="column.property == '鍗曟嵁鍙�'">{{ row.鍗曟嵁鍙� }}</el-button>
- <span v-else>{{ row[column.label] }}</span>
- </div>
- </template>
- </el-table-column>
+ <el-table :data="tableData" ref="tableData" max-height="710" :summary-method="getSummaries"
+ @selection-change="handleSelectionChange" show-summary border @row-click="handleRowClick"
+ :row-style="rowStyle" @cell-dblclick="handleDblclick" v-if="tableShow">
+ <template v-for="(item, index) in btList">
+ <el-table-column type="selection" width="55" align="center" :fixed="item.fixed"
+ v-if="item.type == 'checkbox'" :key="index" />
+ <el-table-column :align="item.align" :prop="item.field" :label="item.title" :width="item.width"
+ :key="item.id" v-else-if="!item.hide && item.type != 'checkbox'" :sortable="item.sort"
+ show-overflow-tooltip :fixed="item.fixed">
+ <template slot-scope="{ row, column }">
+ <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox>
+ <div :style="item.style">
+ <span v-if="column.property.includes('鏃ユ湡')">{{
+ parseTime(row[column.property], "{y}-{m}-{d}")
+ }}</span>
+ <el-button type="text" @click="handleEdit(row, (OperationType = 3))"
+ v-else-if="column.property == '鍗曟嵁鍙�'">{{ row.鍗曟嵁鍙� }}</el-button>
+ <span v-else>{{ row[column.label] }}</span>
+ </div>
</template>
- </el-table>
- <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize"
- :pageSizes="pageSizes" @pagination="getList" />
- </el-col>
-
- </el-row>
-
+ </el-table-column>
+ </template>
+ </el-table>
+ <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize"
+ :pageSizes="pageSizes" @pagination="handleQuery" />
<el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openRowHide" width="816px" append-to-body>
<RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
</el-dialog>
@@ -268,7 +257,7 @@
components: { RowSettings, Edit, PrintList, BarCodeDetail },
data() {
return {
- typeIndex:0,
+ typeIndex: 0,
activeSeach: "",
HModName: "Kf_StockOutRequestBillList",
backTypeList: [{ name: ' 閲囪喘閫�鏂欏垪琛�(宸插叆搴�)', value: 1, }, { name: '閲囪喘閫�鏂欏垪琛�(鏈叆搴�)', value: 0, }],
@@ -375,13 +364,10 @@
created() {
// this.fetchData()
this.riqiChange();
- this.getList();
+ this.handleQuery();
},
methods: {
- backTypeClick(item,index){
- this.typeIndex=index
- },
getSummaries(param) {
const { columns, data } = param;
const sums = [];
@@ -421,7 +407,7 @@
this.rowHideShow = false;
this.tableShow = true;
this.openRowHide = val;
- this.getList();
+ this.handleQuery();
},
riqiChange() {
const end = new Date();
@@ -437,18 +423,16 @@
this.eTime = yyyyE + "-" + mmE + "-" + ddE;
},
getList() {
+ console.log(this.$route.query.type)
this.pageSize = 50;
this.tableShow = false;
this.loading = true;
- if (this.sTime) {
- this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.sTime + "'";
- this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + this.eTime + "'";
- }
+
if (this.pageSize == 0) {
this.pageSize = 50;
}
// 鍒楄〃
- axios.get(this.baseURL + "/Kf_POStockInBackBill/list", {
+ axios.get(this.$baseUrl + "/Kf_POStockInBackBill/list", {
params: {
sWhere: this.sWhere,
user: sessionStorage["HUserName"],
@@ -551,7 +535,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,
@@ -797,7 +781,6 @@
if (this.sTime) {
this.sTime = moment(this.sTime).format("YYYY-MM-DD");
this.eTime = moment(this.eTime).format("YYYY-MM-DD");
- console.log(this.sTime, this.eTime);
this.sWhere +=
" and CONVERT(varchar(100),鏃ユ湡, 23) >= '" +
this.sTime +
@@ -863,7 +846,7 @@
};
this.riqiChange();
this.resetForm("queryForm");
- this.getList();
+ this.handleQuery();
},
//閫�鍑�
@@ -872,7 +855,7 @@
this.tableShow = true;
this.openEdit = false;
this.editShow = false;
- this.getList();
+ this.handleQuery();
},
//鎵撳紑鏂板缁勪欢寮圭獥
handleAddEdit() {
@@ -891,19 +874,19 @@
this.open = val;
this.editShow = false;
this.openEdit = val;
- this.getList();
+ this.handleQuery();
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete() {
this.$modal.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠").then(() => {
- axios.get(this.baseURL + "/Kf_POStockInBackBill/DeltetKf_POStockInBackBill", {
+ axios.get(this.$baseUrl + "/Kf_POStockInBackBill/DeltetKf_POStockInBackBill", {
params: {
HInterID: this.rowForm.hmainid.toString(),
user: sessionStorage["HUserName"],
},
}).then((response) => {
if (response.data.count == 1) {
- this.getList();
+ this.handleQuery();
this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
} else {
this.$modal.msgError("閿欒:" + result.code + result.Message);
@@ -915,7 +898,7 @@
},
set_CheckBill(num) {
//閫昏緫瀹℃牳鏂规硶
- axios.get(this.baseURL + "/Kf_POStockInBackBill/AuditProcessReportList", {
+ axios.get(this.$baseUrl + "/Kf_POStockInBackBill/AuditProcessReportList", {
params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
}).then(response => {
let result = response.data
@@ -933,7 +916,7 @@
},
set_CloseBill(num) {
//閫昏緫鍏抽棴鏂规硶
- axios.get(this.baseURL + "/Kf_POStockInBackBill/CloseKf_POStockInBackBill", {
+ axios.get(this.$baseUrl + "/Kf_POStockInBackBill/CloseKf_POStockInBackBill", {
params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] }
}).then(response => {
let result = response.data
@@ -951,7 +934,7 @@
},
set_DropBill(num) {
//閫昏緫浣滃簾鏂规硶
- axios.get(this.baseURL + "/Kf_POStockInBackBill/DropKf_POStockInBackBill", {
+ axios.get(this.$baseUrl + "/Kf_POStockInBackBill/DropKf_POStockInBackBill", {
params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] }
}).then(response => {
let result = response.data
@@ -974,7 +957,7 @@
} else {
this.printListShow = true;
this.openPrintList = true;
- // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
+ // axios.get(this.$baseUrl + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
// params: { HInterID: this.rowForm.hmainid },
// })
// .then((response) => {
--
Gitblit v1.9.1