kyy
5 天以前 08a370a9e96e1e7772551b97c381be7d9fa61aa4
H5/Js/IPQC_XJ/Add.js
@@ -1,4 +1,4 @@
var vm = new Vue({
var vm = new Vue({
    el: '#app',
    data: function () {
        return {
@@ -192,6 +192,46 @@
            
        },
        getInputOK() {
            var that = this;
            var jys = parseFloat(that.tableData[that.tabActive].checkQyt); //检验项目的检验数
            if (!that.okValue) {
                this.$toast.fail("OK数不能为空");
                that.isLoading = false;
                return;
            }
            if (jys < parseFloat(that.okValue)) {
                that.$toast.fail("录入数量不能大于检验数!");
                that.okValue = null;
                return;
            }
            // 切换指定索引的 popup 状态
            var resultValue = "OK-" + this.okValue;
            this.addJyzIpqc(resultValue);
            that.okValue = null;
        },
        getInputNG() {
            var that = this;
            var jys = parseFloat(that.tableData[that.tabActive].checkQyt); //检验项目的检验数
            if (!that.ngValue) {
                this.$toast.fail("NG数不能为空");
                that.isLoading = false;
                return;
            }
            if (jys < parseFloat(that.ngValue)) {
                that.$toast.fail("录入数量不能大于检验数!");
                that.ngValue = null;
                return;
            }
            // 切换指定索引的 popup 状态
            var resultValue = "NG-" + this.ngValue;
            this.addJyzIpqc(resultValue);
            that.ngValue = null;
        },
        addJyzIpqc(input) {
            var that = this;
            var guid1 = that.formData.guid;//主表id