From 7aca416bc7aca35e720b0a0f5e645c872961309a Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 07 十一月 2023 22:27:46 +0800
Subject: [PATCH] 销售订单变更单取消新增 销售订单下推销售订单变更单 乔一菜单增加信用管理
---
WebTM/views/销售管理/销售订单变更单/Xs_SeOrderChangeBill.html | 103 ++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 97 insertions(+), 6 deletions(-)
diff --git "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\351\224\200\345\224\256\350\256\242\345\215\225\345\217\230\346\233\264\345\215\225/Xs_SeOrderChangeBill.html" "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\351\224\200\345\224\256\350\256\242\345\215\225\345\217\230\346\233\264\345\215\225/Xs_SeOrderChangeBill.html"
index 9a7a446..cb5e2f8 100644
--- "a/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\351\224\200\345\224\256\350\256\242\345\215\225\345\217\230\346\233\264\345\215\225/Xs_SeOrderChangeBill.html"
+++ "b/WebTM/views/\351\224\200\345\224\256\347\256\241\347\220\206/\351\224\200\345\224\256\350\256\242\345\215\225\345\217\230\346\233\264\345\215\225/Xs_SeOrderChangeBill.html"
@@ -335,6 +335,9 @@
//鍔犺浇琛ㄤ綋鍜岃〃浣撴暟鎹�
RoadBillMain(linterid);
}
+ else if (OperationType == 4) { //涓嬫帹
+ setInit_PushBill(linterid);
+ }
//#endregion
//#region 鍒濆鍖栫粍缁�
@@ -612,14 +615,14 @@
, { field: 'HQty_New', title: '鏂版暟閲�', width: 100, edit: 'text' }
, { field: 'HTaxPrice_Old', title: '鍘熷惈绋庡崟浠�', width: 100 }
, { field: 'HTaxPrice_New', title: '鏂板惈绋庡崟浠�', width: 100, edit: 'text' }
- , { field: 'HDate_Old', title: '鍘熶氦璐ф棩鏈�', edit: 'text', width: 120 }
+ , { field: 'HDate_Old', title: '鍘熶氦璐ф棩鏈�', width: 120 }
, { field: 'HDate_New', title: '鏂颁氦璐ф棩鏈�', event: "HDate_New", width: 120 }
, { field: 'HRemark', title: '澶囨敞', width: 100, edit: 'text' }
- , { field: 'HSourceInterID', title: '婧愬崟鍐呯爜', edit: 'text', hide: true, style: 'background-color: #f9f9f9;' } //f7
- , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', edit: 'text', hide: true, style: 'background-color: #f9f9f9;' } //f7
- , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', edit: 'text', hide: true, style: 'background-color: #f9f9f9;' } //f7
- , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', edit: 'text', hide: true, style: 'background-color: #f9f9f9;' } //f7
+ , { field: 'HSourceInterID', title: '婧愬崟鍐呯爜', hide: true, style: 'background-color: #f9f9f9;' } //f7
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', hide: true, style: 'background-color: #f9f9f9;' } //f7
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', hide: true, style: 'background-color: #f9f9f9;' } //f7
+ , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', hide: true, style: 'background-color: #f9f9f9;' } //f7
, { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 70 }
]]
@@ -746,6 +749,94 @@
"HSourceEntryID": result.data[i]["HSourceEntryID"],
"HSourceBillNo": result.data[i]["HSourceBillNo"],
"HSourceBillType": result.data[i]["HSourceBillType"]
+ }
+ );
+ }
+ option.data = rowdata;
+
+ table.render(option);
+ layer.close(ajaxLoad);
+ } else {
+ layer.close(ajaxLoad);
+ layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+ }
+ }, error: function () {
+ layer.close(ajaxLoad);
+ layer.alert("鍙戠敓閿欒!", { icon: 5 });
+ }
+ });
+ }
+ //#endregion
+
+ //#region 涓嬫帹椤甸潰鍒濆鍖�
+ function setInit_PushBill(linterid) {
+ //鐢熸垚骞惰缃富琛ㄧ殑鍐呯爜鍜屽崟鎹彿
+ createBillNo();
+
+ //鐩稿叧鏂囨湰妗嗕俊鎭垵濮嬪寲
+ $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
+ $("#HMaker").val(sessionStorage["HUserName"]);
+ $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd"));
+
+ //鍒濆鍖栧苟鍒楄缃細瀛愯〃1
+ set_InitGrid();
+ DisPlay_HideColumn();
+
+ //鏌ヨ 閿�鍞鍗� 鏄惁瀛樺湪
+ var ajaxLoad = layer.load();
+ $.ajax({
+ url: GetWEBURL() + "/Xs_SeOrderBill/loadXs_SeOrderBill_Edit",
+ async: false,
+ type: "GET",
+ data: {
+ "HInterID": linterid
+ },
+ success: function (result) {
+ if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ var data = result.data[0];
+
+ form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
+ "HDeptID": data.HDeptID
+ , "HDeptName": data.閮ㄩ棬
+ , "HEmpID": data.HEmpID
+ , "HEmpName": data.涓氬姟鍛�
+ , "HCurID": data.HCurID
+ , "HCurName": data.甯佸埆
+ , "HExRate": data.姹囩巼
+ , "HCusID": data.HCusID
+ , "HCusName": data.瀹㈡埛
+ , "HSSID": data.HSSID
+ , "HSSName": data.缁撶畻鏂瑰紡
+ , "HSellSID": data.HSellSID
+ , "HSellSName": data.閿�鍞柟寮�
+ , "HExplanation": data.鎽樿
+ , "HMainSourceInterID": linterid
+ , "HMainSourceBillNo": data.鍗曟嵁鍙�
+ , "HMainSourceBillType": params[params[2]]
+ });
+
+ //瀛愯〃 璧嬪��
+ var rowdata = [];
+ for (var i = 0; i < result.data.length; i++) {
+ rowdata.push(
+ {
+ "HMaterID": result.data[i]["HMaterID"],
+ "鐗╂枡浠g爜": result.data[i]["鐗╂枡浠g爜"],
+ "鐗╂枡鍚嶇О": result.data[i]["鐗╂枡鍚嶇О"],
+ "瑙勬牸鍨嬪彿": result.data[i]["瑙勬牸鍨嬪彿"],
+ "HUnitID": result.data[i]["HUnitID"],
+ "璁¢噺鍗曚綅": result.data[i]["璁¢噺鍗曚綅"],
+ "HQty_Old": result.data[i]["鏁伴噺"],
+ "HQty_New": result.data[i]["鏁伴噺"],
+ "HTaxPrice_Old": result.data[i]["鍚◣鍗曚环"],
+ "HTaxPrice_New": result.data[i]["鍚◣鍗曚环"],
+ "HDate_Old": formatDate(result.data[i]["浜よ揣鏃ユ湡"]),
+ "HDate_New": formatDate(result.data[i]["浜よ揣鏃ユ湡"]),
+ "HRemark": "",
+ "HSourceInterID": result.data[i]["hmainid"],
+ "HSourceEntryID": result.data[i]["hsubid"],
+ "HSourceBillNo": result.data[i]["鍗曟嵁鍙�"],
+ "HSourceBillType": result.data[i]["HBillType"]
}
);
}
@@ -947,7 +1038,7 @@
function set_SaveBill(data) {
//璁板綍鎿嶄綔绫诲瀷
var refSav = "";
- if (OperationType == 1 || OperationType == 2) {
+ if (OperationType == 1 || OperationType == 2 || OperationType==4) {
refSav = "Add";
data.field.HChangeDate = new Date();
}
--
Gitblit v1.9.1