hz-zhhq-app/unpackage/dist/build/CCINTZHHQKF/static/js/pages-medical-drugreserve.4...

1 line
49 KiB
JavaScript
Raw Normal View History

2025-01-22 10:53:47 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-medical-drugreserve"],{"06c5":function(t,e,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=a(n("6b75"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(t){if("string"===typeof t)return(0,i.default)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(t,e):void 0}}},1111:function(t,e,n){"use strict";var i=n("ee92"),a=n.n(i);a.a},1331:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"uni-numbox"},[n("v-uni-view",{staticClass:"uni-numbox__minus",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._calcValue("minus")}}},[n("v-uni-text",{staticClass:"uni-numbox--text",class:{"uni-numbox--disabled":t.inputValue<=t.min||t.disabled}},[t._v("-")])],1),n("v-uni-input",{staticClass:"uni-numbox__value",attrs:{disabled:t.disabled,type:"number"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t._onBlur.apply(void 0,arguments)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("v-uni-view",{staticClass:"uni-numbox__plus",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._calcValue("plus")}}},[n("v-uni-text",{staticClass:"uni-numbox--text",class:{"uni-numbox--disabled":t.inputValue>=t.max||t.disabled}},[t._v("+")])],1)],1)},o=[]},"19df":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2909")),o=i(n("3403")),r=n("d24f"),s=n("fb8c"),c=i(n("474f")),u=i(n("28ef")),l=i(n("bb31")),d=i(n("c360")),f=((new Date).getTime(),{data:function(){return{userId:(0,s.getStorage)("userInfo").userId,user:(0,s.getStorage)("userInfo"),selectedTime:"",currentTabIndex:0,page:1,pageSize:10,medicalList:[{name:"片剂"},{name:"胶囊"},{name:"颗粒"},{name:"丸剂"},{name:"口服液"},{name:"乳膏"},{name:"散剂"},{name:"滴眼液"},{name:"针剂"},{name:"贴剂"},{name:"喷剂"},{name:"饮片"}],drugsUnitList:[{name:"盒"},{name:"瓶"},{name:"袋"},{name:"支"}],medicalIndex:0,medicals:[{drugsName:"",drugsFactory:"",drugsDose:"",drugsUnit:0,drugsType:0,drugsNum:1,imgs:[]}],role:1,list:[],visitPlace:"0",userName:(0,s.getStorage)("userInfo").userName,DeptName:(0,s.getStorage)("userInfo").userId,mediciName:"",phone:(0,s.getStorage)("userInfo").telnumber,loadingType:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},deptList:[],departmentIndex:0,factory:"",imgs:[]}},components:{uniCalendar:o.default,loadMore:c.default,datetimePicker:l.default,contentNone:u.default,uniNumberBox:d.default},watch:{currentTabIndex:function(t,e){this.currentTabIndex=t,1==this.currentTabIndex?(this.page=1,this.loadingType=0,this.getMyDrugsApplyList()):this.getDepartment()}},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0,0==this.currentTabIndex?this.getDepartment():(this.page=1,this.loadingType=0,this.getMyDrugsApplyList())},methods:{unbChange:function(t,e){this.medicals[e].drugsNum=t},changeDosage:function(t,e){var n=this;n.medicals[e].drugsType=t.detail.value},changeDrugsUnit:function(t,e){var n=this;n.medicals[e].drugsUnit=t.detail.value},changeDepartment:function(t){this.departmentIndex=t.detail.value},getDepartment:function(){var t=this,e={method:r.getAllDept,data:{}};(0,s.callbackRequest)(e).then((function(e){if(1==e.data.returnCode){t.deptList=e.data.returnData;for(var n=0;n<t.deptList.length;n++)t.deptList[n].id==t.user.deptId&&(t.departmentIndex=n)}}))},getMyDrugsApplyList:function(){var t=this,e={userId:this.userId,page:this.page,pageSize:this.pageSize},n={method:r.getMyDrugsApplyList,data:e};(0,s.callbackRequest)(n)