零售和收预付款,支持刷会员卡的功能
This commit is contained in:
parent
cd8c0160cd
commit
79dad49adb
@ -619,6 +619,18 @@
|
||||
initTableData_account("add"); //明细列表
|
||||
reject(); //撤销下、刷新材料列表
|
||||
url = path + '/accountHead/create.action';
|
||||
|
||||
//收预付款单据支持刷卡功能
|
||||
if(listType == "收预付款") {
|
||||
//当会员卡号长度超过10位后,自动点击下拉框,用于兼容刷卡器
|
||||
$("#OrganId").next().find("input").off("keyup").on("keyup",function(){
|
||||
if($(this).val().length === 10){
|
||||
setTimeout(function(){
|
||||
$(".combo-panel .combobox-item-selected").click();
|
||||
},500);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//编辑信息
|
||||
|
||||
@ -207,7 +207,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
//初始化系统基础信息
|
||||
//初始化供应商、客户、散户信息
|
||||
function initSupplier(){
|
||||
$('#OrganId').combobox({
|
||||
url: organUrl,
|
||||
@ -797,7 +797,15 @@
|
||||
//零售单据修改收款时,自动计算找零
|
||||
if(listSubType == "零售" || listSubType == "零售退货") {
|
||||
$("#payType").val("现付");
|
||||
$("#OrganId").combobox("setValue", orgDefaultId);
|
||||
$("#OrganId").combobox("setValue", orgDefaultId); //自动默认选择非会员
|
||||
//当会员卡号长度超过10位后,自动点击下拉框,用于兼容刷卡器
|
||||
$("#OrganId").next().find("input").off("keyup").on("keyup",function(){
|
||||
if($(this).val().length === 10){
|
||||
setTimeout(function(){
|
||||
$(".combo-panel .combobox-item-selected").click();
|
||||
},500);
|
||||
}
|
||||
});
|
||||
var getAmount = $("#depotHeadFM .get-amount");
|
||||
var changeAmount = $("#depotHeadFM .change-amount");
|
||||
var backAmount = $("#depotHeadFM .back-amount");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user