From 042ea7cd78532a298c80bdabe0c6e71e19edcee7 Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期五, 30 七月 2021 14:36:48 +0800
Subject: [PATCH] nothing
---
WebTM/views/生产管理/产量汇报单/Sc_Add_ProductReportBillList.html | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html"
index 9c99851..631d1e7 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\272\247\351\207\217\346\261\207\346\212\245\345\215\225/Sc_Add_ProductReportBillList.html"
@@ -507,7 +507,7 @@
{
return false;
}
- OverStepQty();
+ OverStepQty(data);
});
@@ -676,7 +676,7 @@
//楠岃瘉姹囨姤鏁伴噺鏄惁瓒呰繃璁″垝鏁伴噺
- function OverStepQty() {
+ function OverStepQty(data) {
var sWhere = "";
sWhere = " where HSourceID='" + $("#HSourceID").val() + "' and HSourceInterID='" + HSourceInterID + "' and HSourceEntryID='" + HSourceEntryID + "' and HSourceBillNo='" + HSourceBillNo + "' and HSourceBillType='" + HSourceBillType + "' ";
$.ajax({
@@ -685,11 +685,11 @@
data: { "sWhere": sWhere },
dataType: "json",//鏁版嵁绫诲瀷鍙互涓� text xml json script jsonp
async: false,
- success: function (data) {
- var LoadData = data.data.Sc_ICMOBillWorkQtyStatus_Tmp;
- var HQty = 200;//LoadData[0].HQty;
- var HBadQty = 100;// LoadData[0].HBadQty;
- var HWasterQty = 10;// LoadData[0].HWasterQty;
+ success: function (datas) {
+ var LoadData = datas.data.Sc_ICMOBillWorkQtyStatus_Tmp;
+ var HQty = LoadData[0].HQty;
+ var HBadQty = LoadData[0].HBadQty;
+ var HWasterQty = LoadData[0].HWasterQty;
var yessqty = HQty + HBadQty + HWasterQty;
var sumqty = parseFloat($("#HQty").val()) + yessqty;
if (sumqty > parseFloat($("#HPlanQty").val())) {
@@ -698,13 +698,13 @@
}, function (index) {
//鍏抽棴褰撳墠frame
layer.close(index);
- Submit();
+ Submit(data);
}, function () {
});
}
else {
- Submit();
+ Submit(data);
}
},
error: function (err) {
@@ -714,7 +714,7 @@
}
//鎻愪氦璇锋眰ajax
- function Submit()
+ function Submit(data)
{
if (data.field.HBadQty == "" || data.field.HBadQty == null) {
data.field.HBadQty = 0;
--
Gitblit v1.9.1