Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js =================================================================== diff -u -r21844 -r21858 --- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js (.../goodsApplicationView.js) (revision 21844) +++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js (.../goodsApplicationView.js) (revision 21858) @@ -321,16 +321,16 @@ autoLoad: true, proxy : { type : 'ajax', - url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getApplicationDepartJson.do', + url : WWWROOT + '/systemmanage/orgUnit/searchApplyDepartmentByKeyWord.do?onlyOneself=false', reader : { type : 'json', totalProperty : 'totalCount', root : 'data' } }, fields : [ - {name : 'id',mapping : 'id'}, - {name : 'name',mapping : 'name'} + {name : 'id',mapping : 'departmentCode'}, + {name : 'name',mapping : 'departmentName'} ] }); @@ -401,7 +401,8 @@ {name : 'tousseType',mapping : 'tousseType'}, {name : 'isApplyEntireTousse',mapping : 'isApplyEntireTousse'}, {name : 'displayName',mapping : 'displayName'}, //个性化物品名字 - {name : 'price',mapping : 'price'}, + {name : 'originalPrice',mapping : 'originalPrice'}, //单价(没有浮动,此属性只适用于一次性物品,器械包没值的) + {name : 'price',mapping : 'price'}, //单价(已经浮动) {name : 'packageSpec',mapping : 'packageSpec'}, {name : 'unit',mapping : 'unit'}, {name : 'amount',mapping : 'amount'}, //一次性物品库存数量(说明:如果storageUseStorageSubtractWaitDeliver配置成true则:库存=现有的库存-待发货数量,否则就是现有的库存量) @@ -584,8 +585,9 @@ {name : 'expressInvoice'}, //是否快速发货 {name : 'externalCode'}, //外部编码 {name : 'packageSpec'}, //包装规格 - {name : 'price'}, //单价 - {name : 'totalPrice'}, //小计 + {name : 'originalPrice'}, //单价(没有浮动,此属性只适用于一次性物品,器械包没值的) + {name : 'price'}, //单价(已经浮动) + {name : 'totalPrice'}, //小计(已经浮动) {name : 'storage'}, //库存(一次性物品) {name : 'unit'}, {name : 'materials'}, //消毒物品的材料信息 @@ -779,7 +781,8 @@ * @param count 数量 * @param diposable 是否一次性物品 * @param isApplyEntireTousse 是否整包申请(主要用于消毒物品) - * @param price 价格 + * @param originalPrice 单价(没有浮动,此属性只适用于一次性物品,器械包没值的) + * @param price 单价(已经浮动) * @param externalCode 外部编码 * @param storageAmount 库存数量(说明:如果storageUseStorageSubtractWaitDeliver配置成true则:库存=现有的库存-待发货数量,否则就是现有的库存量) * @param tousseType 值为:器械包的类型或者“一次性物品” @@ -792,7 +795,7 @@ * @param para 追加的参数,是一个对象,里面可以有多种属性,方便以后扩展用(目前只有{behavior:操作类型(添加或者提交或者绑定物品),transferScale:中包装单位装换单位系数,middlePackageUnit:申领单位(原来叫中包装单位)}) * @param expressInvoice 是否快速发货 */ -function addItems(tousseDefinitionID,name,count,diposable,isApplyEntireTousse,price,externalCode, +function addItems(tousseDefinitionID,name,count,diposable,isApplyEntireTousse,originalPrice,price,externalCode, storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice){ //1、处理从模板里面找到的(因为前面过滤已经添加的物品,所以剩下的只是模板的物品了) var foundNode = null; @@ -847,6 +850,7 @@ externalCode : externalCode, storage : storageAmount, unit : unit, + originalPrice : originalPrice, price : price, totalPrice : packageTotalPrice, leaf : false, @@ -868,6 +872,7 @@ count : count, diposable : diposable, tousseType : tousseType, + originalPrice : originalPrice, price : price, expressInvoice : expressInvoice, externalCode : externalCode, @@ -945,6 +950,7 @@ var transferScale = top.Ext4.getCmp('transferScale').getValue(); var middlePackageUnit = top.Ext4.getCmp('middlePackageUnit').getValue(); + var originalPrice = top.Ext4.getCmp('originalPrice').getValue(); var price = top.Ext4.getCmp('price').getValue(); var externalCode = isDiposableGoods == '是' ?top.Ext4.getCmp('externalCode').getValue() : ''; var unit = top.Ext4.getCmp('unit').getValue(); @@ -1003,20 +1009,20 @@ if (btn != 'yes') { return false; }else{ - addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); + addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,originalPrice,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); afterAddItem(true); } }); }else if(!isUndefinedOrNullOrEmpty(maxApplyAmount) && count > maxApplyAmount){ top.Ext4.Msg.alert("提示消息","申请数量大于最大可申请数量"); - addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); + addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,originalPrice,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); afterAddItem(true); }else{ - addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); + addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,originalPrice,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); afterAddItem(true); } }else{ - addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); + addItems(id,name,count,isDiposableGoods,isApplyEntireTousse,originalPrice,price,externalCode,storageAmount,tousseType,materials,unit,packageSpec,minApplyAmount,maxApplyAmount,urgentAmount,para,expressInvoice); afterAddItem(true); } } @@ -1188,6 +1194,7 @@ obj.leaf = node.get("leaf"); obj.expanded = node.get("expanded"); obj.expandable = node.get("expandable"); + obj.originalPrice = node.get("originalPrice"); obj.price = node.get("price"); obj.totalPrice = node.get("totalPrice"); obj.tousseType = node.get("tousseType"); @@ -1434,6 +1441,7 @@ id: n.get('id'), tousseName: n.get('name'), amount: applyAmount, + originalPrice: n.get('originalPrice'), price: price, rowPrice: totalPrice, urgentAmount: urgentAmount,