From 8a9b1bc2a82166cfa563bc32057503a0274c561d Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期四, 22 二月 2024 15:37:19 +0800
Subject: [PATCH] 海诺尔 物料打印码 pda移库增加
---
src/main/webapp/static/js/cool.js | 29 ++++++++++++++++++++---------
1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/src/main/webapp/static/js/cool.js b/src/main/webapp/static/js/cool.js
index 511bbd9..e3ae972 100644
--- a/src/main/webapp/static/js/cool.js
+++ b/src/main/webapp/static/js/cool.js
@@ -40,6 +40,9 @@
if(type){
inputDomVal = inputDomVal + "," + type;
}
+ if(getForeignKeyQuery(val) === 'orderDetlQuery'){
+ inputDomVal = inputDomVal + "," + $('#orderNo').val();
+ }
//debugger;
selectDom.length = 0;
var defaultOption = new Option("鍙栨秷閫夋嫨", "");
@@ -61,6 +64,9 @@
option.addr = list[i].addr;
option.phone = list[i].phone;
option.customer = list[i].customer;
+ option.allocate = list[i].allocate;
+ option.weight = list[i].weight;
+ option.type = list[i].type;
selectDom.options[i+1] = option;
}
selectDom.style.display='block';
@@ -99,18 +105,23 @@
} else {
cacd.val(selectOptionDom.html());
realDom.val(selectOptionDom.attr("title"));
- if(selectOptionDom[0].phone){
- $('#phone').val(selectOptionDom[0].phone);
+ if(selectOptionDom[0].type === "docType"){
+ $('#weight').val("");
+ $('#maktxV').val("");
}
- if(selectOptionDom[0].addr){
- $('#addr').val(selectOptionDom[0].addr);
+ if(selectOptionDom[0].type === "order" || selectOptionDom[0].type === "locOwner"){
+ $('#allocate').val(selectOptionDom[0].allocate ? selectOptionDom[0].allocate : "");
+ $('#customer').val(selectOptionDom[0].customer ? selectOptionDom[0].customer : "");
+ $('#phone').val(selectOptionDom[0].phone ? selectOptionDom[0].phone : "");
+ $('#addr').val(selectOptionDom[0].addr ? selectOptionDom[0].addr : "");
}
- if(selectOptionDom[0].customer){
- $('#customerR').val(selectOptionDom[0].customer);
+ if(selectOptionDom[0].type === "returned"){
+ $('#customer').val(selectOptionDom[0].customer ? selectOptionDom[0].customer : "");
tableReload();
+ }
- }else {
- $('#customerR').val("");
+ if(selectOptionDom[0].type === "orderDetl"){
+ $('#weight').val(selectOptionDom[0].weight);
}
}
inputDom.val("");
@@ -138,7 +149,7 @@
{field: 'id', title: 'id', hide:true},
{field: 'batch', title: '鎵瑰彿'},
{field: 'packageNo', title: '鍖呭彿'},
- {field: 'orderWeight', title: '閲嶉噺'}
+ {field: 'orderWeight', title: '閲嶉噺',edit:true}
]],
request: {
--
Gitblit v1.9.1