From 8bec6dd2d43529e1c065a7bfaf6eaaac38220c7f Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 02 一月 2024 10:21:55 +0800
Subject: [PATCH] #
---
zy-asrs-wms/src/main/webapp/static/js/order/order.js | 49 +++++++++++++++++++++++++++++--------------------
1 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/zy-asrs-wms/src/main/webapp/static/js/order/order.js b/zy-asrs-wms/src/main/webapp/static/js/order/order.js
index ae2c137..3be8908 100644
--- a/zy-asrs-wms/src/main/webapp/static/js/order/order.js
+++ b/zy-asrs-wms/src/main/webapp/static/js/order/order.js
@@ -12,26 +12,34 @@
var layDate = layui.laydate;
var laytpl = layui.laytpl;
- // 娓叉煋鎼滅储妯℃澘
- $.ajax({
- url: baseUrl+"/docType/page/auth",
- headers: {'token': localStorage.getItem('token')},
- data: {
- limit: 9999
- },
- method: 'POST',
- success: function (res) {
- if (res.code === 200){
- let template = Handlebars.compile($('#docTypeTpl').html());
- $('#docType-query').html(template(res.data));
- layui.form.render('select');
- } else if (res.code === 403){
- top.location.href = baseUrl+"/";
- } else {
- layer.msg(res.msg, {icon: 2})
- }
- }
- })
+ // // 娓叉煋鎼滅储妯℃澘
+ // $.ajax({
+ // url: baseUrl+"/docType/page/auth",
+ // headers: {'token': localStorage.getItem('token')},
+ // data: {
+ // limit: 9999
+ // },
+ // method: 'POST',
+ // success: function (res) {
+ // if (res.code === 200){
+ // let template = Handlebars.compile($('#docTypeTpl').html());
+ // $('#docType-query').html(template(res.data));
+ // layui.form.render('select');
+ // } else if (res.code === 403){
+ // top.location.href = baseUrl+"/";
+ // } else {
+ // layer.msg(res.msg, {icon: 2})
+ // }
+ // }
+ // })
+
+ let docName = getQueryVariable('docName')
+ let where = {};
+ if (docName != false) {
+ where.docName = decodeURI(docName);
+ }
+
+ console.log(where)
// 娓叉煋琛ㄦ牸
var insTb = table.render({
@@ -40,6 +48,7 @@
headers: {token: localStorage.getItem('token')},
page: true,
cellMinWidth: 100,
+ where: where,
limit: 16,
limits: [16, 30, 50, 100, 200, 500],
cols: [[
--
Gitblit v1.9.1