(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resource-editPurchaseApply"],{"5cdd":function(e,t,s){var r=s("8657");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=s("967d").default;n("74582969",r,!0,{sourceMap:!1,shadowMode:!1})},"6f56":function(e,t,s){"use strict";s.r(t);var r=s("cabe"),n=s("e88a");for(var i in n)["default"].indexOf(i)<0&&function(e){s.d(t,e,(function(){return n[e]}))}(i);s("c316");var o=s("828b"),a=Object(o["a"])(n["default"],r["b"],r["c"],!1,null,"0fcb582f",null,!1,r["a"],void 0);t["default"]=a.exports},8344:function(e,t,s){"use strict";s("6a54");var r=s("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s("01a2"),s("e39c");var n=r(s("39d8")),i=s("f37f"),o=r(s("c43b")),a=(r(s("7409")),{data:function(){var e;return e={resourceStores:[],resourceSuppliers:[],description:"",endUserName:"",endUserTel:"",file:"",resOrderType:"10000",staffId:"",staffName:"",communityId:"",shId:"",storehouses:[],storehouseIndex:0},(0,n.default)(e,"resOrderType",""),(0,n.default)(e,"applyOrderId",""),(0,n.default)(e,"purchaseApplyDetailVo",[]),e},components:{viewResourceStoreInfo:o.default},onLoad:function(e){this.java110Context.onLoad(),this.applyOrderId=e.applyOrderId,this.resOrderType=e.resOrderType,this._listPurchaseApplys()},methods:{_listPurchaseApplys:function(){var e=this,t={page:1,row:1,communityId:this.getCommunityId(),resOrderType:this.resOrderType,applyOrderId:this.applyOrderId};(0,i.queryPurchaseApplyList)(this,t).then((function(t){var s=t.purchaseApplys[0];e.description=s.description,e.endUserName=s.endUserName,e.endUserTel=s.endUserTel,e.shId=s.shId,e.purchaseApplyDetailVo=s.purchaseApplyDetailVo,e.$refs.viewresourcestoreinfo._setResourceStore(s.purchaseApplyDetailVo)}))},_getResourceStores:function(e){this.resourceStores=e},_toEditPurchaseApplyPage:function(){this.$refs.viewresourcestoreinfo.getResourceStores();var e=this.resourceStores;if(!e||e.length<1)uni.showToast({icon:"none",title:"未选择采购物品"});else{var t={description:this.description,endUserName:this.endUserName,endUserTel:this.endUserTel,resOrderType:this.resOrderType,shId:this.shId,resourceStores:this.resourceStores,communityId:this.getCommunityId(),applyOrderId:this.applyOrderId};(0,i.updatePurchaseApply)(this,t).then((function(e){uni.showToast({icon:"none",title:e.msg}),0!=e.code||uni.navigateBack({delta:1})}))}}}});t.default=a},8657:function(e,t,s){var r=s("c86c");t=r(!1),t.push([e.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/* 文章场景相关 */.block__title[data-v-0fcb582f]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.footer-step-fixed[data-v-0fcb582f]{width:100%;height:%?100?%;line-height:%?100?%;position:fixed;left:0;bottom:0;-moz-box-shadow:0 -5px 5px #ccc;box-shadow:0 -5px 5px #ccc;background-color:#fff}.footer-step-fixed-bk[data-v-0fcb582f]{height:%?200?%}',""]),e.exports=t},c316:function(e,t,s){"use strict";var r=s("5cdd"),n=s.n(r);n.a},cabe:function(e,t,s){"use strict";s.d(t,"b",(function(){return r})),s.d(t,"c",(function(){return n})),s.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-uni-view",[s("v-uni-view",{staticClass:"block__title"},[e._v("采购人")]),s("v-uni-view",{staticClass:"cu-form-group"},[s("v-uni-view",{staticClass:"title"},[e._v("联系人")]),s("v-uni-input",{staticClass:"text-right",attrs:{placeholder:"请输入联系人"},model:{value:e.endUserName,callback:function(t){e.endUserName=t},expression:"endUserName"}})],1),s("v-uni-view",{staticClass:"cu-form-group"},[s("v-uni-view",{staticClass:"title"},[e._v("手机号")]),s("v-uni-input",{staticClass:"text-right",attrs:{placeholder:"请输入手机号"},model:{value:e.endUserTel,callback:function(t){e.endUserTel=t},expression:"endUserTel"}})],1),s("v-uni-view",{staticClass:"cu-form-group "},[s("v-uni-textarea",{attrs:{placeholder:"请输入申请说明"},model:{value:e.description,callback:function(t){e.description=t},expression:"description"}})],1),s("view-resource-store-info",{ref:"viewresourcestoreinfo",attrs:{resOrderType:e.resOrderType,shId:e.shId},on:{getResourceStores:function(t){arguments[0]=t=e.$handleEvent(t),e._getResourceStores.apply(void 0,arguments)}}}),s("v-uni-view",{staticClass:"footer-step-fixed-bk"}),s("v-uni-view",{staticClass:"footer-step-fixed flex justify-end"},[s("v-uni-view",{staticClass:"margin-right"}),s("v-uni-view",{staticClass:"margin-right-sm"},[s("v-uni-button",{staticClass:"cu-btn round bg-blue",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._toEditPurchaseApplyPage()}}},[e._v("提交")])],1)],1)],1)},n=[]},e88a:function(e,t,s){"use strict";s.r(t);var r=s("8344"),n=s.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){s.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a}}]);