From cccf9602d595cdb9f60215acf8102f1187e1bfbd Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期三, 20 十月 2021 08:37:13 +0800
Subject: [PATCH] 111
---
WebTM/views/采购管理/采购订单/Cg_POOrderBillList1111.html | 67 ++++++++++++++++++++++++---------
WebTM/views/index.html | 2
2 files changed, 50 insertions(+), 19 deletions(-)
diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index 53e3572..02f04dc 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -112,7 +112,7 @@
<dd>
<a>閲囪喘璁㈠崟</a>
<dl class="layui-nav-child">
- <dd><a lay-href="閲囪喘绠$悊/閲囪喘璁㈠崟/Cg_POOrderBillList.html">閲囪喘璁㈠崟缁存姢</a></dd>
+ <dd><a lay-href="閲囪喘绠$悊/閲囪喘璁㈠崟/Cg_POOrderBillList1111.html">閲囪喘璁㈠崟缁存姢</a></dd>
</dl>
</dd>
<dd>
diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList1111.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList1111.html"
index 7aae28f..1cc60c2 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList1111.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList1111.html"
@@ -188,16 +188,16 @@
, { field: 'HBillType', title: 'HBillType', hide: true }
, { field: 'HSupID', title: 'HSupID', hide: true }
, { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', width: 100 }
- , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 100}
+ , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 120}
, { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 100 }
, { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 100 }
, { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 100 }
, { field: '浜よ揣鍦扮偣', title: '浜よ揣鍦扮偣', width: 100}
, { field: 'HPSStyleID', title: 'HPSStyleID', hide: true }
- , { field: '閲囪喘鏂瑰紡浠g爜', title: '閲囪喘鏂瑰紡浠g爜', width: 100}
+ , { field: '閲囪喘鏂瑰紡浠g爜', title: '閲囪喘鏂瑰紡浠g爜', width: 120}
, { field: '閲囪喘鏂瑰紡', title: '閲囪喘鏂瑰紡', width: 100}
, { field: 'HSSID', title: 'HSSID', hide: true }
- , { field: '缁撶畻鏂瑰紡浠g爜', title: '缁撶畻鏂瑰紡浠g爜', width: 100}
+ , { field: '缁撶畻鏂瑰紡浠g爜', title: '缁撶畻鏂瑰紡浠g爜', width: 120}
, { field: '缁撶畻鏂瑰紡', title: '缁撶畻鏂瑰紡', width: 100}
, { field: '缁撶畻鏃ユ湡', title: '缁撶畻鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.缁撶畻鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
, { field: 'HCurID', title: 'HCurID', hide: true }
@@ -220,7 +220,7 @@
, { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100}
, { field: '鎵瑰彿', title: '鎵瑰彿', width: 100}
, { field: 'HUnitID', title: 'HUnitID', hide: true }
- , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 100}
+ , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 120}
, { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 100}
, { field: '鏁伴噺', title: '鏁伴噺', width: 100}
, { field: '鍗曚环', title: '鍗曚环', width: 100}
@@ -648,7 +648,7 @@
}
for (var i = 0; i < data.length; i++) {
hmainid += data[i]["hmainid"] + ',';
- if (data[i]["涓氬姟鐘舵��"] == "3") {
+ if (data[i]["涓氬姟鐘舵��"] == "宸插彂甯�") {
return layer.msg('鍗曟嵁鍙凤細' + data[i]["鍗曟嵁鍙�"]+'宸插彂甯�');
}
}
@@ -677,21 +677,25 @@
$.ajax({
url: GetWEBURL() + '/Cg_POOrderBill/distribut',
async: false,
- type: "POST",
- //dataType: "json",
+ type: "GET",
+ dataType: "json",
data: { "Hmainid": hmainid, "HSupplierId": HSupplierId },
success: function (data1) {
- if (data.Message.indexOf("鎴愬姛") > 0) {
- layer.msg(data.Message, { icon: 1 })
-
+ if (data1.Message.indexOf("鎴愬姛") > 0) {
+ layer.msg("鍙戝竷鎴愬姛", { time: 3 * 1000, icon: 1 }, function () {
+ var index = layer.getFrameIndex(window.name);
+ //鍏抽棴褰撳墠frame
+ layer.close(index);
+ //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+ window.location.reload();
+ });
} else {
layer.alert(data1.Message, { icon: 5 });
}
}, error: function (e) {
- layer.alert(e.Message, { icon: 5 });
+ layer.alert(data1.Message, { icon: 5 });
}
});
-
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) {
@@ -699,22 +703,49 @@
//return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
},
end: function () {
-
},
success: function (layero, index) {
}
});
-
+
}
//鍙戝竷
function set_Release() {
- var checkStatus = table.checkStatus('mainTable')
- , data = checkStatus.data;
- if (checkStatus.data.length === 1) {
- var InterID = data[0].hmainid.toString();
+ var hmainid = '';
+ var checkStatus = table.checkStatus('mainTable'),
+ data = checkStatus.data;
+ if (checkStatus.data.length == 0) {
+ //var InterID = data[0].hmainid.toString();
+ return layer.msg('璇烽�夋嫨鏁版嵁');
}
+ for (var i = 0; i < data.length; i++) {
+ hmainid += data[i]["hmainid"] + ',';
+ if (data[i]["涓氬姟鐘舵��"] == "鏈垎閰�" || data[i]["涓氬姟鐘舵��"] == "" ) {
+ return layer.msg('鍗曟嵁鍙凤細' + data[i]["鍗曟嵁鍙�"] + '鏈垎閰�');
+ }
+ }
+ hmainid = hmainid.substring(0, hmainid.length - 1)
+ $.ajax({
+ url: GetWEBURL() + '/Cg_POOrderBill/release',
+ async: false,
+ type: "GET",
+ dataType: "json",
+ data: { "Hmainid": hmainid},
+ success: function (data1) {
+ if (data1.Message.indexOf("鎴愬姛") > 0) {
+ layer.msg("鍙戝竷鎴愬姛", { time: 1 * 1000, icon: 1 }, function () {
+ //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+ window.location.reload();
+ });
+ } else {
+ layer.alert(data1.Message, { icon: 5 });
+ }
+ }, error: function (e) {
+ layer.alert(data1.Message, { icon: 5 });
+ }
+ });
}
//蹇�熻繃婊�
function get_FastQuery(table, option) {
--
Gitblit v1.9.1