123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775 |
- <%@ page contentType="text/html;charset=UTF-8"%>
- <%@ include file="/WEB-INF/include/taglibs.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <%@ include file="/WEB-INF/include/common.jsp"%>
- <script type="text/javascript" src="${ctx}/script/common/jquery.comboboxRef.js"></script>
- <script type="text/javascript" src="${ctx}/script/common/jquery.combogridRef.js"></script>
- <script type="text/javascript" src="${ctx}/script/common/jquery-easyui-1.3.2/plugins/jquery.quickfilter.js"></script>
- <script type="text/javascript">
-
- var date = new Date();
- var now = date.getFullYear()+""+(date.getMonth()+1)+""+date.getDate();
- var receiptId = "${receiptId }";
- var autoLotNumber = "${autoLotNumber }";
- var lastIndex = -1;
- var editIndex;
- var unEditableAttributes = ${requestScope.unEditableAttributes};
- var functionId='${functionId}';
- var itemMap = ${requestScope.itemMap};
-
- function collectFlagFormat(value,row)
- {
- var item = itemMap[row.itemId];
-
- if (item.isCollectProductDate == 1)
- {
- if (item.collectProductType == 0)
- {
- return "生产日期";
- }
- else if (item.collectProductType == 1)
- {
- return "到期日期";
- }
- }
- else if (item.isCollectProductDate == 0)
- {
- return '不采集';
- }
- }
-
- function collectDateFormat(value,row)
- {
- var item = itemMap[row.itemId];
-
- if (item.collectProductType == 0)
- {
- return row.produceDate;
- }
- else if (item.collectProductType == 1)
- {
- return row.expiredDate;
- }
- }
-
- $(function(){
- var receiptButtonData = '${requestScope.receiptButtons}';
- //定义页面元素
- var operate = '${requestScope.operate}';
- var $tabs = $("#tabs");
- $tabs.tabs('select',"基本信息");
-
- var receiptData = ${ requestScope.receiptData };
- $.ReceiptEdit = new $.AbstractEdit({entity:"Receipt",formId:"receiptForm",operate:operate,id:"receiptId",functionId : functionId }) ;
- //扩展或重写方法
- $.fn.extend( $.ReceiptEdit ,{
- generateDifferent : function(){
- $.messager.confirm('提示', '确定要对本收货单进行生成差异单吗?', function(result) {
- if (result) {
- var url = WEBROOT + "/{0}/generateDifferent.action?id="+receiptId;
- url = url.format($.ReceiptEdit.entity);
- ajaxRequest(url, null, function(response){
- var mes = "";
- if(response.code == "success"){
- $.ReceiptDetailList.datagrid.datagrid("reload");
- mes = "确认成功,生成了差异单!";
- }else if(response.code == "fail"){
- if(response.errorDesc == "-1"){
- mes = "收货单不存在!";
- }else if(response.errorDesc == "-2"){
- mes = "没有收货单明细!";
- }else if(response.errorDesc == "-3"){
- mes = "没有差异,不需要生成差异单!";
- }else if(response.errorDesc == "-4"){
- mes = "收货单类型不是退货入库,无法生成差异单!";
- }else if(response.errorDesc == "-5"){
- mes = "有其他人员正在操作请稍后!";
- }else {
- mes = response.errorDesc;
- }
- }
- $.messager.show({
- title:'提示',
- msg: mes,
- timeout:5000,
- showType:'slide'
- });
- }, null, $.ReceiptEdit);
- }
- });
- },
- receiptConfirm : function(){
- $.messager.confirm('提示', '确定要对本收货单进行确认收货吗?', function(result) {
- if (result) {
- var url = WEBROOT + "/{0}/doReceiptConfirm.action?id="+receiptId;
- url = url.format($.ReceiptEdit.entity);
- ajaxRequest(url, null, function(response){
- var mes = "";
- if(response.code == "success"){
- $.ReceiptDetailList.datagrid.datagrid("reload");
- if(response.data == "3"){
- mes = "确认成功,同时生成了质检任务与入储任务!";
- }else if(response.data == "2"){
- mes = "确认成功,生成了质检任务!";
- }else if(response.data == "1"){
- mes = "确认成功,生成了入储任务!";
- }
- }else if(response.code == "fail"){
- if(response.errorDesc == "0"){
- mes = "收货单或者收货单明细存在数据问题,无法为你确认收货!";
- }else if(response.errorDesc == "-1"){
- mes = "没有需要确认收货的收货记录详情!";
- }else if(response.errorDesc == "-2"){
- mes = "确认收货的过程中发生数据异常错误!";
- }else if(response.errorDesc == "-3"){
- mes = "不能进行分批收货的记录,必须要本次收货数量等于预期收货数量!";
- }else if(response.errorDesc == "-4"){
- mes = "确认收货的过程中发生未知错误!";
- }else if(response.errorDesc == "-5"){
- mes = "有其他人员正在操作请稍后!";
- }else {
- mes = response.errorDesc;
- }
- }
- $.messager.show({
- title:'提示',
- msg: mes,
- timeout:5000,
- showType:'slide'
- });
- }, null, $.ReceiptEdit);
- }
- });
- },
- quickReceiptConfirm : function(){
- $.messager.confirm('提示', '确定要对本收货单进行快速收货吗?', function(result) {
- if (result) {
- var url = WEBROOT + "/{0}/quickReceiptConfirm.action?id="+receiptId;
- url = url.format($.ReceiptEdit.entity);
- ajaxRequest(url, null, function(response){
- var mes = "";
- if(response.code == "success"){
- $.ReceiptDetailList.datagrid.datagrid("reload");
- if(response.data == "3"){
- mes = "确认成功,同时生成了质检任务与入储任务!";
- }else if(response.data == "2"){
- mes = "确认成功,生成了质检任务!";
- }else if(response.data == "1"){
- mes = "确认成功,生成了入储任务!";
- }
- }else if(response.code == "fail"){
- if(response.errorDesc == "0"){
- mes = "收货单或者收货单明细存在数据问题,无法为你确认收货!";
- }else if(response.errorDesc == "-1"){
- mes = "没有需要确认收货的收货记录详情!";
- }else if(response.errorDesc == "-2"){
- mes = "确认收货的过程中发生数据异常错误!";
- }else if(response.errorDesc == "-3"){
- mes = "不能进行分批收货的记录,必须要本次收货数量等于预期收货数量!";
- }else if(response.errorDesc == "-4"){
- mes = "确认收货的过程中发生未知错误!";
- }else if(response.errorDesc == "-5"){
- mes = "有其他人员正在操作请稍后!";
- }else {
- mes = response.errorDesc;
- }
- }
- $.messager.show({
- title:'提示',
- msg: mes,
- timeout:5000,
- showType:'slide'
- });
- }, null, $.ReceiptEdit);
- }
- });
- },
- printPick : function(){
- var url = WEBROOT + "/Receipt/printReceiptCheck.action";
- var ids = [receiptId];
- var postData={
- ids:$.encodeJSON(ids)
- }
- ajaxRequest(url, postData, successPrintCheck, null, this);
- },
- preSorting:function(){
- //弹出预分捡界面
- var url = WEBROOT + "/Receipt/preSortingCheck.action";
- var postData={
- receiptId:receiptId
- }
- ajaxRequest(url, postData, function(response){
- if (response.code == 'success')
- {
- $('#preSortingWindow').window('open');
- }
- else if (response.code == 'fail')
- {
- showMsg('提示', response.errorDesc);
- }
- }, null, this);
- },
- sortingScan:function(){
- var url = WEBROOT + '/Receipt/sortingScanIndex.action?receiptId=' + receiptId;
-
- parent.parent.addOrUpdateTab("分拣扫描",url);
- }
- });
-
- $("#sortId").combobox({
- valueField : 'sortingId',
- textField : 'sortingName',
- url : WEBROOT + "/loadData.action?entity=sortingRules",
- mode : 'remote',
- async:false,
- onBeforeLoad:function(param){
- param.customerId = receiptData.customerId;
- }
- });
-
-
- $("#doPreSorting").click(function(){
- var url = WEBROOT + "/Receipt/doPreSorting.action";
- var postData={
- receiptId:receiptId,
- sortingId:$("#sortId").combobox('getValue')
- }
- ajaxRequest(url, postData, function(response){
- if (response.code == 'success')
- {
- showMsg('提示', '预分捡成功');
- }
- else if (response.code == 'fail')
- {
- showMsg('提示', response.errorDesc);
- }
- }, null, this);
- });
-
- if( !$.isEmpty(receiptButtonData )){
- //构建权限按钮
- var jsonButtons = JSON.parse(receiptButtonData);
- $.buildToolbar( $("#receiptToolbar"),jsonButtons );
- };
- $.ReceiptEdit.init();
- if( !$.isEmpty( receiptData )){
- $.ReceiptEdit.fillData( receiptData );
- } ;
- $('#separateWindow').window({
- title : '产品拆分',
- width : 700,
- height : 300,
- closed : true,
- cache : false,
- modal : true
- });
-
- $('#preSortingWindow').window({
- title : '预分捡',
- width : 500,
- height : 200,
- closed : true,
- cache : false,
- modal : true
- });
- var normalFlagCombobox = new $.newCombobox({
- valueField : 'normalFlag',
- textField : 'normalFlag',
- data : ${normalFlags},
- id : "normalFlag"
- });
- var buttonData = '${requestScope.receiptDetailButtons}';
- //实例化查询表单,当前页面只能实例化一次
- var searchForm = $("#searchForm").searchForm();
- //实例化实体List
- $.ReceiptDetailList = new $.AbstractList( {entity:"ReceiptDetail",searchForm:searchForm,
- dblclick : function(index, row){
- var url = WEBROOT + "/{0}/showEdit.action?id={1}&receiptId={2}";
- url = url.format(this.entity, row[this.id], receiptId);
- this.innerFrame.attr("src", url);
- this.tabs.tabs('select', "内容");
- },
- onClickCell : function (rowIndex, field, value) {
- var rows = $.ReceiptDetailList.datagrid.datagrid('getRows');
- var row = rows[rowIndex];
-
- if(field == "thisReceiveQuantity" || field == "collectDate"){
- editIndex = rowIndex;
- if (lastIndex != rowIndex) {
- $.ReceiptDetailList.datagrid.datagrid('cancelEdit', lastIndex);
- $.ReceiptDetailList.datagrid.datagrid('beginEdit', rowIndex);
- var edits = $.ReceiptDetailList.datagrid.datagrid('getEditors', rowIndex);
- //$(edits[0].target).bind("keyup",function(e){
- // if(e.keyCode == 13){
- // enterHandler();
- // }
- //});
-
- var thisReceiveQuantity = row.thisReceiveQuantity;
- if (!thisReceiveQuantity)
- {
- thisReceiveQuantity=0;
- }
-
- $(edits[0].target).numberbox({
- min:0,
- value:thisReceiveQuantity
- });
-
- var item = itemMap[row.itemId];
-
- if (item.collectProductType == 0 && row.produceDate)
- {
- $(edits[1].target).datebox('setValue',row.produceDate);
- }
- else if (item.collectProductType == 1 && row.expiredDate)
- {
- $(edits[1].target).datebox('setValue',row.expiredDate);
- }
-
- for ( var i = 0; i < edits.length; i++)
- {
- var editItem = edits[i];
-
- $(editItem.target).bind("keyup",function(e){
- if(e.keyCode == 13){
- enterHandler();
- }
- });
- }
-
- lastIndex = rowIndex;
- }
- }
- }}) ;
- if( !$.isEmpty(buttonData )){
- //构建权限按钮
- var jsonButtons = JSON.parse(buttonData);
- $.buildToolbar( $("#toolbar"),jsonButtons );
- };
- var separateRow;
- //扩展或重写方法
- $.fn.extend( $.ReceiptDetailList ,{
- add : function() {
- if ($.ReceiptEdit.operate == 'edit') {
- var url = WEBROOT + "/{0}/showEdit.action?receiptId={1}";
- url = url.format(this.entity, receiptId);
- this.innerFrame.attr("src", url);
- this.tabs.tabs('select', "内容");
- } else {
- $.messager.show({
- title : '提示',
- msg : "请先保存产品后再执行操作!"
- });
- }
- },
- separate : function(){
- var rows = this.getSelections();
- var ids = [];
- for ( var i = 0; i < rows.length; i++) {
- var mes = "";
- if (rows[i][this.id] && (!rows[i]["isAllreadyScaned"] || rows[i]["isAllreadyScaned"] == 0)) {
- if(rows[i]["lotsAllowed"] == 1){
- ids.push(rows[i][this.id]);
- continue;
- }else{
- mes = "选择的记录不允许分批收货,不能进行拆分";
- }
- }else{
- mes = "选择的记录已经扫描,不能进行拆分";
- }
- $.messager.alert("提示", mes, "error");
- return;
- }
- if (ids.length == 1) {
- $.messager.confirm('提示', '确定要对此记录进行拆分吗?',
- function(result) {
- if (result) {
- separateRow = rows[0];
- if(separateRow.isGatherLotNumber){
- $("#lotNumber").validatebox({required:true});
- }
- normalFlagCombobox.init();
- $('#separateWindow').window("open");
- if(autoLotNumber == 1){
- if(separateRow.lotNumber && separateRow.lotNumber.indexOf(now) == 0){
- $("#lotNumber").val(separateRow.lotNumber);
- }else{
- $("#lotNumber").val(now+""+(date.getHours()+1)+""+date.getMilliseconds());
- }
- }
- }
- });
- } else {
- $.messager.alert("提示", "请正确选择要拆分的记录,一次必须并且只能操作一条记录", "error");
- }
- }
-
- });
- $("#saveSeparateBtn").click(function(){
- if ($("#separateForm").form('validate')) {
- var thisReceiveQuantity = $("#thisReceiveQuantity").val();
- //判断本次收货数量是否大于被拆分明细的(预期数量-实际收货数量)
- if(thisReceiveQuantity <= separateRow.expectedReceiveQuantity-separateRow.actualReceiveQuantity){
- //判断产品形态与被拆分的一致,且被拆分的含有预售数量
- if(separateRow.preSaleQuantity && separateRow.preSaleQuantity > 0 && $("#normalFlag").combobox("getValue") == separateRow.normalFlag){
- //拆分出的明细本次收货数量是否大于被拆分明细的预售数量
- if(thisReceiveQuantity > separateRow.preSaleQuantity){
- //明细中预售数量为被拆分明细的预售数量
- $("#preSaleQuantity").val(separateRow.preSaleQuantity);
- }else{
- //预售数量为明细的数量
- $("#preSaleQuantity").val(thisReceiveQuantity);
- }
- }
- //提交Form表单
- var url = WEBROOT + "/{0}/doSeparate.action?id={1}";
- url = url.format($.ReceiptDetailList.entity, separateRow.id);
- var postData = {
- "formData" : JSON.stringify($("#separateForm").getFormValue())
- };
- ajaxRequest(url, postData, function(response){
- if(response.code == "success"){
- $.ReceiptDetailList.datagrid.datagrid("reload");
- $('#separateWindow').window("close");
- }
- }, null, this);
- }else{
- $.messager.alert("提示", "拆分的本次收货数量必须小于等于预期收货数量减去实际收货数量的差值:"+(separateRow.expectedReceiveQuantity-separateRow.actualReceiveQuantity), "error");
- }
- }
- });
- /** 自动隐藏**/
- var rids = new Array('autoTRReceiptcysxx','autoTRReceiptfhrxx');
- autoTRClick(rids);
- });
- function successPrintCheck(data){
- // $.messager.confirm('提示', '共【' + data[0].length + '】个订单可以打印,确定要打印吗?',
- $.messager.confirm('提示', '本订单可以打印,确定要打印吗?',
- function(result) {
- if (result) {
- // if(data[0].length>0){
- var url = WEBROOT + "/Receipt/doPrintReceipt.action";
- var postData={
- // ids:$.encodeJSON(data[0])
- ids:$.encodeJSON([receiptId])
- };
- ajaxRequest(url, postData, successQueryPrint, null, this);
- // }
- }
- });
- }
-
- function successQueryPrint(ajaxResponse){
- if( ajaxResponse.code=='fail'){
- alertMsg("打印查询","查询要打印的订单出现异常:"+ajaxResponse.errorDesc,"error");
- }else{
- var data = ajaxResponse.data;
- var config = {
- showPrinterSelect:"1",
- showPreview:1,
- autoMatch:1,
- templeteType:'收货单'
- };
- var printPlugIn = new top.PrintPlugIn(config);
- printPlugIn.print(data);
- }
- }
- function enterHandler(){
- $.ReceiptDetailList.datagrid.datagrid('endEdit', editIndex);
-
- saveChange();
- }
-
- function saveChange(){
- var changes = $.ReceiptDetailList.datagrid.datagrid("getChanges");
- if(changes && changes.length > 0){
- receiptDetailId = changes[0].id;
- thisReceiveQuantity = changes[0].thisReceiveQuantity;
- var expectedReceiveQuantity = changes[0].expectedReceiveQuantity;
- var actualReceiveQuantity = changes[0].actualReceiveQuantity;
- if(thisReceiveQuantity >= 0){
- var errorMes = "";
- if(expectedReceiveQuantity - actualReceiveQuantity - thisReceiveQuantity < 0){
- lastIndex = -1;
- errorMes = "本次收货数量应该小于等于预期收货数量与实际收货数量的差值:"+(expectedReceiveQuantity - actualReceiveQuantity);
- $.ReceiptDetailList.datagrid.datagrid("rejectChanges");
- $.messager.alert('提示',errorMes);
- }else{
- //提交列表修改
- var url = WEBROOT + "/{0}/doEditCellSave.action";
- url = url.format($.ReceiptDetailList.entity);
- var postData = {
- "id" : receiptDetailId,
- "thisReceiveQuantity" : thisReceiveQuantity,
- collectDate : changes[0].collectDate
- };
- ajaxRequest(url, postData, function(response){
- var mes = "";
- if(response.code == "success"){
- $.ReceiptDetailList.datagrid.datagrid('acceptChanges');
- $.ReceiptDetailList.datagrid.datagrid("reload");
- mes = "更新成功!";
- }else{
- $.ReceiptDetailList.datagrid.datagrid('rejectChanges');
- $.ReceiptDetailList.datagrid.datagrid("reload");
- mes = response.errorDesc;
- }
- $.messager.alert("提示", mes);
- lastIndex = -1;
- }, null, this);
- //return;
- }
- }else{
- errorMes = "请输入大于等于0的值";
- $.messager.alert('提示',errorMes);
- }
- //$.ReceiptDetailList.datagrid.datagrid('rejectChanges');
- //$.ReceiptDetailList.datagrid.datagrid('beginEdit', editIndex);
- //var edits = $.ReceiptDetailList.datagrid.datagrid('getEditors', editIndex);
- //lastIndex = editIndex;
- //$(edits[0].target).val(thisReceiveQuantity);
- //$(edits[0].target).bind("keyup",function(e){
- // if(e.keyCode == 13){
- // enterHandler();
- // }
- //});
-
- }else{
- lastIndex = -1;
- }
- }
- </script>
- <script type="text/javascript" src="${ctx}/script/wms/receipt/receiptEdit.js"></script>
- <script type="text/javascript">
- $(function(){
- disabledAttributes($("#body"),unEditableAttributes);
- });
- </script>
- </head>
- <body id="body">
- <div style="font-size: 12px;" fit="true">
- <form id="receiptForm" method="post">
- <div id="receiptToolbar" style="padding:5px;border:1px solid #ddd;">
- </div>
- <input type="hidden" name="receiptId"></input>
- <table style="width: 100%">
- <tr>
- <td>入库订单号:</td>
- <td><input class="easyui-validatebox" name="inboundId"></input>
- </td>
- <td>客户查询号:</td>
- <td><input class="easyui-validatebox" name="customerRefferenceId"></input>
- </td>
- <td>收货单状态 :</td>
- <td>
- <s:select list="#request.receiptStatus" listKey="id" listValue="dictionaryName" myType="easyui-combobox" cssStyle="width: 155px" name="receiptStatus" theme="simple"></s:select>
- </td>
- </tr>
- <tr>
- <td>仓库:</td>
- <td>
- <s:select list="#request.wareHouses" listKey="warehouseId" listValue="warehouseName" myType="easyui-combobox" cssStyle="width: 155px" name="warehouseId" id="warehouseId" theme="simple"></s:select>
- </td>
- <td>货主:</td>
- <td>
- <input myType="easyui-combogrid" style="width: 155px" required="true" id="customerId" name="customerId"></input>
- </td>
- </tr>
- <tr>
- <td>期望收货数量:</td>
- <td><input class="easyui-numberbox" name="expectedReceiveQuantity"></input>
- </td>
- <td>预期总价值:</td>
- <td><input class="easyui-numberbox" name="expectedOrderFee"></input>
- </td>
- <td>预售数量:</td>
- <td><input class="easyui-numberbox" name="preSaleQuantity"></input>
- </td>
- </tr>
- <tr>
- <td>实际收货数量:</td>
- <td><input class="easyui-numberbox" name="actualReceiveQuantity"></input>
- </td>
- <td>预期到货时间:</td>
- <td><input class="easyui-datebox" name="expectedReceiveTime"></input>
- </td>
- <td>实际到货时间:</td>
- <td><input class="easyui-datebox" name="actualReceiveTime"></input>
- </td>
- </tr>
- <tr>
- <td colspan="6">
- <a id="autoTRReceiptfhrxx" onclick="toggerTR(this);">发货人信息:</a>
- <hr></td>
- </tr>
- <tr name="autoTRReceiptfhrxx">
- <td>发货人:</td>
- <td><input class="easyui-validatebox" name="senderName"></td>
- <td>联系人:</td>
- <td><input class="easyui-validatebox" name="sendContactor"></td>
- <td>国家:</td>
- <td><input class="easyui-validatebox" name="sendCountry"></td>
- </tr>
- <tr name="autoTRReceiptfhrxx">
- <td>省:</td>
- <td><input class="easyui-validatebox" name="sendProvince"></td>
- <td>市:</td>
- <td><input class="easyui-validatebox" name="sendCity"></td>
- <td>街道:</td>
- <td><input class="easyui-validatebox" name="sendStreet"></td>
- </tr>
- <tr name="autoTRReceiptfhrxx">
- <td>联系电话:</td>
- <td><input class="easyui-validatebox" name="sendContactorPhone"></td>
- <td>手机:</td>
- <td><input class="easyui-validatebox" name="sendContactorMobile"></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td colspan="6">
- <a id="autoTRReceiptcysxx" onclick="toggerTR(this);">承运商信息:</a>
- <hr>
- </td>
- </tr>
- <tr name="autoTRReceiptcysxx">
- <td>承运商:</td>
- <td>
- <input myType="easyui-combogrid" style="width: 155px" id="carrierId" name="carrierId"></input>
- </td>
- <td>车辆号码:</td>
- <td><input class="easyui-validatebox" name="truckNumber"></input>
- </td>
- <td>司机:</td>
- <td><input class="easyui-validatebox" name="driver"></input>
- </td>
- </tr>
- <tr name="autoTRReceiptcysxx">
- <td>身份证:</td>
- <td><input class="easyui-validatebox" name="indentityCard"></input>
- </td>
- <td>司机联系方式:</td>
- <td><input class="easyui-validatebox" name="drliverPhone"></input>
- </td>
- <td>送货评分:</td>
- <td><input class="easyui-numberbox" name="deliveryScore"></input>
- </td>
- </tr>
- <tr name="autoTRReceiptcysxx">
- <td>承运单号:</td>
- <td><input class="easyui-validatebox" name="carrierTrackingNumber"></input>
- </td>
- <td>件数:</td>
- <td><input class="easyui-numberbox" name="packageNum"></input>
- </td>
- <td>重量:</td>
- <td><input class="easyui-numberbox" name="weight"></input>
- </td>
- </tr>
- <tr name="autoTRReceiptcysxx">
- <td>体积:</td>
- <td><input class="easyui-numberbox" name="cube"></input>
- </td>
- </tr>
- </table>
- </form>
- <div id="tabs" class="easyui-tabs" fit="true" style="height:350px">
- <div title="收货明细">
- <form id="searchForm" action="#" method="post">
- <input class="easyui-validatebox" type="hidden" style="vertical-align:middle" name="receiptId" value="${receiptId==null?0:receiptId }" condition ='"operator":"="' />
- </form>
- <div id="toolbar" class="toolbar"></div>
- <table id="maingrid" data-options="<s:if test="#request.receiptData.inboundKind != 2003">fitColumns:true</s:if>">
- <thead>
- <tr>
- <th data-options="field:'id',hidden:true">主键</th>
- <th data-options="field:'ck',checkbox:true">编码</th>
- <th data-options="field:'itemCode',align:'center',width:100">商品代码</th>
- <th data-options="field:'itemName',align:'center',width:100,hfilter:{type:'text',options:{ }}">商品名称</th>
- <th data-options="field:'normalFlag',align:'center',width:100">产品形态</th>
- <th data-options="field:'specification',align:'center',width:100">产品规格</th>
- <th data-options="field:'expectedReceiveQuantity',align:'center',width:100">预期数量</th>
- <th data-options="field:'actualReceiveQuantity',align:'center',width:100">实际数量</th>
- <th data-options="field:'preSaleQuantity',align:'center',width:100">预售数量</th>
- <th data-options="field:'thisReceiveQuantity',align:'center',width:100,editor:'numberbox'">本次数量</th>
- <s:if test="#request.receiptData.inboundKind == 2003">
- <th data-options="field:'orderId',align:'center',width:100">发货订单号</th>
- <th data-options="field:'deliverDocumentId',align:'center',width:100">发货单号</th>
- </s:if>
- <th data-options="field:'lotNumber',align:'center',width:100">批次</th>
- <th data-options="field:'itemGroupName',align:'center',width:100,hfilter:{type:'text',options:{ }}">产品组名称</th>
- <th data-options="field:'collectFlag',align:'center',width:100,formatter:collectFlagFormat">采集类型</th>
- <th data-options="field:'collectDate',align:'center',width:100,formatter:collectDateFormat,editor:{type:'datebox'}">生产/到期日期</th>
- </tr>
- </thead>
- </table>
- </div>
- <div title="内容">
- <iframe id="innerFrame" name="innerTab" scrolling="auto" frameborder="0" style="width:100%;height:99.4%;border:none;"></iframe>
- </div>
- </div>
- </div>
- <div style="display: none">
- <div id="separateWindow">
- <form id="separateForm" method="post">
- <input name="id" type="hidden">
- <input name="preSaleQuantity" id="preSaleQuantity" type="hidden">
- <table style="width: 100%">
- <tr>
- <td><div class="star">*</div>产品形态:</td>
- <td><select id="normalFlag" class="easyui-combobox" name="normalFlag" style="width: 155px" data-options="required: true">
- </select></td>
- <td>本次收货数量:</td>
- <td><input class="easyui-numberbox" name="thisReceiveQuantity" id="thisReceiveQuantity" data-options="required: true"></td>
- <td>批次:</td>
- <td><input class="easyui-validatebox" name="lotNumber" id="lotNumber">
- </td>
- </tr>
- <tr>
- <td>保质期:</td>
- <td><input class="easyui-numberbox" name="shelfLife"></td>
- <td>生产日期:</td>
- <td><input class="easyui-datetimebox" name="produceDate"></td>
- <td>到期日期:</td>
- <td><input class="easyui-datetimebox" name="expiredDate">
- </td>
- </tr>
- <tr>
- <td colspan="6" align="center">
- <a href="#" icon="icon-save" id="saveSeparateBtn" class="easyui-linkbutton">保存</a>
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- <div style="display: none">
- <div id="preSortingWindow">
- <table style="width: 100%">
- <tr>
- <td>
- 预分捡规则:
- </td>
- <td>
- <input myType="easyui-combobox" style="width: 155px" required="true" id="sortId"></input>
- </td>
- </tr>
- <tr>
- <td colspan="6" align="center">
- <a href="#" icon="icon-save" id="doPreSorting" class="easyui-linkbutton">执行预分捡</a>
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </body>
- </html>
|