From 7a512d442b2673662d4f642e79b0748d2f52f499 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 14 一月 2025 10:02:04 +0800
Subject: [PATCH] 收货
---
代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue | 47 ++++++++++++++++++++++++++++-------------------
1 files changed, 28 insertions(+), 19 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue"
index 86d7f1c..c4dcc64 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue"
@@ -10,7 +10,7 @@
<div class="box-head">
<el-alert :closable="false" style="width: 100%">
<el-row>
- <el-col :span="20">
+ <el-col :span="16">
<span class="less-style">鐗╂枡鍚嶇О锛� {{ row.materielName }} </span>
<el-divider direction="vertical"></el-divider>
<span class="less-style">鐗╂枡缂栧彿锛� {{ row.materielCode }} </span>
@@ -23,24 +23,29 @@
>宸查�夋暟閲忥細 {{ selectionSum }}
</span>
</el-col>
- <el-col :span="2">
+ <el-col :span="8">
<el-link
type="primary"
size="small"
style="float: right; height: 20px"
+ @click="getData(false)"
+ >{{ kcname }}</el-link
+ >
+ <el-link
+ type="primary"
+ size="small"
+ style="float: right; height: 20px; margin-right: 10px"
@click="getData"
>鍒锋柊</el-link
- ></el-col
- >
- <el-col :span="2">
+ >
<el-link
type="primary"
size="small"
- style="float: right; height: 20px"
+ style="float: right; height: 20px; margin-right: 10px"
@click="revokeAssign"
>鎾ら攢鍒嗛厤</el-link
- ></el-col
- >
+ >
+ </el-col>
</el-row>
</el-alert>
</div>
@@ -102,11 +107,14 @@
</template>
<script>
import VolBox from "@/components/basic/VolBox.vue";
+import { fa } from "element-plus/es/locales.mjs";
export default {
components: { VolBox },
data() {
return {
row: null,
+ kcname: "",
+ pkcx: false,
showDetialBox: false,
tableData: [],
tableColumns: [
@@ -179,15 +187,14 @@
});
},
outbound() {
- if(this.selection.length<=0){
+ if (this.selection.length <= 0) {
return this.$message.error("璇峰嬀閫�");
}
+ let url = this.pkcx
+ ? "api/Task/GeneratePKOutboundTask?orderDetailId="
+ : "api/Task/GenerateOutboundTask?orderDetailId=";
this.http
- .post(
- "api/Task/GenerateOutboundTask?orderDetailId=" + this.row.id,
- this.selection,
- "鏁版嵁澶勭悊涓�"
- )
+ .post(url + this.row.id, this.selection, "鏁版嵁澶勭悊涓�")
.then((x) => {
if (!x.status) return this.$message.error(x.message);
this.$message.success("鎿嶄綔鎴愬姛");
@@ -197,13 +204,15 @@
});
});
},
- getData() {
+ getData(a) {
+ if (!a) this.pkcx = !this.pkcx;
+ let url = this.pkcx
+ ? "api/StockInfo/GetPKStockSelectViews?materielCode="
+ : "api/StockInfo/GetStockSelectViews?materielCode=";
+ this.kcname = this.pkcx ? "绔嬪簱搴撳瓨" : "骞冲簱搴撳瓨";
this.http
.post(
- "api/StockInfo/GetStockSelectViews?materielCode=" +
- this.row.materielCode +
- "&orderId=" +
- this.row.orderId,
+ url + this.row.materielCode + "&orderId=" + this.row.orderId,
null,
"鏌ヨ涓�"
)
--
Gitblit v1.9.3