YYC
2023-11-04 3d8dfc3dd31f73dd7ba33d020193f9ab0764fa56
igds-web/src/main/resources/static/admin/inout/in-check.js
@@ -131,7 +131,6 @@
    var limit = data.upperLimit;
    //运算符
    var symbol = data.operaSymbol;
    if (symbol && limit) {
        if (">=" == symbol) {
            if (newValue < limit) {
@@ -363,7 +362,8 @@
            title: '备注说明',
            align: 'center',
            edit: 'text'
        }]]
        }]],
        limit: this.curCheckItems.length //显示的数量
    });
    $("thead tr").css({
@@ -491,6 +491,11 @@
//保存提交
function submit() {
    console.log(curCheckData)
    if (!curCheckData.sampleUser) {
        layer.alert("请先扦样!!");
        return;
    }
    if (curCheckData.checkStatus == "NONE" || curCheckData.checkStatus == "NONE2") {
        layer.alert("请确认化验结果!!");
        return;
@@ -501,6 +506,10 @@
    }
    if (!curCheckData.foodLevel) {
        layer.alert("请确认粮食等级!!");
        return;
    }
    if (!curCheckData.foodType) {
        layer.alert("请确认粮食性质!!");
        return;
    }
    if (!curCheckData.price) {
@@ -618,7 +627,7 @@
        }, {
            field: 'registerTime',
            title: '登记时间',
            width: '15%',
            width: '13%',
            style: 'font-weight: bold'
        }, {
            field: 'sampleStatus',
@@ -643,12 +652,26 @@
        }, {
            field: 'sampleTime',
            title: '扦样时间',
            width: '15%',
            width: '13%',
            style: 'font-weight: bold'
        }, {
            field: 'foodType',
            title: '粮食性质',
            width: '9%',
            templet: function (item) {
                var result = item.foodType;
                $.each(listFoodType, function (index, data) {
                    if (item.foodType == data.code) {
                        result = data.name;
                        return true;
                    }
                });
                return result == null ? "" : result;
            }
        }, {
            field: 'foodVariety',
            title: '粮食品种',
            width: '11%',
            width: '9%',
            templet: function (item) {
                var result = item.foodVariety;
                $.each(listFoodVariety, function (index, data) {
@@ -662,7 +685,7 @@
        }, {
            field: 'depotId',
            title: '装卸仓库',
            width: '11%',
            width: '10%',
            templet: function (item) {
                var result = item.depotId;
                $.each(listDepot, function (index, data) {