From df0b697763217c84e9d42015d82a066a863f3e5a Mon Sep 17 00:00:00 2001
From: ZY <zc857179121@qq.com>
Date: 星期三, 09 十月 2024 13:42:55 +0800
Subject: [PATCH] 添加参数,强制刷新js文件
---
src/main/webapp/static/js/orderCheck/orderCheck.js | 43 +++++++++++--------------------------------
1 files changed, 11 insertions(+), 32 deletions(-)
diff --git a/src/main/webapp/static/js/orderCheck/orderCheck.js b/src/main/webapp/static/js/orderCheck/orderCheck.js
index 9974fc3..d465eb5 100644
--- a/src/main/webapp/static/js/orderCheck/orderCheck.js
+++ b/src/main/webapp/static/js/orderCheck/orderCheck.js
@@ -133,13 +133,14 @@
cols: [[ //宸ュ叿鏉℃槑缁�
{type: 'numbers'},
{field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160},
- {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160},
+ {field: 'maktx', title: '鍟嗗搧鍚嶇О'},
{field: 'locNo', title: '搴撲綅鍙�'},
+ {field: 'batch', title: '鎵规'},
{field: 'anfme', title: '鏁伴噺'},
{field: 'realAnfme', title: '鐪熷疄鏁伴噺',style: 'color: blue;font-weight: bold', edit: true},
{field: 'diffAnfme', title: '宸紓鏁伴噺', style: 'font-weight: bold'},
- {field: 'type$', title: '鐘舵��'},
- {align: 'center', title: '鎿嶄綔', toolbar: '#formSSXMTableBar3', minWidth: 80, width: 80, fixed: 'right'}
+ {field: 'type$', title: '鐘舵��'}
+
]],
request: {
pageName: 'curr',
@@ -268,9 +269,9 @@
{field: 'anfme', title: '搴撳瓨鏁伴噺'},
{field: 'realAnfme', title: '鐪熷疄鏁伴噺'},
{field: 'diffAnfme', title: '宸紓鏁伴噺', style: 'font-weight: bold'},
- {field: 'type$', title: '鐘舵��'},
+ {field: 'type$', title: '鐘舵��'}
- {align: 'center', title: '鎿嶄綔', toolbar: '#formSSXMTableBarr', minWidth: 80, width: 80, fixed: 'right'}
+
]],
done: function (res) {
$(layero).find('.layui-table-view').css('margin', '0');
@@ -782,49 +783,28 @@
function examine(expTpe) {
admin.open({
type: 1,
- title: (expTpe ? '淇敼' : '娣诲姞') + '鐩樼偣鍗�',
+ title: '瀹℃牳鐩樼偣鍗�',
content: $('#editDialog2').html(),
area: '1300px',
success: function (layero, dIndex) {
$(layero).children('.layui-layer-content').css('overflow', 'visible');
var isExpAdd = !expTpe;
// 鍥炴樉鏁版嵁
- form.val('editForm', expTpe);
+ form.val('editForm2', expTpe);
if (expTpe) {
$('#orderNo').attr("disabled", "disabled");
}
// 琛ㄥ崟鎻愪氦浜嬩欢
- form.on('submit(orderEditSubmit)', function (data) {
- // 缁勮鏁版嵁
- if (xxDataList.length <= 0) {
- layer.tips('璇锋坊鍔犲崟鎹槑缁�', '#matAddBtnComment', {tips: [1, '#ff4c4c']});
- return false;
- }
- if (data.field.orderNo == "" || data.field.orderNo == null) {
- layer.tips('璇疯緭鍏ョ洏鐐瑰崟缂栧彿', '#orderNo', {tips: [1, '#ff4c4c']});
- return false;
- }
+ form.on('submit(examine)', function (data) {
let nList = admin.util.deepClone(xxDataList);
- // for (let xi = 0; xi < nList.length; xi++) {
- // if (nList[xi].anfme <= 0){
- // layer.msg('鏄庣粏淇敼鏁伴噺涓嶅悎娉�', {icon: 2});
- // return false;
- // }
- // if (nList[xi].anfme < nList[xi].workQty){
- // layer.msg('鏁伴噺涓嶈兘灏忎簬宸蹭綔涓氭暟閲�', {icon: 2});
- // return false;
- // }
- // }
layer.load(2);
console.log(data);
$.ajax({
- url: baseUrl + "/orderCheck/form/" + (isExpAdd ? "add" : "modify") + "/auth",
+ url: baseUrl + "/orderCheck/examine",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
- orderId: Number(data.field.id),
- docType: Number(data.field.docType),
orderNo: data.field.orderNo,
- orderDetlList: nList
+ list: nList
}),
contentType: 'application/json;charset=UTF-8',
method: 'POST',
@@ -862,7 +842,6 @@
{field: 'realAnfme', title: '鐪熷疄鏁伴噺'},
{field: 'diffAnfme', title: '宸紓鏁伴噺', style: 'font-weight: bold'},
{field: 'type$', title: '鐘舵��'}
-
]],
done: function (res) {
--
Gitblit v1.9.1