From 69e416081014eaf28986119760dc235b067ef94d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 26 四月 2021 15:01:10 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/ioWorks/matQuery.js | 26 ++++++++++++--------------
1 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/src/main/webapp/static/js/ioWorks/matQuery.js b/src/main/webapp/static/js/ioWorks/matQuery.js
index 851d800..7a2b7f1 100644
--- a/src/main/webapp/static/js/ioWorks/matQuery.js
+++ b/src/main/webapp/static/js/ioWorks/matQuery.js
@@ -1,5 +1,8 @@
var matData = [];
+var cstmrVal;
+var itemVal;
+
function getCol() {
var cols = [
{field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130, style:'color: blue;font-weight: bold'}
@@ -118,7 +121,7 @@
}
}
});
- xmSelect.render({
+ cstmrVal = xmSelect.render({
el: '#cstmr',
radio: true,
clickClose: true,
@@ -172,7 +175,7 @@
}
}
});
- xmSelect.render({
+ itemVal = xmSelect.render({
el: '#item',
radio: true,
clickClose: true,
@@ -260,22 +263,17 @@
form.on('submit(confirm)', function (data) {
var matDetls = [];
matData.forEach(function(elem) {
- matDetls.push({matnr: elem.matnr
+ matDetls.push({
+ matnr: elem.matnr
, count: elem.count
-
});
});
- var number = data.field.orderNo; // 鍗曞彿
- if (number.substring(0, 3) !== 'PR-') {
- notice.error({
- title: '娑堟伅閫氱煡',
- message: '鍗曞彿涓嶇鍚堣鍒欙紝璇蜂互 PR- 寮�澶�'
- });
- return false;
- }
var req = JSON.stringify({
- number: number
- , customerTypeId: data.field.customerTypeId
+ docType: data.field.docType
+ , orderNo: data.field.orderNo
+ , orderTime: data.field.orderTime
+ , item: itemVal.getValue()[0] ? itemVal.getValue()[0].name : null
+ , cstmr: cstmrVal.getValue()[0] ? cstmrVal.getValue()[0].name : null
, list: matDetls
})
$.ajax({
--
Gitblit v1.9.1