WebTM/views/WMSɨÂëÄ£¿é/ÆäËûÈë¿â/Kf_OtherInBill_PDA.html
@@ -428,7 +428,8 @@
                                icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () { parent.location.href = "../../../views/index_Mobile.html"; });
                        }
                    }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                });
                layer.closeAll("loading");
            }
@@ -439,12 +440,22 @@
                console.log("playSound");
                var audio = document.getElementById("cs");
                audio.play();
                audio.onended = function () {
                    // å½“音频播报完成时,调用 pause å’Œè®¾ç½® currentTime ä¸º 0 ä»¥åœæ­¢æ’­æŠ¥å¹¶é‡ç½®
                    audio.pause();
                    audio.currentTime = 0;
                };
            }
            //成功提示音
            function playSound_OK() {
                console.log("playSound_OK");
                var audio = document.getElementById("cs2");
                audio.play();
                audio.onended = function () {
                    // å½“音频播报完成时,调用 pause å’Œè®¾ç½® currentTime ä¸º 0 ä»¥åœæ­¢æ’­æŠ¥å¹¶é‡ç½®
                    audio.pause();
                    audio.currentTime = 0;
                };
            }
            //#region åˆå§‹åŒ–界面
@@ -532,7 +543,8 @@
                            form.render('select');
                        }
                        layer.closeAll("loading");
                    }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                })
            }
            //初始化表格
@@ -544,6 +556,9 @@
                    , height: 'full-60'
                    , cellMinWidth: 90
                    , limit: 50
                    , done: function () {
                        layer.closeAll("loading");
                    }
                };
            }
@@ -595,7 +610,8 @@
                        else {
                            layer.msg(d.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                });
                HSourceFlag = false;
            }
@@ -618,8 +634,10 @@
                            var optionHtml = '';
                            optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '入库申请单' + "</option>";
                            $("#HMainSourceBillType").append(optionHtml);
                            layui.form.render('select');
                            $("#HMainSourceBillType").attr("disabled", "disabled");
                            $("#HBillSubType").val("QTRKD01_SYS");   //标准其他入库单
                            $("#HBillSubType").attr("disabled", "disabled");
                            layui.form.render('select');
                            //供应商不可编辑
                            $("#HSupName").attr("disabled", "disabled");
                            $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
@@ -646,7 +664,8 @@
                        $("#HSupID").val(d.data[0].HCusID);
                        $("#HSupName").val(d.data[0].HSupName);
                        $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
                    }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                })
            }
@@ -717,7 +736,8 @@
                                });
                            }
                            layer.closeAll("loading");
                        }
                        },
                        complete: function (XHR, TS) { XHR = null }//回收资源
                    });
                }
            });
@@ -797,7 +817,8 @@
                                });
                            }
                            layer.closeAll("loading");
                        }
                        },
                        complete: function (XHR, TS) { XHR = null }//回收资源
                    });
                }
            });
@@ -870,7 +891,8 @@
                                });
                            }
                            layer.closeAll("loading");
                        }
                        },
                        complete: function (XHR, TS) { XHR = null }//回收资源
                    });
                }
            });
@@ -939,7 +961,8 @@
                                });
                            }
                            layer.closeAll("loading");
                        }
                        },
                        complete: function (XHR, TS) { XHR = null }//回收资源
                    });
                }
            });
@@ -1008,7 +1031,8 @@
                                });
                            }
                            layer.closeAll("loading");
                        }
                        },
                        complete: function (XHR, TS) { XHR = null }//回收资源
                    });
                }
            });
@@ -1077,7 +1101,8 @@
                                });
                            }
                            layer.closeAll("loading");
                        }
                        },
                        complete: function (XHR, TS) { XHR = null }//回收资源
                    });
                }
            });
@@ -1167,6 +1192,7 @@
                                    layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            },
                            complete: function (XHR, TS) { XHR = null },//回收资源
                            error: function (err) {
                                layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
@@ -1243,6 +1269,7 @@
                                        layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    }
                                },
                                complete: function (XHR, TS) { XHR = null },//回收资源
                                error: function (err) {
                                    layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
@@ -1314,11 +1341,13 @@
                            $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                            $("#HMainSourceBillType").attr("disabled", "disabled");
                            form.render('select');
                            if (result.data.hMulSourceFlagField == 0) {
                                $("#HSourceBillNo").attr("disabled", "disabled");
                                $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                            }
                            $("#HBillSubType").val("QTRKD01_SYS");   //标准其他入库单
                            $("#HBillSubType").attr("disabled", "disabled");
                            form.render('select');
                            //供应商不可编辑
                            $("#HSupName").attr("disabled", "disabled");
                            $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
@@ -1338,7 +1367,8 @@
                                $("#HSourceBillNo").focus();
                            });
                        }
                    }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                });
                layer.closeAll("loading");
            }
@@ -1422,6 +1452,7 @@
                                    });
                                }
                            },
                            complete: function (XHR, TS) { XHR = null },//回收资源
                            error: function (err) {
                                playSound();
                                layer.msg('错误' + err, {
@@ -1521,6 +1552,9 @@
                                        $("#HSourceBillNo").attr("disabled", "disabled");
                                        $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                    }
                                    $("#HBillSubType").val("QTRKD01_SYS");   //标准其他入库单
                                    $("#HBillSubType").attr("disabled", "disabled");
                                    form.render('select');
                                    //供应商不可编辑
                                    $("#HSupName").attr("disabled", "disabled");
                                    $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
@@ -1546,8 +1580,10 @@
                                            var optionHtml = '';
                                            optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '入库申请单' + "</option>";
                                            $("#HMainSourceBillType").append(optionHtml);
                                            layui.form.render('select');
                                            $("#HMainSourceBillType").attr("disabled", "disabled");
                                            $("#HBillSubType").val("QTRKD01_SYS");   //标准其他入库单
                                            $("#HBillSubType").attr("disabled", "disabled");
                                            layui.form.render('select');
                                        }
                                        else {
                                            $("#HMainSourceBillType").empty();
@@ -1582,6 +1618,7 @@
                                });
                            }
                        },
                        complete: function (XHR, TS) { XHR = null },//回收资源
                        error: function (err) {
                            playSound();
                            layer.msg("错误!" + err, {
@@ -1698,7 +1735,8 @@
                            $("#HWHName_B").val("");
                            $("#HSPName_B").val("");
                        }
                    }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                });
            }