(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resourceStoreManage-resourceStoreManage"],{3374:function(t,e,n){"use strict";n.r(e);var o=n("aa5a"),a=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=a.a},"36e5":function(t,e,n){"use strict";n.r(e);var o=n("868c"),a=n("3374");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("5294");var i=n("828b"),u=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"ed85c266",null,!1,o["a"],void 0);e["default"]=u.exports},5294:function(t,e,n){"use strict";var o=n("b520"),a=n.n(o);a.a},"868c":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var o={uniLoadMore:n("aa02").default,noDataPage:n("8981").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"cu-bar bg-white search "},[n("v-uni-view",{staticClass:"search-form round"},[n("v-uni-text",{staticClass:"cuIcon-search"}),n("v-uni-input",{attrs:{type:"text",placeholder:this.$t("pages.resourceStoreManage.resourceStoreManage.输入物品名称"),"confirm-type":"search"},model:{value:t.resName,callback:function(e){t.resName=e},expression:"resName"}})],1),t.hasPrivilege?n("v-uni-view",{staticClass:"search-form round"},[n("v-uni-text",{staticClass:"cuIcon-search"}),n("v-uni-input",{attrs:{type:"text",placeholder:this.$t("pages.resourceStoreManage.resourceStoreManage.输入用户名称"),"confirm-type":"search"},model:{value:t.searchUserName,callback:function(e){t.searchUserName=e},expression:"searchUserName"}})],1):t._e(),n("v-uni-view",{staticClass:"action"},[n("v-uni-button",{staticClass:"cu-btn bg-gradual-green shadow-blur round",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._searchResource()}}},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.搜索")))])],1)],1),n("v-uni-view",{staticClass:"cu-bar bg-white"},[n("v-uni-view",{staticClass:"action"},[n("v-uni-button",{staticClass:"cu-btn bg-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._returnResource()}}},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.退还")))])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-button",{staticClass:"cu-btn bg-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._scrapResource()}}},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.损耗")))])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-button",{staticClass:"cu-btn bg-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._transferResource()}}},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.转赠")))])],1)],1),t.resourceList.length>0?n("v-uni-view",{staticClass:"margin-top"},[t._l(t.resourceList,(function(e,o){return n("v-uni-view",{key:o,staticClass:"cu-list menu-avatar "},[n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"text-grey"},[t.hasPrivilege?n("v-uni-text",{staticClass:"text-green margin-right-xs"},[t._v(t._s(e.userName))]):t._e(),n("v-uni-text",{staticClass:"ellip"},[t._v(t._s(e.resName)+"("+t._s(e.parentRstName)+" > "+t._s(e.rstName)+")")])],1),n("v-uni-view",{staticClass:"text-gray text-sm flex"},[n("v-uni-view",{staticClass:"text-cut"},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.库存:"))+t._s(e.stock)+t._s(e.unitCodeName)+" ")])],1),n("v-uni-view",{staticClass:"text-gray text-sm flex"},[n("v-uni-view",{staticClass:"text-cut"},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.最小计量总数:"))+t._s(e.miniStock)+t._s(e.miniUnitCodeName)+" ")])],1),n("v-uni-view",{staticClass:"text-gray text-sm flex"},[n("v-uni-view",{staticClass:"text-cut"},[t._v(" "+t._s(t.$t("pages.resourceStoreManage.resourceStoreManage.固定资产:"))+t._s(e.isFixedName)+" ")])],1)],1)],1)],1)})),n("uni-load-more",{attrs:{status:t.loadingStatus,"content-text":t.loadingContentText}})],2):n("v-uni-view",[n("no-data-page")],1)],1)},s=[]},aa5a:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223");var a=n("f37f"),s=o(n("aa02")),i=o(n("8981")),u=o(n("9494")),r=n("7fee"),c={data:function(){return{orderImg:u.default.baseUrl+"img/order.png",resourceList:[],resName:"",searchUserName:"",page:1,hasPrivilege:this.java110Context.hasPrivilege("502021071018550002"),loadingStatus:"loading",loadingContentText:{contentdown:this.$t("pages.resourceStoreManage.resourceStoreManage.上拉加载更多"),contentrefresh:this.$t("pages.resourceStoreManage.resourceStoreManage.加载中"),contentnomore:this.$t("pages.resourceStoreManage.resourceStoreManage.没有更多")}}},components:{noDataPage:i.default,uniLoadMore:s.default},onLoad:function(){this.java110Context.onLoad()},onShow:function(){this.resourceList=[],this.page=1,this._loadResourceList()},onReachBottom:function(){"noMore"!=this.loadingStatus&&this._loadResourceList()},methods:{checkAuth:function(t){return this.java110Context.hasPrivilege(t)},_loadResourceList:function(){this.loadingStatus="more";var t=this,e={resName:t.resName,searchUserName:t.searchUserName,page:t.page,row:10,communityId:(0,r.getCurrentCommunity)().communityId};(0,a.queryMyResourceStoreInfo)(this,e).then((function(e){if(0==e.code){var n=e.data;t.resourceList=t.resourceList.concat(n),t.page++,t.resourceList.length!=e.total||(t.loadingStatus="noMore")}else uni.showToast({icon:"none",title:e.msg})}))},_searchResource:function(){this.resourceList=[],this.page=1,this._loadResourceList()},_returnResource:function(){uni.navigateTo({url:"/pages/resourceStoreReturn/resourceStoreReturn"})},_scrapResource:function(){uni.navigateTo({url:"/pages/resourceStoreScrap/resourceStoreScrap"})},_transferResource:function(){uni.navigateTo({url:"/pages/resourceStoreTransfer/resourceStoreTransfer"})}}};e.default=c},b520:function(t,e,n){var o=n("d8d8");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("aa688632",o,!0,{sourceMap:!1,shadowMode:!1})},d8d8:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,".cu-list.menu-avatar>.cu-item[data-v-ed85c266]{height:auto}.cu-list+.cu-list[data-v-ed85c266]{margin-top:%?20?%}.cu-list.menu-avatar>.cu-item .content[data-v-ed85c266]{position:static;margin-left:%?20?%;width:100%}",""]),t.exports=e},f37f:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.allocationStoreEnter=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.allocationStoreEnter,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.deleteAllocationStorehouse=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.deleteAllocationStorehouse,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.deletePurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.deletePurchaseApply,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.getAllocationHisAudit=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listAllocationStoreHisAuditOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listAllocationStorehouseApplys=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listAllocationStorehouseApplys,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listAllocationStorehouses=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listAllocationStorehouses,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listAuditHistoryOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listAuditHistoryOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listItemOutAuditHistoryOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listItemOutAuditHistoryOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listMyAllocationStoreAuditOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listMyAllocationStoreAuditOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listMyAuditOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listMyAuditOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listMyItemOutOrders=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listMyItemOutOrders,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listResourceStoreTypes=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listResourceStoreTypes,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listStoreHouses=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listStoreHouses,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listWorkflowAuditInfo=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listWorkflowAuditInfo,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.listWorkflowStepStaffs=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listWorkflowStepStaffs,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryFirstAuditStaff=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.queryFirstAuditStaff,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryFirstStaff=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.queryFirstStaff,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryMyResourceStoreInfo=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.queryResourceStoreResName,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryPurchaseApplyList=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.queryPurchaseApplyList,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryResourceStoreAndTimes=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.listResourceStoresAndTimes,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryResourceStoreList=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.queryResourceStoreList,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryResourceSupplier=function(t,e){return new Promise((function(n,o){t.context.get({url:a.default.queryResourceSupplier,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveAllocationStorehouse=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveAllocationStorehouse,data:e,success:function(e){t.onoff=!0,n(e.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveAuditAllocationStoreOrder=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveAuditAllocationStoreOrder,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveItemOutApply=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveItemOutApply,data:e,success:function(t){n(t.data)},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},e.saveMyAuditOrders=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveMyAuditOrders,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.savePurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.savePurchaseApply,data:e,success:function(t){n(t.data)},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},e.saveResourceEnter=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveResourceEnter,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveResourceOut=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveResourceOut,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveResourceStoreTransfer=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveResourceStoreTransfer,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveUrgentPurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.saveUrgentPurchaseApply,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.updatePurchaseApply=function(t,e){return new Promise((function(n,o){t.context.post({url:a.default.updatePurchaseApply,data:e,success:function(t){n(t.data)},fail:function(e){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n("bf0f");var a=o(n("9494"))}}]);