| | |
| | | @TableField("qty_box") |
| | | private Double qtyBox; |
| | | |
| | | /** |
| | | * 客æ·åç§° |
| | | */ |
| | | @ApiModelProperty(value= "客æ·åç§°") |
| | | private String str3; |
| | | |
| | | /** |
| | | * 项ç®ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "项ç®ä¿¡æ¯") |
| | | private String str4; |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(value= "ç±»å«") |
| | | private String str5; |
| | | |
| | | public String getStr5$(){ |
| | | if (Cools.isEmpty(this.str5) ){ |
| | | return ""; |
| | | } |
| | | if (this.str5.equals("1")){ |
| | | return "åææ"; |
| | | } |
| | | if (this.str5.equals("2")){ |
| | | return "æå"; |
| | | } |
| | | if (this.str5.equals("3")){ |
| | | return "åæå"; |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.selectById(this.locNo); |
| | |
| | | @TableField("qty_box") |
| | | private Double qtyBox; |
| | | |
| | | /** |
| | | * 客æ·åç§° |
| | | */ |
| | | @ApiModelProperty(value= "客æ·åç§°") |
| | | private String str3; |
| | | |
| | | /** |
| | | * 项ç®ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "项ç®ä¿¡æ¯") |
| | | private String str4; |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(value= "ç±»å«") |
| | | private String str5; |
| | | |
| | | public String getStr5$(){ |
| | | if (Cools.isEmpty(this.str5) ){ |
| | | return ""; |
| | | } |
| | | if (this.str5.equals("1")){ |
| | | return "åææ"; |
| | | } |
| | | if (this.str5.equals("2")){ |
| | | return "æå"; |
| | | } |
| | | if (this.str5.equals("3")){ |
| | | return "åæå"; |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | public PltBarcode() {} |
| | | |
| | | public PltBarcode(String barcode,Double allQty,Double qtyBox,String source,String supplier,String vendor,Double allWeight,String billNo,Integer seqNo,Integer billType,String matNo,String matName,Double qty,String locNo,String specs,String unit,String size,String color,Double weight,String memo,Integer linkErp,Integer ioStatus,Date ioTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | |
| | | @ApiModelProperty(value= "æ¯ç®±æ°é") |
| | | @TableField("qty_box") |
| | | private Double qtyBox; |
| | | |
| | | /** |
| | | * 客æ·åç§° |
| | | */ |
| | | @ApiModelProperty(value= "客æ·åç§°") |
| | | private String str3; |
| | | |
| | | /** |
| | | * 项ç®ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "项ç®ä¿¡æ¯") |
| | | private String str4; |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(value= "ç±»å«") |
| | | private String str5; |
| | | |
| | | public String getStr5$(){ |
| | | if (Cools.isEmpty(this.str5) ){ |
| | | return ""; |
| | | } |
| | | if (this.str5.equals("1")){ |
| | | return "åææ"; |
| | | } |
| | | if (this.str5.equals("2")){ |
| | | return "æå"; |
| | | } |
| | | if (this.str5.equals("3")){ |
| | | return "åæå"; |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | @ApiModelProperty(value = "æ¯ç®±æ°é") |
| | | @TableField("qty_box") |
| | | private Double qtyBox; |
| | | |
| | | |
| | | /** |
| | | * 客æ·åç§° |
| | | */ |
| | | @ApiModelProperty(value= "客æ·åç§°") |
| | | private String str3; |
| | | |
| | | /** |
| | | * 项ç®ä¿¡æ¯ |
| | | */ |
| | | @ApiModelProperty(value= "项ç®ä¿¡æ¯") |
| | | private String str4; |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(value= "ç±»å«") |
| | | private String str5; |
| | | |
| | | public String getStr5$(){ |
| | | if (Cools.isEmpty(this.str5) ){ |
| | | return ""; |
| | | } |
| | | if (this.str5.equals("1")){ |
| | | return "åææ"; |
| | | } |
| | | if (this.str5.equals("2")){ |
| | | return "æå"; |
| | | } |
| | | if (this.str5.equals("3")){ |
| | | return "åæå"; |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | pltBarcode.setVendor(combMat.getVendor()); |
| | | pltBarcode.setSource(combMat.getSource()); |
| | | pltBarcode.setQtyBox(matCode.getStr6()); |
| | | pltBarcode.setStr3(matCode.getStr3()); |
| | | pltBarcode.setStr4(matCode.getStr4()); |
| | | pltBarcode.setStr5(matCode.getStr5()); |
| | | if (!pltBarcodeService.insert(pltBarcode)) { |
| | | throw new CoolException("ä¿åæ°æ®å¤±è´¥"); |
| | | } |
| | |
| | | wrkDetl.setVendor(detlDto.getLocDetl().getVendor()); |
| | | wrkDetl.setSource(detlDto.getLocDetl().getSource()); |
| | | wrkDetl.setSupplier(detlDto.getLocDetl().getSupplier()); |
| | | wrkDetl.setStr5(matCode.getStr5()); |
| | | wrkDetl.setStr4(matCode.getStr4()); |
| | | wrkDetl.setStr3(matCode.getStr3()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("ä¿å工使¡£æç»å¤±è´¥"); |
| | | } |
| | |
| | | locDetl.setQtyBox(matCode.getStr6()); |
| | | locDetl.setAllQty(matCode.getStr6()*adjust.getCount()); |
| | | locDetl.setAllWeight(matCode.getWeight()*adjust.getCount()+30); |
| | | locDetl.setStr3(matCode.getStr3()); |
| | | locDetl.setStr4(matCode.getStr4()); |
| | | locDetl.setStr5(matCode.getStr5()); |
| | | if (!locDetlService.insert(locDetl)) { |
| | | throw new CoolException("ä¿ååºåæç»å¤±è´¥"); |
| | | } |
| | |
| | | sqlParam1.setQtyBox(matCode.getStr6()); |
| | | sqlParam1.setAllQty(matCode.getStr6()*adjust.getCount()); |
| | | sqlParam1.setAllWeight(matCode.getWeight()*adjust.getCount()+30); |
| | | sqlParam1.setStr5(matCode.getStr5()); |
| | | sqlParam1.setStr4(matCode.getStr4()); |
| | | sqlParam1.setStr3(matCode.getStr3()); |
| | | if (!locDetlService.update(sqlParam1, new EntityWrapper<LocDetl>() |
| | | .eq("loc_no", locMast.getLocNo()) |
| | | .eq("mat_no", adjust.getMatNo()) |
| | |
| | | wrkDetl.setVendor(dto.getVendor()); |
| | | wrkDetl.setWeight(matCode.getWeight()); |
| | | wrkDetl.setQtyBox(matCode.getStr6()); |
| | | wrkDetl.setStr3(matCode.getStr3()); |
| | | wrkDetl.setStr4(matCode.getStr4()); |
| | | wrkDetl.setStr5(matCode.getStr5()); |
| | | if (!this.insert(wrkDetl)) { |
| | | throw new CoolException("ä¿å工使ç»å¤±è´¥"); |
| | | } |
| | |
| | | locDetl.setVendor(wrk_no.getVendor()); |
| | | locDetl.setWeight(matCode.getWeight()); |
| | | locDetl.setQtyBox(matCode.getStr6()); |
| | | |
| | | locDetl.setStr3(matCode.getStr3()); |
| | | locDetl.setStr4(matCode.getStr4()); |
| | | locDetl.setStr5(matCode.getStr5()); |
| | | if (!Cools.isEmpty(wrk_no)){ |
| | | locDetl.setMemo(wrk_no.getMemo()); |
| | | locDetl.setSupplier(wrk_no.getSupplier()); |
| | |
| | | <result column="source" property="source" /> |
| | | <result column="vendor" property="vendor" /> |
| | | <result column="qty_box" property="qtyBox"/> |
| | | <result column="str3" property="str3" /> |
| | | <result column="str4" property="str4" /> |
| | | <result column="str5" property="str5"/> |
| | | </resultMap> |
| | | |
| | | <sql id="stockOutCondition"> |
| | |
| | | <result column="appe_user" property="appeUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="qty_box" property="qtyBox"/> |
| | | <result column="str3" property="str3" /> |
| | | <result column="str4" property="str4" /> |
| | | <result column="str5" property="str5"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | <result column="source" property="source" /> |
| | | <result column="vendor" property="vendor" /> |
| | | <result column="qty_box" property="qtyBox"/> |
| | | <result column="str3" property="str3" /> |
| | | <result column="str4" property="str4" /> |
| | | <result column="str5" property="str5"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | <result column="source" property="source" /> |
| | | <result column="vendor" property="vendor" /> |
| | | <result column="qty_box" property="qtyBox"/> |
| | | <result column="str3" property="str3" /> |
| | | <result column="str4" property="str4" /> |
| | | <result column="str5" property="str5"/> |
| | | </resultMap> |
| | | |
| | | <select id="queryWrkDetl" resultMap="BaseResultMap"> |
| | |
| | | ,{field: 'str3', align: 'center', title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center', title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center', title: 'ç±»å«'} |
| | | ,{field: 'str6', align: 'center', title: 'æ¯ç®±æ°é(PCS)'} |
| | | ,{field: 'qtyBox', align: 'center', title: 'æ¯ç®±æ°é(PCS)'} |
| | | ] |
| | | |
| | |
| | | ,{field: 'color', align: 'center',title: 'é¢è²'} |
| | | ,{field: 'zpallet', align: 'center',title: 'æçæ¡ç '} |
| | | // ,{field: 'bname', align: 'center',title: 'åºä½åç§°'} |
| | | ,{field: 'memo', align: 'center',title: 'çäº§æ¥æ'}]; |
| | | ,{field: 'memo', align: 'center',title: 'çäº§æ¥æ'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ]; |
| | | // cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'modiUser$', align: 'center',title: 'ä¿®æ¹äººå',hide: true} |
| | | ,{field: 'modiTime$', align: 'center',title: 'ä¿®æ¹æ¶é´'} |
| | |
| | | |
| | | // 页é¢ä¿®æ¹ |
| | | table.on('edit(chooseData)', function (obj) { |
| | | // var index = ; |
| | | // console.log(obj.tr.parents('tr')) |
| | | // console.log($('obj').othis) |
| | | // console.log(obj.parents('tr').attr("data-index")); |
| | | switch (obj.field) { |
| | | case 'count': |
| | | updateMatCodeData(obj.data.matNo, obj.data.supplier, Number(obj.value)); |
| | | break |
| | | case 'supplier': |
| | | // updateMatCodeSupplier(obj.data.matNo, obj.value); |
| | | // debugger |
| | | for (var i=0;i<matCodeData.length;i++){ |
| | | if (matCodeData[i]["matNo"] === obj.data.matNo |
| | | && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){ |
| | | if (matCodeData[i]["matNo"] === obj.data.matNo){ |
| | | matCodeData[i]["supplier"] = obj.data.supplier; |
| | | } |
| | | } |
| | | // tableIns.reload({data: matCodeData,done:function (res) { |
| | | // limit(); |
| | | // // getInBound(); |
| | | // // è¦çrenderæ¹æ³çdone |
| | | // }}); |
| | | break |
| | | case 'source': |
| | | for (var i=0;i<matCodeData.length;i++){ |
| | |
| | | } |
| | | } |
| | | break; |
| | | |
| | | // case 'memo': |
| | | // for (var i=0;i<matCodeData.length;i++){ |
| | | // if (matCodeData[i]["matNo"] === obj.data.matNo |
| | | // && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){ |
| | | // matCodeData[i]["memo"] = obj.data.memo; |
| | | // } |
| | | // } |
| | | // break; |
| | | } |
| | | tableIns.reload({data: matCodeData,done:function (res) { |
| | | limit(); |
| | | getInBound(); |
| | | // è¦çrenderæ¹æ³çdone |
| | | }}); |
| | | |
| | | }); |
| | | |
| | |
| | | |
| | | // çå¬è¡å·¥å
·äºä»¶ |
| | | table.on('tool(chooseData)', function(obj){ |
| | | var data = obj.data; |
| | | |
| | | switch (obj.event) { |
| | | case 'remove': |
| | | for (var i = matCodeData.length - 1; i >= 0; i--) { |
| | | if (matCodeData[i].matNo === data.matNo) { |
| | | if (matCodeData[i].matNo === obj.data.matNo) { |
| | | matCodeData.splice(i, 1); |
| | | } |
| | | } |
| | |
| | | yes: function(index, layero){ |
| | | var memo = layer.getChildFrame('body', index).find("#memo")[0].value; |
| | | matCodeData.map(function (item) { |
| | | if (item.matNo === data.matNo && item.supplier === data.supplier) { |
| | | if (item.matNo === obj.data.matNo && item.supplier === obj.data.supplier) { |
| | | item.memo = memo; |
| | | } |
| | | }); |
| | |
| | | {field: 'supplier', title: 'æ¹å·', align: 'center', width: 120}, |
| | | {field: 'source', title: 'æ¥æº', align: 'center', edit:'text', width: 120}, |
| | | {field: 'vendor', title: 'ä¾åºå', align: 'center', edit:'text', width: 120} |
| | | ,{field: 'qtyBox', align: 'center', title: 'æ¯ç®±æ°é(PCS)'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | // {field: 'allqty', title: 'æ»æ°é', align: 'center'}, |
| | | // {field: 'allweight', title: 'æ»éé', align: 'center'} |
| | | // ,{field: 'anfme', align: 'center',title: 'æ°é'} |
| | |
| | | ,{field: 'supplier', align: 'center',title: 'æ¹å·'} |
| | | ,{field: 'vendor', align: 'center',title: 'ä¾åºå'} |
| | | ,{field: 'memo', align: 'center',title: 'çäº§æ¥æ'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ,{field: 'linkErp$', align: 'center',title: 'ERPè¿çº¿', hide: true} |
| | | ,{field: 'ioStatus$', align: 'center',title: 'å®æç¶æ'} |
| | | ,{field: 'ioTime$', align: 'center',title: '宿æ¶é´', hide: true} |
| | |
| | | ,{field: 'source', align: 'center',title: 'æ¥æº'} |
| | | ,{field: 'vendor', align: 'center',title: 'ä¾åºå'} |
| | | ,{field: 'billNo', align: 'center',title: 'åæ®ç¼å·', hide:true} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ,{field: 'seqNo', align: 'center',title: 'åºå·', width:80, hide:true} |
| | | ,{field: 'modiUser$', align: 'center',title: 'ä¿®æ¹äººå', hide:true} |
| | | ,{field: 'modiTime$', align: 'center',title: 'ä¿®æ¹æ¶é´', hide:true}) |
| | |
| | | ,{field: 'allWeight', align: 'center',title: 'æ»éé(KG)'} |
| | | ,{field: 'source', align: 'center',title: 'æ¥æº'} |
| | | ,{field: 'vendor', align: 'center',title: 'ä¾åºå'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'modiUser$', align: 'center',title: 'ä¿®æ¹äººå',hide: true} |
| | |
| | | ,{field: 'locNo$', align: 'center',title: 'åºä½å·'} |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'modiUser$', align: 'center',title: 'ä¿®æ¹äººå', hide: true} |
| | | cols.push( |
| | | {field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ,{field: 'modiUser$', align: 'center',title: 'ä¿®æ¹äººå', hide: true} |
| | | ,{field: 'modiTime$', align: 'center',title: 'ä¿®æ¹æ¶é´'}) |
| | | return cols; |
| | | } |
| | |
| | | ,{field: 'zpallet', align: 'center',title: 'æçæ¡ç '} |
| | | // ,{field: 'bname', align: 'center',title: 'åºä½åç§°'} |
| | | ,{field: 'memo', align: 'center',title: 'çäº§æ¥æ'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ]; |
| | | // cols.push.apply(cols, detlCols); |
| | | |
| | |
| | | ,{field: 'zpallet', align: 'center',title: 'æçæ¡ç '} |
| | | // ,{field: 'bname', align: 'center',title: 'åºä½åç§°'} |
| | | ,{field: 'memo', align: 'center',title: 'çäº§æ¥æ'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ]; |
| | | // cols.push.apply(cols, detlCols); |
| | | return cols; |
| | |
| | | ,{field: 'zpallet', align: 'center',title: 'æçæ¡ç '} |
| | | // ,{field: 'bname', align: 'center',title: 'åºä½åç§°'} |
| | | ,{field: 'memo', align: 'center',title: 'çäº§æ¥æ'} |
| | | ,{field: 'str3', align: 'center',title: '客æ·åç§°'} |
| | | ,{field: 'str4', align: 'center',title: '项ç®ä¿¡æ¯'} |
| | | ,{field: 'str5$', align: 'center',title: 'ç±»å«'} |
| | | ]; |
| | | // cols.push.apply(cols, detlCols); |
| | | |
| | |
| | | |
| | | ç»æè¡¨ï¼plt_barcodeåplt_barcode_log)æï¼all_qty(æ»æ°éï¼æµ®ç¹ç±»å) all_weight(æ»ééï¼æµ®ç¹ç±»å) |
| | | ç»æè¡¨ï¼plt_barcodeåplt_barcode_log)æ°å¢æï¼all_qty(æ»æ°éï¼æµ®ç¹ç±»å) all_weight(æ»ééï¼æµ®ç¹ç±»å) |
| | | source(æ¥æºï¼å符串) supplier(æ¹å·ï¼å符串) vendor(ä¾åºåï¼å符串) qty_box(æ¯ç®±æ°éï¼æµ®ç¹ç±»å) |
| | | str3ï¼å®¢æ·åç§°ï¼åç¬¦ä¸²ï¼ str4ï¼é¡¹ç®ä¿¡æ¯ï¼åç¬¦ä¸²ï¼ str5ï¼ç±»å«ï¼åç¬¦ä¸²ï¼ |
| | | |
| | | |
| | | 工使¡£ï¼wrk_detlåwrk_detl_logï¼æï¼all_qty(æ»æ°éï¼æµ®ç¹ç±»å) all_weight(æ»ééï¼æµ®ç¹ç±»å) |
| | | source(æ¥æºï¼å符串) vendor(ä¾åºåï¼å符串) qty_box(æ¯ç®±æ°éï¼æµ®ç¹ç±»å) |
| | | 工使¡£ï¼wrk_detlåwrk_detl_logï¼æ°å¢æï¼all_qty(æ»æ°éï¼æµ®ç¹ç±»å) all_weight(æ»ééï¼æµ®ç¹ç±»å) |
| | | source(æ¥æºï¼å符串) vendor(ä¾åºåï¼å符串) qty_box(æ¯ç®±æ°éï¼æµ®ç¹ç±»å) supplieræ¹ä¸ºä¸»é®ï¼wrk_detl_log䏿¹ï¼ |
| | | str3ï¼å®¢æ·åç§°ï¼åç¬¦ä¸²ï¼ str4ï¼é¡¹ç®ä¿¡æ¯ï¼åç¬¦ä¸²ï¼ str5ï¼ç±»å«ï¼åç¬¦ä¸²ï¼ |
| | | |
| | | åºå表ï¼loc_detlï¼æï¼all_qty(æ»æ°éï¼æµ®ç¹ç±»å) all_weight(æ»ééï¼æµ®ç¹ç±»å) |
| | | åºå表ï¼loc_detlï¼æ°å¢æï¼all_qty(æ»æ°éï¼æµ®ç¹ç±»å) all_weight(æ»ééï¼æµ®ç¹ç±»å) |
| | | source(æ¥æºï¼å符串) vendor(ä¾åºåï¼å符串) qty_box(æ¯ç®±æ°éï¼æµ®ç¹ç±»å) supplieræ¹ä¸ºä¸»é® |
| | | str3ï¼å®¢æ·åç§°ï¼åç¬¦ä¸²ï¼ str4ï¼é¡¹ç®ä¿¡æ¯ï¼åç¬¦ä¸²ï¼ str5ï¼ç±»å«ï¼åç¬¦ä¸²ï¼ |
| | | |
| | | |
| | | ç©æè¡¨ï¼mat_codeï¼åæ´æï¼str3ï¼å®¢æ·åç§°ï¼åç¬¦ä¸²ï¼ str4ï¼é¡¹ç®ä¿¡æ¯ï¼åç¬¦ä¸²ï¼ str5ï¼ç±»å«ï¼åç¬¦ä¸²ï¼ |