流程表單JavaScript代碼

---- 訂單流程 -----------


//表單加載初始化時 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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章