| | |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | <div class="login-copyright">copyright © 2020 stylefeng.cn all rights reserved.</div> |
| | | <!--<div class="login-copyright">copyright © 2020 stylefeng.cn all rights reserved.</div>--> |
| | | |
| | | @/* å å
¥contextPathå±æ§åsessionè¶
æ¶çé
ç½® */ |
| | | <script type="text/javascript"> |
| | |
| | | <if test="paramCondition.state != null and paramCondition.state != ''"> |
| | | and state like CONCAT('%',#{paramCondition.state},'%') |
| | | </if> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.pm.salesOrder.model.params.SalesOrderParam"> |
| | |
| | | #opcua server |
| | | opcua.server.endpoint.url=opc.tcp://127.0.0.1:49320 |
| | | opcua.server.idp.username=administrator |
| | | opcua.server.idp.password=yyt@8888888888 |
| | | opcua.server.idp.username="" |
| | | opcua.server.idp.password="" |
| | | |
| | | #opcua client |
| | | opcua.client.app.name=plc |
| | | opcua.client.app.uri=urn:Yyt_PC:UnifiedAutomation:UaExpert |
| | | opcua.client.cert.path=C:/Users/30672/Desktop |
| | | opcua.client.cert.path=C:/mes/ |
| | | opcua.client.cert.file=Yyt_PC-client.pfx |
| | | opcua.client.cert.alias=jlclient-ai |
| | | opcua.client.cert.common.name=UaClient@Jellyleo |
| | |
| | | {field: 'id', hide: true, title: '主é®id'}, |
| | | {field: 'materialCode', sort: true, title: 'ç©æç¼å·',width:130}, |
| | | {field: 'materialName', sort: true, title: 'ç©æå称',width:180}, |
| | | {field: 'materialView', sort: true, title: 'è§å¾'}, |
| | | {field: 'typeZ', sort: true, title: 'ç§ç±»'}, |
| | | {field: 'typeL', sort: true, title: 'ç±»å'}, |
| | | // {field: 'materialView', sort: true, title: 'è§å¾'}, |
| | | // {field: 'typeZ', sort: true, title: 'ç§ç±»'}, |
| | | { |
| | | field: 'typeL', align: "center", title: 'ç±»å', templet: function (d) { |
| | | console.log(d.typeL) |
| | | switch(d.typeL){ |
| | | case "PRODUCE" : |
| | | return "产å"; |
| | | break; |
| | | case "SEMIFINISHEDPRODUCTS" : |
| | | return "åæå"; |
| | | break; |
| | | case "COMPONENTSANDPARTS" : |
| | | return "é¶é¨ä»¶"; |
| | | break; |
| | | default : |
| | | } |
| | | } |
| | | }, |
| | | {field: 'unit', sort: true, title: 'åä½'}, |
| | | {field: 'matterVersion', sort: true, title: 'çæ¬'}, |
| | | // {field: 'matterVersion', sort: true, title: 'çæ¬'}, |
| | | {field: 'remarks', sort: true, title: 'å¤æ³¨'}, |
| | | {field: 'createUser', sort: true, title: 'å建ç¨æ·',width:120}, |
| | | {field: 'createTime', sort: true, title: 'å建æ¶é´',width:160}, |
| | | {field: 'updateUser', sort: true, title: 'æ´æ¹ç¨æ·',width:120}, |
| | | {field: 'updateTime', sort: true, title: 'æ´æ¹æ¶é´',width:160}, |
| | | {field: 'erpSpec', sort: true, title: ''}, |
| | | // {field: 'erpSpec', sort: true, title: ''}, |
| | | {fixed: 'right',width: 125, minWidth: 125, align: 'center', toolbar: '#tableBar', title: 'æä½'} |
| | | ]]; |
| | | }; |
| | |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | getDictType(); |
| | | function getDictType(){ |
| | | $.ajax({ |
| | | type: "POST", |
| | | contentType: "application/json;charset=UTF-8", |
| | | url: Feng.ctxPath + '/dict/list?dictTypeId=1724238087352172546', |
| | | success: function (result) { |
| | | $.each(result.data, function (index, value) { |
| | | $('#typeL').append(new Option(value.name,value.code));// ä¸æèåéæ·»å å
ç´ |
| | | }); |
| | | layui.form.render("select");//éæ°æ¸²æ åºå®åæ³ |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //è·å详æ
ä¿¡æ¯ï¼å¡«å
表å |
| | | var ajax = new $ax(Feng.ctxPath + "/materialInfo/detail?id=" + Feng.getUrlParam("id")); |
| | | var result = ajax.start(); |
| | | form.val('materialInfoForm', result.data); |
| | | var result1 = ajax.start(); |
| | | form.val('materialInfoForm', result1.data); |
| | | |
| | | getDictType(); |
| | | function getDictType(){ |
| | | $.ajax({ |
| | | type: "POST", |
| | | contentType: "application/json;charset=UTF-8", |
| | | url: Feng.ctxPath + '/dict/list?dictTypeId=1724238087352172546', |
| | | success: function (result) { |
| | | $.each(result.data, function (index, value) { |
| | | $('#typeL').append(new Option(value.name,value.code));// ä¸æèåéæ·»å å
ç´ |
| | | }); |
| | | $('#typeL').val(result1.data.typeL) |
| | | layui.form.render("select");//éæ°æ¸²æ åºå®åæ³ |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | $('#productCode').click(function () { |
| | | layer.open({ |
| | | type: 2, |
| | | area: ['1000px', '600px'], |
| | | title: 'ç©æä¿¡æ¯', |
| | | content: Feng.ctxPath + '/workOrder/productListing', |
| | | success: function (layero, index) { |
| | | window.materialType = 'PRODUCE'; |
| | | }, |
| | | end: function () { |
| | | let msg = JSON.parse(window.localStorage.getItem('message')); |
| | | $('#productCode').val(msg.materialCode); |
| | | $('#productName').val(msg.materialName); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | layui.use(['table'], function () { |
| | | var $ = layui.jquery; |
| | | var table = layui.table; |
| | | |
| | | /** |
| | | * ç©æä¿¡æ¯ç®¡ç |
| | | */ |
| | | var MaterialInfo = { |
| | | tableId: "materialInfoTable" |
| | | }; |
| | | |
| | | var materialType = parent.materialType; |
| | | |
| | | $('#serch').click(function(){ |
| | | var queryData = {}; |
| | | queryData['typeZ'] = materialType; |
| | | queryData['materialName'] = $("#materialName").val(); |
| | | queryData['materialCode'] = $("#materialCode").val(); |
| | | table.reload(MaterialInfo.tableId, { |
| | | where: queryData, page: {curr: 1} |
| | | }); |
| | | }); |
| | | /** |
| | | * 缺ææ¥è¦åå§åè¡¨æ ¼çå |
| | | */ |
| | | MaterialInfo.initColumn = function () { |
| | | return [[ |
| | | {type: 'radio'}, |
| | | {field: 'id', hide: true, title: '主é®id'}, |
| | | {field: 'materialCode', sort: true, title: '产åç¼å·'}, |
| | | {field: 'materialName', sort: true, title: '产åå称'}, |
| | | {field: 'typeL', sort: true, title: 'ç±»å'}, |
| | | ]]; |
| | | }; |
| | | |
| | | table = $.extend(table, {config: {checkName: 'checked'}}); |
| | | |
| | | var queryData = {}; |
| | | queryData['typeL'] = materialType; |
| | | var tableResult = table.render({ |
| | | elem: '#' + MaterialInfo.tableId, |
| | | url: Feng.ctxPath + '/materialInfo/list', |
| | | page: true, |
| | | where:queryData, |
| | | cellMinWidth: 80, |
| | | cols: MaterialInfo.initColumn() |
| | | }); |
| | | let Msg=''; |
| | | table.on('row(materialInfoTable)',function (data) { |
| | | Msg = data.data; |
| | | }) |
| | | $('#btnSubmit').click(function(){ |
| | | clearType(); |
| | | if (Msg !=='' ){ |
| | | // å¤ææ¯å¦ç¹å»çæ¯ç¡®å® |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | window.localStorage.setItem('message',JSON.stringify(Msg)); |
| | | parent.layer.close(index); |
| | | } |
| | | else { |
| | | Feng.error("请éæ©ä¸æ¡æ°æ®!") |
| | | } |
| | | }); |
| | | |
| | | $('#reset').click(function(){ |
| | | clearType(); |
| | | Msg = ""; |
| | | window.localStorage.clear(); |
| | | }); |
| | | |
| | | function clearType(){ |
| | | parent.materialType=""; |
| | | } |
| | | |
| | | }); |
| | |
| | | |
| | | $('#split').click(function (){ |
| | | var checkRows = table.checkStatus(SalesOrder.tableId); |
| | | console.log(checkRows.data); |
| | | console.log(checkRows); |
| | | console.log(checkRows.data.state); |
| | | |
| | | if (checkRows.data.length !== 1) { |
| | | Feng.error("请éæ©ä¸æ¡è¦æåç订å"); |
| | | return; |
| | | } |
| | | if (checkRows.data[0].state === "1") { |
| | | window.location.href = Feng.ctxPath + '/salesOrder/split?id=' + checkRows.data[0].id |
| | | }else { |
| | | Feng.error("å·²æåä¸å订åç¦æ¢éå¤æå"); |
| | | return; |
| | | } |
| | | // if (checkRows.data.state !== "1") { |
| | | // Feng.error("å·²æåä¸å订åç¦æ¢éå¤æå"); |
| | | // return; |
| | | // } |
| | | // window.location.href = Feng.ctxPath + '/salesOrder/split?id=' + checkRows.data[0].id |
| | | |
| | | }); |
| | | |
| | |
| | | // ç»å®ä¸å |
| | | $('#distribute').click(function () { |
| | | var checkRows = table.checkStatus(SalesOrder.tableId); |
| | | console.log(checkRows); |
| | | console.log("checkRows.length=========="+checkRows.data.length) |
| | | if(checkRows.data.length === 1){ |
| | | if(checkRows.data[0].state === "3"){ |
| | | Feng.error("该工åå·²ä¸åå®æ¯ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | if (checkRows.data.length !== 1) { |
| | | Feng.error("请éæ©ä¸æ¡è¦ä¸åç订å"); |
| | |
| | | var checkRows = table.checkStatus(SalesOrder.tableId); |
| | | console.log(checkRows.data); |
| | | window.location.href = Feng.ctxPath + '/salesOrder/bindParam?id=' + checkRows.data[0].id |
| | | // layer.open({ |
| | | // type: 2, |
| | | // area: ['1000px', '600px'], |
| | | // title: 'ä¸å订å', |
| | | // content: Feng.ctxPath + '/salesOrder/bindParam', |
| | | // success: function (layero, index) { |
| | | // // let body = layer.getChildFrame('body', index); |
| | | // // body.find('form').find('#salesOrderList').val(checkRows.data); |
| | | // // è·åå页é¢çiframe |
| | | // var iframe = window['layui-layer-iframe'+index]; |
| | | // // åå页é¢çå
¨å±å½æ°childä¼ å |
| | | // iframe.child(checkRows.data); |
| | | // }, |
| | | // end: function () { |
| | | // table.reload(SalesOrder.tableId, { |
| | | // where: null, page: {curr: 1} |
| | | // }); |
| | | // } |
| | | // }); |
| | | }); |
| | | |
| | | // å·¥å
·æ¡ç¹å»äºä»¶ |
| | |
| | | //åå§åæ¶é´éæ©å¨ |
| | | laydate.render({ |
| | | elem: '#planStartTime', |
| | | type: 'datetime' |
| | | // type: 'datetime' |
| | | }); |
| | | //åå§åæ¶é´éæ©å¨ |
| | | laydate.render({ |
| | | elem: '#planEndTime', |
| | | type: 'datetime' |
| | | // type: 'datetime' |
| | | }); |
| | | //åå§åæ¶é´éæ©å¨ |
| | | laydate.render({ |
| | | elem: '#deliveryTime', |
| | | type: 'datetime' |
| | | // type: 'datetime' |
| | | }); |
| | | $(document).ready(function () { |
| | | // $.ajax({ |
| | | // type: "POST", |
| | | // contentType: "application/json;charset=UTF-8", |
| | | // url: Feng.ctxPath + '/workshopInfo/list', |
| | | // success: function (result) { |
| | | // $.each(result.data, function (index, value) { |
| | | // $('#workshopCode').append(new Option(value.workshopCode));// ä¸æèåéæ·»å å
ç´ |
| | | // }); |
| | | // layui.form.render("select");//éæ°æ¸²æ åºå®åæ³ |
| | | // }, |
| | | // }); |
| | | $.ajax({ |
| | | type: "POST", |
| | | contentType: "application/json;charset=UTF-8", |
| | |
| | | }); |
| | | }); |
| | | |
| | | // form.on("select", function (data) { |
| | | // switch(data.elem.id){ |
| | | // case 'workshopCode': |
| | | // $.ajax({ |
| | | // type: "POST", |
| | | // contentType: "application/json;charset=UTF-8", |
| | | // url: Feng.ctxPath + '/lineInfo/list?workshopCode='+data.value, |
| | | // success: function (result) { |
| | | // $('#productionLineCode').empty(); |
| | | // $.each(result.data, function (index, value) { |
| | | // $('#lineCode').append(new Option(value.lineCode));// ä¸æèåéæ·»å å
ç´ |
| | | // }); |
| | | // if($('#workshopCode').val() === ""||$('#workshopCode').val() === null){ |
| | | // layui.$('#lineCode').empty(); // è·åselectå
ç´ |
| | | // } |
| | | // layui.form.render("select");//éæ°æ¸²æ åºå®åæ³ |
| | | // }, |
| | | // }); |
| | | // break; |
| | | // } |
| | | // }); |
| | | $('#productCode').click(function () { |
| | | layer.open({ |
| | | type: 2, |
| | | area: ['1000px', '600px'], |
| | | title: 'ç©æä¿¡æ¯', |
| | | content: Feng.ctxPath + '/workOrder/productListing', |
| | | success: function (layero, index) { |
| | | window.materialType = 'PRODUCE'; |
| | | }, |
| | | end: function () { |
| | | let msg = JSON.parse(window.localStorage.getItem('message')); |
| | | $('#productCode').val(msg.materialCode); |
| | | $('#productName').val(msg.materialName); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | |
| | | }; |
| | | |
| | | var materialType = parent.materialType; |
| | | console.log(materialType) |
| | | |
| | | $('#serch').click(function(){ |
| | | var queryData = {}; |
| | |
| | | {field: 'id', hide: true, title: '主é®id'}, |
| | | {field: 'materialCode', sort: true, title: '产åç¼å·'}, |
| | | {field: 'materialName', sort: true, title: '产åå称'}, |
| | | {field: 'typeZ', sort: true, title: 'ç§ç±»'}, |
| | | {field: 'typeL', sort: true, title: 'ç±»å'}, |
| | | ]]; |
| | | }; |
| | | |
| | | table = $.extend(table, {config: {checkName: 'checked'}}); |
| | | |
| | | var queryData = {}; |
| | | queryData['typeZ'] = materialType; |
| | | queryData['typeL'] = materialType; |
| | | var tableResult = table.render({ |
| | | elem: '#' + MaterialInfo.tableId, |
| | | url: Feng.ctxPath + '/materialInfo/list', |
| | |
| | | title: 'ç©æä¿¡æ¯', |
| | | content: Feng.ctxPath + '/workOrder/productListing', |
| | | success: function (layero, index) { |
| | | window.materialType = '产å'; |
| | | window.materialType = 'PRODUCE'; |
| | | }, |
| | | end: function () { |
| | | let msg = JSON.parse(window.localStorage.getItem('message')); |
| | |
| | | <input id="materialView" name="materialView" placeholder="请è¾å
¥è§å¾" type="text" class="layui-input"/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç§ç±»<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="typeZ" name="typeZ" placeholder="请è¾å
¥ç§ç±»" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline layui-col-md12">--> |
| | | <!-- <label class="layui-form-label">ç§ç±»<span style="color: red;">*</span></label>--> |
| | | <!-- <div class="layui-input-block">--> |
| | | <!-- <input id="typeZ" name="typeZ" placeholder="请è¾å
¥ç§ç±»" type="text" class="layui-input" lay-verify="required" required/>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç±»å<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="typeL" name="typeL" placeholder="请è¾å
¥ç±»å" type="text" class="layui-input" lay-verify="required" required/> |
| | | <select id="typeL" name="typeL" lay-filter="opType" lay-verify="required" required> |
| | | <option value="">请éæ©ç±»å</option> |
| | | </select> |
| | | <!-- <input id="typeL" name="typeL" placeholder="请è¾å
¥ç±»å" type="text" class="layui-input" lay-verify="required" required/>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | |
| | | <input id="materialView" name="materialView" placeholder="请è¾å
¥è§å¾" type="text" class="layui-input"/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç§ç±»<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="typeZ" name="typeZ" placeholder="请è¾å
¥ç§ç±»" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline layui-col-md12">--> |
| | | <!-- <label class="layui-form-label">ç§ç±»<span style="color: red;">*</span></label>--> |
| | | <!-- <div class="layui-input-block">--> |
| | | <!-- <input id="typeZ" name="typeZ" placeholder="请è¾å
¥ç§ç±»" type="text" class="layui-input" lay-verify="required" required/>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç±»å<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="typeL" name="typeL" placeholder="请è¾å
¥ç±»å" type="text" class="layui-input" lay-verify="required" required/> |
| | | <select id="typeL" name="typeL" lay-filter="opType" lay-verify="required" required> |
| | | <option value="">请éæ©ç±»å</option> |
| | | </select> |
| | | <!-- <input id="typeL" name="typeL" placeholder="请è¾å
¥ç±»å" type="text" class="layui-input" lay-verify="required" required/>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | |
| | | <input type="radio" id="sex1" name="sex1" value="nan1" title="ç·"> |
| | | <span>工件å°ä½</span> |
| | | <input style="margin-left: 150px" type="radio" name="sex" value="nan" title="ç·"> |
| | | <span>工件å
¥ç«</span> |
| | | <span>å
许å¯å¨</span> |
| | | </div> |
| | | <div class="container"> |
| | | <input type="radio" name="sex" value="nan" title="ç·"> |
| | | <span>工件åºç«</span> |
| | | <span>å
许æ¾è¡</span> |
| | | <input style="margin-left: 150px" type="radio" name="test" value="test1" title="ç·"> |
| | | <span>工件å®æ</span> |
| | | <span>å·¥ä½å®æ</span> |
| | | </div> |
| | | </div> |
| | | </div> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_form.html",{js:["/assets/modular/pm/workOrder/bulletBox/productListing.js"]}){ |
| | | <div class="layui-fluid" style="padding-bottom: 75px;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form-item layui-row"> |
| | | <input id= "id" name="id" type="hidden"/> |
| | | <input id= "materialType" name="materialType" type="hidden"/> |
| | | <div class="layui-inline layui-col-md4"> |
| | | <label class="layui-form-label">ç©æç¼å·<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="materialCode" name="materialCode" placeholder="请è¾å
¥äº§åç¼å·" type="text" class="layui-input"/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md4"> |
| | | <label class="layui-form-label">ç©æå称<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="materialName" name="materialName" placeholder="请è¾å
¥ç©æå称" type="text" class="layui-input"/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md-offset3"> |
| | | <button class="layui-btn" id="serch">æç´¢</button> |
| | | </div> |
| | | </div> |
| | | <table class="layui-table" id="materialInfoTable" lay-filter="materialInfoTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group-bottom text-center"> |
| | | <button class="layui-btn" id="btnSubmit"> æ交 </button> |
| | | <button type="reset" id="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog"> å
³é </button> |
| | | </div> |
| | | |
| | | |
| | | @} |