From 18d71aee615af0b806ddbdbfa5ee718c63b6934e Mon Sep 17 00:00:00 2001
From: 仲国强 <519541279@qq.com>
Date: 星期三, 08 九月 2021 15:53:38 +0800
Subject: [PATCH] 恢复工序进站单
---
WebTM/views/车间管理/工序进站接收单/Cj_StationInBill.html | 68 +++++++++++++++++++++++++---------
1 files changed, 50 insertions(+), 18 deletions(-)
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html"
index ed7aad9..fe0685f 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html"
@@ -188,13 +188,20 @@
<div class="layui-col-xs4 layui-inline">
<label class="layui-form-label"><span style="color:red;">*</span>宸ヤ綔涓績</label>
<div class="layui-input-inline">
- <input type="text" class="layui-input" name="HCenterName" id="HCenterName" style="background-color:#efefef4d;" readonly>
+ <input type="text" class="layui-input" name="HCenterName" id="HCenterName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
+ <button type="button" class="layui-btn" lay-submit="" lay-filter="HWorkingProcedure-BT" id="HWorkingProcedure-BT" style="width: 40px; padding: 0 10px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
<input type="hidden" name="HCenterID" id="HCenterID" value="0">
</div>
</div>
- </div>
- <div class="layui-row">
-
+ <!--<div class="layui-col-xs4 layui-inline">
+ <label class="layui-form-label"><span style="color:red;">*</span>宸ヤ綔涓績</label>
+ <div class="layui-input-inline">
+ <input type="text" class="layui-input" name="HCenterName" id="HCenterName" style="background-color:#efefef4d;" readonly>
+ <input type="hidden" name="HCenterID" id="HCenterID" value="0">
+ </div>
+ </div>-->
</div>
<div class="layui-row">
<div class="layui-col-xs8 layui-inline">
@@ -370,6 +377,7 @@
<input type="hidden" name="lngBillSubKey" id="lngBillSubKey" value="0">
<input type="hidden" name="HMaker" id="HMaker"><!--鍒跺崟浜�-->
<input type="hidden" name="eventType" id="eventType" value="Add">
+ <input type="hidden" name="HMainInterID" id="HMainInterID" value="0">
</form>
</div>
</div>
@@ -391,13 +399,14 @@
var params = get_UrlVars();
if (typeof (params[params[0]]) == "undefined") {
var OperationType = 1;//鎿嶄綔绫诲瀷
+ var closeType = 2; //鍏抽棴绫诲瀷
} else {
var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
var linterid = params[params[1]];//婧愬崟id
var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷
var HBillNo = params[params[3]];//鍗曟嵁鍙�
+ var closeType = params[params[4]]; //鍏抽棴绫诲瀷
}
- /*鍥哄畾浠g爜锛屾瘡寮犲崟鎹兘瑕乥egin*/
//鍒ゆ柇鏄惁鏂板
if (OperationType == 1) {
@@ -421,8 +430,9 @@
});
$('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);//瀹℃牳鎸夐挳榛樿绂佺敤
$('#set_AbandonCheck').addClass("layui-btn-disabled").attr("disabled", true);//鍙嶅鏍告寜閽粯璁ょ鐢�
+ $('#set_Modify').addClass("layui-btn-disabled").attr("disabled", true);//淇敼鎸夐挳绂佺敤
}
- else if(OperationType == 3){
+ else if (OperationType == 3) {
$("#eventType").val("Modify");
RoadBillMain(linterid);
$('#set_Modify').addClass("layui-btn-disabled").attr("disabled", true);//淇敼鎸夐挳绂佺敤
@@ -442,12 +452,12 @@
//杩涘叆椤甸潰榛樿鍏夋爣鍦ㄦ潯褰㈢爜涓�
$("#HBarCode").focus();
- //#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
+ //#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
//#region 鏂板鎸夐挳
form.on('submit(set_AddNew)', function () {//鎻愪氦
layer.confirm('鏂板鍚庨〉闈㈡暟鎹皢娑堝け锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
- window.location.reload();
+ location.replace('Cj_StationInBill.html?OperationType=1');
});
})
//#endregion
@@ -498,7 +508,7 @@
form.on('submit(Cancel)', function () {
layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
if (OperationType == 1) {
- Pub_Close(2);
+ Pub_Close(closeType);
} else if (OperationType == 3) {
Pub_Close(1);
} else if (OperationType == 4) {
@@ -522,13 +532,13 @@
})
//#endregion
- //#endregion
+ //#endregion
- //#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�
+ //#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�
//#region 淇濆瓨鍚庢祻瑙堟柟娉�
function ReRoadBillMain() {
- location.replace('Cj_StationInBill.html?OperationType=4&linterid=' + linterid + '&HSouceBillType=');
+ location.replace('Cj_StationInBill.html?OperationType=4&linterid=' + $("#HInterID").val() + '&HSouceBillType=');
}
//#endregion
@@ -564,6 +574,10 @@
} else {
$('#set_AbandonCheck').addClass("layui-btn-disabled").attr("disabled", true);//鍙嶅鏍告寜閽鐢�
$('#set_CheckBill').removeClass("layui-btn-disabled").attr("disabled", false);//瀹℃牳鎸夐挳鍚敤
+ }
+ if (OperationType == 3) {
+ $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);//瀹℃牳鎸夐挳绂佺敤
+ $('#set_AbandonCheck').addClass("layui-btn-disabled").attr("disabled", true);//鍙嶅鏍告寜閽鐢�
}
PicUpload();
layer.close(index);
@@ -645,11 +659,8 @@
});
}
//#endregion
- //#region 淇濆瓨鍚庢祻瑙堟柟娉�
//#endregion
-
- //#endregion
//鏂囦欢涓婁紶
@@ -659,6 +670,7 @@
var ProImgByList = $('#ProImgByList')
, uploadListIns = upload.render({
elem: '#testList'
+
, url: GetWEBURL() + "/Cj_StationOutBill/UploadFile1"
, accept: 'file'
, multiple: true
@@ -760,7 +772,7 @@
//$("#HEmp").val(sessionStorage["HUserName"]);
$("#HMaker").val(sessionStorage["HUserName"]);
-
+
//鏉″舰鐮佸洖杞︽柟娉�
$('#HBarCode').on('keydown', function (event) {
@@ -794,7 +806,6 @@
"HPieceQty": data.娴佽浆鍗℃暟閲�,
"HPlanQty": data.娴佽浆鍗℃暟閲�,
"HProcExchBillNo": data.鍗曟嵁鍙�,
- "aa": data.hmainid, //娴佽浆鍗′富鍐呯爜
"HICMOQty": data.浠诲姟鍗曟暟閲�,
"lngBillKey": data.hmainid,
"HOrderProcNO": data.璁㈠崟璺熻釜鍙�
@@ -907,6 +918,22 @@
}
})
});
+ //閫夋嫨宸ヤ綔涓績寮圭獥
+ form.on('submit(HWorkingProcedure-BT)', function () {//閫夋嫨宸ヤ綔涓績
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '宸ヤ綔涓績'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ //, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_WorkCenterList.html', 'yes']
+ , resize: false
+ , cancel: function (index, layero) {
+ }
+ })
+ //layer.msg('绂佹閫夋嫨');
+ });
//閫夋嫨渚涘簲鍟�
form.on('submit(btnSearchSup)', function () {
@@ -975,7 +1002,12 @@
$("#HEmpName").val(obj[0].HName);
$("#HEmpID").val(obj[0].HItemID);
}
+ //杩斿洖宸ヤ綔涓績
+ function GetWorkCenterValue(obj) { //杩斿洖宸ヤ綔涓績
+ $("#HCenterName").val(obj[0].宸ヤ綔涓績);
+ $("#HCenterID").val(obj[0].HItemID);
+ }
</script>
</body>
-</html>
+</html>
\ No newline at end of file
--
Gitblit v1.9.1