From f2b3c45b78bb9fc021869c4ae35e6de039b50bbf Mon Sep 17 00:00:00 2001 From: chengsc <Demo@DESKTOP-CPA90BF> Date: 星期五, 18 十月 2024 18:40:52 +0800 Subject: [PATCH] 修改问题 --- HTML/views/ASNSetting/ArrivalNotice.html | 367 ++++------------------------------------------------ 1 files changed, 29 insertions(+), 338 deletions(-) diff --git a/HTML/views/ASNSetting/ArrivalNotice.html b/HTML/views/ASNSetting/ArrivalNotice.html index 918055e..6190fca 100644 --- a/HTML/views/ASNSetting/ArrivalNotice.html +++ b/HTML/views/ASNSetting/ArrivalNotice.html @@ -67,9 +67,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label">鎵规鍙�</label> + <label class="layui-form-label">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -183,11 +183,11 @@ <i class="layui-icon layui-icon-delete"></i>鍒犻櫎</a>`; break; case "1" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>璁㈠崟鍏抽棴</a> + html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>鍏冲崟</a> <a class="layui-btn layui-btn-danger layui-btn-xs cheXiaoClass" lay-event="chexiao"> <i class="layui-icon layui-icon-delete"></i>鎾ら攢</a>`; break; case "2" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>璁㈠崟鍏抽棴</a> + html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>鍏冲崟</a> <a class="layui-btn layui-btn-danger layui-btn-xs cheXiaoClass" lay-event="chexiao"> <i class="layui-icon layui-icon-delete"></i>鎾ら攢</a>`; break; case "3" : @@ -320,6 +320,10 @@ html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel2"> <i class="layui-icon layui-icon-edit"></i>鐢熸垚鏍囩</a>`; } + if(d.AsnType == "5"&& (d.Status == "0" || d.Status == "1") && (d.PackagNo != ""|| d.PackagNo!=null)){ + html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel"> + <i class="layui-icon layui-icon-edit"></i>鐢熸垚鏍囩</a>`; + } return html; } }} @@ -415,165 +419,26 @@ var TotalColsArr = [[ {field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, {field: 'ASNNo',title: '鍏ュ簱鍗曞彿',align: 'center',fixed: 'left',sort: true,width: 180, "disabled": true}, - {field: 'Status',title: '鎵ц鐘舵��',align: 'center',templet: '#buttonTpl'}, + {field: 'Status',title: '鎵ц鐘舵��',align: 'center',width: 100,templet: '#buttonTpl'}, {field: 'Origin',title: '鏉ユ簮',align: 'center',width: 80}, + {field: 'OrderCode',title: '涓婃父鍗曞彿',align: 'center',width: 180}, + {field: 'CustomerName',title: '瀹㈡埛鍚嶇О',align: 'center'}, - {field: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',templet: '#templetType'}, - {field: 'CompleteTime',title: '瀹屾垚鏃堕棿',align: 'center',templet: '#templetCompleteTime'}, + {field: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',width: 100,templet: '#templetType'}, + {field: 'CompleteTime',title: '瀹屾垚鏃堕棿',align: 'center',width: 165,templet: '#templetCompleteTime'}, {field: 'Demo',title: '澶囨敞',align: 'center',width: 180}, {field: 'CreateUserName',title: '鍒涘缓浜�',align: 'center',width: 110}, - {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',templet: '#templetCreateTime'}, + {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',width: 165,templet: '#templetCreateTime'}, {field: 'UpdateUserName',title: '淇敼浜�',align: 'center',width: 110}, - {field: 'UpdateTime',title: '淇敼鏃堕棿',align: 'center',templet: '#templetUpdateTime'}, + {field: 'UpdateTime',title: '淇敼鏃堕棿',align: 'center',width: 165,templet: '#templetUpdateTime'}, {field: 'CheckUserName',title: '澶嶆牳浜�',align: 'center',width: 110}, - {field: 'CheckTime',title: '澶嶆牳鏃堕棿',align: 'center',templet: '#templetCheckTime'}, + {field: 'CheckTime',title: '澶嶆牳鏃堕棿',align: 'center',width: 165,templet: '#templetCheckTime'}, {field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 280,align: 'center',toolbar: '#toolbarDemo1', "disabled": true} ]]; var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTable() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // ASNNo: $("#ASNNo").val(), - // Type: $("#Type").val(), - // Status: $("#Status").val(), - // CustomerName: $("#CustomerName").val(), - // LotNo: $("#LotNo").val(), - // SkuNo: $("#SkuNo").val(), - // SkuName: $("#SkuName").val(), - // StartTime:$("#StartTime").val(), - // EndTime: $("#EndTime").val() - // }; - // table.render({ - // elem: '#LAY-app-content-list', - // url: IP + "/BllAsn/GetArrivalNoticeList", - // method: 'POST', - // height: h1, - // id: 'LAY-app-content-list', - // where: param, - // contentType: 'application/json', - // headers:{ToKen:$.cookie('token')}, - // page: true, - // even: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function(res) { - // setRight(); - - // //aaa = $('#LAY-app-content-list').next().find('.layui-table-main').find('tr[data-index="0"]').find('td[data-field="ASNNo"]'); - // // refreshTablemx(res.data[0].ASNNo); - // }, - // cols: [ - // [{ - - // title: '搴忓彿', - // type: 'numbers', - // width: 50, - // align: 'center', - // fixed: 'left' - // }, - // { - // field: 'ASNNo', - // title: '鍏ュ簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // sort: true, - // width: 180 - // }, - // { - // field: 'Status', - // title: '鎵ц鐘舵��', - // align: 'center', - // templet: function (d) { - // switch (d.Status) { - // case "0" : return '<button class="layui-btn layui-btn-radius layui-btn-xs">绛夊緟鎵ц</button>'; - // case "1" : return '<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">姝e湪鎵ц</button>'; - // case "2" : return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">鎵ц瀹屾瘯</button>'; - // case "3" : return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">璁㈠崟鍏抽棴</button>'; - // default : return ""; - // } - // } - // }, - // { - // field: 'Origin', - // title: '鏉ユ簮', - // align: 'center', - // width: 80 - // }, - // { - // field: 'CustomerName', - // title: '瀹㈡埛鍚嶇О', - // align: 'center' - // }, - // { - // field: 'Type', - // title: '鍗曟嵁绫诲瀷', - // align: 'center', - // templet: function (d) { - // switch (d.Type) { - // case "0" : return "鏍囧噯浜у搧鍏ュ簱"; - // case "1" : return "闈炴爣浜у搧鍏ュ簱"; - // default : return ""; - // } - // // JC08 - // // switch (d.Status) { - // // case "0" : return "鎴愬搧鍏ュ簱"; - // // case "1" : return "鍘熸枡鍏ュ簱"; - // // case "2" : return "閫�璐у叆搴�"; - // // default : return ""; - // // } - // } - // }, - // { - // field: 'CompleteTime', - // title: '瀹屾垚鏃堕棿', - // align: 'center', - // hide:true, - // templet: function (d) { - // return formatDate2(d.CompleteTime); - // } - // }, - // { - // field: 'CreateUserName', - // title: '鍒涘缓浜�', - // align: 'center', - // width: 110 - // }, - // { - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // templet: function (d) { - // return formatDate(d.CreateTime); - // } - // }, - // { - // field: 'UpdateUserName', - // title: '淇敼浜�', - // align: 'center', - // hide:false, - // width: 110 - // }, - // { - // field: 'UpdateTime', - // title: '淇敼鏃堕棿', - // align: 'center', - // hide:false, - // templet: function (d) { - // return formatDate(d.UpdateTime); - // } - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 240, - // align: 'center', - // toolbar: '#toolbarDemo1' - // }] - // ] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1={ @@ -636,8 +501,8 @@ {field: 'SkuNo',title: '鐗╂枡缂栫爜',align: 'center',width: 100}, {field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center',width: 200}, {field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center',width: 130}, - {field: 'LotNo',title: '鎵规鍙�',align: 'center',width: 100}, - {field: 'SupplierLot',title: '渚涜揣鎵规',align: 'center',width: 100}, + {field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center',width: 100}, + {field: 'SupplierLot',title: '鍘熷巶鎵瑰彿',align: 'center',width: 100}, {field: 'Qty',title: '鏁伴噺',align: 'center',width: 70}, {field: 'FactQty',title: '宸茬粍鏁伴噺',align: 'center',width: 90}, {field: 'CompleteQty',title: '瀹屾垚鏁伴噺',align: 'center',width: 90}, @@ -649,6 +514,7 @@ {field: 'PackagName',title: '鍖呰鍚嶇О',align: 'center',width: 110,}, {field: 'IsBale',title: '鏄惁瑁瑰寘',align: 'center',width: 150}, {field: 'IsBelt',title: '鏄惁鎵撳甫',align: 'center',width: 150}, + {field: 'OrderDetailCode',title: '涓婃父鍗曞彿',align: 'center',width: 180}, {field: 'UDF1',title: '鑷畾涔夊垪1',align: 'center',width: 140}, {field: 'UDF2',title: '鑷畾涔夊垪2',align: 'center',width: 140}, {field: 'UDF3',title: '鑷畾涔夊垪3',align: 'center',width: 140}, @@ -663,186 +529,7 @@ var DetailColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTablemx(asnNo) { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // ASNNo:asnNo - // }; - // table.render({ - // elem: '#LAY-app-content-list2', - // url: IP + "/BllAsn/GetArrivalNoticeDetailList", - // method: 'POST', - // height: h2, - // id: 'LAY-app-content-list2', - // where: param, - // contentType: 'application/json', - // toolbar:'#toolbarDemo', - // defaultToolbar: ['filter'], //'print', 'exports' - // headers:{ToKen:$.cookie('token')}, - // page: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function() { - // setRight() - // }, - // cols: [ - // [{ - - // title: '搴忓彿', - // type: 'numbers', - // width: 50, - // align: 'center', - // fixed: 'left' - // }, - // { - // field: 'ASNNo', - // title: '鍏ュ簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // sort: true, - // width: 180 - // }, - // { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // width: 100 - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // width: 200 - // }, { - // field: 'Standard', - // title: '鐗╂枡瑙勬牸', - // align: 'center', - // width: 130 - // }, { - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // width: 100 - // },{ - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // fixed: 'right', - // width: 100, - // hide:true - // }, { - // field: 'Qty', - // title: '鏁伴噺', - // align: 'center', - // width: 70 - // }, { - // field: 'FactQty', - // title: '宸茬粍鏁伴噺', - // align: 'center', - // width: 90 - // }, { - // field: 'CompleteQty', - // title: '瀹屾垚鏁伴噺', - // align: 'center', - // width: 90 - // }, - // { - // field: 'CompleteTime', - // title: '瀹屾垚鏃堕棿', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate(d.CompleteTime); - // } - // }, - // { - // field: 'UnitName', - // title: '璁¢噺鍗曚綅', - // align: 'center', - // width: 90 - // }, - // { - // field: 'Price', - // title: '鍗曚环', - // align: 'center', - // width: 65, - // hide:true - // }, { - // field: 'Money', - // title: '閲戦', - // align: 'center', - // width: 65, - // hide:true - // }, - // { - // field: 'LotText', - // title: '鎵规鎻忚堪', - // align: 'center', - // width: 120 - // },{ - // field: 'PackagName', - // title: '鍖呰鍚嶇О', - // align: 'center', - // width: 110, - // }, { - // field: 'IsBale', - // title: '鏄惁瑁瑰寘', - // align: 'center', - // width: 150, - // hide:true - // }, { - // field: 'IsBelt', - // title: '鏄惁鎵撳甫', - // align: 'center', - // width: 150, - // hide:true - // },{ - // field: 'CreateUserName', - // title: '鍒涘缓浜�', - // align: 'center', - // width: 100 - // }, - // { - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate(d.CreateTime); - // } - // }, - // // { - // // field: 'Id', - // // title: '鍏ュ簱鏄庣粏Id', - // // align: 'center', - // // hide: true, - // // width: 150, - // // }, - // { - // field: 'UpdateUserName', - // title: '淇敼浜�', - // align: 'center', - // hide:true, - // width: 150, - // }, - // { - // field: 'UpdateTime', - // title: '淇敼鏃堕棿', - // align: 'center', - // hide:true, - // width: 150, - // templet: function (d) { - // return formatDate(d.UpdateTime); - // } - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 100, - // align: 'left', - // toolbar: '#toolbarDemoList' - // }] - // ] - // }); - //#endregion + //#region 鑷畾涔夎〃澶� var colsJson2 @@ -1193,7 +880,7 @@ layer.open({ type: 2, title: '鐢熸垚鏍囩', - content: 'LabelPrintSelect.html?Id='+id, + content: 'LabelPrintSelect.html?Id='+id+'&SupplierLot='+data.SupplierLot, maxmin: true, area: ['480px', '615px'], btn: ['纭畾','鍙栨秷'], @@ -1207,7 +894,9 @@ console.log(field); //鎻愪氦 Ajax 鎴愬姛鍚庯紝闈欐�佹洿鏂拌〃鏍间腑鐨勬暟鎹� //"&Level="+field.level+"&Type="+field.type+"&BoxType="+field.boxType+"&Qty="+field.qty+ - var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty+"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime+"&StoreTime="+field.storeTime; + var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty + +"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime + +"&StoreTime="+field.storeTime+"&SupplierLot="+field.SupplierLot; layer.open({ type: 2, @@ -1230,7 +919,7 @@ layer.open({ type: 2, title: '鐢熸垚鏍囩', - content: 'LabelPrintSelect.html?Id='+id+'&Type=4', + content: 'LabelPrintSelect.html?Id='+id+'&Type=4'+'&SupplierLot='+data.SupplierLot, maxmin: true, area: ['480px', '615px'], btn: ['纭畾','鍙栨秷'], @@ -1244,7 +933,9 @@ console.log(field); //鎻愪氦 Ajax 鎴愬姛鍚庯紝闈欐�佹洿鏂拌〃鏍间腑鐨勬暟鎹� //"&Level="+field.level+"&Type="+field.type+"&BoxType="+field.boxType+"&Qty="+field.qty+ - var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty+"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime+"&StoreTime="+field.storeTime; + var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty + +"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime + +"&StoreTime="+field.storeTime+'&SupplierLot='+field.SupplierLot; layer.open({ type: 2, -- Gitblit v1.8.0