31 lines
869 B
JavaScript
31 lines
869 B
JavaScript
|
// 存货分类编码
|
||
|
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);
|
||
|
}
|
||
|
}
|