From 0e46bb0cfc8b59ad5527f0b70c49f95aeac4bbbd Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期五, 05 一月 2024 13:38:05 +0800
Subject: [PATCH] # 入库拣货功能添加
---
src/main/webapp/static/js/order/order.js | 63 ++++++++++++++++++++-----------
1 files changed, 41 insertions(+), 22 deletions(-)
diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js
index b3f59d9..0d267c2 100644
--- a/src/main/webapp/static/js/order/order.js
+++ b/src/main/webapp/static/js/order/order.js
@@ -190,22 +190,24 @@
cellMinWidth: 100,
cols: [[
{type: 'numbers'},
- {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160},
- {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160},
-
- {field: 'batch', title: '鎵瑰彿'},
+ // {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160},
+ // {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160},
+ //
+ // {field: 'batch', title: '鎵瑰彿'},
+ {field: 'batch', title: '鎵规'},
+ {field: 'brand', title: '鐗屽彿'},
+ {field: 'fingerMeltingMin', title: '鏈�灏忕啍鎸�'},
+ {field: 'fingerMeltingMax', title: '鏈�澶х啍鎸�'},
+ {field: 'fusingPointMin', title: '鏈�灏忕啍鐐�'},
+ {field: 'fusingPointMax', title: '鏈�澶х啍鐐�'},
+ {field: 'yellownessMin', title: '鏈�灏忛粍搴�'},
+ {field: 'yellownessMax', title: '鏈�澶ч粍搴�'},
+ {field: 'opacityMin', title: '鏈�灏忎笉閫忔槑搴�'},
+ {field: 'opacityMax', title: '鏈�澶т笉閫忔槑搴�'},
{field: 'anfme', title: '鏁伴噺'},
{field: 'workQty', title: '浣滀笟鏁伴噺'},
{field: 'qty', title: '瀹屾垚鏁伴噺', style: 'font-weight: bold'},
- // {field: 'unit', title: '鍗曚綅'},
- // {
- // field: 'createTime$', title: '鍒涘缓鏃堕棿', sort: true, templet: function (d) {
- // return util.toDateString(d.createTime);
- // }, width: 180
- // },
- // {field: 'inQty', title: '宸插叆搴撻噺'},
- // {field: 'color', title: '棰滆壊'},
- // {field: 'specs', title: '瑙勬牸'},
+
]],
request: {
pageName: 'curr',
@@ -260,14 +262,18 @@
let nList = admin.util.deepClone(xxDataList);
console.log(nList);
for (let xi = 0; xi < nList.length; xi++) {
+ if(!nList[xi].anfme){
+ layer.msg('鏄庣粏鏁伴噺涓嶅悎娉�', {icon: 2});
+ return false;
+ }
if (nList[xi].anfme <= 0){
layer.msg('鏄庣粏鏁伴噺涓嶅悎娉�', {icon: 2});
return false;
}
- if (nList[xi].batch == null || nList[xi].batch == ""){
- layer.msg('鎵规涓嶅悎娉�', {icon: 2});
- return false;
- }
+ // if (nList[xi].batch == null || nList[xi].batch == ""){
+ // layer.msg('鎵规涓嶅悎娉�', {icon: 2});
+ // return false;
+ // }
if (nList[xi].anfme < nList[xi].workQty){
layer.msg('鏁伴噺涓嶈兘灏忎簬宸蹭綔涓氭暟閲�', {icon: 2});
return false;
@@ -312,14 +318,24 @@
cellMinWidth: 100,
cols: [[
{type: 'numbers', title: '#'},
- {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160},
- {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 200},
- {field: 'specs', title: '瑙勬牸'},
+ // {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160},
+ // {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 200},
+ // {field: 'specs', title: '瑙勬牸'},
{field: 'batch', title: '鎵规', edit: true},
- {field: 'anfme', title: '鏁伴噺(淇敼)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110},
+ {field: 'brand', title: '鐗屽彿', edit: true},
+ {field: 'fingerMeltingMin', title: '鏈�灏忕啍鎸�', edit: true},
+ {field: 'fingerMeltingMax', title: '鏈�澶х啍鎸�', edit: true},
+ {field: 'fusingPointMin', title: '鏈�灏忕啍鐐�', edit: true},
+ {field: 'fusingPointMax', title: '鏈�澶х啍鐐�', edit: true},
+ {field: 'yellownessMin', title: '鏈�灏忛粍搴�', edit: true},
+ {field: 'yellownessMax', title: '鏈�澶ч粍搴�', edit: true},
+ {field: 'opacityMin', title: '鏈�灏忎笉閫忔槑搴�', edit: true},
+ {field: 'opacityMax', title: '鏈�澶т笉閫忔槑搴�', edit: true},
+
+ {field: 'anfme', title: '閲嶉噺(淇敼)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110},
// {field: 'payment', title: '璐х墿鐘舵��',align: 'center', templet: '#payment'},
- {field: 'qty', title: '浣滀笟鏁伴噺', minWidth: 100, width: 100},
+ {field: 'qty', title: '浣滀笟閲嶉噺', minWidth: 100, width: 100},
// {field: 'unit', title: '鍗曚綅', width: 80},
{field: 'memo', title: '澶囨敞' , edit: true},
{align: 'center', title: '鎿嶄綔', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'}
@@ -430,6 +446,9 @@
// 鏄剧ず娣诲姞鏄庣粏琛ㄥ崟寮圭獥
function showEditModel2(exp) {
+ xxDataList.push({});
+ insTbSSXM.reload({data: xxDataList, page: {curr: 1}});
+ return;
admin.open({
type: 1,
offset: '150px',
--
Gitblit v1.9.1