From af5847927931d3f491d7be5e0178cff3c37ac6f9 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 06 十一月 2025 17:20:44 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/Order/Production/ProductionoutOrderDetail.vue | 64 +++++++++++++++++++++++---------
1 files changed, 46 insertions(+), 18 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/Order/Production/ProductionoutOrderDetail.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/Order/Production/ProductionoutOrderDetail.vue"
index 2955ebd..3c8018d 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/Order/Production/ProductionoutOrderDetail.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/Order/Production/ProductionoutOrderDetail.vue"
@@ -21,7 +21,7 @@
<el-button size="small" type="primary" @click="getData">鎼滅储</el-button>
</div>
- <div style="margin-top:10px;width:400px">
+ <!-- <div style="margin-top:10px;width:400px">
<el-form ref="form" :model="form" label-width="90px">
<el-form-item label="鍑哄簱鍖哄煙" prop="areaId">
<el-select v-model="areaId" placeholder="璇烽�夋嫨鍑哄簱鍖哄煙">
@@ -31,10 +31,10 @@
</el-select>
</el-form-item>
</el-form>
- </div>
+ </div> -->
<div class="box-table" style="margin-top: 1%">
<el-table ref="singleTable" :data="tableData" style="width: 100%; height: 630px" highlight-current-row
- @current-change="handleCurrentChange" height="500px" @row-click="handleRowClick"
+ height="500px" @row-click="handleRowClick"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column label="搴忓彿" type="index" fixed="left" width="55" align="center"></el-table-column>
@@ -46,7 +46,11 @@
:disabled="getButtonEnable(item.prop, scoped.row)" @click="tableButtonClick(scoped.row, item)"><i
:class="item.icon" style="font-size: 22px"></i></el-link></el-tooltip>
</div>
-
+ <div v-else-if="item.type == 'tags'">
+ <el-tag size="small" :type="scoped.row.remark === '鏈夊簱瀛�' ? 'primary' : 'error'">
+ {{ getDictionary(scoped.row, item) }}
+ </el-tag>
+ </div>
<div v-else-if="item.type == 'tag'">
<el-tag size="small">
{{ getDictionary(scoped.row, item) }}
@@ -55,6 +59,13 @@
</template>
</el-table-column>
</el-table>
+
+ </div>
+ <div style="margin-top: 20px; text-align: right;">
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
+ :current-page="paginations.page" :page-sizes="paginations.sizes" :page-size="paginations.size"
+ layout="total, sizes, prev, pager, next, jumper" :total="paginations.total"> <!-- 鍏抽敭锛氱粦瀹歵otal灞炴�� -->
+ </el-pagination>
</div>
</vol-box>
<stock-select ref="child" @parentCall="parentCall"></stock-select>
@@ -72,7 +83,7 @@
areaId: "2",
showDetialBox: false,
flag: false,
- MaterialCode:"",
+ MaterialCode: "",
currentRow: null,
selection: [],
tableData: [],
@@ -110,17 +121,22 @@
width: 150,
},
{
+ prop: "remark",
+ title: "鏄惁鏈夊簱瀛�",
+ type: "tags",
+ width:120,
+ },
+ {
prop: "orderQuantity",
title: "鍗曟嵁鏁伴噺",
type: "string",
width: 90,
},
{
- prop: "lockQuantity",
- title: "閿佸畾鏁伴噺",
+ prop: "notOutQuantity",
+ title: "鏈嚭搴撴暟閲�",
type: "int",
- width: 90,
- hidden: true,
+ width: 100,
},
{
prop: "overOutQuantity",
@@ -172,11 +188,6 @@
title: "淇敼鏃堕棿",
type: "datetime",
width: 160,
- },
- {
- prop: "remark",
- title: "澶囨敞",
- type: "string",
},
],
paginations: {
@@ -230,7 +241,7 @@
this.getData();
},
getData() {
- var wheres = [{ name: "orderId", value: this.row.id},{name: "materielCode",value:this.MaterialCode,DisplayType:"text"}];
+ var wheres = [{ name: "orderId", value: this.row.id }, { name: "materielCode", value: this.MaterialCode, DisplayType: "text" }];
console.log(JSON.stringify(wheres));
var param = {
page: this.paginations.page,
@@ -243,7 +254,11 @@
.post("api/ProductionOutboundOrderDetail/GetPageData", param, "鏌ヨ涓�")
.then((x) => {
this.tableData = x.rows;
+ this.MaterialCode = "";
+ this.paginations.total = x.total;
+ this.tableData = x.rows;
});
+
},
tableButtonClick(row, column) {
if (column.prop == "assignStock") {
@@ -260,7 +275,7 @@
}
var keys = this.selection.map((item) => item.id); // 鑾峰彇閫変腑琛岀殑id
var param = {
- "orderIds":keys,
+ "orderIds": keys,
"AreaId": this.areaId,
}
this.http
@@ -277,8 +292,21 @@
setCurrent(row) {
this.$refs.singleTable.setCurrentRow(row);
},
- handleCurrentChange(val) {
- this.currentRow = val;
+ // handleCurrentChange(val) {
+ // this.currentRow = val;
+ // },
+ handleSizeChange(size) {
+ console.log(size);
+ this.paginations.size = size;
+ this.paginations.rows = size;
+ this.paginations.page = 1; // 閲嶇疆椤电爜
+ this.getData();
+ },
+
+ handleCurrentChange(page) {
+ console.log(page)
+ this.paginations.page = page;
+ this.getData();
},
getButtonEnable(propName, row) {
if (propName == "assignStock") {
--
Gitblit v1.9.3