ebu_ecology_dev1/javascript/xuanran.wang/bme/js/InventFileFirst.js

31 lines
869 B
JavaScript
Raw Permalink Normal View History

2023-03-15 13:50:48 +08:00
// 存货分类编码
const chflbmId = WfForm.convertFieldNameToId("chflbm");
// 流程类型
const workflowType = WfForm.convertFieldNameToId("lcxz");
// 唯一编码
const unqieCode = WfForm.convertFieldNameToId("wybm");
// 帐套查询
const zt = WfForm.convertFieldNameToId("ztcx");
// 存货编码
const chbm = WfForm.convertFieldNameToId("chbm2");
changeVal();
WfForm.bindFieldChangeEvent(chflbmId, function(obj,id,value){
changeVal();
});
function changeVal(){
let value = WfForm.getFieldValue(chflbmId)
console.log('value: ', value);
if(!value){
return;
}
let firstVal = value.charAt(0);
if(firstVal == 0){
value = value.substring(1, value.length);
console.log('修改后的val ', value);
setTimeout(()=>{
$(`#${chflbmId}span`)[0].innerHTML = value;
},5);
}
}