From 6c663b92b0078aa89657df22ec188dff65599f04 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期二, 21 十月 2025 17:24:38 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx | 83 +++++++++++++++++++++++++++++++++++------
1 files changed, 71 insertions(+), 12 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
index c3a7b25..0a22470 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
@@ -8,12 +8,12 @@
//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
// import gridHeader from "./demo_Product/Dt_BillGroupStockDetail.vue";
-import gridHeader from './extend/printView.vue'
-// import gridBody from "./extend/SupplementationData.vue"
+// import gridHeader from './extend/printView.vue'
+// import gridBody from './extend/OtherOutBound.vue'
let extension = {
components: {
//鏌ヨ鐣岄潰鎵╁睍缁勪欢
- gridHeader: gridHeader,
+ gridHeader: '',
gridBody: '',
gridFooter: '',
//鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
@@ -26,7 +26,53 @@
methods: {
//涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
onInit() {
-
+ // let OtherOutBoundbtn=this.buttons.find(x=>x.value=='OtherOutBound');
+ // if(OtherOutBoundbtn){
+ // OtherOutBoundbtn.onClick=function(){
+ // let row = this.$refs.table.getSelected() //鑾峰彇閫変腑鐨勮
+ // if (row <= 0) {
+ // //濡傛灉娌℃湁閫変腑琛�
+ // this.$Message.error('璇烽�夋嫨涓�琛屾暟鎹�')
+ // return;
+ // }
+ // let palletCode = row[0].palletCode
+ // this.http.get(`/api/Task/CompleteTaskAsync?taskNum=${taskNum}`, {}, "姝e湪瀹屾垚浠诲姟").then((res) => {
+ // //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
+ // if (res.status) {
+ // this.$Message.success('浠诲姟瀹屾垚');
+ // this.refresh();
+ // } else {
+ // this.$Message.error(res.message) //閿欒鎻愮ず
+ // this.refresh();
+ // }
+ // })
+ // }
+ // }
+ this.columns.push({
+ field: '鎿嶄綔',
+ title: '鎿嶄綔',
+ width: 90,
+ fixed: 'right',
+ align: 'center',
+ formatter: (row) => {
+ return (
+ '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">鍏朵粬鍑哄簱</i>'
+ );
+ },
+ click: (row) => {
+ console.log(row);
+ this.http.post(`/api/Task/OtherOutBoundTaskAsync?palletCode=${row.palletCode}`, {}, "姝e湪鐢熸垚浠诲姟").then((res) => {
+ //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
+ if (res.status) {
+ this.$Message.success(row[0].palletCode+"鍑哄簱鎴愬姛");
+ this.refresh();
+ } else {
+ this.$Message.error(res.message) //閿欒鎻愮ず
+ this.refresh();
+ }
+ })
+ }
+ });
// this.columns.push({
// title: "鎿嶄綔",
// field: "鎿嶄綔",
@@ -60,13 +106,27 @@
if (column.field == 'floor') {
- const floorMap = {
- '1F': '涓�妤�',
- '2F': '浜屾ゼ',
- };
- column.formatter = (row) => {
- return floorMap[row?.locationInfo?.floor] || '鏈煡妤煎眰'
- }
+ const floorMap = {
+ '1F': '涓�妤�',
+ '2F': '浜屾ゼ',
+ };
+ column.formatter = (row) => {
+ return floorMap[row?.locationInfo?.floor] || '鏈煡妤煎眰'
+ }
+ }
+ if (column.field == 'areaId') {
+
+ const floorMap = {
+ '1': '涓�妤煎爢鍨涙満鍖哄煙',
+ '2': '涓�妤糀GV鍑哄簱缂撳瓨鍖�',
+ '3': '涓�妤糀GV绔嬪簱缂撳瓨鍖�',
+ '4': '涓�妤糀GV鍏ュ簱缂撳瓨鍖�',
+ '5': '浜屾ゼB4-G4缂撳瓨鍖�',
+ '6': '浜屾ゼB5-G5缂撳瓨鍖�',
+ };
+ column.formatter = (row) => {
+ return floorMap[row?.locationInfo?.areaId] || '鏈煡妤煎眰'
+ }
}
if (column.field == 'locationStatus') {
const statusMap = {
@@ -96,7 +156,6 @@
return true
},
searchAfter(result) {
- console.log(result)
return true
},
addBefore(formData) {
--
Gitblit v1.9.3