From 0ae7027b39b0954fd462af601fdc2b5ed0f5832f Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期六, 19 六月 2021 12:45:43 +0800
Subject: [PATCH] 1.pda原材料入库erp传入修改
---
src/main/webapp/views/pda/locNormalIn.html | 64 ++++++++++++++++++++++----------
1 files changed, 44 insertions(+), 20 deletions(-)
diff --git a/src/main/webapp/views/pda/locNormalIn.html b/src/main/webapp/views/pda/locNormalIn.html
index 73ad16d..e554323 100644
--- a/src/main/webapp/views/pda/locNormalIn.html
+++ b/src/main/webapp/views/pda/locNormalIn.html
@@ -361,26 +361,50 @@
});
// 璇锋眰淇濆瓨鎺ュ彛
- $.ajax({
- url: baseUrl + "/locNormal/pda/in",
- headers: {'token': localStorage.getItem('token')},
- data: JSON.stringify({
- normalList: data,
- }),
- contentType: 'application/json;charset=UTF-8',
- method: 'POST',
- async: false,
- success: function (res) {
- if (res.code === 200) {
- reset(true);
- tips("缁勬墭鎴愬姛")
- } else if (res.code === 403) {
- top.location.href = baseUrl + "/pda";
- } else {
- tips(res.msg, true)
- }
- },
- });
+ var areaType = getQueryVariable('areaType');
+ if (areaType == 1) {
+ $.ajax({
+ url: baseUrl + "/locNormal/in/source",
+ headers: {'token': localStorage.getItem('token')},
+ data: JSON.stringify({
+ normalList: data,
+ }),
+ contentType: 'application/json;charset=UTF-8',
+ method: 'POST',
+ async: false,
+ success: function (res) {
+ if (res.code === 200) {
+ reset(true);
+ tips("缁勬墭鎴愬姛")
+ } else if (res.code === 403) {
+ top.location.href = baseUrl + "/pda";
+ } else {
+ tips(res.msg, true)
+ }
+ },
+ });
+ } else {
+ $.ajax({
+ url: baseUrl + "/locNormal/pda/in",
+ headers: {'token': localStorage.getItem('token')},
+ data: JSON.stringify({
+ normalList: data,
+ }),
+ contentType: 'application/json;charset=UTF-8',
+ method: 'POST',
+ async: false,
+ success: function (res) {
+ if (res.code === 200) {
+ reset(true);
+ tips("缁勬墭鎴愬姛")
+ } else if (res.code === 403) {
+ top.location.href = baseUrl + "/pda";
+ } else {
+ tips(res.msg, true)
+ }
+ },
+ });
+ }
}
/**
--
Gitblit v1.9.1