Index: ssts-web/src/main/webapp/disinfectsystem/goodsBindingConfig/goodsBindHandler.js =================================================================== diff -u -r27591 -r28031 --- ssts-web/src/main/webapp/disinfectsystem/goodsBindingConfig/goodsBindHandler.js (.../goodsBindHandler.js) (revision 27591) +++ ssts-web/src/main/webapp/disinfectsystem/goodsBindingConfig/goodsBindHandler.js (.../goodsBindHandler.js) (revision 28031) @@ -27,9 +27,10 @@ /** * 添加捆绑物 * @param records 需要添加的捆绑物的对象 + * @param type 申请单类型 * @returns {boolean} */ -GoodsBindHandler.prototype.addBindGood = function (records) { +GoodsBindHandler.prototype.addBindGood = function (records,type) { top.Ext4.each(records, function (record) { var id = record.id; var name = record.name; @@ -84,16 +85,17 @@ top.Ext4.Msg.alert("提示消息", "申请数量大于最大可申请数量"); } addItems(id, name, count, isDisposableGoods, isApplyEntireTousse, originalPrice, price, externalCode, storageAmount, - tousseType, materials, unit, packageSpec, minApplyAmount, maxApplyAmount, urgentAmount,urgentLevel,urgentLevelId, para, expressInvoice); + tousseType, materials, unit, packageSpec, minApplyAmount, maxApplyAmount, urgentAmount,urgentLevel,urgentLevelId, para, expressInvoice,type); }); return true; } /** * 处理需要捆绑的物品,先得到对应选择的物品的名字和数量,然后从后台查询出该物品的所有绑定物和对应的捆绑数量,然后添加到表格上 * @param params 如果参数为空说明是点击添加时触发的绑定物品动作,curSelectedGoods前面已经判空了 + * @param type 申请单类型 */ -GoodsBindHandler.prototype.handleBindGood = function (params) { +GoodsBindHandler.prototype.handleBindGood = function (params,type) { var me = this; if (!params) { params = { @@ -179,7 +181,7 @@ return; } - me.addBindGood(records); + me.addBindGood(records,type); } } else { //绑定失败,不提示