1 line
7.1 KiB
JavaScript
1 line
7.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resource-addPurchaseApply"],{"2e34":function(e,s,t){"use strict";t("6a54");var a=t("f5bd").default;Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,t("3efd"),t("01a2"),t("e39c");var r=t("c82d"),i=a(t("9aad")),o=a(t("f4ec")),n={data:function(){return{resourceStores:[],resourceSuppliers:[],audit:{assignee:"",staffId:"",staffName:"",taskId:""},description:"",endUserName:"",endUserTel:"",file:"",resOrderType:"10000",staffId:"",staffName:"",communityId:"",shId:"",storehouses:[],storehouseIndex:0,flowId:""}},components:{viewResourceStoreInfo:i.default,selectAuditStaff:o.default},onLoad:function(){this.java110Context.onLoad(),this.staffId=this.getStaffId(),this.endUserName=this.getStaffName(),this.endUserTel=this.getStaffTel(),this._listPurchaseStorehouses()},methods:{_listPurchaseStorehouses:function(){var e=this,s={page:1,row:100,communityId:this.getCommunityId(),allowPurchase:"ON"};(0,r.listStoreHouses)(this,s).then((function(s){e.storehouses=s.data,e.storehouses.unshift({shId:"",shName:e.$t("pages.resource.addPurchaseApply.请选择")})}))},_getResourceStores:function(e){this.resourceStores=e},_computeFlow:function(e){this.storehouseIndex=e.target.value;var s=this.storehouses[this.storehouseIndex];this.shId=s.shId,console.log(s);var t=s.purchaseFlowId;this.flowId=t,t&&this.$refs.selectAuditStaffRef._loadStaffOrg(t)},_getAuditInfo:function(e){console.log("_that.audit",e),this.audit=e},_toAddPurchaseApplyPage:function(){this.$refs.viewresourcestoreinfo.getResourceStores();var e=this.resourceStores;if(!e||e.length<1)uni.showToast({icon:"none",title:this.$t("pages.resource.addPurchaseApply.未选择采购物品")});else{var s={description:this.description,endUserName:this.endUserName,endUserTel:this.endUserTel,resOrderType:this.resOrderType,shId:this.shId,resourceStores:this.resourceStores,audit:this.audit,flowId:this.flowId,communityId:this.getCommunityId()};(0,r.savePurchaseApply)(this,s).then((function(e){uni.showToast({icon:"none",title:e.msg}),0!=e.code||uni.navigateBack({delta:1})}))}}}};s.default=n},"390a":function(e,s,t){var a=t("c86c");s=a(!1),s.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-31b6f03b]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.footer-step-fixed[data-v-31b6f03b]{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-31b6f03b]{height:%?200?%}',""]),e.exports=s},"6a74":function(e,s,t){var a=t("390a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t("967d").default;r("36d05a8a",a,!0,{sourceMap:!1,shadowMode:!1})},ab51:function(e,s,t){"use strict";var a=t("6a74"),r=t.n(a);r.a},acb7:function(e,s,t){"use strict";t.r(s);var a=t("b40a"),r=t("e33d");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(s,e,(function(){return r[e]}))}(i);t("ab51");var o=t("828b"),n=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"31b6f03b",null,!1,a["a"],void 0);s["default"]=n.exports},b40a:function(e,s,t){"use strict";t.d(s,"b",(function(){return a})),t.d(s,"c",(function(){return r})),t.d(s,"a",(function(){}));var a=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("v-uni-view",[t("v-uni-view",{staticClass:"block__title"},[e._v(e._s(e.$t("pages.resource.addPurchaseApply.采购人")))]),t("v-uni-view",{staticClass:"cu-form-group"},[t("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("pages.resource.addPurchaseApply.仓库")))]),e.storehouses.length>0?t("v-uni-view",[t("v-uni-picker",{attrs:{bindchange:"PickerChange",value:e.storehouseIndex,range:e.storehouses,"range-key":"shName"},on:{change:function(s){arguments[0]=s=e.$handleEvent(s),e._computeFlow.apply(void 0,arguments)}}},[t("v-uni-view",{staticClass:"picker"},[e._v(" "+e._s(e.storehouses[e.storehouseIndex].shName)+" ")])],1)],1):t("v-uni-view",{staticClass:"picker-placeholder"},[e._v(" "+e._s(e.$t("pages.resource.addPurchaseApply.加载中..."))+" ")])],1),t("v-uni-view",{staticClass:"cu-form-group"},[t("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("pages.resource.addPurchaseApply.联系人")))]),t("v-uni-input",{staticClass:"text-right",attrs:{placeholder:e.$t("pages.resource.addPurchaseApply.请输入联系人")},model:{value:e.endUserName,callback:function(s){e.endUserName=s},expression:"endUserName"}})],1),t("v-uni-view",{staticClass:"cu-form-group"},[t("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("pages.resource.addPurchaseApply.手机号")))]),t("v-uni-input",{staticClass:"text-right",attrs:{placeholder:e.$t("pages.resource.addPurchaseApply.请输入手机号")},model:{value:e.endUserTel,callback:function(s){e.endUserTel=s},expression:"endUserTel"}})],1),t("v-uni-view",{staticClass:"cu-form-group "},[t("v-uni-textarea",{attrs:{placeholder:e.$t("pages.resource.addPurchaseApply.请输入申请说明")},model:{value:e.description,callback:function(s){e.description=s},expression:"description"}})],1),t("view-resource-store-info",{ref:"viewresourcestoreinfo",attrs:{resOrderType:e.resOrderType,shId:e.shId},on:{getResourceStores:function(s){arguments[0]=s=e.$handleEvent(s),e._getResourceStores.apply(void 0,arguments)}}}),t("v-uni-view",{staticClass:"margin-top"},[t("select-audit-staff",{ref:"selectAuditStaffRef",on:{getAuditInfo:function(s){arguments[0]=s=e.$handleEvent(s),e._getAuditInfo.apply(void 0,arguments)}}})],1),t("v-uni-view",{staticClass:"footer-step-fixed-bk"}),t("v-uni-view",{staticClass:"footer-step-fixed flex justify-end"},[t("v-uni-view",{staticClass:"margin-right"},[e._v(e._s(e.$t("pages.resource.addPurchaseApply.您选择了"))+" "+e._s(e.resourceStores.length)+" "+e._s(e.$t("pages.resource.addPurchaseApply.中物品")))]),t("v-uni-view",{staticClass:"margin-right-sm"},[t("v-uni-button",{staticClass:"cu-btn round bg-blue",on:{click:function(s){arguments[0]=s=e.$handleEvent(s),e._toAddPurchaseApplyPage()}}},[e._v(e._s(e.$t("pages.resource.addPurchaseApply.提交")))])],1)],1)],1)},r=[]},e33d:function(e,s,t){"use strict";t.r(s);var a=t("2e34"),r=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(s,e,(function(){return a[e]}))}(i);s["default"]=r.a}}]); |