From 18c69a897526867550f3778671f28f23e0fca005 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 30 五月 2024 09:36:32 +0800
Subject: [PATCH] #订单页面
---
zy-asrs-wms/src/main/webapp/static/js/order/order.js | 69 +++++++++++++++++++++++-----------
1 files changed, 47 insertions(+), 22 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..8717868 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,32 @@
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);
+ }
// 娓叉煋琛ㄦ牸
var insTb = table.render({
@@ -40,6 +46,7 @@
headers: {token: localStorage.getItem('token')},
page: true,
cellMinWidth: 100,
+ where: where,
limit: 16,
limits: [16, 30, 50, 100, 200, 500],
cols: [[
@@ -156,8 +163,8 @@
{field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160},
{field: 'batch', title: '搴忓垪鐮�'},
{field: 'anfme', title: '鏁伴噺'},
- {field: 'qty', title: '浣滀笟鏁伴噺', style: 'font-weight: bold'},
- // {field: 'unit', title: '鍗曚綅'},
+ {field: 'workQty', title: '浣滀笟鏁伴噺', style: 'font-weight: bold'},
+ {field: 'qty', title: '瀹屾垚鏁伴噺'},
// {
// field: 'createTime$', title: '鍒涘缓鏃堕棿', sort: true, templet: function (d) {
// return util.toDateString(d.createTime);
@@ -228,6 +235,24 @@
area: '1300px',
success: function (layero, dIndex) {
$(layero).children('.layui-layer-content').css('overflow', 'visible');
+
+ $.ajax({
+ url: baseUrl + "/docTypeQuery/auth",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ data: {
+ condition: decodeURI(docName)
+ },
+ success: function (res) {
+ if (res.code == 200) {
+ if (res.data.length > 0) {
+ $("#docType").val(res.data[0].id);
+ $(document.getElementById("docType$")).val(res.data[0].value)
+ }
+ }
+ }
+ })
+
var isExpAdd = !expTpe;
// 鍥炴樉鏁版嵁
form.val('editForm', expTpe);
--
Gitblit v1.9.1