From f0892b93ea156d99b908d2620d330c4b765fa50d Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期一, 09 六月 2025 12:04:11 +0800
Subject: [PATCH] 1
---
WebTM/views/生产管理/生产计划平台/Sc_BulkEditWorkTimeNew.html | 474 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 474 insertions(+), 0 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_BulkEditWorkTimeNew.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_BulkEditWorkTimeNew.html"
new file mode 100644
index 0000000..dd576dd
--- /dev/null
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/Sc_BulkEditWorkTimeNew.html"
@@ -0,0 +1,474 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>宸ュ巶鏃ュ巻(鎵归噺)</title>
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/ext/soulTable.css" media="all">
+ <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/Scripts/json2.js"></script>
+ <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+ <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script src="../../../layuiadmin/PubCustom.js"></script>
+ <script src="../../../layuiadmin/xm-select.js"></script>
+ <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+ <!--<script src="../../../layuiadmin/soulTable.slim.js"></script>--> <!--鏍囬绛涢�変笉鑳藉紩鐢ㄦjs鏂囦欢-->
+</head>
+<body>
+ <div class="layui-fluid">
+ <div class="layui-col-md12">
+ <div class="layui-card" style="padding: 1px">
+ <div class="layui-card-body" style="padding: 1px;">
+ <form class="layui-form" action="" lay-filter="formData">
+ <div class="layui-collapse">
+ <div class="layui-colla-item">
+ <div class="layui-colla-title layui-inline">
+ <div class="layui-inline">
+ <span>鏇村</span>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇杞﹂棿</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="hidden" class="layui-input" lay-filter="HDeptID" name="HDeptID" id="HDeptID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
+ <input type="text" class="layui-input" lay-filter="HDeptName" name="HDeptName" id="HDeptName" value="" style="width: 60%;display: inline-block;">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptID" id="btnHDeptID" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">鏃ユ湡闂撮殧</label>
+ <div class="layui-input-block">
+ <select name="HInitTimeCycle" id="HInitTimeCycle" class="ForFilteringSchemes" lay-filter="HInitTimeCycle" style="width:190px;">
+ </select>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">寮�濮嬫棩鏈�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" lay-filter="HBeginDate" style="padding-left: 58px;width:160px;">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鑷�:</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" lay-verify="HEndDate" name="HEndDate" id="HEndDate" lay-filter="HEndDate" style="padding-left: 58px;width:160px;">
+ </div>
+ </div>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">鎵归噺鏇存柊</button>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnExit" id="btnExit" style="padding:0 5px">閫�鍑�</button>
+ </div>
+ </div>
+ <div class="layui-row" style="padding:10px 0">
+ <div class="layui-col-xs4 layui-inline" style="border: solid 1.5px #e0d6d64d;">
+ <div id="SourceTable" lay-filter ="SourceTable" style="width:99.5%;"></div>
+ </div>
+ <div class="layui-col-xs7 layui-inline" style="padding-left: 10px;">
+ <table class="" id="mainTable" lay-filter="mainTable"></table>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+<script>
+
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index', //涓诲叆鍙fā鍧�
+ soulTable: '../ext/soulTable'
+ }).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate', 'util', 'soulTable', 'tableSelect'], function () {
+ //#region 鍏敤鍙橀噺
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , element = layui.element
+ , laypage = layui.laypage
+ , laydate = layui.laydate
+ , util = layui.util
+ , tree = layui.tree
+ , util = layui.util
+ , soulTable = layui.soulTable
+ , tableSelect = layui.tableSelect;
+ var sWhere = "";
+ var option = [];
+ var sourceOption = [];
+ var ins; //鐢ㄤ簬瀵煎嚭excel
+ var HModName = "Sc_SHopCalendarNew";
+ var titleData = [];
+ //#endregion
+
+ //#region 杩涘叆椤甸潰鍗冲姞杞�
+
+ //鍒濆鍖栫晫闈�
+ set_ClearBill();
+
+ //#endregion
+
+ //#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
+
+ //#region 鐐瑰嚮琛岄�変腑楂樹寒
+ table.on('row(SourceTable)', function (obj) {
+ //閫変腑琛屾敼鍙橀鑹�
+ var flag = !obj.tr.find(':checkbox:first').prop('checked');
+ obj.tr.find(':checkbox').prop('checked', flag);
+ if (flag) {
+ obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //璁剧疆澶嶉�夋閫変腑鏍峰紡
+ $('div[lay-id="SourceTable"]').find(obj.tr.selector).attr({
+ "style": "background:#ceedfa;color:black"
+ });
+ } else {
+ obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//鍙栨秷澶嶉�夋閫変腑鏍峰紡
+ $('div[lay-id="SourceTable"]').find(obj.tr.selector).attr({ "style": "background:" });//鍙栨秷褰撳墠tr棰滆壊
+ }
+ //mainTable 涓鸿〃鏍糏D 娉ㄦ剰姝ゅ濡傛灉ID涓嶆纭皢瀵艰嚧浣犲湪鐩戝惉澶嶉�夋鏃惰幏鍙栦笉鍒颁綘閫夋嫨鐨勬暟鎹紝鍓嶉潰鐨勫彧鏄坊鍔犳垨鍒犻櫎閫変腑鏈�変腑鏍峰紡浠ュ強璁剧疆鑳屾櫙鑹诧紝瀛椾綋棰滆壊
+ layui.each(table.cache.SourceTable, function (i, l) {
+ if (obj.tr.index() == l.LAY_TABLE_INDEX) {
+ l.LAY_CHECKED = flag;
+ }
+ });
+ })
+ //#endregion
+
+
+ //閫�鍑烘寜閽�
+ form.on('submit(btnExit)', function () {
+ Pub_Close(2);
+ })
+ //閫�鍑烘寜閽�
+ form.on('submit(btnSave)', function () {
+ set_SaveBill();
+ })
+
+
+ //#region 鏃ユ湡闂撮殧涓嬫媺鍒楄〃鐩戝惉
+ form.on('select(HInitTimeCycle)', function (data) {
+ var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
+ //鑻ユ棩鏈熼棿闅斾笉涓� 浠绘剰闂撮殧锛屽垯绂佺敤寮�濮嬫棩鏈熶笌缁撴潫鏃ユ湡鐨勯�夋嫨
+ if (HInitTimeCycle != -1) {
+ //$('#HDate').prop('disabled', true);
+ //$('#HDate1').prop('disabled', true);
+
+ $("#HBeginDate").val(Format(new Date().setDate(new Date().getDate()), "yyyy-MM-dd"));//娆犳枡鏃ユ湡
+ $("#HEndDate").val(Format(new Date().setDate(new Date().getDate() + HInitTimeCycle), "yyyy-MM-dd"));//鑷�
+
+ } else {
+ //$('#HDate').prop('disabled', false);
+ //$('#HDate1').prop('disabled', false);
+ }
+ });
+ //#endregion
+
+ //#region 鐢熶骇杞﹂棿
+ form.on('submit(btnHDeptID)', function (data) {
+ btnHDeptID();
+ });
+ //#endregion
+
+
+ //#endregion
+
+ //#region 鏈〉闈㈣璋冪敤鐨勬墍鏈夋柟娉�
+
+ //#region 鍒濆鍖栫晫闈�
+ function set_ClearBill() {
+ //鍒濆鍖栨棩鏈熼棿闅斻�佸紑濮嬫棩鏈熴�佺粨鏉熸棩鏈�
+ setSelect_HInitTimeCycle();
+ //鑻ユ棩鏈熼棿闅斾笉涓� 浠绘剰闂撮殧锛屽垯绂佺敤寮�濮嬫棩鏈熶笌缁撴潫鏃ユ湡鐨勯�夋嫨
+ var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
+ //鍒濆鍖栨棩鏈�
+ $("#HBeginDate").val(Format(new Date(new Date()), "yyyy-MM-dd"));//鎻愭枡鏃ユ湡
+ $("#HEndDate").val(Format(new Date().setDate(new Date().getDate() + HInitTimeCycle), "yyyy-MM-dd"));//鑷�
+ //鍒濆鍖栬〃鏍�
+ set_InitGrid();
+ //鑾峰彇榛樿杞﹂棿
+ GetDefValByUser();
+ //鏌ヨ
+ get_DisplaySource();
+ }
+ //#endregion
+
+ //#region 鍒濆鍖栬〃鏍兼柟娉�
+ function set_InitGrid() {
+ //閮ㄩ棬杈撳叆妗�
+ tableSelect.render({
+ elem: '#HDeptName',//杈撳叆妗哾om閫夋嫨
+ searchKey: '閮ㄩ棬鍚嶇О,HItemID',//鏌ヨ鐨勫垪鍚�
+ sWhere: " and 绂佺敤鏍囪 = '' and 杞﹂棿鏍囪 = 'Y' ",//table鎼滅储sWhere鏉′欢 //榛樿绛涢�夐」
+ ajaxSelect: function (sWhere) {
+ var data = '';
+ $.ajax({
+ url: GetWEBURL() + '/Gy_Department/list',
+ type: "GET",
+ data: { "sWhere": sWhere, "user": sessionStorage["HMaker"], "Organization": sessionStorage["Organization"] },
+ async: false,
+ success: function (data1) {
+ if (data1.count == 1) {
+ data = data1.data
+ }
+ },
+ error: function () {
+ layer.alert('鑾峰彇鍒楄〃澶辫触锛�', { icon: 15, title: '閫氫俊閿欒' });
+ }
+ });
+ return data;
+ },//璁剧疆鍓嶇鍒嗛〉鏃跺彲浠ヨ缃殑
+ table: {
+ //url: GetWEBURL() + 'Gy_Supplier/page',
+ //where: { user: '缈佹稕娑�', Organization: '娴欐睙鏅轰簯杩堟��' },
+ cols: [[
+ { type: 'radio', fixed: 'left' },//闇�瑕佸姞杩欎釜fixed灞炴�т笉鐒剁偣鍑籧heckbox浼氳Е鍙戣鐐瑰嚮瀵艰嚧鏃犳硶姝g‘鐐瑰嚮
+ { field: 'HItemID', title: 'HItemID' },
+ { field: '閮ㄩ棬鍚嶇О', title: '閮ㄩ棬鍚嶇О' },
+ ]],
+ page: true,
+ limit: 5,
+ limits: [5]
+ },
+ done: function (elem, data) {
+ if (data != []) {
+ $("#HDeptName").val(data.data[0]['閮ㄩ棬鍚嶇О']);
+ $("#HDeptID").val(data.data[0]['HItemID']);
+ get_DisplaySource();
+ }
+
+ }
+ })
+ option = {
+ elem: '#mainTable'
+ //, toolbar: '#toolbarDemo'
+ , height: 'full-50'
+ , page: true
+ , cellMinWidth: 90
+ , totalRow: true
+ , limit: 50
+ , limits: [50, 500, 1000, 5000]
+ //, loading: false
+ , cols: [[
+ { type: 'numbers', title: '搴忓彿', width: 80},
+ { field: 'week', title: '鏄熸湡', width: 120 },
+ { field: 'workHours', title: '涓婄彮鏃堕棿', width: 120, edit: 'text' }
+ ]]
+ , data: [
+ { "week": "鏄熸湡鏃�", "workHours": 0 },
+ { "week": "鏄熸湡涓�", "workHours": 0 },
+ { "week": "鏄熸湡浜�", "workHours": 0 },
+ { "week": "鏄熸湡涓�", "workHours": 0 },
+ { "week": "鏄熸湡鍥�", "workHours": 0 },
+ { "week": "鏄熸湡浜�", "workHours": 0 },
+ { "week": "鏄熸湡鍏�", "workHours": 0 }
+ ]
+ , done: function (res, curr, count) {
+ soulTable.render(this);
+ }
+ };
+ table.render(option);
+ sourceOption = {
+ elem: '#SourceTable'
+ //, toolbar: '#toolbarDemo'
+ , height: 'full-50'
+ , page: false
+ , cellMinWidth: 90
+ , totalRow: true
+ , limit: 50
+ , cols: [[
+ { type: 'checkbox', fixed: 'left' },
+ { field: 'HItemID', title: 'HItemID', width: 200, hide: true },
+ { field: '鐢熶骇璧勬簮浠g爜', title: '鐢熶骇璧勬簮浠g爜', width: 120 },
+ { field: '鐢熶骇璧勬簮鍚嶇О', title: '鐢熶骇璧勬簮鍚嶇О', width: 120 },
+ ]]
+ , done: function (res, curr, count) {
+ soulTable.render(this);
+ }
+ };
+ }
+ //#endregion
+
+ //#region 鐢熶骇杞﹂棿閫夋嫨鎸夐挳
+ function btnHDeptID() {
+ layer.open({
+ type: 2 //绫诲瀷
+ , skin: 'layui-layer-rim'//鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '閮ㄩ棬鍒楄〃'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html?Type=1&HOrgName=' + sessionStorage["Organization"] , 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HDeptID").val(checkStatus.data[0].HItemID);
+ $("#HDeptName").val(checkStatus.data[0].閮ㄩ棬鍚嶇О);
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ , end: function () {
+ get_DisplaySource();
+ }
+ })
+ }
+ //#endregion
+
+ //#region 鑾峰彇瀵瑰簲杞﹂棿鐢熶骇璧勬簮
+ function get_DisplaySource() {
+ var HDeptID = $("#HDeptID").val();
+ if (HDeptID != 0 && HDeptID != "") {
+ var sWhere = " and 绂佺敤鏍囪 != 'Y' and HDeptID=" + HDeptID
+ //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+ $.ajax({
+ url: GetWEBURL() + '/Gy_Source/list',
+ type: "GET",
+ async: false,
+ data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
+ success: function (data1) {
+ if (data1.count == 1) {
+ sourceOption.data = data1.data;
+ table.render(sourceOption);
+ } else {
+ layer.alert(data1.code + data1.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+
+ });
+ }
+
+ }
+ //#endregion
+
+ //#region 鍒濆鏃ユ湡闂撮殧 涓嬫媺鍒楄〃
+ function setSelect_HInitTimeCycle() {
+ var valueList = [7,30, 45, 60];
+ var titleList = ["杩�7澶�","杩戜竴鏈�", "杩�45澶�", "杩�60澶�"];
+
+ var HInitTimeCycle_ArrayList = '<option value="-1" selected="selected" >浠绘剰闂撮殧</option>';
+ for (var i = 0; i < valueList.length; i++) {
+ HInitTimeCycle_ArrayList += '<option style="color:blue;" value="' + valueList[i] + '">' + titleList[i] + '</option>';
+ }
+
+ $("#HInitTimeCycle").empty();
+ $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList);
+
+
+ $("#HInitTimeCycle").val("7");
+ form.render('select');
+ }
+ //#endregion
+
+ //#region 鏃堕棿鍒楄〃鐩稿叧鍑芥暟
+ function generateWorkHoursData(startDate, endDate, originalData) {
+ const result = [];
+ const currentDate = new Date(startDate);
+ const lastDate = new Date(endDate);
+
+ // 鍒涘缓涓�涓槦鏈熸槧灏勮〃锛堜腑鏂囨槦鏈熷悕 -> workHours锛�
+ const weekHoursMap = {};
+ originalData.forEach(item => {
+ weekHoursMap[item.week] = item.workHours;
+ });
+
+ // 閬嶅巻鏃ユ湡鑼冨洿
+ while (currentDate <= lastDate) {
+ const dayOfWeek = currentDate.toLocaleDateString('zh-CN', { weekday: 'long' }); // 鑾峰彇涓枃鏄熸湡鍚嶏紝濡� "鏄熸湡涓�"
+ const formattedDate = currentDate.toISOString().split('T')[0]; // 鏍煎紡鍖栦负 YYYY-MM-DD
+
+ result.push({
+ date: formattedDate,
+ week: dayOfWeek,
+ workHours: weekHoursMap[dayOfWeek] || 0, // 濡傛灉娌℃湁鍖归厤鐨勬槦鏈燂紝榛樿 0
+ });
+
+ currentDate.setDate(currentDate.getDate() + 1); // 涓嬩竴澶�
+ }
+
+ return result;
+ }
+ //#endregion
+
+ //#region 閫氳繃鐧诲綍鐢ㄦ埛鑾峰彇榛樿鍊�
+ function GetDefValByUser() {
+ var index = layer.load();
+ $.ajax({
+ url: GetWEBURL() + "/Cj_StationInBill/GetDefValByUser",
+ type: "GET",
+ async: false,
+ data: { "Czybm": sessionStorage["Czybm"], "Czymc": sessionStorage["HUserName"] },
+ success: function (result) {
+ var data = result.data[0];
+
+ form.val("formData", {
+ "HDeptID": data.HDeptID,
+ "HDeptName": data.閮ㄩ棬鍚嶇О,
+ });
+ layer.close(index);
+ }
+ , error: function () {
+ layer.close(index);
+ layer.msg("鎺ュ彛璇锋眰澶辫触");
+ }
+ })
+ }
+ //#endregion
+
+ //#region 淇濆瓨鏂规硶
+ function set_SaveBill() {
+ var checkStatus = table.checkStatus('SourceTable')
+ , data = checkStatus.data;
+ var sSubStr = table.cache["mainTable"];
+ //鏍规嵁寮�濮嬫椂闂寸粨鏉熸棩鏈熺敓鎴愭柊鏁版嵁
+ const newData = generateWorkHoursData($("#HBeginDate").val(), $("#HEndDate").val(), sSubStr);
+ if (newData.length == 0) {
+ return layer.msg("璇锋鏌ュ紑濮嬫椂闂村拰缁撴潫鏃ユ湡鏄惁鍚堢悊");
+ }
+ var sMainSub = JSON.stringify(data) + ';' + JSON.stringify(newData) + ';' + sessionStorage["HUserName"];
+ if (data.length > 0) {
+ $.ajax({ //寮傛璇锋眰
+ type: "POST", //璇锋眰绫诲瀷
+ url: GetWEBURL() + "MaterOutEntryReport/Sc_ShopCalendarSaveList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: true, //鏄惁寮傛杩涜璇锋眰
+ data: { "sMainSub": sMainSub }, // 灏唄materid浣滀负璇锋眰鍙傛暟鍙戦�佸彂閫佸埌鏈嶅姟鍣ㄧ殑鏁版嵁
+ dataType: "json", //绫诲瀷涓簀son
+ success: function (data) {// 褰撹姹傛垚鍔熸椂鎵ц鐨勫洖璋冨嚱鏁�
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 // 妫�鏌ヨ繑鍥炵殑鏁版嵁涓璫ount灞炴�х殑鍊兼槸鍚︿负1锛岃繖鍙兘琛ㄧず鎿嶄綔鎴愬姛
+ layer.msg("鎴愬姛", { icon: 1 }); //浣跨敤layer鎻掍欢鏄剧ず涓�涓秷鎭紝鍥炬爣涓�1锛堥�氬父琛ㄧず鎴愬姛锛�
+ }
+ else {
+ layer.alert(data.Message, { icon: 5 });// 濡傛灉鎿嶄綔鏈垚鍔燂紝鏄剧ず涓�涓寘鍚敊璇俊鎭殑璀﹀憡妗嗭紝鍥炬爣涓�5锛堥�氬父琛ㄧず閿欒锛�
+ }
+ layer.closeAll("loading"); //鍏抽棴鎵�鏈夋鍦ㄦ樉绀虹殑鍔犺浇灞�
+ },
+ error: function (err) { // 褰撹姹傚け璐ユ椂鎵ц鐨勫洖璋冨嚱鏁�
+ layer.alert("閿欒:" + err, { icon: 5 }); //绀轰竴涓寘鍚敊璇俊鎭殑璀﹀憡妗嗭紝鍥炬爣涓�5
+ console.log("Reason" + sMainStr); //鍦ㄦ帶鍒跺彴鎵撳嵃閿欒淇℃伅
+ }
+
+ })
+ } else {
+ layer.msg("璇烽�夋嫨鑷冲皯涓�涓伐浣滆祫婧�")
+ }
+ }
+ //#endregion
+
+ //#endregion
+ //浠ヤ笂鏄痩ayui妯″潡
+ });
+ function GetHDeptNameValue(obj) //杩斿洖杞﹂棿
+ {
+ $("#HDeptID").val(obj[0].HItemID);//杞﹂棿id
+ $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);//杞﹂棿鍚嶇О
+ }
+</script>
\ No newline at end of file
--
Gitblit v1.9.1