| | |
| | | config: { |
| | | parentCmp: null, |
| | | editCustomerName: null, |
| | | editWarehouseName: null, |
| | | showAddButton: false |
| | | }, |
| | | |
| | |
| | | Ext.define(modelName, { |
| | | extend: "Ext.data.Model", |
| | | fields: ["id", "code", "name", "spec", "unitName", |
| | | "salePrice", "memo", "priceSystem", "taxRate"] |
| | | "salePrice", "memo", "priceSystem", "taxRate", "invCnt"] |
| | | }); |
| | | |
| | | var store = Ext.create("Ext.data.Store", { |
| | |
| | | dataIndex: "spec", |
| | | menuDisabled: true, |
| | | flex: 1 |
| | | }, { |
| | | header: "当前库存", |
| | | dataIndex: "invCnt", |
| | | menuDisabled: true, |
| | | align: "right", |
| | | width: 100 |
| | | }, { |
| | | header: "单位", |
| | | dataIndex: "unitName", |
| | |
| | | handler: me.onOK, |
| | | scope: me |
| | | }, { |
| | | text: "取消", |
| | | handler: function () { |
| | | wnd.close(); |
| | | } |
| | | }); |
| | | text: "取消", |
| | | handler: function () { |
| | | wnd.close(); |
| | | } |
| | | }); |
| | | |
| | | var wnd = Ext.create("Ext.window.Window", { |
| | | title: "选择 - 商品", |
| | | header: false, |
| | | border: 0, |
| | | width: 950, |
| | | width: 1050, |
| | | height: 300, |
| | | layout: "border", |
| | | items: [{ |
| | |
| | | customerId = editCustomer.getIdValue(); |
| | | } |
| | | |
| | | var warehouseId = null; |
| | | var editWarehouse = Ext.getCmp(me.getEditWarehouseName()); |
| | | if (editWarehouse) { |
| | | warehouseId = editWarehouse.getIdValue(); |
| | | } |
| | | |
| | | wnd.on("close", function () { |
| | | me.focus(); |
| | | }); |
| | |
| | | + "Home/Goods/queryDataWithSalePrice", |
| | | params: { |
| | | queryKey: editName.getValue(), |
| | | customerId: customerId |
| | | customerId: customerId, |
| | | warehouseId: warehouseId |
| | | }, |
| | | method: "POST", |
| | | callback: function (opt, success, response) { |