Files
PropertyDeployment/resources/Web/PropertyApp/html/static/js/pages-resource-allocationStorehouseApply.8c4d7d36.js
Anfioo 4c2a450928 江门
prod
2026-02-01 16:17:43 +08:00

1 line
28 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-resource-allocationStorehouseApply"],{"0890":function(e,t,s){"use strict";s.r(t);var o=s("de16"),i=s.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},1098:function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return i})),s.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-uni-view",{staticClass:"custom-picker-container"},[s("v-uni-view",{staticClass:"picker-display",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.togglePicker.apply(void 0,arguments)}}},[s("v-uni-text",{staticClass:"picker-text"},[e._v(e._s(e.displayText))]),s("v-uni-view",{staticClass:"picker-arrow",class:{"picker-arrow-up":e.showOptions}},[e._v("▼")])],1),s("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.showOptions,expression:"showOptions"}],staticClass:"picker-options"},[s("v-uni-scroll-view",{staticClass:"options-scroll",attrs:{"scroll-y":!0}},e._l(e.range,(function(t,o){return s("v-uni-view",{key:o,staticClass:"option-item",class:{"option-selected":e.innerValue===o},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectOption(o)}}},[s("v-uni-text",[e._v(e._s(t[e.rangeKey]))])],1)})),1)],1),s("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.showOptions,expression:"showOptions"}],staticClass:"picker-mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closePicker.apply(void 0,arguments)}}})],1)},i=[]},"33a3":function(e,t,s){"use strict";s.r(t);var o=s("97e9"),i=s.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"3b54":function(e,t,s){"use strict";s("6a54");var o=s("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.queryOrgInfo=function(e,t){return new Promise((function(s,o){e.context.get({url:i.default.queryOrgInfo,data:t,success:function(e){s(e)},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},t.queryStaffListInfo=function(e,t){return new Promise((function(s,o){e.context.get({url:i.default.queryStaffListInfo,data:t,success:function(e){s(e)},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},t.uploadImageAsync=function(e,t){return new Promise((function(s,o){t.context.post({url:i.default.uploadImage,data:e,success:function(e){if(200==e.statusCode){var t=e.data;s(t)}},fail:function(e){uni.hideLoading(),uni.showToast({title:"服务器异常了",icon:"none"})}})}))},s("bf0f");var i=o(s("87cf"))},4082:function(e,t,s){var o=s("cb16");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=s("967d").default;i("1f1ef7d9",o,!0,{sourceMap:!1,shadowMode:!1})},"439a":function(e,t,s){"use strict";s.r(t);var o=s("dd65"),i=s.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"490f":function(e,t,s){"use strict";s("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s("64aa");var o={name:"CustomPicker",props:{range:{type:Array,required:!0,default:function(){return[]}},value:{type:[Number,String],default:0},rangeKey:{type:String,default:"shName"},placeholder:{type:String,default:"请选择"}},data:function(){return{innerValue:this.value,showOptions:!1}},computed:{displayText:function(){return 0===this.range.length||null===this.innerValue||void 0===this.innerValue?this.placeholder:this.range[this.innerValue][this.rangeKey]||this.placeholder}},watch:{value:function(e){this.innerValue=e}},methods:{togglePicker:function(){this.showOptions=!this.showOptions},closePicker:function(){this.showOptions=!1},selectOption:function(e){this.innerValue=e,this.$emit("input",e),this.$emit("change",{value:e,item:this.range[e]}),this.$emit("update:value",e),this.closePicker()}}};t.default=o},"4fd1":function(e,t,s){var o=s("c86c");t=o(!1),t.push([e.i,".staff-selector[data-v-9b592d02]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#f8f8f8;border-radius:4px;min-height:36px;cursor:pointer}.picker-text[data-v-9b592d02]{flex:1;color:#333;font-size:14px}.cuIcon-unfold[data-v-9b592d02]{color:#999;font-size:16px}.staff-picker-modal[data-v-9b592d02]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999}.modal-mask[data-v-9b592d02]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5)}.modal-content[data-v-9b592d02]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:85%;max-width:500px;background-color:#fff;border-radius:8px;max-height:80vh;display:flex;flex-direction:column}.modal-header[data-v-9b592d02]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eee}.modal-title[data-v-9b592d02]{font-size:16px;font-weight:500;color:#333}.modal-close[data-v-9b592d02]{padding:4px;cursor:pointer}.cuIcon-close[data-v-9b592d02]{font-size:18px;color:#999}.search-box[data-v-9b592d02]{padding:12px 16px;border-bottom:1px solid #f5f5f5}.search-bar[data-v-9b592d02]{margin:0}.search-form[data-v-9b592d02]{position:relative;display:flex;align-items:center;background-color:#f5f5f5;border-radius:20px;padding:8px 12px}.cuIcon-search[data-v-9b592d02]{color:#999;font-size:16px;margin-right:8px}.search-form uni-input[data-v-9b592d02]{flex:1;background:none;border:none;outline:none;font-size:14px;color:#333}.staff-list[data-v-9b592d02]{flex:1;max-height:400px}.staff-item[data-v-9b592d02]{padding:12px 16px;border-bottom:1px solid #f5f5f5;cursor:pointer;transition:background-color .2s}.staff-item[data-v-9b592d02]:hover{background-color:#f8f8f8}.staff-item[data-v-9b592d02]:last-child{border-bottom:none}.staff-name[data-v-9b592d02]{font-size:15px;color:#333;margin-bottom:4px}.staff-org[data-v-9b592d02]{font-size:12px;color:#999}.no-data[data-v-9b592d02]{display:flex;align-items:center;justify-content:center;padding:40px 20px;color:#999;font-size:14px}@media screen and (max-width:768px){.modal-content[data-v-9b592d02]{width:90%;max-height:85vh}.staff-list[data-v-9b592d02]{max-height:350px}}",""]),e.exports=t},"5f32":function(e,t,s){var o=s("be8c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=s("967d").default;i("42739526",o,!0,{sourceMap:!1,shadowMode:!1})},"5fc8":function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return i})),s.d(t,"a",(function(){}));var o=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(e._s(e.$t("pages.resource.allocationStorehouseApply.调拨申请")))]),s("v-uni-view",{staticClass:"cu-form-group"},[s("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("pages.resource.allocationStorehouseApply.仓库")))]),s("ShPicker",{attrs:{bindchange:"PickerChange",value:e.storehouseIndex,range:e.storehouses,"range-key":"shName"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e._computeFlow.apply(void 0,arguments)}}},[e.storehouses.length>0?s("v-uni-view",{staticClass:"picker"},[e._v(" "+e._s(e.storehouses[e.storehouseIndex].shName)+" ")]):e._e()],1)],1),s("v-uni-view",{staticClass:"cu-form-group "},[s("v-uni-textarea",{attrs:{placeholder:e.$t("pages.resource.allocationStorehouseApply.请输入申请说明")},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1),s("view-resource-store-info-allocation",{ref:"viewresourcestoreinfoallocation",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:"margin-top"},[s("select-audit-staff",{ref:"selectAuditStaffRef",on:{getAuditInfo:function(t){arguments[0]=t=e.$handleEvent(t),e._getAuditInfo.apply(void 0,arguments)}}})],1),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._toAddAllocationPage()}}},[e._v(e._s(e.$t("pages.resource.allocationStorehouseApply.提交")))])],1)],1)],1)},i=[]},"6fc2":function(e,t,s){var o=s("4fd1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=s("967d").default;i("ec374c44",o,!0,{sourceMap:!1,shadowMode:!1})},"883d8":function(e,t,s){"use strict";var o=s("6fc2"),i=s.n(o);i.a},"8e2f":function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return i})),s.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-uni-view",{staticClass:"select-single-resource"},[s("v-uni-view",{staticClass:"resource-header flex justify-between bg-white"},[s("v-uni-view",{staticClass:"text-bold"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.调拨物品")))]),s("v-uni-view",[s("v-uni-button",{staticClass:"cu-btn line-blue sm round",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._openChooseResourceModel()}}},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.选择物品")))])],1)],1),s("v-uni-view",{},e._l(e.resourceList,(function(t,o){return s("v-uni-view",{key:o,staticClass:"resource-item bg-white"},[s("v-uni-view",{staticClass:" "},[s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-text",{staticClass:"ellip text-df"},[e._v(e._s(t.resName)+"("+e._s(t.parentRstName)+">"+e._s(t.rstName)+")")]),s("v-uni-text",{staticClass:"item-remove line-red text-df",on:{click:function(s){arguments[0]=s=e.$handleEvent(s),e._removeItem(o,t.resId)}}},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.移除")))])],1),s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-label",{staticClass:"text-df"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.当前仓库:")))]),s("v-uni-text",[e._v(e._s(t.shName))])],1),s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-label",{staticClass:"text-df"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.价格:")))]),s("v-uni-picker",{attrs:{range:t.times,"range-key":"price"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.timesChange(t,o)}}},[s("v-uni-view",[e._v(e._s(t.selectedTimesIndex<0?e.$t("components.resource.view-resource-store-info-allocation.:请选择"):t.times[t.selectedTimesIndex].price)+" >")])],1)],1),s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-label",{staticClass:"text-df"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.当前库存:")))]),s("v-uni-text",{staticClass:"text-df"},[e._v(e._s(e._getTimesStock(t))+e._s(t.unitCodeName))])],1),s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-label",{staticClass:"text-df"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.调拨数量:")))]),s("v-uni-input",{staticClass:" text-right",attrs:{type:"number",placeholder:e.$t("components.resource.view-resource-store-info-allocation.请输入数量"),"placeholder-class":"text-grey text-df",value:""},model:{value:t.curStock,callback:function(s){e.$set(t,"curStock",s)},expression:"item.curStock"}})],1),s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-label",{staticClass:"text-df"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.目标仓库:")))]),s("v-uni-picker",{attrs:{range:e.storeHouses,"range-key":"shName"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e._storeHousesChange(t,o)}}},[s("v-uni-view",{staticClass:"picker"},[e._v(" "+e._s(t.selectedShzIndex<0?e.$t("components.resource.view-resource-store-info-allocation.请选择"):e.storeHouses[t.selectedShzIndex].shName)+" ")])],1)],1),s("v-uni-view",{staticClass:" flex-around"},[s("v-uni-label",{staticClass:"text-df"},[e._v(e._s(e.$t("components.resource.view-resource-store-info-allocation.备注:")))]),s("v-uni-input",{staticClass:" text-right",attrs:{type:"text",placeholder:e.$t("components.resource.view-resource-store-info-allocation.选填,请输入备注"),"placeholder-class":"text-grey text-df",value:""},model:{value:t.remark,callback:function(s){e.$set(t,"remark",s)},expression:"item.remark"}})],1)],1)],1)})),1),s("select-resource",{ref:"selectresource",attrs:{resOrderType:e.resOrderType},on:{getResourceInfo:function(t){arguments[0]=t=e.$handleEvent(t),e._getResourceInfo.apply(void 0,arguments)}}})],1)},i=[]},"97e9":function(e,t,s){"use strict";s("6a54");var o=s("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s("bf0f"),s("2797"),s("e966"),s("3efd");var i=s("c82d"),a=s("6bc9"),n=o(s("f4ec")),r=o(s("faa5")),c=o(s("c5ba")),u={data:function(){return{resOrderType:"20000",resourceStores:[],remark:"",apply_type:1e4,audit:{assignee:"",staffId:"",staffName:"",taskId:""},staffId:"",staffName:"",communityId:"",shId:"",storehouses:[],storehouseIndex:0,flowId:""}},components:{ShPicker:c.default,viewResourceStoreInfoAllocation:r.default,selectAuditStaff:n.default},onLoad:function(){this.java110Context.onLoad(),this._listAllocationStorehouses()},methods:{_resourcesFromSameHouse:function(e){if(!e||e.length<2)return!0;for(var t="",s=!0,o=0;o<e.length;o++)if(""!=t){if(t!=e[o].shId){s=!1;break}}else t=e[o].shId;return s},_toAddAllocationPage:function(){var e=this;if(this.$refs.viewresourcestoreinfoallocation.getResourceStores(),this.resourceStores.length<1)return e.onoff=!0,void this._showToast(e.$t("pages.resource.allocationStorehouseApply.请选择物品"));if(!this._resourcesFromSameHouse(this.resourceStores))return e.onoff=!0,void this._showToast(e.$t("pages.resource.allocationStorehouseApply.调拨商品需来自同一仓库!"));var t="";if(""==this.remark&&(t=e.$t("pages.resource.allocationStorehouseApply.请输入申请说明")),this.resourceStores.forEach((function(s){!s.hasOwnProperty("curStock")||parseInt(s.curStock)<1?t=e.$t("pages.resource.allocationStorehouseApply.请填写数量"):(s.curStock=parseInt(s.curStock),parseInt(s.curStock)>parseInt(s.stock)?t=s.resName+","+e.$t("pages.resource.allocationStorehouseApply.库存不足"):s.hasOwnProperty("shzId")&&""!=s.shzId?s.shId!=s.shzId||(t=s.resName+","+e.$t("pages.resource.allocationStorehouseApply.请选择其他仓库")):t=e.$t("pages.resource.allocationStorehouseApply.请选择仓库"))})),""!=t)return e.onoff=!0,void this._showToast(t);var s={resourceStores:this.resourceStores,remark:this.remark,apply_type:this.apply_type,communityId:(0,a.getCurrentCommunity)().communityId,audit:this.audit,flowId:this.flowId,shId:this.shId};(0,i.saveAllocationStorehouse)(this,s).then((function(e){0!=e.code||uni.navigateBack({delta:1})}))},_getResourceStores:function(e){this.resourceStores=e},_listAllocationStorehouses:function(){var e=this;(0,i.listStoreHouses)(this,{page:1,row:100}).then((function(t){e.storehouses=t.data,e.storehouses.unshift({shId:"",shName:e.$t("pages.resource.allocationStorehouseApply.请选择")})}))},_computeFlow:function(e){this.storehouseIndex=e.target.value;var t=this.storehouses[this.storehouseIndex];this.shId=t.shId,console.log(t);var s=t.allocationFlowId;this.flowId=s,s&&this.$refs.selectAuditStaffRef._loadStaffOrg(s)},_getAuditInfo:function(e){console.log("_that.audit",e),this.audit=e}}};t.default=u},9947:function(e,t,s){"use strict";s.r(t);var o=s("490f"),i=s.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"9aaa":function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return i})),s.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-uni-view",["-2"==e.audit.assignee?s("v-uni-view",{staticClass:"cu-form-group"},[s("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("components.audit.select-audit-staff.审核人")))]),s("v-uni-view",{staticClass:"staff-selector",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showStaffPicker.apply(void 0,arguments)}}},[s("v-uni-view",{staticClass:"picker-text"},[e._v(" "+e._s(e.staffCloums[e.staffIndex].name)+" ")]),s("v-uni-text",{staticClass:"cuIcon-unfold"})],1)],1):e._e(),e.showPicker?s("v-uni-view",{staticClass:"staff-picker-modal"},[s("v-uni-view",{staticClass:"modal-mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.hideStaffPicker.apply(void 0,arguments)}}}),s("v-uni-view",{staticClass:"modal-content"},[s("v-uni-view",{staticClass:"modal-header"},[s("v-uni-view",{staticClass:"modal-title"},[e._v(e._s(e.$t("components.audit.select-audit-staff.选择员工")))]),s("v-uni-view",{staticClass:"modal-close",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.hideStaffPicker.apply(void 0,arguments)}}},[s("v-uni-text",{staticClass:"cuIcon-close"})],1)],1),s("v-uni-view",{staticClass:"search-box"},[s("v-uni-view",{staticClass:"cu-bar search-bar"},[s("v-uni-view",{staticClass:"search-form round"},[s("v-uni-text",{staticClass:"cuIcon-search"}),s("v-uni-input",{attrs:{type:"text",placeholder:e.$t("components.audit.select-audit-staff.搜索员工姓名")},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.onSearchInput.apply(void 0,arguments)}},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}})],1)],1)],1),s("v-uni-scroll-view",{staticClass:"staff-list",attrs:{"scroll-y":!0}},[e._l(e.filteredStaffs,(function(t,o){return s("v-uni-view",{key:o,staticClass:"staff-item",on:{click:function(s){arguments[0]=s=e.$handleEvent(s),e.selectStaff(t,o)}}},[s("v-uni-view",{staticClass:"staff-name"},[e._v(e._s(t.name))]),t.orgName?s("v-uni-view",{staticClass:"staff-org"},[e._v(e._s(t.orgName))]):e._e()],1)})),0===e.filteredStaffs.length?s("v-uni-view",{staticClass:"no-data"},[s("v-uni-text",[e._v(e._s(e.$t("components.audit.select-audit-staff.暂无数据")))])],1):e._e()],2)],1)],1):e._e()],1)},i=[]},"9cbd":function(e,t,s){"use strict";var o=s("d4e3"),i=s.n(o);i.a},"9d86":function(e,t,s){"use strict";var o=s("4082"),i=s.n(o);i.a},b24a:function(e,t,s){var o=s("c86c");t=o(!1),t.push([e.i,".custom-picker-container[data-v-7bffa9f0]{position:relative;z-index:1}.picker-display[data-v-7bffa9f0]{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background-color:#f8f8f8;border-radius:6px;border:1px solid #e5e5e5}.picker-text[data-v-7bffa9f0]{font-size:16px;color:#333}.picker-arrow[data-v-7bffa9f0]{font-size:12px;color:#999;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;margin-left:8px}.picker-arrow-up[data-v-7bffa9f0]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.picker-options[data-v-7bffa9f0]{position:absolute;top:100%;left:0;right:0;max-height:200px;background-color:#fff;border-radius:6px;box-shadow:0 2px 12px rgba(0,0,0,.1);margin-top:5px;z-index:10;border:1px solid #e5e5e5}.options-scroll[data-v-7bffa9f0]{max-height:200px}.option-item[data-v-7bffa9f0]{padding:10px 15px;border-bottom:1px solid #f5f5f5}.option-item[data-v-7bffa9f0]:last-child{border-bottom:none}.option-item[data-v-7bffa9f0]:hover{background-color:#f5f5f5}.option-selected[data-v-7bffa9f0]{background-color:#f0f7ff;color:#1890ff}.picker-mask[data-v-7bffa9f0]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.3);z-index:5}",""]),e.exports=t},be8c:function(e,t,s){var o=s("c86c");t=o(!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/* 文章场景相关 */.item-remove[data-v-103930dc]{border-radius:%?15?%;padding:%?2?% %?10?%}.resource-header[data-v-103930dc]{margin-top:%?30?%;padding:%?20?%}.resource-item[data-v-103930dc]{margin-top:%?2?%;padding:%?20?%}.resource-item .flex-around[data-v-103930dc]{display:flex;justify-content:space-between;margin-top:%?15?%}',""]),e.exports=t},c5ba:function(e,t,s){"use strict";s.r(t);var o=s("1098"),i=s("9947");for(var a in i)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return i[e]}))}(a);s("9cbd");var n=s("828b"),r=Object(n["a"])(i["default"],o["b"],o["c"],!1,null,"7bffa9f0",null,!1,o["a"],void 0);t["default"]=r.exports},cb16:function(e,t,s){var o=s("c86c");t=o(!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-9b80eb32]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.footer-step-fixed[data-v-9b80eb32]{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-9b80eb32]{height:%?200?%}',""]),e.exports=t},d4e3:function(e,t,s){var o=s("b24a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=s("967d").default;i("5660afbe",o,!0,{sourceMap:!1,shadowMode:!1})},dd65:function(e,t,s){"use strict";s("6a54");var o=s("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s("bf0f"),s("2797"),s("aa9c"),s("3efd"),s("dd2b");var i=s("c82d"),a=o(s("02a5")),n=(s("6bc9"),{name:"viewResourceStoreInfoAllocation",components:{selectResource:a.default},data:function(){return{resourceList:[],supplierIndex:0,storeHouses:[{shId:"",shName:this.$t("components.resource.view-resource-store-info-allocation.请选择")}],selectedStoreHousesList:[]}},props:{resOrderType:{type:String},shId:{type:String}},mounted:function(){this._loadResourceStoreHouses()},methods:{_openChooseResourceModel:function(){this.$refs.selectresource.switchShow(this.shId)},_loadResourceStoreHouses:function(){var e=this;(0,i.listStoreHouses)(this,{page:1,row:100,isShow:!0}).then((function(t){t.data.forEach((function(t){t.shId!=e.shId&&e.storeHouses.push(t)}))}))},_getResourceInfo:function(e){var t=this;this.resourceList=e,this.resourceList.forEach((function(e){e.timesId="",e.times&&e.times.length>0?(e.timesId=e.times[0].timesId,e.selectedTimesIndex=1,e.selectedTimesStock=1):(e.selectedTimesIndex=0,e.selectedTimesStock=0),e.selectedShzIndex=0,e.times.unshift({timesId:"",price:t.$t("components.resource.view-resource-store-info-allocation.请选择")})}))},getResourceStores:function(){this.$emit("getResourceStores",this.resourceList)},_removeItem:function(e,t){this.resourceList.splice(e,1),this.$refs.selectresource.removeSelectedItem(t)},_storeHousesChange:function(e,t){var s=e.target.value;this.resourceList[t].selectedShzIndex=s,this.resourceList[t].shzId=0==s?"":this.storeHouses[s].shId,this.$forceUpdate()},timesChange:function(e,t){var s=e.target.value;this.resourceList[t].selectedTimesIndex=s,0==s?(this.resourceList[t].timesId="",this.resourceList[t].selectedTimesStock=0):(this.resourceList[t].timesId=this.resourceList[t].times[s].timesId,this.resourceList[t].selectedTimesStock=this.resourceList[t].times[s].stock),this.$forceUpdate()},_getTimesStock:function(e){if(!e.timesId)return"-";var t=0;return e.times.forEach((function(s){s.timesId==e.timesId&&(t=s.stock)})),e.quantity||(e.quantity=""),t}}});t.default=n},de16:function(e,t,s){"use strict";s("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s("c223"),s("bd06"),s("8f71"),s("bf0f"),s("4626"),s("5ac7");var o=s("3b54"),i=s("6bc9"),a=s("c82d"),n={name:"selectAuditStaff",data:function(){return{communityId:"",orgIndex:0,selectedOrg:"",staffCloums:[{name:this.$t("components.audit.select-audit-staff.请选择员工")}],staffIndex:0,selectedStaff:{},audit:{assignee:"",staffId:"",staffName:"",taskId:""},showPicker:!1,searchKeyword:"",allStaffs:[],filteredStaffs:[]}},mounted:function(){this.communityId=(0,i.getCurrentCommunity)().communityId},methods:{_loadStaffOrg:function(e){var t=this;(0,a.queryFirstAuditStaff)(this,{communityId:this.getCommunityId(),flowId:e}).then((function(e){t.audit.assignee=e.data[0].assignee,"-2"==t.audit.assignee?t._loadStaffList():(t.audit.staffId=e.data[0].assignee,t.$emit("getAuditInfo",t.audit))}))},_loadStaffList:function(){var e=this,t={page:1,row:9999,communityId:this.communityId};(0,o.queryStaffListInfo)(this,t).then((function(t){e.allStaffs=t.data.staffs||[],e.filteredStaffs=e.allStaffs,e.staffCloums=e.staffCloums.concat(e.allStaffs)}))},showStaffPicker:function(){this.showPicker=!0},hideStaffPicker:function(){this.showPicker=!1,this.searchKeyword="",this.filteredStaffs=this.allStaffs},selectStaff:function(e,t){this.selectedStaff=e,this.audit.staffId=e.userId,this.audit.staffName=e.name,this.staffIndex=this.staffCloums.findIndex((function(t){return t.userId===e.userId})),this.$emit("getAuditInfo",this.audit),this.hideStaffPicker()},onSearchInput:function(){if(this.searchKeyword){var e=this.searchKeyword.toLowerCase();this.filteredStaffs=this.allStaffs.filter((function(t){return t.name&&t.name.toLowerCase().includes(e)}))}else this.filteredStaffs=this.allStaffs},staffChange:function(e){if(this.staffIndex=e.target.value,this.selectedStaff="",0!=this.staffIndex){var t=this.staffCloums[this.staffIndex];this.selectedStaff=t,this.audit.staffId=t.userId,this.audit.staffName=t.name,this.$emit("getAuditInfo",this.audit)}}}};t.default=n},ea0c:function(e,t,s){"use strict";var o=s("5f32"),i=s.n(o);i.a},ec2b:function(e,t,s){"use strict";s.r(t);var o=s("5fc8"),i=s("33a3");for(var a in i)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return i[e]}))}(a);s("9d86");var n=s("828b"),r=Object(n["a"])(i["default"],o["b"],o["c"],!1,null,"9b80eb32",null,!1,o["a"],void 0);t["default"]=r.exports},f4ec:function(e,t,s){"use strict";s.r(t);var o=s("9aaa"),i=s("0890");for(var a in i)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return i[e]}))}(a);s("883d8");var n=s("828b"),r=Object(n["a"])(i["default"],o["b"],o["c"],!1,null,"9b592d02",null,!1,o["a"],void 0);t["default"]=r.exports},faa5:function(e,t,s){"use strict";s.r(t);var o=s("8e2f"),i=s("439a");for(var a in i)["default"].indexOf(a)<0&&function(e){s.d(t,e,(function(){return i[e]}))}(a);s("ea0c");var n=s("828b"),r=Object(n["a"])(i["default"],o["b"],o["c"],!1,null,"103930dc",null,!1,o["a"],void 0);t["default"]=r.exports}}]);