流程表单JavaScript代码

发布时间 2023-05-24 15:12:55作者: liskov_design
---- 订单流程 -----------


//表单加载初始化时 function preinit() { } //表单加载完成,isrun代表流程是否流转中 1-是,0-否 function Loaded(isrun) { $("#om_order_status").attr("disabled", "disabled"); if (nodename == "开始") { $("#om_contract_image").parent().parent().hide(); $("#om_invoice_image").parent().parent().hide(); $("#om_order_status").parent().parent().hide(); } if (nodename == "内部确认") { $("#om_contract_image").parent().parent().hide(); $("#om_invoice_image").parent().parent().hide(); } } //提交前的校验 function validate() { if (nodename == "内部确认") { $("#om_order_status").val("服务中"); } if (nodename == "补充订单信息") { var arr = get_file_path_from_encode_value($("#om_contract_image").html()); if (arr.length == 0) { msg_error("请上传合同资料"); return false; } arr = get_file_path_from_encode_value($("#om_invoice_image").html()); if (arr.length == 0) { msg_error("请上传发票资料"); return false; } $("#om_order_status").val("已完成"); } return true; } //init function no delete $(function () { preinit(); });

  

 

 

 

done