username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//校验货品名称
function verify_CKGoodsName(obj, msg, tips) {
    $.ajax({
        url: '/Pages/procurement/GoodsInfoEdit.aspx',
        type: "POST",
        dataType: "html",
        data: { GoodsName: $(obj).val(), varitype: "GoodsName", id: document.getElementById('txtId').value },
        global: false,
        cache: false,
        success: function (msg) {
            //alert(msg);
            if (msg == '0') {
                set_flag_verify(obj, "已存在,请重新填写", tips, false);
            } else {
                set_flag_verify(obj, msg, tips, true);
            }
        }
    });
    set_flag_verify(obj, msg, tips, true);
}