(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resource-allocationStorehouseManage"],{1817:function(t,n,e){var o=e("62f1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=e("967d").default;i("c667a608",o,!0,{sourceMap:!1,shadowMode:!1})},"2fd4":function(t,n,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("c223");var i=o(e("8981")),a=o(e("aa02")),s=e("f37f"),u=e("7fee"),c={data:function(){return{communityId:"",applyList:[],page:1,userId:this.java110Context.getUserInfo().userId,loadingStatus:"loading",loadingContentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"}}},components:{noDataPage:i.default,uniLoadMore:a.default},onLoad:function(t){this.java110Context.onLoad()},onShow:function(){this.page=1,this.applyList=[],this.communityId=(0,u.getCurrentCommunity)().communityId,this.loadApply()},onReachBottom:function(){"noMore"!=this.loadingStatus&&this.loadApply()},methods:{loadApply:function(){this.loadingStatus="more";var t=this,n={page:this.page,row:10,communityId:this.communityId};(0,s.listAllocationStorehouseApplys)(this,n).then((function(n){t.applyList=t.applyList.concat(n.data),t.page++,t.applyList.length!=n.total||(t.loadingStatus="noMore")}))},_toAddAllocationStoreHouseApplyPage:function(){uni.navigateTo({url:"/pages/resource/allocationStorehouseApply"})},_toApplyDetail:function(t){uni.navigateTo({url:"/pages/resource/allocationStorehouseApplyDetail?applyId="+t.applyId})},cancelApply:function(t){var n=this;uni.showModal({cancelText:this.$t("pages.resource.allocationStorehouseManage.取消"),confirmText:this.$t("pages.resource.allocationStorehouseManage.确认"),title:this.$t("pages.resource.allocationStorehouseManage.提示"),content:this.$t("pages.resource.allocationStorehouseManage.是否取消调拨?"),confirmColor:"#3B8BFF",cancelColor:"#222222",success:function(e){e.confirm?(0,s.deleteAllocationStorehouse)(n,t).then((function(t){uni.showToast({title:t.msg}),n.page=1,n.applyList=[],n.loadApply()})):e.cancel&&console.log("cancel")}})}}};n.default=c},3344:function(t,n,e){"use strict";e.r(n);var o=e("7e9c"),i=e("eaa5");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("ec81");var s=e("828b"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"2f72f248",null,!1,o["a"],void 0);n["default"]=u.exports},"62f1":function(t,n,e){var o=e("c86c");n=o(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.item-content[data-v-2f72f248]{width:100%;margin-left:%?20?%;line-height:1.6em}.ellipsis[data-v-2f72f248]{display:inline-block;max-width:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle}.bg-white[data-v-2f72f248]{position:relative}.btn-cancel[data-v-2f72f248]{position:absolute;right:%?10?%;top:%?25?%}.apply-title[data-v-2f72f248]{height:%?60?%;line-height:%?50?%;border-bottom:%?1?% solid #f1f1f1}.apply-content .item[data-v-2f72f248]{width:50%;margin-top:%?20?%}.radius-sm[data-v-2f72f248]{border-radius:%?16?%}',""]),t.exports=n},"7e9c":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={noDataPage:e("8981").default},i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[e("v-uni-view",{staticClass:"cu-bar bg-white search "},[e("v-uni-view",{staticClass:"action"},[e("v-uni-button",{staticClass:"cu-btn round line-blue",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t._toAddAllocationStoreHouseApplyPage()}}},[t._v(" "+t._s(t.$t("pages.resource.allocationStorehouseManage.调拨申请")))])],1),e("v-uni-view",{staticClass:"action"})],1),t.applyList.length>0?e("v-uni-view",{staticClass:"margin-top"},t._l(t.applyList,(function(n,o){return e("v-uni-view",{key:o,staticClass:"bg-white margin-bottom padding-sm margin-sm radius-sm"},[e("v-uni-view",{staticClass:"apply-title flex justify-between"},[e("v-uni-view",[e("v-uni-text",{staticClass:"cuIcon-goods text-cut text-green margin-right-xs"}),e("v-uni-text",{staticClass:"text-bold"},[t._v(t._s(n.applyId))]),e("v-uni-text",{staticClass:"margin-left-sm"},[t._v("("+t._s(n.stateName)+")")])],1),e("v-uni-view",{staticClass:"flex justify-start"},[1200==n.state&&t.userId==n.createUserId?e("v-uni-button",{staticClass:"cu-btn round sm line-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelApply(n)}}},[t._v(" "+t._s(t.$t("pages.resource.allocationStorehouseManage.取消")))]):t._e(),e("v-uni-button",{staticClass:"cu-btn round sm line-black margin-left-sm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._toApplyDetail(n)}}},[t._v(" "+t._s(t.$t("pages.resource.allocationStorehouseManage.详情")))])],1)],1),e("v-uni-view",{staticClass:"apply-content flex justify-start flex-wrap"},[e("v-uni-view",{staticClass:"item"},[e("v-uni-text",[t._v(" "+t._s(t.$t("pages.resource.allocationStorehouseManage.申请人:")))]),e("v-uni-text",[t._v(t._s(n.startUserName))])],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-text",[t._v(" "+t._s(t.$t("pages.resource.allocationStorehouseManage.时间:")))]),e("v-uni-text",[t._v(t._s(n.createTime))])],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-text",[t._v(" "+t._s(t.$t("pages.resource.allocationStorehouseManage.类型:")))]),e("v-uni-text",[t._v(t._s(n.applyTypeName))])],1)],1)],1)})),1):e("v-uni-view",[e("no-data-page")],1)],1)},a=[]},eaa5:function(t,n,e){"use strict";e.r(n);var o=e("2fd4"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},ec81:function(t,n,e){"use strict";var o=e("1817"),i=e.n(o);i.a},f37f:function(t,n,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.allocationStoreEnter=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.allocationStoreEnter,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.deleteAllocationStorehouse=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.deleteAllocationStorehouse,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.deletePurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.deletePurchaseApply,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getAllocationHisAudit=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAllocationStoreHisAuditOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listAllocationStorehouseApplys=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAllocationStorehouseApplys,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listAllocationStorehouses=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAllocationStorehouses,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listAuditHistoryOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listAuditHistoryOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listItemOutAuditHistoryOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listItemOutAuditHistoryOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMyAllocationStoreAuditOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listMyAllocationStoreAuditOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMyAuditOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listMyAuditOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMyItemOutOrders=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listMyItemOutOrders,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listResourceStoreTypes=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listResourceStoreTypes,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listStoreHouses=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listStoreHouses,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listWorkflowAuditInfo=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listWorkflowAuditInfo,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listWorkflowStepStaffs=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listWorkflowStepStaffs,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryFirstAuditStaff=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryFirstAuditStaff,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryFirstStaff=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryFirstStaff,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryMyResourceStoreInfo=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryResourceStoreResName,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryPurchaseApplyList=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryPurchaseApplyList,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryResourceStoreAndTimes=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.listResourceStoresAndTimes,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryResourceStoreList=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryResourceStoreList,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryResourceSupplier=function(t,n){return new Promise((function(e,o){t.context.get({url:i.default.queryResourceSupplier,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveAllocationStorehouse=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveAllocationStorehouse,data:n,success:function(n){t.onoff=!0,e(n.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveAuditAllocationStoreOrder=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveAuditAllocationStoreOrder,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveItemOutApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveItemOutApply,data:n,success:function(t){e(t.data)},fail:function(n){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},n.saveMyAuditOrders=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveMyAuditOrders,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.savePurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.savePurchaseApply,data:n,success:function(t){e(t.data)},fail:function(n){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.onoff=!0}})}))},n.saveResourceEnter=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveResourceEnter,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveResourceOut=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveResourceOut,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveResourceStoreTransfer=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveResourceStoreTransfer,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveUrgentPurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.saveUrgentPurchaseApply,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.updatePurchaseApply=function(t,n){return new Promise((function(e,o){t.context.post({url:i.default.updatePurchaseApply,data:n,success:function(t){e(t.data)},fail:function(n){t.onoff=!0,wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e("bf0f");var i=o(e("9494"))}}]);