<script>
jQuery(document).ready(function () {
GetDiffMin();
WfForm.bindFieldChangeEvent("field9190,field9191",function () {
GetDiffMin();
});
});
function GetDiffMin(){
var startTime=WfForm.getFieldValue('field9190');
var endTime=WfForm.getFieldValue('field9191');
var start1=startTime.split(":");
var startAll=parseInt(start1[0])+parseInt(start1[1]);
var end1=endTime.split(":");
var endAll=parseInt(end1[0])+parseInt(end1[1]);
var Min=endAll-startAll;
if(Min<0){
window.antd.message.info('结束时间不能小于开始时间,请重新填写');
WfForm.changeFieldValue("field9228", {value:""});
}else{
WfForm.changeFieldValue("field9228", {value:Min});
}
}
</script>