从源更新
This commit is contained in:
61
erp_web/js/pages/materials/add_temp.js
Normal file
61
erp_web/js/pages/materials/add_temp.js
Normal file
@@ -0,0 +1,61 @@
|
||||
$.get("../../pages/template/base.html?789", function(tem) {
|
||||
if(tem) {
|
||||
var template = Handlebars.compile(tem);
|
||||
/**
|
||||
* 加载供应商、客户模块
|
||||
*/
|
||||
$("#supplier").html(template({
|
||||
supplierSelect: true
|
||||
}));
|
||||
$('#supplierDlg').dialog({
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
closable: true
|
||||
});
|
||||
$("#supplierDlg #supplier").validatebox({
|
||||
required: true,
|
||||
validType: 'length[2,30]'
|
||||
});
|
||||
$("#supplierDlg #email").validatebox({
|
||||
validType: 'email'
|
||||
});
|
||||
$("#BeginNeedGet,#BeginNeedPay,#AllNeedGet,#AllNeedPay").numberbox({
|
||||
min:0,
|
||||
precision:2
|
||||
});
|
||||
$("#saveSupplier").linkbutton({
|
||||
iconCls: 'icon-ok'
|
||||
});
|
||||
$("#cancelSupplier").linkbutton({
|
||||
iconCls: 'icon-cancel'
|
||||
});
|
||||
|
||||
/**
|
||||
* 加载仓库
|
||||
*/
|
||||
$("#depot").html(template({
|
||||
depotSelect: true
|
||||
}));
|
||||
$('#depotDlg').dialog({
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
closable: true
|
||||
});
|
||||
$("#depotDlg #name,#depotDlg #address").validatebox({
|
||||
required: true,
|
||||
validType: 'length[2,30]'
|
||||
});
|
||||
$("#depotDlg #warehousing,#depotDlg #truckage").numberbox({
|
||||
min:0,
|
||||
precision:2
|
||||
});
|
||||
$("#saveDepot").linkbutton({
|
||||
iconCls: 'icon-ok'
|
||||
});
|
||||
$("#cancelDepot").linkbutton({
|
||||
iconCls: 'icon-cancel'
|
||||
});
|
||||
}
|
||||
});
|
||||
2889
erp_web/js/pages/materials/in_out.js
Normal file
2889
erp_web/js/pages/materials/in_out.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user