yangle
2023-09-19 f40e5267076426981caa4a64630a222326cd9158
瑞琪 增加流转卡
乔一 指引卡变更
帅威计划平台增加序号列
1个文件已添加
5个文件已修改
991 ■■■■ 已修改文件
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/PublicPage/HSourceReportHtml.html 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index_Mobile.html 502 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index_Mobile_QiaoYi.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产计划平台/JIT_DayPlanPlatForm.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序流转/MES_Sc_ProcessExchangeBillMain_Note_PDA.html 454 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj
@@ -278,6 +278,7 @@
    <Content Include="views\计划管理\工艺路线\Gy_RoutingBillListQuery.html" />
    <Content Include="views\计划管理\工艺路线\Gy_RoutingBillList_His.html" />
    <Content Include="views\计划管理\工艺路线\Gy_RoutingBillSubList.html" />
    <Content Include="views\车间管理\工序流转\MES_Sc_ProcessExchangeBillMain_Note_PDA.html" />
    <Content Include="views\车间管理\报表分析\Kf_BrushingOutReport.html" />
    <Content Include="views\车间管理\产线组装追溯\Cj_AssemblyTraceability.html" />
    <Content Include="views\车间管理\产线组装追溯\Cj_AssemblyTraceabilityList.html" />
WebTM/views/PublicPage/HSourceReportHtml.html
@@ -33,7 +33,7 @@
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;">
                                    </div>
                                </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">部门</label>
                                    <div class="layui-input-block">
@@ -44,11 +44,17 @@
                                    </div>
                                </div>
                                <!--<div class="layui-inline">
                                    <label class="layui-form-label">部门</label>
        <label class="layui-form-label">部门</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width:190px;">
        </div>
    </div>-->
                                <div class="layui-inline" id="HProcExchBillNoHidden" style="display:none;">
                                    <label class="layui-form-label">流转卡号</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width:190px;">
                                        <input type="text" class="layui-input" name="HProcExchBillNo" id="HProcExchBillNo" style="width:190px;">
                                    </div>
                                </div>-->
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">物料名称</label>
                                    <div class="layui-input-block">
@@ -271,7 +277,8 @@
                    case '委外订单':
                        HModName = "WW_EntrustOrderBill_1601";
                        break;
                    case '生产入库':
                    case '生产入库单':
                        $("#HProcExchBillNoHidden").show();
                        HModName = "ProductInBill_1202";
                        break;
                    case '采购入库':
@@ -377,6 +384,7 @@
                var PartNumber = $("#PartNumber").val();//物料编码
                var PartName = $("#PartName").val();//物料名称
                var HDeptName = $("#HDeptName").val();//部门
                var HProcExchBillNo = $("#HProcExchBillNo").val();//流转卡
                var ColName = $("#ColName").val();//复选框
                var Comparator = $("#Comparator").val()
                var ColContent = $("#ColContent").val();
@@ -491,6 +499,9 @@
                        if (HDeptName && HDeptName != 0) {
                            sWhere += " and HDeptID = '" + HDeptName + "'";
                        }
                        if (HProcExchBillNo!="") {
                            sWhere += " and æµè½¬å¡å· like '" + HProcExchBillNo + "%'";
                        }
                        return sWhere;
                        break;
                    case '退货通知单':
WebTM/views/index_Mobile.html
@@ -84,103 +84,111 @@
                  </a>
                  <dl class="layui-nav-child">
                      <!--<dd>
        <a lay-href="车间管理/工序流转/MES_StationInBill_PDA_OLD.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºè¿›ç«™æŽ¥æ”¶å•
        </a>
    </dd>
    <dd>
        <a lay-href="车间管理/工序进站接收单/Sc_StationInBill_Mul_PDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºè¿›ç«™æŽ¥æ”¶å•批量
        </a>
    </dd>
    <dd>
        <a lay-href="车间管理/工序流转/MES_StationOutBill_PDA_OLD.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºå‡ºç«™æ±‡æŠ¥å•
        </a>
    </dd>
    <dd>
        <a lay-href="车间管理/工序出站汇报单/Sc_StationOutBill_Mul_PDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºå‡ºç«™æ±‡æŠ¥å•批量
        </a>
    </dd>-->
                <a lay-href="车间管理/工序流转/MES_StationInBill_PDA_OLD.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºè¿›ç«™æŽ¥æ”¶å•
                </a>
            </dd>
            <dd>
                <a lay-href="车间管理/工序进站接收单/Sc_StationInBill_Mul_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºè¿›ç«™æŽ¥æ”¶å•批量
                </a>
            </dd>
            <dd>
                <a lay-href="车间管理/工序流转/MES_StationOutBill_PDA_OLD.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºå‡ºç«™æ±‡æŠ¥å•
                </a>
            </dd>
            <dd>
                <a lay-href="车间管理/工序出站汇报单/Sc_StationOutBill_Mul_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºå‡ºç«™æ±‡æŠ¥å•批量
                </a>
            </dd>-->
                      <!--<dd>
        <a lay-href="车间管理/委外工序发出单/Cj_StationEntrustInBill_PDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºå§”外发出单
        </a>
    </dd>
    <dd>
        <a lay-href="车间管理/委外工序发出单/Cj_StationEntrustInBill_Mul_PDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºå§”外发出单批量
        </a>
    </dd>
    <dd>
        <a lay-href="车间管理/委外工序接收单/Cj_StationEntrustOutBill_PDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºå§”外接收单
        </a>
    </dd>
    <dd>
        <a lay-href="车间管理/委外工序接收单/Cj_StationEntrustOutBill_Mul_PDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºå§”外接收单批量
        </a>
    </dd>
    <dd>
        <a lay-href="生产工序管理/工序汇报单/Sc_ProcessReportOverList.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºæ±‡æŠ¥å…¥åº“列表
        </a>
    </dd>
    <dd>
        <a lay-href="组装单/Sc_PCruxBindingPDA.html" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            äº§çº¿å…³é”®ä»¶ç»‘定
        </a>
    </dd>-->
                <a lay-href="车间管理/委外工序发出单/Cj_StationEntrustInBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºå§”外发出单
                </a>
            </dd>
            <dd>
                <a lay-href="车间管理/委外工序发出单/Cj_StationEntrustInBill_Mul_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºå§”外发出单批量
                </a>
            </dd>
            <dd>
                <a lay-href="车间管理/委外工序接收单/Cj_StationEntrustOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºå§”外接收单
                </a>
            </dd>
            <dd>
                <a lay-href="车间管理/委外工序接收单/Cj_StationEntrustOutBill_Mul_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºå§”外接收单批量
                </a>
            </dd>
            <dd>
                <a lay-href="生产工序管理/工序汇报单/Sc_ProcessReportOverList.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºæ±‡æŠ¥å…¥åº“列表
                </a>
            </dd>
            <dd>
                <a lay-href="组装单/Sc_PCruxBindingPDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    äº§çº¿å…³é”®ä»¶ç»‘定
                </a>
            </dd>-->
                      <!--<dd>
        <a lay-href="" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å·¥åºæ±‡æŠ¥å•null
        </a>
    </dd>-->
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å·¥åºæ±‡æŠ¥å•null
                </a>
            </dd>-->
                      <!--<dd>
        <a lay-href="" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å§”外工序计划转出单null
        </a>
    </dd>-->
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å§”外工序计划转出单null
                </a>
            </dd>-->
                      <!--<dd>
        <a lay-href="" style="color: aqua;">
            <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
            å§”外工序计划汇报单null
        </a>
    </dd>-->
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    å§”外工序计划汇报单null
                </a>
            </dd>-->
                      <dd>
                          <a href="车间管理/工序流转/MES_StationInBill_PDA.html?type=jzd" target="main_self_frame" style="color: aqua;">
                          <a href="车间管理/工序流转/MES_StationInBill_PDA_QiaoYi.html?type=jzd" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              å·¥åºè¿›ç«™æŽ¥æ”¶å•
                          </a>
                      </dd>
                      <dd>
                          <a href="车间管理/工序流转/MES_StationInBill_PDA.html?type=kgd" target="main_self_frame" style="color: aqua;">
                          <a href="车间管理/工序流转/MES_StationOutBill_PDA_QiaoYi.html?type=czd" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              å·¥åºå‡ºç«™æ±‡æŠ¥å•
                          </a>
                      </dd>
                  </dl>
              </li>
              <li data-name="set" class="layui-nav-item">
                  <a style="padding-left:20px;">
                      <img src="../layuiadmin/myicon/车间管理.svg" alt="车间管理" style="width:25px;height:25px;margin-right: 5px;" />
                      <cite>染厂管理</cite>
                  </a>
                  <dl class="layui-nav-child">
                      <dd>
                          <a href="车间管理/工序流转/MES_StationInBill_PDA_QiaoYi.html?type=kgd" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æŒ‡å¼•卡开工单
                          </a>
                      </dd>
                      <dd>
                          <a href="车间管理/工序流转/MES_StationOutBill_PDA.html?type=czd" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              å·¥åºå‡ºç«™æ±‡æŠ¥å•
                          </a>
                      </dd>
                      <dd>
                          <a href="车间管理/工序流转/MES_StationOutBill_PDA.html?type=wgd" target="main_self_frame" style="color: aqua;">
                          <a href="车间管理/工序流转/MES_StationOutBill_PDA_QiaoYi.html?type=wgd" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æŒ‡å¼•卡完工单
                          </a>
@@ -197,131 +205,137 @@
                              å¯¹è‰²è®°å½•单
                          </a>
                      </dd>
                      <dd>
                          <a href="车间管理/工序流转/MES_Sc_ProcessExchangeBillMain_Note_PDA.html" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æŒ‡å¼•卡变更单
                          </a>
                      </dd>
                  </dl>
              </li>
              <!-- æ¨¡æ²»å…·ç®¡ç† -->
              <!--<li data-name="set" class="layui-nav-item">
                  <a style="padding-left:20px;">
                      <img src="../layuiadmin/myicon/车间管理.svg" alt="车间管理" style="width:25px;height:25px;margin-right: 5px;" />
                      <cite>模治具管理</cite>
                  </a>
                  <dl class="layui-nav-child">
                      <dd>
                          <a lay-href="模治具管理/模治具点检保养/Sc_MouldDotCheckBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·ç‚¹æ£€è®°å½•单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模治具点检保养/Sc_MouldMaintainBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·ä¿å…»è®°å½•单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具维修记录单/Sc_MouldRepairWorkBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·ç»´ä¿®è®°å½•单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具寿命调整单/Sc_MouldLifeChangeBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·å¯¿å‘½è°ƒæ•´å•
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具生产领用单/Sc_MouldProdOutBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·ç”Ÿäº§é¢†ç”¨å•
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具生产退库单/Sc_MouldProdBackBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·ç”Ÿäº§é€€åº“单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具处理出库单/Sc_MouldScrapOutBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·å¤„理出库单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具报废入库单/Sc_MouldScrapInBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·æŠ¥åºŸå…¥åº“单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具其他入库单/Sc_MouldOtherInBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·å…¶ä»–入库单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具其他出库单/Sc_MouldOtherOutBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡æ²»å…·å…¶ä»–出库单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具生产领用单/Sc_MouldProdOutBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·ç”Ÿäº§é¢†ç”¨å•
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具生产退库单/Sc_MouldProdBackBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·ç”Ÿäº§é€€åº“单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具处理出库单/Sc_MouldScrapOutBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·å¤„理出库单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具改制入库单/Sc_MouldRepairInBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·æ”¹åˆ¶å…¥åº“单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具改制出库单/Sc_MouldRepairOutBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·æ”¹åˆ¶å‡ºåº“单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/模具采购入库单/Sc_MouldProdInBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              æ¨¡å…·é‡‡è´­å…¥åº“单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/设备保养记录单/Sb_EquipMaintainBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              è®¾å¤‡ä¿å…»è®°å½•单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/设备维修记录单/Sb_EquipRepairWorkBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              è®¾å¤‡ç»´ä¿®è®°å½•单
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="模治具管理/设备点检记录单/Sb_EquipDotCheckBill_PDA.html" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              è®¾å¤‡ç‚¹æ£€è®°å½•单
                          </a>
                      </dd>
                  </dl>
              </li>-->
        <a style="padding-left:20px;">
            <img src="../layuiadmin/myicon/车间管理.svg" alt="车间管理" style="width:25px;height:25px;margin-right: 5px;" />
            <cite>模治具管理</cite>
        </a>
        <dl class="layui-nav-child">
            <dd>
                <a lay-href="模治具管理/模治具点检保养/Sc_MouldDotCheckBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·ç‚¹æ£€è®°å½•单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模治具点检保养/Sc_MouldMaintainBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·ä¿å…»è®°å½•单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具维修记录单/Sc_MouldRepairWorkBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·ç»´ä¿®è®°å½•单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具寿命调整单/Sc_MouldLifeChangeBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·å¯¿å‘½è°ƒæ•´å•
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具生产领用单/Sc_MouldProdOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·ç”Ÿäº§é¢†ç”¨å•
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具生产退库单/Sc_MouldProdBackBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·ç”Ÿäº§é€€åº“单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具处理出库单/Sc_MouldScrapOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·å¤„理出库单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具报废入库单/Sc_MouldScrapInBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·æŠ¥åºŸå…¥åº“单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具其他入库单/Sc_MouldOtherInBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·å…¶ä»–入库单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具其他出库单/Sc_MouldOtherOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡æ²»å…·å…¶ä»–出库单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具生产领用单/Sc_MouldProdOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·ç”Ÿäº§é¢†ç”¨å•
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具生产退库单/Sc_MouldProdBackBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·ç”Ÿäº§é€€åº“单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具处理出库单/Sc_MouldScrapOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·å¤„理出库单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具改制入库单/Sc_MouldRepairInBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·æ”¹åˆ¶å…¥åº“单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具改制出库单/Sc_MouldRepairOutBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·æ”¹åˆ¶å‡ºåº“单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/模具采购入库单/Sc_MouldProdInBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    æ¨¡å…·é‡‡è´­å…¥åº“单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/设备保养记录单/Sb_EquipMaintainBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    è®¾å¤‡ä¿å…»è®°å½•单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/设备维修记录单/Sb_EquipRepairWorkBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    è®¾å¤‡ç»´ä¿®è®°å½•单
                </a>
            </dd>
            <dd>
                <a lay-href="模治具管理/设备点检记录单/Sb_EquipDotCheckBill_PDA.html" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    è®¾å¤‡ç‚¹æ£€è®°å½•单
                </a>
            </dd>
        </dl>
    </li>-->
              <!-- ä»“储条码管理 -->
              <li data-name="set" class="layui-nav-item">
                  <a style="padding-left:20px;">
@@ -626,47 +640,47 @@
                          </a>
                      </dd>
                      <!--<dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              åˆ†æ­¥å¼è°ƒå‡ºç¼“存列表null
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              åˆ†æ­¥å¼è°ƒå…¥ç¼“存列表null
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              é‡‡è´­é€€æ–™ç¼“存列表null
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              ç”Ÿäº§é€€åº“缓存列表null
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              ç”Ÿäº§é€€æ–™ç¼“存列表null
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              é”€å”®é€€è´§ç¼“存列表null
                          </a>
                      </dd>
                      <dd>
                          <a lay-href="" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              åˆ°è´§ç‚¹æ•°ç¼“存列表null
                          </a>
                      </dd>-->
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    åˆ†æ­¥å¼è°ƒå‡ºç¼“存列表null
                </a>
            </dd>
            <dd>
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    åˆ†æ­¥å¼è°ƒå…¥ç¼“存列表null
                </a>
            </dd>
            <dd>
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    é‡‡è´­é€€æ–™ç¼“存列表null
                </a>
            </dd>
            <dd>
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    ç”Ÿäº§é€€åº“缓存列表null
                </a>
            </dd>
            <dd>
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    ç”Ÿäº§é€€æ–™ç¼“存列表null
                </a>
            </dd>
            <dd>
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    é”€å”®é€€è´§ç¼“存列表null
                </a>
            </dd>
            <dd>
                <a lay-href="" style="color: aqua;">
                    <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                    åˆ°è´§ç‚¹æ•°ç¼“存列表null
                </a>
            </dd>-->
                  </dl>
              </li>
              <!-- ç³»ç»Ÿç®¡ç† -->
WebTM/views/index_Mobile_QiaoYi.html
@@ -188,7 +188,7 @@
                                        <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                                        æŒ‡å¼•卡开工单
                                    </a>
                                </dd>
                                </dd>
                                <dd>
                                    <a href="车间管理/工序流转/MES_StationOutBill_PDA_QiaoYi.html?type=wgd" target="main_self_frame" style="color: aqua;">
                                        <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
@@ -207,6 +207,12 @@
                                        å¯¹è‰²è®°å½•单
                                    </a>
                                </dd>
                                <dd>
                                    <a href="车间管理/工序流转/MES_Sc_ProcessExchangeBillMain_Note_PDA.html" target="main_self_frame" style="color: aqua;">
                                        <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                                        æŒ‡å¼•卡变更单
                                    </a>
                                </dd>
                            </dl>
                        </li>
                        <!-- æ¨¡æ²»å…·ç®¡ç† -->
WebTM/views/Éú²ú¹ÜÀí/Éú²ú¼Æ»®Æ½Ì¨/JIT_DayPlanPlatForm.html
@@ -540,6 +540,7 @@
            var oneday = 1000 * 60 * 60 * 24;
            columns.push({ type: 'checkbox', fixed: 'left' });
            columns.push({ type: 'numbers', title: '序号'});
            columns.push({ field: '单据号', title: '单据号', hide: true });
            columns.push({ field: '销售订单号', title: '销售订单号', width: 150});
            columns.push({ field: '生产订单号', title: '生产订单号', width: 150, style: 'background-color: #f9f9f9;' });
@@ -2069,7 +2070,7 @@
            //var sMainStr = JSON.stringify(data.field);
            var sSubStr = JSON.stringify(num);
            var sMainSub = sSubStr +";" + sessionStorage["HUserName"];
            var sMainSub = sSubStr +"&和" + sessionStorage["HUserName"];
            var index = layer.load();
            $.ajax({
@@ -2355,7 +2356,7 @@
        //列明显示下拉框
        function ColFilter() {
            var Organization = '<option  value="0" selected="selected" ></option>';
            for (var i = 1; i < option.cols[0].length - 1; i++) {
            for (var i = 2; i < option.cols[0].length - 1; i++) {
                if (option.cols[0][i].hide != true) {
                    Organization += '<option  style="color:blue;" value="' + option.cols[0][i].field + '">' + option.cols[0][i].field + '</option>';
                }
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת/MES_Sc_ProcessExchangeBillMain_Note_PDA.html
New file
@@ -0,0 +1,454 @@
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>指引卡变更单</title>
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!--引用layui js文件-->
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <!--自定义样式-->
    <style>
        .layui-form-label {
            font-size: 14px;
            width: 85px;
            text-align: inherit;
        }
        /*全局设置输入框高度*/
        .layui-input {
            height: 30px;
        }
        /*设置表头输入框*/
        .t1_input {
            padding: 1%;
        }
        /*本站信息td*/
        .bz_td {
            display: -webkit-box; /*设置按钮不换行*/
            padding: 1%; /*设置输入框边距*/
        }
        /*设置本站信息按钮高度*/
        .bz_btu {
            height: 30px;
            width: 60px;
            line-height: 30px;
        }
        th {
            width: 70px;
            text-align: left;
        }
    </style>
</head>
<body>
    <div class="layui-fluid" style="padding: 0;">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 1px;">
                <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;" class="gxcz"><i class="layui-icon layui-icon-form"></i>指引卡变更单</span>
                    </div>
                    <div class="layui-form-item" style="margin: 1% 2%;text-align: right;">
                        <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius" id="Saver">保存</button>
                        <button type="button" lay-submit="" lay-filter="Add" class="layui-btn layui-btn-radius" id="Add">新增</button>
                        <button type="button" lay-submit="" lay-filter="Cancel" class="layui-btn layui-btn-radius layui-btn-danger">退出</button>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <table style="width:80%;">
                                        <tbody>
                                            <tr>
                                                <th>条形码</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码后回车" style="border-radius: 50px;">
                                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu layui-btn-radius" lay-filter="QueDin" style="line-height: 30px;">确定</button>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>原生产资源</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HSourceName" class="layui-input" id="HSourceName" placeholder="选择生产资源" style="border-radius: 50px; background-color: #efefef4d;">
                                                    <input type="hidden" name="HSouceID_Original" id="HSouceID_Original" value="0" autocomplete="off" class="layui-input" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>生产资源</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HSource_NowName" class="layui-input" id="HSource_NowName" placeholder="选择生产资源" style="border-radius: 50px; background-color: #efefef4d;">
                                                    <input type="hidden" name="HSouceID_Now" id="HSouceID_Now" value="0" autocomplete="off" class="layui-input">
                                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionResources-BT" id="ProductionResources-BT" style="font-weight:bolder;">...</button>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>生产组织</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HOrgName" class="layui-input" id="HOrgName" placeholder="生产组织" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                    <input type="hidden" name="HOrgID" id="HOrgID" value="0" autocomplete="off" class="layui-input">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>生产订单</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="生产订单号" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                    <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0" autocomplete="off" class="layui-input">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>工序流转卡</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                    <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" value="0" autocomplete="off" class="layui-input">
                                                    <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" value="0" autocomplete="off" class="layui-input">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>指引卡</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HBillNo_Note" class="layui-input" id="HBillNo_Note" placeholder="指引卡" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                    <input type="hidden" name="HProcExchHinteID" class="layui-input" id="HProcExchHinteID">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>物料代码</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HMaterNumber" class="layui-input" id="HMaterNumber" placeholder="产品代码" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                    <input type="hidden" name="HMaterID" class="layui-input" id="HMaterID">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>物料名称</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HMaterName" class="layui-input" id="HMaterName" value="" placeholder="物料名称" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>规格型号</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="规格型号" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>计量单位</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HUnitName" class="layui-input" id="HUnitName" placeholder="选择计量单位" style="border-radius: 50px; background-color: #efefef4d;">
                                                    <input type="hidden" name="HUnitID" id="HUnitID" value="0" autocomplete="off" class="layui-input">
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>工序</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="选择工序" style="background-color:#efefef4d;border-radius: 50px;">
                                                    <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="layui-tab-item">
                                    <table style="width:80%;">
                                        <tbody>
                                            <tr>
                                                <th>制单人</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HMaker" class="layui-input" id="HMaker" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>制单日期</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HMakeDate" class="layui-input" id="HMakeDate" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>修改人</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HUpDater" class="layui-input" id="HUpDater" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>修改日期</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HUpDateDate" class="layui-input" id="HUpDateDate" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>审核人</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HChecker" class="layui-input" id="HChecker" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>审核日期</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HCheckDate" class="layui-input" id="HCheckDate" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>作废人</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HDeleteMan" class="layui-input" id="HDeleteMan" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>作废日期</th>
                                                <td class="bz_td">
                                                    <input type="text" name="HDeleteDate" class="layui-input" id="HDeleteDate" style="border-radius: 50px;background-color:#efefef4d;" readonly>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <ul class="layui-tab-title">
                                <li class="layui-this">单据信息</li>
                                <li>制单信息</li>
                            </ul>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'laydate', 'table', 'element', 'upload'], function () {
        var $ = layui.$
            , admin = layui.admin
            , layer = layui.layer
            , table = layui.table
            , form = layui.form
            , laydate = layui.laydate
            , upload = layui.upload
            , element = layui.element;
        //#region å…¬å…±å˜é‡
        var params = get_UrlVars();
        var option = [];
        var titleData = [];
        //#endregion
        //#region è¿›å…¥é¡µé¢å³åŠ è½½
        var params = getUrlVars();
        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]];  //关闭类型
        }
        //判断是否新增
        if (OperationType == 1) {
            $("#HInterID").val("");
            $("#HBillNo").val("");
            $('#Add').addClass("layui-btn-disabled").attr("disabled", true);//新增按钮默认禁用
        }
        //进入页面默认光标在条形码上
        $("#HBarCode").focus();
        //流转卡是否扫描标记
        var HProcExchBillNoFlag = false;
        //初始基本信息赋值
        $("#HMaker").val(sessionStorage["HUserName"]);
        $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss"));
        $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
        //#endregion
        //#region è§¦å‘事件:包括form.on(){}格式的所有点击事件、选择事件等
        //条形码回车方法
        $('#HBarCode').on('keydown', function (event) {
            var HBarCode = $('#HBarCode').val();
            if (event.keyCode == 13) {
                if (!HBarCode) {
                    layer.msg("条形码不能为空!")
                    return;
                }
                txtHBarCode_KeyDown(HBarCode);
            }
        });
        //选择生产资源弹窗
        form.on('submit(ProductionResources-BT)', function () {//生产资源
            layer.open({
                type: 2 //类型
                , skin: 'layui-layer-rim'//加上边框
                , area: ['90%', '90%']//大小
                , title: '生产资源列表'//标题
                , shift: 2//弹出动画
                , content: ['../../基础资料/生产基础资料/Gy_Source.html', 'yes']
                , btn: ['确定', '取消']
                , btn1: function (index, layero) {//按钮【按钮一】的回调
                    var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                    if (checkStatus.data.length === 0) {
                        return layer.msg('请选择数据');
                    }
                    //获取数据
                    $("#HSouceID_Now").val(checkStatus.data[0].HItemID);
                    $("#HSource_NowName").val(checkStatus.data[0].生产资源名称);
                    layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                }
            })
        });
        //提交
        form.on('submit(Saver)', function (data) {//提交
            if (!HProcExchBillNoFlag) {
                layer.msg("请扫条码!");
                return;
            }
            Get_Save(data);
        });
        //退出--全屏版
        form.on('submit(Cancel)', function () {
            layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                parent.location.href = "../../../views/index_Mobile_QiaoYi.html";
            });
        })
        form.on('submit(Add)', function () {//提交
            layer.confirm('新增后页面数据将消失?', { icon: 3, title: '提示' }, function (index) {
                location.replace('MES_Sc_ProcessExchangeBillMain_Note_PDA.html?OperationType=1&linterid=0&HSouceBillType=&HBillNo=&closeType=2');
            });
        })
        //#endregion
        //#region æ­¤é¡µé¢æ‰€æœ‰çš„æ–¹æ³•
        function txtHBarCode_KeyDown(HBarCode) {
            //扫码类型2
            var barNo2 = HBarCode.substr(0, 4);
            var index = layer.load();
            $.ajax({
                url: GetWEBURL() + "/MES_SampleRecordBill_PDA/SampleRecordBillHBarCode_KeyDown",
                type: "GET",
                async: false,
                data: { "HBarCode": HBarCode, "HInterID": $('#HProcExchHinteID').val(), "UserID": sessionStorage["Czybm"], "HBillType": "" },
                success: function (result) {
                    if (result.count == 1) {
                        var data = result.data[0];
                        switch (barNo2) {
                            case "GXLX":
                                form.val("formData", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "HBillNo_Note": data.单据号,
                                    "HProcExchBillNo": data.HMainSourceBillNo,
                                    "HProcExchInterID": data.HMainSourceInterID,
                                    "HProcExchEntryID": data.HMainSourceEntryID,
                                    "HICMOInterID": data.hicmointerid,
                                    "HICMOBillNo": data.任务单号,
                                    "HMaterID": data.HMaterID,
                                    "HMaterName": data.产品,
                                    "HMaterNumber": data.产品代码,
                                    "HMaterModel": data.规格型号,
                                    "HOrgID": data.组织,
                                    "HOrgName": data.组织名称,
                                    "HUnitID": data.HUnitID,
                                    "HUnitName": data.单位,
                                });
                                HProcExchBillNoFlag = true;
                                var HProcExchHinteID = $('#HProcExchHinteID').val();
                                break;
                        }
                        $.ajax({
                            url: GetWEBURL() + "/MES_SampleRecordBill_PDA/SampleRecordBillHBarCode_KeyDown",
                            type: "GET",
                            async: false,
                            data: { "HBarCode": data.HMainSourceBillNo, "HInterID": $('#HProcExchHinteID').val(), "UserID": sessionStorage["Czybm"], "HBillType": "" },
                            success: function (result) {
                                if (result.count == 1) {
                                    var data = result.data[0];
                                    form.val("formData", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                        "HSouceID_Original": data.HSourceID,
                                        "HSourceName": data.生产资源
                                    });
                                }
                            }
                        })
                        layer.close(index);
                        //清空条码框
                        $('#HBarCode').val("");
                    }
                    else {
                        layer.close(index);
                        layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                },
                error: function (err) {
                    layer.close(index);
                    layer.msg("接口请求失败!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                }
            });
        }
        //保存
        function Get_Save(data) {
            var oMain = JSON.stringify(data.field) + ";" + sessionStorage["HUserName"] + ";" + OperationType;
            var index = layer.load();
            $.ajax({
                type: "POST",
                url: GetWEBURL() + "/MES_Sc_ProcessExchangeBillMain_Note_PDA/ProcessExchangeBillMain_NoteAddBill",
                async: false,
                data: { "oMain": oMain },
                dataType: "json",
                success: function (data) {
                    if (data.count == 1) {
                        layer.close(index);
                        layer.msg("提交成功");
                        $('#Add').removeClass("layui-btn-disabled").attr("disabled", false);//新增按钮启用
                        $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);//禁用保存按钮
                    }
                    else {
                        layer.close(index);
                        layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                },
                error: function (err) {
                    layer.close(index);
                    layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                }
            });
        }
        //获取参数
        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        //#endregion
        //以上为layui模块
    });
</script>