在采购单据,增加仓库添加功能
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
$.get("../../pages/template/base.html", function(tem) {
|
||||
$.get("../../pages/template/base.html?999", function(tem) {
|
||||
if(tem) {
|
||||
var template = Handlebars.compile(tem);
|
||||
/**
|
||||
* 加载供应商、客户模块
|
||||
*/
|
||||
$("body").append(template({
|
||||
$("#supplier").html(template({
|
||||
supplierSelect: true
|
||||
}));
|
||||
$('#supplierDlg').dialog({
|
||||
@@ -24,12 +24,38 @@ $.get("../../pages/template/base.html", function(tem) {
|
||||
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'
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user