123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366 |
- <template>
- <view class="Receiptpage">
- <view class="page_tab">
- <view class="page_tab_bar" :class="{ active: item.label === selectedLabelSlots }" v-for="item in tabs"
- :key="item.value" @click.prevent="clickHandler(item.label)">
- {{ item.label }}
- <text class="tab_num">( {{ item.num }} )</text>
- <view class="more" v-if="item.label === '执行中'" @click.stop="execFilter"></view>
-
- {{ array[index].name }}
- </view>
- </view>
- <view v-if="zxzData.length == 0" class="zwsj">
- <image class="zwsj-img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
- <view class="zwsj-txt">暂无数据</view>
- </view>
- <view class="page_items">
- <scroll-view class="page_items_scroll" scroll-y :refresher-enabled="scroll_refresher_enabled"
- :refresher-triggered="triggered" @refresherrefresh="refresherrefresh" @refresherrestore="refresherrestore"
- @scroll="scroll" @scrolltolower="scrolltolower" :scroll-top="scroll_top" @refresherabort="refresherabort">
- <view class="page_item_wrap" v-for="(item, index) of zxzData" :key="index">
- <view class="page_item">
- <view class="L"></view>
- <view class="R"></view>
- <view class="page_item_top">
- <view class="page_item_top_L">
-
- <view class="page_item_cont_start emergency1" v-if="item.emergencyType.value == 1">
- <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
- </image>
- {{ item.emergencyType.name }}
- </view>
- <view class="page_item_cont_start emergency" v-if="item.emergencyType.value == 2">
- <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
- </image>
- {{ item.emergencyType.name }}
- </view>
- <view class="page_item_cont_start emergencys" v-if="item.emergencyType.value == 3">
- <image mode="widthFix" class="page_item_cont_start-img" src="../../static/img/icon_shandian.png">
- </image>
- {{ item.emergencyType.name }}
- </view>
- <view class="page_item_top_R type" style="margin-left: 16rpx;">
- {{
- item.isHalfInspect === 1 ? "半程陪检" : item.taskType.taskName
- }}<template v-if="item.goodsRemark">-{{item.goodsRemark}}</template>
- </view>
- {{ item.overdueTime }}
- </view>
- <view class="page_item_top_R" v-if="
- !(
- item.taskType.associationType.value == 'inspect' &&
- item.gdState.value == 5
- )
- ">
- <text class="text_big">{{ item.gdState.name }}</text>
- </view>
- <view class="page_item_top_R" v-if="
- item.taskType.associationType.value == 'inspect' &&
- item.gdState.value == 5
- ">
- <text class="text_big">待送回</text>
- </view>
-
- {{
- item.isHalfInspect === 1 ? "半程陪检" : item.taskType.taskName
- }}{{item.goodsRemark}}
- </view>
- <view class="page_item_cont" @click="itemInfo(item)">
- <view class="page_item_cont_T">
- <view class="page_item_cont_title">
- <text> <text class="starting">起</text> 点科室 </text>
- <text class="text_big">{{ item.startDept.dept }}</text>
- </view>
-
- {{ item.emergencyType.name }}
- {{ item.emergencyType.name }}
- {{ item.emergencyType.name }}
- </view>
- <view class="page_item_conts" v-if="item.taskType.associationType.value == 'specimen'">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>扫描标本数量 : {{ item.actualReceiveNum || '无'}}</view>
- <view style="word-break: break-all;" v-if="item.workOrderRemark">
- 备注信息 :
- <text>{{ item.workOrderRemark || "暂无" }}</text>
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'blood'">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>接收数量 : {{ item.actualReceiveNum || '无'}}</view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'inspect'">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>
- 预约时间 : {{ item.yyTime | yyTimeFilter
- }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
- </view>
- <view style="font-weight: bold;">
- 患者信息 : {{ item.patient ? item.patient.patientName : "-" }}({{
- item.patient ? item.patient.bedNum : "-"
- }})
- </view>
- <view v-if="item.goods">
- 携带设备 :
- <text>{{ item.goods || "暂无" }}</text>
- </view>
- <view style="word-break: break-all;" v-if="item.workOrderRemark">
- 注意事项 :
- <text>{{ item.workOrderRemark || "" }}</text>
- </view>
- <view v-if="item.patient.careLevel">
- 护理等级 :
- <text :class="[
- item.patient.careLevel.value == 0 ||
- item.patient.careLevel.value == 1
- ? 'red'
- : 'green',
- ]">{{ item.patient.careLevel.name }}</text>
- </view>
- <view v-if="item.patient.illnessState">
- 病情级别 :
- <text :class="{
- red:
- item.patient.illnessState.value == 2 ||
- item.patient.illnessState.value == 3,
- }">{{ item.patient.illnessState.name }}</text>
- </view>
- <view v-if="item.isAccompany === 1 || item.isAccompany === 0">
- 陪同情况 :
- <text :class="{ red: item.isAccompany === 1 }">{{
- item.isAccompany === 1 ? "需要医护陪同" : "无需医护陪同"
- }}</text>
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'patientTransport'">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>
- 预约时间 : {{ item.yyjdTime | yyTimeFilter
- }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
- </view>
- <view style="font-weight: bold;">
- 患者信息 : {{ item.patient ? item.patient.patientName : "-" }}({{
- item.patient ? item.patient.bedNum : "-"
- }})
- </view>
- <view v-if="item.goods">
- 携带设备 :
- <text>{{ item.goods || "暂无" }}</text>
- </view>
- <view style="word-break: break-all;" v-if="item.workOrderRemark">
- 注意事项 :
- <text>{{ item.workOrderRemark || "暂无" }}</text>
- </view>
- <view v-if="item.patient.careLevel">
- 护理等级 :
- <text :class="[
- item.patient.careLevel.value == 0 ||
- item.patient.careLevel.value == 1
- ? 'red'
- : 'green',
- ]">{{ item.patient.careLevel.name }}</text>
- </view>
- <view v-if="item.patient.illnessState">
- 病情级别 :
- <text :class="{
- red:
- item.patient.illnessState.value == 2 ||
- item.patient.illnessState.value == 3,
- }">{{ item.patient.illnessState.name }}</text>
- </view>
- <view v-if="item.isAccompany === 1 || item.isAccompany === 0">
- 陪同情况 :
- <text :class="{ red: item.isAccompany === 1 }">{{
- item.isAccompany === 1 ? "需要医护陪同" : "无需医护陪同"
- }}</text>
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'drugsBag'">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>
- 药包编码 : {{ item.drugs ? item.drugs.packid : "无" }}
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'jPBag'">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>
- 药包编码 :
- {{ item.staticDistri ? item.staticDistri.packid : "无" }}
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'ordinary' && (item.taskType.ordinaryField.value == 'drugsJpbag' || item.taskType.ordinaryField.value == 'drugsWestern' || item.taskType.ordinaryField.value == 'drugsReturn' || item.taskType.ordinaryField.value == 'drugsPoison' || item.taskType.ordinaryField.value == 'drugsHerbal')">
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view style="word-break: break-all;" v-if="item.workOrderRemark">
- 备注信息 :
- <text>{{ item.workOrderRemark || "暂无" }}</text>
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_conts" v-else>
- <view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
- <view>
- 预约时间 : {{ item.yyjdTime | yyTimeFilter}}
- </view>
- <view style="word-break: break-all;" v-if="item.workOrderRemark">
- 备注信息 :
- <text>{{ item.workOrderRemark || "暂无" }}</text>
- </view>
- <view class="line"></view>
- </view>
- <view class="page_item_cont_B">
- <view class="page_item_cont_title" v-if="item.taskType.associationType.value != 'inspect'">
- <text> <text class="End">终</text> 点科室 </text>
- <text class="text_big" v-for="(dept, i) of item.endDepts" :key="i">{{ dept.dept }}</text>
- </view>
- <view class="page_item_cont_title" v-if="item.taskType.associationType.value == 'inspect'">
- <text> <text class="End">检</text> 查科室 </text>
- <text class="text_big" v-for="(dept, i) of item.middleDept" :key="i">{{ dept.dept }}</text>
- </view>
- </view>
- </view>
- <view v-if="
- item.taskType.associationType.value == 'inspect' ||
- item.taskType.associationType.value == 'patientTransport'
- ">
-
- <text class="red" v-if="item.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text>
-
- <text class="red" v-if="item.gdState.value == 4">请扫描患者腕带</text>
-
- <text class="red" v-if="item.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text>
-
- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text>
- </view>
- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingGet'">
-
- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text>
- </view>
- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingSend'">
-
- <text class="red" v-if="item.gdState.value == 4">请扫描起点科室二维码</text>
-
- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text>
- </view>
- <view v-else-if="item.taskType.associationType.value == 'other'">
-
- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 1">可通过扫描科室码或者拍照进行签到</text>
- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 2">扫描交接人员二维码进行交接</text>
- </view>
-
- <view class="page_item_btn" v-if="
- selectedLabelSlots == '执行中' &&
- item.taskType.associationType.value != 'patientTransport' &&
- item.taskType.associationType.value != 'inspect' &&
- item.taskType.associationType.value != 'other' &&
- item.taskType.associationType.value != 'ordinary' &&
- !(item.taskType.associationType.value == 'specimen' && item.taskType.carryingCourses[1].checkoutMethod.value == 3 && item.gdState.value == 5)
- " hover-class="seimin-btn-hover">
- <smallScreen :sData="item" :sType="2">扫码</smallScreen>
- </view>
-
- <view class="page_item_btn_wrap" v-if="
- selectedLabelSlots == '执行中' &&
- item.taskType.associationType.value != 'jPBag' &&
- item.taskType.associationType.value != 'drugsBag' &&
- item.taskType.associationType.value != 'specimen' &&
- item.taskType.associationType.value != 'specimenPlan' &&
- item.taskType.associationType.value != 'ordinary'
- ">
- <view v-if="(hideInspectScan != 1 || !(hideInspectScan == 1 && item.gdState.value != 4 && (item.taskType.associationType.value == 'patientTransport' || item.taskType.associationType.value == 'inspect'))) && !(item.taskType.associationType.value == 'other' && (item.gdState.value == 4 && item.taskType.carryingCourses[0].actionsSwitch || item.gdState.value == 5 && item.taskType.carryingCourses[1].actionsSwitch))" class="page_item_btn" hover-class="seimin-btn-hover">
- <smallScreen :sData="item" :sType="1">扫码</smallScreen>
- </view>
-
- <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 4 && item.taskType.carryingCourses[0].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">确认到达</view>
-
- <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 5 && item.taskType.carryingCourses[1].actionsSwitch" class="page_item_btn" @click="otherCompleteOrder(item)" hover-class="seimin-btn-hover">完成工单</view>
-
- <view v-if="item.taskType.associationType.value == 'other' && item.gdState.value == 4 && item.taskType.carryingCourses[0].photoSwitch" class="page_item_btn" @click="photographToOther(item, 'start')" hover-class="seimin-btn-hover">拍照</view>
- <view v-if="(hideInspectScan != 1 || !(hideInspectScan == 1 && item.gdState.value != 4 && (item.taskType.associationType.value == 'patientTransport' || item.taskType.associationType.value == 'inspect'))) && item.taskType.associationType.value != 'other' && item.gdState.value == 4" class="page_item_btn" @click="photograph(item)" hover-class="seimin-btn-hover">拍照</view>
-
- <view v-if="item.taskType.associationType.value == 'other' && item.worker && item.worker.id && clinicalMultiplayerMode === 1 && showAppendUser === 1 && item.clinicalTaskIdsFlag && !item.copyBy" class="page_item_btn" @click="additionalUser(item)" hover-class="seimin-btn-hover">追加</view>
- </view>
-
- <view class="page_item_btn_wrap" v-if="selectedLabelSlots == '执行中' && item.taskType.associationType.value == 'ordinary' && signType4 && item.taskType.ordinaryField.value == 'blood'">
-
- <view class="page_item_btn" @click="goTobloodEnd(item)" hover-class="seimin-btn-hover" v-if="delivery === 1 && item.gdState.value == 5">送达交接</view>
-
- <view class="page_item_btn" @click="certificatHandler(item)" hover-class="seimin-btn-hover" v-if="useTakeCode == 1">领血证</view>
- </view>
-
- <view class="page_item_btn" v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingSend' && item.gdState.value == 5" hover-class="seimin-btn-hover">
- <view class="page_item_btn" @click="goToWashingEnd(item)" hover-class="seimin-btn-hover">核对被服</view>
- </view>
- <view class="page_item_btn" v-if="selectedLabelSlots == '待接单'" @click="showAlerts(item)" hover-class="seimin-btn-hover">接单</view>
- </view>
- <view class="L-l"></view>
- <view class="R-l"></view>
- </view>
- </scroll-view>
- </view>
- <view class="bigScreenWrap">
- <view class="left" @click="isShowKey" v-if="isNumberKey">
- <text class="left-icon newicon newicon-miyue"></text>
- <view class="left-title">数字密钥</view>
- </view>
-
- <view class="right" :class="!isNumberKey?'right-100':''">
- <bigScreen ref="bigscreen" :isNumberKey="isNumberKey"></bigScreen>
- <view class="more" v-if="arrayBigScreen.length"></view>
- <picker class="more_picker" @cancel="cancelPicker" @click.stop @change="execFilterBigScreen($event)" :value="indexBigScreen"
- :range="arrayBigScreen" range-key="name" v-if="arrayBigScreen.length">
- <view class="uni-input">{{ arrayBigScreen[indexBigScreen].name }}</view>
- </picker>
- </view>
- </view>
-
- <view>
- <uni-fab :pattern="pattern" :content="content" :direction="direction" @fabClick="fabClick" @trigger="trigger"></uni-fab>
- </view>
-
- <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
- @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
-
- <showMyQrcode v-if="showMyQrcodeModel.disjunctor" :disjunctor="showMyQrcodeModel.disjunctor" @know="closeMyQrcodeModel"></showMyQrcode>
-
- <showCertificat v-if="showCertificatModel.disjunctor" :disjunctor="showCertificatModel.disjunctor" :id="showCertificatModel.id" @know="closeCertificatModel"></showCertificat>
-
- <showDepartmentQrcode v-if="showDepartmentQrcodeModel.disjunctor" :disjunctor="showDepartmentQrcodeModel.disjunctor" @know="closeDepartmentQrcodeModel"></showDepartmentQrcode>
-
- <handViewSpecimen v-if="speModels.disjunctor" :title="speModels.title" :disjunctor="speModels.disjunctor"
- @ok="speOk" @cancel="speCancel">
- </handViewSpecimen>
-
- <handViewDrugsBag v-if="drugbagModels.disjunctor" :title="drugbagModels.title"
- :disjunctor="drugbagModels.disjunctor" @ok="drugbagOk" @cancel="drugbagCancel">
- </handViewDrugsBag>
-
- <selectAccount v-if="hosModels.disjunctor" :disjunctor="hosModels.disjunctor" @ok="hosOk"
- @cancel="hosCancel">
- </selectAccount>
-
- <checkboxModal v-if="checkboxModels.disjunctor" :content="checkboxModels.content" :disjunctor="checkboxModels.disjunctor"
- @ok="checkboxOk" @cancel="checkboxCancel">
- </checkboxModal>
-
- <uni-drawer width="400px" :visible="isShowExecFilter" mode="right" @close="closeDrawer()">
- <view class="execFilterMask">
- <view class="execFilter" @click.stop>
- <view class="execFilterHeader">
- 全部筛选
- </view>
- <view class="execFilterBody">
- <view class="execFilterItem">
- <view class="execFilterItemHeader">
- 工单状态
- </view>
- <view class="execFilterItemBody">
- <view class="execFilterItemBox" @click="currentId = item.id" :class="{active: item.id == currentId}" v-for="item in array" :key="item.id">
- {{item.name}}
- </view>
- </view>
- </view>
- <view class="execFilterItem">
- <view class="execFilterItemHeader">
- 申请科室
- </view>
- <view class="execFilterItemBody">
- <input class="deptName" @click="searchAdm" v-model.trim="deptName" placeholder="请选择科室名称" placeholder-style="color:#cecece" />
- </view>
- </view>
- <view class="execFilterItem">
- <view class="execFilterItemHeader">
- 任务类型
- </view>
- <view class="execFilterItemBody">
- <uni-data-picker class="value" placeholder="请选择任务类型"
- :localdata="taskData" v-model="taskTypeId" :clear-icon="false">
- </uni-data-picker>
- </view>
- </view>
- </view>
- <view class="execFilterFooter">
- <view class="btn" @click="execFilterReset()">重置</view>
- <view class="btn" @click="execFilterOk()">完成</view>
- </view>
- </view>
- </view>
- </uni-drawer>
-
-
- <showModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content"
- @ok="ok1" @cancel="cancel1" :operate="models1.operate"></showModel>
-
- <showModel :title="models2.title" icon="" :disjunctor="models2.disjunctor" :content="models2.content" @ok="ok2" @cancel="cancel2" :operate="models2.operate" :childrenDeptList="models2.list"></showModel>
-
- <showModel :title="models3.title" icon="" :disjunctor="models3.disjunctor" :content="models3.content" @know="know3" @ok="ok3" @cancel="cancel3" :operate="models3.operate" :busyContentList="models3.list"></showModel>
-
- <showModel :title="models4.title" icon="models4.icon" :disjunctor="models4.disjunctor" :content="models4.content" @know="know4" @ok="ok4" @cancel="cancel4" :operate="models4.operate"></showModel>
- <scanner></scanner>
-
- <numberKeyModel v-if="showKey" :keyArr="keyArr" @cancel="showKey = false" @confirm="confirmKey($event)"></numberKeyModel>
-
- <appUpdata v-if="isApp && isUpdate" @getUpdate="isUpdate=false"></appUpdata>
- </view>
- </template>
- <script>
- import selectAccount from "../../components/selectAccount/selectAccount.vue";
- import smallScreen from "../../components/smallScreen/smallScreen.vue";
- import scanner from "../../components/scanner/scanner.vue";
- import showModel from "../../components/showModel/showModel.vue";
- import bigScreen from "../../components/bigScreen/bigScreen.vue";
- import numberKeyModel from "../../components/numberKeyModel/numberKeyModel.vue";
-
- import uniFab from "@/components/uni-fab/uni-fab.vue";
- import uniDrawer from "@/components/uni-drawer/uni-drawer.vue";
- import ldSelect from "@/components/ld-select/ld-select.vue";
- import MxDatePicker from "@/components/mx-datepicker/mx-datepicker.vue";
- import appUpdata from "../../components/appUpdata/appUpdata.vue";
-
- import {
- get,
- post,
- SM,
- deleteIt,
- webHandle
- } from "../../http/http.js";
- import {
- photographTool,
- pathUrl
- } from "../../tools/photograph.js";
- export default {
- data() {
- return {
- workStateList: [],
- clothingType: '',
- isShowExecFilter: false,
- deptName: '',
- deptId:null,
- taskTypeId:null,
- taskData:[],
- currentId: 0,
- otherAssociationTypeId: null,
- inspectAssociationTypeId: null,
- hosId: uni.getStorageSync('userData').user.currentHospital.id,
- workState: '1',
- hideInspectScan: 0,
- clinicalMultiplayerMode: 0,
- showAppendUser: 0,
- signType4: false,
- delivery: 0,
- useTakeCode: 0,
- takeCodeType: {},
- clinicalTaskIds: [],
- other: {
- user: {},
- data: {},
- },
-
- checkboxModels: {
- disjunctor: false,
- },
-
- hosModels: {
- disjunctor: false,
- },
- currentCode: '',
- currentData: {},
-
- showMyQrcodeModel: {
- disjunctor: false,
- },
-
- showCertificatModel: {
- disjunctor: false,
- },
-
- showDepartmentQrcodeModel: {
- disjunctor: false,
- },
- SMFlag: true,
-
- speModels: {
- disjunctor: false,
- },
-
- drugbagModels: {
- disjunctor: false,
- },
-
- array: [{
- id: 0,
- name: "全部",
- },
- {
- id: 71,
- name: "待到达",
- },
- {
- id: 72,
- name: "待送达",
- },
- {
- id: 75,
- name: "执行中",
- },
- ],
-
- arrayBigScreen: [],
- index: 0,
- indexBigScreen: 0,
- arrayKey: 0,
- arrayKeyBigScreen: 0,
-
- pharmacistFlag: false,
-
- qdId: "",
- quiltData: {},
-
- models: {
- disjunctor: false,
- },
-
- models1: {
- disjunctor: false,
- },
-
- models2: {
- disjunctor: false,
- },
-
- models3: {
- disjunctor: false,
- },
-
- models4: {
- disjunctor: false,
- },
-
- pattern: {
- buttonColor: "#6cc076",
- },
-
- direction: "vertical",
-
- content: [{
- text: "我的任务",
- },],
-
- selectedLabelSlots: "待接单",
-
- tabs: [{
- label: "待接单",
- value: "1",
- num: 0,
- },
- {
- label: "执行中",
- value: "2",
- num: 0,
- },
- ],
-
- zxzData: [],
-
- idx: 0,
-
- totalNum: -1,
- triggered: false,
- freshing: false,
- scroll_top: 0,
- scroll_refresher_enabled: true,
- quiltCode: '',
- tabType: "",
- selectArr: [],
- workData: [],
- userId: {
- ids: [],
- },
- code: "",
- showKey:false,
- keyNum:4,
- isNumberKey:false,
- keyArr: [],
- isApp:false,
- isUpdate:false,
- };
- },
- components: {
- uniDrawer,
- MxDatePicker,
- ldSelect
- },
- filters: {
-
- yyTimeFilter: function(data) {
- if (data) {
- let nDate = null;
- if (typeof data == 'string') {
- let arr = data.split(/[-:\s]/);
- nDate = new Date(
- arr[0] - 0,
- arr[1] - 1,
- arr[2] - 0,
- arr[3] - 0,
- arr[4] - 0,
- 0
- );
- } else if (typeof data == 'number') {
- nDate = new Date(data);
- }
- const month = (nDate.getMonth() + 1).toString().padStart(2, 0);
- const date = nDate.getDate().toString().padStart(2, 0);
- const hour = nDate.getHours().toString().padStart(2, 0);
- const minute = nDate.getMinutes().toString().padStart(2, 0);
- return `${month}-${date} ${hour}:${minute}`;
- } else {
- return "-";
- }
- },
- },
- components: {
- uniFab,
- showModel,
- bigScreen,
- numberKeyModel,
- scanner,
- selectAccount,
- appUpdata
- },
- methods: {
- confirmKey(data){
- this.padChange(data)
- this.showKey = false
- },
- isShowKey(){
- this.showKey = true
- },
-
- getConfig() {
- let postData = {
- idx: 0,
- sum: 9999,
- hospitalConfig:{
- hosId:this.hosId,
- model:"all"
- }
- };
- post("/simple/data/fetchDataList/hospitalConfig",postData).then((result) => {
- if (result.status == 200) {
- this.keyArr = []
- for(let i of result.list){
- if(i.key=='digitalSecretKey'){
- if(i.value==1){
- this.isNumberKey = true
- }else{
- this.isNumberKey = false
- }
- }else if(i.key=='numberDigitalSecretKey'){
- this.keyNum = Number(i.value)
- }
- }
- for(let i = 0; i < this.keyNum; i++){
- this.keyArr.push({
- value:null
- })
- }
- console.log(444,this.keyArr)
- }
- });
- },
-
- validateHandoverSpecimen(){
- return post("/simple/data/fetchDataList/taskType", {
- "idx": 0,
- "sum": 1,
- "taskType": {
- "hosId": {
- "id": this.hosId
- },
- "associationType": {
- "key": "association_types",
- "value": "specimen"
- }
- }
- });
- },
-
-
-
-
- async orderDeptHandler(bigScanner, accountObj) {
- console.log(this.infoDATA);
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- if(this.tabType === 'specimen' && this.infoDATA.specimen && this.infoDATA.specimen[0].gdState.value == 5){
- let result = await this.validateHandoverSpecimen();
- if (result.status == 200) {
- if(result.list.length){
-
- if(result.list[0].carryingCourses[1].checkoutMethod.value == 3){
- bigScanner = false;
- }
- }else{
- uni.showToast({
- icon: "none",
- title: "请配置标本配送任务类型!",
- });
- uni.hideLoading();
- return;
- }
- }
- }
- let type = "orderSign/" + this.code;
- let list = {
- ids: this.userId.ids,
- trueBigScanner: ['666']
- };
- bigScanner && (list.bigScanner = ['666']);
- if (accountObj) {
- list.handover = [accountObj.accountId];
- }
- post("/workerOrder/" + type, list).then((res) => {
- console.log(this.tabType)
- uni.hideLoading();
- if (res.status == 200) {
- if (this.tabType == 'specimenPlan') {
-
- console.log(this.selectArr, '选中工单')
- let gd = this.infoDATA.specimenPlan.find(v => v.id == this.selectArr[0]);
- let startDeptId = gd.startDept.id;
- let isDigitalHandover = gd.taskType.isDigitalHandover;
- let signDeptId = res.deptId;
- let gdId = gd.id;
- let gdState = gd.gdState.value;
- let endDepts = gd.endDepts.map(v => v.id).toString();
- uni.navigateTo({
- url: `../scanning_djEnd/scanning_djEnd?type=${
- this.tabType
- }&type1=${res.type}&code=${this.code}&dept=${
- res.dept
- }&ids=${encodeURIComponent(
- JSON.stringify(this.userId.ids)
- )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}&startDeptId=${startDeptId}&isDigitalHandover=${isDigitalHandover}&signDeptId=${signDeptId}&gdId=${gdId}&gdState=${gdState}&endDepts=${endDepts}`,
- });
- } else if (this.tabType == 'specimen') {
-
- if (res.deptType && res.deptType.value === 'middleRoom') {
-
-
- uni.navigateTo({
- url: `../checkAfterBigScreen/checkAfterBigScreen?type=${
- this.tabType
- }&type1=${res.type}&code=${this.code}&dept=${
- res.dept
- }&ids=${encodeURIComponent(
- JSON.stringify(this.userId.ids)
- )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
- });
- } else if(res.type === 'spe-dsd-4'){
-
- uni.navigateTo({
- url: `/pages/specimenHandoverNew/specimenHandoverNew?type=${
- this.tabType
- }&type1=${res.type}&code=${this.code}&dept=${
- res.dept
- }&ids=${encodeURIComponent(
- JSON.stringify(this.userId.ids)
- )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
- });
- } else{
- uni.navigateTo({
- url: `../scanning_djEnd/scanning_djEnd?type=${
- this.tabType
- }&type1=${res.type}&code=${this.code}&dept=${
- res.dept
- }&ids=${encodeURIComponent(
- JSON.stringify(this.userId.ids)
- )}&model=${encodeURIComponent(JSON.stringify(res))}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}&deptId=${res.deptId}`,
- });
- }
- }
- } else if (res.status == "0000") {
- this.showSelectAccount();
- } else {
- this.flag = true;
- uni.navigateTo({
- url: `../scanning_djEnd/scanning_djEnd?type=${this.tabType}&type1=${
- res.type
- }&code=${this.code}&dept=${res.dept}&ids=${encodeURIComponent(
- JSON.stringify(this.userId.ids)
- )}&model=${encodeURIComponent(JSON.stringify(res))}&deptId=${res.deptId}`,
- });
- }
- });
- },
- padChange(scannerCode){
- if(!this.isNumberKey){
- scannerCode = scannerCode.replace('\n','')
- }
- this.$refs.bigscreen.ScanningCommon('', scannerCode);
- },
-
- searchAdm(){
- let data = {
- currentId:this.currentId,
- taskType:this.taskTypeId,
- selectedLabelSlots:this.selectedLabelSlots,
- taskData:JSON.stringify(this.taskData)
- }
- uni.setStorageSync("admStore",data)
- let setDeptConfg = uni.getStorageSync("setDeptConfg") || {};
- uni.navigateTo({
- url: `../search/search?type=takeOrder&id=${this.id}&changedept=${this.changedept}&quickCombinationId=${setDeptConfg.id || ''}`,
- });
- },
- goTobloodEnd(order){
- uni.navigateTo({
- url: `/pages/newBlood/endOrderSignBlood/endOrderSignBlood?orderIds=${order.id}&deptName=${order.endDepts[0].dept}&deptId=${order.endDepts[0].id}&type=delivery`,
- });
- },
- goToWashingEnd(order){
- uni.navigateTo({
- url: `../quiltWashing/quiltWashingSendSignIn/quiltWashingSendSignIn?orderId=${order.id}&endDeptId=${order.endDepts[0].id}&endDeptName=${order.endDepts[0].dept}`,
- });
- },
- async initList(){
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- let res = await this.getAssociationTypes();
-
- let otherAssociationType = res.find(v => v.value === 'other');
- this.otherAssociationTypeId = otherAssociationType ? otherAssociationType.id : null;
- if(this.otherAssociationTypeId){
-
- let result = await this.getTaskOtherConfig();
- if (result.status == 200) {
- if(result.list && result.list[0]){
- this.clinicalMultiplayerMode = result.list[0].clinicalMultiplayerMode;
- this.showAppendUser = result.list[0].showAppendUser;
- this.clinicalTaskIds = result.list[0].clinicalTaskIds ? result.list[0].clinicalTaskIds.split(',') : [] ;
- }else{
- this.clinicalMultiplayerMode = 0;
- this.showAppendUser = 0;
- }
- } else {
- this.clinicalMultiplayerMode = 0;
- this.showAppendUser = 0;
- }
- }else{
- uni.showToast({
- icon: 'none',
- title: '未设置其他临床服务业务类型!'
- })
- }
-
-
- let inspectAssociationType = res.find(v => v.value === 'inspect');
- this.inspectAssociationTypeId = inspectAssociationType ? inspectAssociationType.id : null;
- if(this.inspectAssociationTypeId){
-
- let result = await this.getTaskInspectConfig();
- if (result.status == 200) {
- if(result.list && result.list[0]){
- this.hideInspectScan = result.list[0].hideInspectScan;
- }else{
- this.hideInspectScan = 0;
- }
- } else {
- this.hideInspectScan = 0;
- }
- }
- this.getBloodPageConfig()
- this.waitingOrdersGetNum();
- this.executingOrders(0);
- this.getWorkStateList();
- },
- getWorkStateList(){
- post('/common/common/getDictionary', {
- "type": "list",
- "key": "user_work_state"
- }).then(res => {
- this.workStateList = res;
- });
- },
-
- async getBloodPageConfig(){
- let result = await this.getTaskBloodConfig();
- if (result.status == 200) {
- if(result.list && result.list[0]){
- let signTypeList = result.list[0].signTypeList || [];
- this.signType4 = signTypeList.some(v => v.value == 4);
- this.delivery = result.list[0].delivery;
- this.useTakeCode = result.list[0].useTakeCode;
- this.takeCodeType = result.list[0].takeCodeType;
- }else{
- this.signType4 = false;
- this.delivery = 0;
- this.useTakeCode = 0;
- this.takeCodeType = {};
- }
- } else {
- this.signType4 = false;
- this.delivery = 0;
- this.useTakeCode = 0;
- this.takeCodeType = {};
- }
- },
-
- getAssociationTypes(){
- return post('/common/common/getDictionary', {
- "type": "list",
- "key": "association_types"
- });
- },
-
- getTaskOtherConfig(){
- return post("/simple/data/fetchDataList/taskTypeConfig", {
- "idx": 0,
- "sum": 10,
- "taskTypeConfig": {
- "hosId": this.hosId,
- "associationType": this.otherAssociationTypeId,
- }
- });
- },
-
- getTaskInspectConfig(){
- return post("/simple/data/fetchDataList/taskTypeConfig", {
- "idx": 0,
- "sum": 10,
- "taskTypeConfig": {
- "taskTypeDTO": {
- "hosId": { id: this.hosId },
- "associationType": { key: "association_types", value: "inspect" },
- }
- }
- });
- },
-
- getTaskBloodConfig(){
- return post("/simple/data/fetchDataList/taskTypeConfig", {
- "idx": 0,
- "sum": 10,
- "taskTypeConfig": {
- "taskTypeDTO": {
- "hosId": {
- "id": this.hosId
- },
- "ordinaryField": {
- "key": "ordinary_field",
- "value": "blood"
- }
- }
- }
- });
- },
-
- checkboxOk(bulkCopy) {
- console.log(bulkCopy);
- this.checkboxModels.disjunctor = false;
- let { user, data } = this.other;
- this.additionalUserCommon(user, data.id, data.worker.id, bulkCopy);
- },
-
- checkboxCancel() {
- this.checkboxModels.disjunctor = false;
- },
-
- showCheckboxModal(user, data) {
- this.other = {
- user,
- data,
- };
- this.checkboxModels = {
- content: `您要最追加的人员为${user.name},您确认要追加吗?`,
- disjunctor: true,
- }
- },
-
- additionalUser(data) {
- if (!this.SMFlag) {
- return;
- }
- this.SMFlag = false;
- console.log(data, 'data');
- SM().then((ress1) => {
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- post("/dept/scanning", {
- content: ress1,
- taskTypeId: data.taskType.id,
- gdState: data.gdState.id,
- }).then((result) => {
- this.SMFlag = true;
-
- if (result.state == 200 || result.state == 201) {
- console.log(result);
- let user;
- try{
-
- user = JSON.parse(result.code);
-
- if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() !== 'object'){
- user = result.code;
- }
- }catch(e){
- user = result.code;
- }
- if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() === 'object' && user.type == 'myQrCode' && user.id && user.name){
- user.qrcode = ress1;
- uni.hideLoading();
- if(data.taskType.associationType.value == 'other'){
- this.showCheckboxModal(user, data);
- }else{
- uni.showModal({
- title: "提示",
- content: `您要最追加的人员为${user.name},您确认要追加吗?`,
- success: (res) => {
- if (res.confirm) {
- console.log("用户点击确定");
- this.additionalUserCommon(user, data.id, data.worker.id, false);
- } else if (res.cancel) {
- console.log("用户点击取消");
- }
- },
- });
- }
- }else if(Object.prototype.toString.call(user).slice(8, -1).toLowerCase() === 'string'){
- let identityCardNumber = user;
-
- post("/data/fetchDataList/user", {idx: 0, sum: 1, user: { identityCardNumber }}).then((result) => {
- uni.hideLoading();
- if(result.status == 200){
- result.list = result.list || [];
- if(result.list.length){
- let user = {name: result.list[0].name, identityCardNumber, qrcode: ress1};
- if(data.taskType.associationType.value == 'other'){
- this.showCheckboxModal(user, data);
- }else{
- uni.showModal({
- title: "提示",
- content: `您要最追加的人员为${user.name},您确认要追加吗?`,
- success: (res) => {
- if (res.confirm) {
- console.log("用户点击确定");
- this.additionalUserCommon(user, data.id, data.worker.id, false);
- } else if (res.cancel) {
- console.log("用户点击取消");
- }
- },
- });
- }
- }else{
- uni.navigateTo({
- url: `../result_error/result_error?qrcode=${ress1}&msg=扫描二维码无法找到用户!`,
- });
- }
- }else{
- uni.navigateTo({
- url: `../result_error/result_error?qrcode=${ress1}&msg=请扫描正确的二维码!`,
- });
- }
- })
- }else{
- uni.hideLoading();
- uni.navigateTo({
- url: `../result_error/result_error?qrcode=${ress1}&msg=请扫描正确的二维码!`,
- });
- }
- } else {
- uni.hideLoading();
- uni.navigateTo({
- url: `../result_error/result_error?qrcode=${ress1}&msg=${result.info || '接口获取数据失败!'}`,
- });
- }
- });
- }).catch(err=>{
- this.SMFlag = true;
- });
- },
-
- additionalUserCommon(user, gdId, workerId, bulkCopy) {
- console.log(user, gdId, workerId, bulkCopy);
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- post("/workerOrder/additionalAccompanyingPersonnel", {
- userId: user.id || undefined,
- identityCardNumber: !user.id ? user.identityCardNumber : undefined,
- gdId,
- workerId,
- bulkCopy: bulkCopy ? 1 : undefined,
- }).then((result) => {
- uni.hideLoading();
- if (result.state == 200) {
- uni.showToast({
- icon: 'none',
- duration: 4000,
- title: '操作成功!'
- })
- uni.redirectTo({
- url: `../receiptpage/receiptpage`,
- });
- } else {
- uni.navigateTo({
- url: `../result_error/result_error?qrcode=${user.qrcode}&msg=${result.msg || '接口获取数据失败!'}`,
- });
- }
- });
- },
-
- otherCompleteOrder(data){
- console.log(data);
- uni.navigateTo({
- url: `../otherCompleteOrder/otherCompleteOrder?orderId=${data.id}&taskType=${data.taskType ? encodeURIComponent(JSON.stringify(data.taskType)) : ''}&order=${data ? encodeURIComponent(JSON.stringify(data)) : ''}`,
- });
- },
-
- drugbagOk(data) {
- console.log(data);
- if (!data.id) {
-
- uni.showModal({
- title: '提示',
- content: "没有查询到发药单号!",
- showCancel: false,
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- return;
- }
- this.drugbagModels.disjunctor = false;
- uni.navigateTo({
- url: `/pages/scanning_drug/scanning_drug?drugsBagId=${data.id}`,
- });
- },
-
- drugbagCancel() {
- this.drugbagModels.disjunctor = false;
- },
-
- showHandViewDrugsbag() {
- console.log(1)
- this.drugbagModels = {
- title: '填写发药单号',
- disjunctor: true,
- }
- },
-
- ok4() {
- this.models4.disjunctor = false;
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- post("/user/data/changeWorkState", {
- workState: this.workStateList.find(v => v.value == 1).id,
- }).then((res) => {
- uni.hideLoading();
- if (res.status == 200) {
- this.getCurrentUserNow();
- this.models4 = {
- disjunctor: true,
- title: "提示",
- content: `示闲成功`,
- icon: "warn",
- operate: {
- know: "知道了",
- },
- };
- }else{
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- cancel4() {
- this.models4.disjunctor = false;
- },
-
- know4() {
- this.models4.disjunctor = false;
- },
-
- showLeisure(){
- this.models4 = {
- disjunctor: true,
- title: "提示",
- content: "您确认要示闲吗?",
- icon: "warn",
- operate: {
- ok: "确定",
- cancel: "取消",
- },
- };
- },
-
- showBusy(){
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- let postData = {"idx":0,"workScheme":{"status":1,"hosId":this.hosId},"sum":1};
- post("/simple/data/fetchDataList/workScheme", postData).then((res) => {
- uni.hideLoading();
- if (res.status == 200) {
- let config = res.list.length ? res.list[0] : {};
- let list = [];
- for (let key in config) {
- if(key.includes('busyContent') && config[key]){
- list.push({
- busyContent: config[key],
- busyMinute: config['busyMinute' + key.replace('busyContent', '')],
- });
- }
- }
- this.models3 = {
- disjunctor: true,
- title: "提示",
- content: "请选择暂停工作的原因。",
- icon: "warn",
- list,
- operate: {
- cancel: "取消",
- },
- };
- } else {
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- speOk(data) {
- console.log(data);
- if (!data.id) {
-
- uni.showModal({
- title: '提示',
- content: "没有查询到标本!",
- showCancel: false,
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- return;
- }
- this.speModels.disjunctor = false;
- let infoDATA = {
- stype: data.stype,
- scode: data.scode,
- patientName: data.patientName,
- sickRoom: data.sickRoom ?
- data.sickRoom.dept : "-",
- checkDept: data.checkDept ?
- data.checkDept.dept : "-",
- bedNum: data.bedNum,
- };
- uni.navigateTo({
- url: `../scanning_B/scanning_B?res=${encodeURIComponent(
- JSON.stringify({data,status:666,scanCodeSpecimenOrderSign:data.scanCodeSpecimenOrderSign,workOrder:data.workOrderDTO})
- )}&infoDATA=${encodeURIComponent(
- JSON.stringify(infoDATA)
- )}`,
- });
- },
-
- speCancel() {
- this.speModels.disjunctor = false;
- },
-
- showHandViewSpecimen() {
- this.speModels = {
- title: '填写标本编码',
- disjunctor: true,
- }
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- getTaskData(){
- let data = {
- idx:0,
- sum: 9999,
- };
- let url = null
- if(this.selectedLabelSlots=='待接单'){
- url = '/workerOrder/waitingOrdersByTaskType'
- }else{
- url = '/workerOrder/executingOrdersByTaskType'
- }
- post(url, data).then(res => {
- this.taskData = res.data.map(i=>{
- return {
- text:i.name+'('+i.count+')',
- value:i.id
- }
- })
- });
- },
- closeDrawer() {
- this.isShowExecFilter = false;
- let data = uni.getStorageSync("admStore")
- data.isSearch = false
- uni.setStorageSync("admStore",data)
- },
-
- execFilter() {
- this.getTaskData()
- this.isShowExecFilter = true;
- },
-
- setScreenData(){
- let data = {
- deptName:this.deptName,
- deptId:this.deptId,
- currentId:this.currentId,
- taskType:this.taskTypeId,
- selectedLabelSlots:this.selectedLabelSlots,
- taskData:JSON.stringify(this.taskData),
- isSearch:false
- }
- uni.setStorageSync("admStore",data)
- },
-
- execFilterOk() {
- this.isShowExecFilter = false;
- this.zxzData = [];
- this.totalNum = -1;
- this.idx = 0;
- this.setScreenData()
- if (this.selectedLabelSlots == "待接单") {
- this.waitingOrders(0);
- } else if (this.selectedLabelSlots == "执行中") {
- this.executingOrders(0);
- }
- },
-
- execFilterReset() {
- this.currentId = 0;
- this.deptName = '';
- this.deptId = ''
- this.taskTypeId = ''
- uni.setStorageSync("admStore",{})
- },
- cancelPicker(){
- },
-
- execFilterBigScreen({
- detail: {
- value
- }
- }) {
- this.indexBigScreen = value;
- this.arrayKeyBigScreen = this.arrayBigScreen[value].id;
- console.log(this.arrayKeyBigScreen);
- console.log(this.$refs.bigscreen);
- this.$refs.bigscreen.Scanning(this.arrayKeyBigScreen);
- },
-
- getMenu() {
- let menu = uni.getStorageSync("userData").menu;
-
- let roles = uni.getStorageSync("userData").user.role;
- this.pharmacistFlag = roles.some(
- (item) => item.rolecode === "pharmacist"
- );
-
-
- this.arrayBigScreen = [];
- menu.forEach((item) => {
- if (item.link === "wxInspect") {
- this.content.push({
- text: "检查信息",
- });
- } else if (item.link === "wxPatient") {
- this.content.push({
- text: "患者信息",
- });
- } else if (item.link === "wxPharmacy") {
-
- if (this.pharmacistFlag) {
- this.content.push({
- text: "药房",
- });
- }
- } else if (item.link === "wxCode") {
- this.content.push({
- text: "二维码设置",
- });
- } else if (item.link === "wxSpecimenEntry") {
- this.content.push({
- text: "标本录入",
- });
- } else if (item.link === "wxDrugsbagEntry") {
- this.content.push({
- text: "药品录入",
- });
- } else if (item.link === "workState" && this.workState == 1) {
- this.content.push({
- text: "示闲",
- });
- } else if (item.link === "workState" && this.workState == 2) {
- this.content.push({
- text: "示忙",
- });
- } else if (item.link === "sendBuild") {
- this.content.push({
- text: "送回发起",
- });
- } else if (item.link === "sendHandover") {
- this.content.push({
- text: "领取交接",
- });
- } else if (item.link === "medicalWasteOut") {
- this.content.push({
- text: "医废出库",
- });
- } else if (item.link === "wxTakeMedicine") {
- this.content.push({
- text: "摆药取药",
- });
- } else if (item.link === "myQrcode") {
- this.content.push({
- text: "我的二维码",
- });
- } else if (item.link === "departmentQrcode") {
- this.content.push({
- text: "科室二维码",
- });
- } else if (item.link === "formManagementWechat") {
- this.content.push({
- text: "查看表单",
- });
- } else if (item.link === "BIAOBEN") {
- this.arrayBigScreen.push({
- id: 'BIAOBEN|$|',
- name: "标本",
- });
- } else if (item.link === "YAOPING") {
- this.arrayBigScreen.push({
- id: 'YAOPING|$|',
- name: "药品",
- });
- } else if (item.link === "HUANZHE") {
- this.arrayBigScreen.push({
- id: 'HUANZHE|$|',
- name: "患者",
- });
- } else if (item.link === "XIEZHIPING") {
- this.arrayBigScreen.push({
- id: 'XIEZHIPING|$|',
- name: "血制品",
- });
- } else if (item.link === "KJJD") {
- this.arrayBigScreen.push({
- id: 'KJJD|$|',
- name: "快捷建单",
- });
- } else if (item.link === "kuaijiejiedan") {
- this.arrayBigScreen.push({
- id: 'kuaijiejiedan|$|',
- name: "快捷接单",
- });
- } else if (item.link === "quickOrderAcceptanceWx") {
- this.content.push({
- text: "快捷接单",
- });
- } else if (item.link === "wxQuiltRecovery") {
- this.content.push({
- text: "被服回收",
- });
- }
- });
- },
-
- photograph(data) {
- photographTool(data);
- },
-
-
- nextDeptOrder_ss(data, accountObj) {
- console.log(this.currentCode);
- let isKs = 0;
- let ids = [];
- let id = data.id;
- ids.push(id);
- let list = {
- code: "",
- ids: ids,
- };
- let code = "";
- let type = "";
- if (this.currentCode) {
- let gdStateValue = data.gdState.value;
- let associationTypeValue = data.taskType.associationType.value;
-
- if (
- (associationTypeValue == "other" &&
- gdStateValue == "4") ||
- gdStateValue == "5"
- ) {
- code = this.currentCode;
- type = "orderSign/" + code;
- list = {
- ids
- };
- if (accountObj) {
- list.handover = [accountObj.accountId];
- }
- isKs = 1;
- }
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- post("/workerOrder/" + type, list).then((res) => {
- uni.hideLoading();
- if (res) {
- if (res.status == 200) {
- if (
- gdStateValue == "4" &&
- associationTypeValue == "other"
- ) {
- uni.navigateTo({
- url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
- });
- }
- if (gdStateValue == "5") {
- uni.navigateTo({
- url: `../../pages/scanning_code/scanning_code?type=${associationTypeValue}&type1=${res.type}&id=${data.id}&deptCode=${code}&dept=${res.dept}&accountObj=${encodeURIComponent(JSON.stringify(accountObj))}`,
- });
- }
- } else {
- uni.navigateTo({
- url: `../../pages/scanning_Result/scanning_Result?type=${
- associationTypeValue
- }&type1=${res.type}&id=${data.id}&status=600&msg=${
- res.msg
- }&taskTypeId=${
- this.infoDATA.taskType.id
- }&isKs=${isKs}&model=${encodeURIComponent(
- JSON.stringify(res)
- )}&qrcode=${this.currentCode}`,
- });
- }
- } else {
- uni.navigateTo({
- url: `../../pages/scanning_Result/scanning_Result?id=${data.id}&status=600&msg=扫码失败!请扫描正确的二维码!&isKs=${isKs}&qrcode=${this.currentCode}`,
- });
- }
- });
- }
- },
-
- hosOk(data) {
- console.log(data);
- const {
- accountName,
- account,
- accountId
- } = data;
- if (!accountName && !account) {
-
- uni.showModal({
- title: '提示',
- content: "请填写交接人工号!",
- showCancel: false,
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- return;
- } else if (!accountName && account || accountName && !account) {
-
- uni.showModal({
- title: '提示',
- content: "请填写正确的交接人工号!",
- showCancel: false,
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- return;
- }
- this.hosModels.disjunctor = false;
- let associationTypeValue = this.currentData.taskType.associationType.value;
- console.log(associationTypeValue)
- this.uploadToOther(this.currentData, data, 'start');
- },
-
- hosCancel() {
- this.hosModels.disjunctor = false;
- },
-
- showSelectAccount() {
- this.hosModels = {
- disjunctor: true,
- }
- },
-
- uploadToOther(data, accountObj, type){
-
- console.log(data, 1111);
- let id_seimin;
- let asTypeValue_seimin;
- let gdStateValue_seimin;
- if (data.status != 200 && data.status !== undefined) {
- id_seimin = data.id;
- asTypeValue_seimin = data.type;
- gdStateValue_seimin = JSON.parse(data.model).gdstate2;
- } else {
- id_seimin = data.id;
- asTypeValue_seimin = data.taskType.associationType.value;
- gdStateValue_seimin = data.gdState.value;
- }
-
- uni.chooseImage({
- count: 1,
- sourceType: ['camera'],
- success: (chooseImageRes) => {
- console.log(chooseImageRes, pathUrl)
- const tempFilePaths = chooseImageRes.tempFilePaths;
- const tempFiles = chooseImageRes.tempFiles;
- let tp = tempFilePaths[0];
- uni.showLoading({
- mask: true,
- title: '加载中'
- });
- post('/workerOrder/findRecordInfoByOrderId', {
- orderId: id_seimin,
- gdOperate: 21,
- }).then(result => {
- console.log(result)
- if (result.state == 200) {
- uni.getImageInfo({
- src: tp,
- success: (res) => {
- console.log('压缩前', res)
- let canvasWidth = res.width
- let canvasHeight = res.height
- let img = new Image()
- img.src = res.path
- let canvas = document.createElement('canvas');
- let ctx = canvas.getContext('2d')
- canvas.width = canvasWidth
- canvas.height = canvasHeight
- ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight)
- canvas.toBlob((fileSrc) => {
- tp = window.URL.createObjectURL(fileSrc)
- console.log('压缩后', tp);
- uni.uploadFile({
- url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
- filePath: tp,
- name: 'file',
- formData: {
- 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
- 0].path.split(
- /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
- },
- success: (uploadFileRes) => {
- console.log(uploadFileRes, 10086, asTypeValue_seimin);
- this.nextDeptOrder_ss(data, accountObj, type);
- },
- fail: err => {
- console.error(err);
- uni.hideLoading();
- uni.showToast({
- icon: 'none',
- title: '上传失败',
- duration: 2000
- });
- }
- });
- }, 'image/jpeg', 0.3)
- },
- fail: function () {
- uni.hideLoading();
- uni.showToast({
- icon: 'none',
- title: '上传失败',
- duration: 2000
- });
- }
- })
- } else {
- uni.hideLoading();
- uni.showToast({
- icon: "none",
- title: result.msg || "接口获取数据失败!",
- });
- }
- })
- }
- });
-
-
- uni.chooseImage({
- count: 1,
- sourceType: ['camera'],
- sizeType: ['compressed'],
- success: (chooseImageRes) => {
- console.log(chooseImageRes, pathUrl)
- const tempFilePaths = chooseImageRes.tempFilePaths;
- const tempFiles = chooseImageRes.tempFiles;
- let tp = tempFilePaths[0];
- uni.showLoading({
- mask: true,
- title: '加载中'
- });
- post('/workerOrder/findRecordInfoByOrderId', {
- orderId: id_seimin,
- gdOperate: 21,
- }).then(result => {
- console.log(result)
- if (result.state == 200) {
- uni.compressImage({
- src: tp,
- quality: 30,
- success: (res) => {
- console.log('压缩前', res)
- tp = res.tempFilePath;
- console.log('压缩后', tp);
- uni.uploadFile({
- url: pathUrl + '/common/common/uploadAttachment/'+(type == 'start' ? 'orderStartPhoto' : 'orderEndPhoto')+'/' + id_seimin + '/' + result.recordId,
- filePath: tp,
- name: 'file',
- formData: {
- 'filename': tempFiles[0].name ? tempFiles[0].name.split('.')[0] + '.jpg' : tempFiles[
- 0].path.split(
- /[\\/]/).reverse()[0].split('.')[0] + '.jpg'
- },
- success: (uploadFileRes) => {
- console.log(uploadFileRes, 10086, asTypeValue_seimin);
- this.nextDeptOrder_ss(data, accountObj, type);
- },
- fail: err => {
- console.error(err);
- uni.hideLoading();
- uni.showToast({
- icon: 'none',
- title: '上传失败',
- duration: 2000
- });
- }
- });
- },
- fail: function () {
- uni.hideLoading();
- uni.showToast({
- icon: 'none',
- title: '上传失败',
- duration: 2000
- });
- }
- })
- } else {
- uni.hideLoading();
- uni.showToast({
- icon: "none",
- title: result.msg || "接口获取数据失败!",
- });
- }
- })
- }
- });
-
- },
-
- async photographToOther(data, type) {
- this.currentData = data;
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- let result = await post("/dept/scanning", {
- content: type === 'start' ? data.startDept.qrcode : data.endDepts[0].qrcode,
- taskTypeId: data.taskType.id,
- gdState: data.gdState.id,
- });
- uni.hideLoading();
- this.currentCode = result.code;
- if (result.state == 200 || result.state == 201) {
- uni.showModal({
- title: '提示',
- content: '请尽量拍摄角度覆盖清洁区域?',
- success: (res) => {
- if (res.confirm) {
- if (result.account) {
- this.uploadToOther(data, {
- account: result.account,
- accountName: result.name,
- accountId: result.id,
- }, type);
- } else {
- this.uploadToOther(data, undefined, type);
- }
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- } else if (result.state == '0000') {
- this.showSelectAccount();
- } else {
- uni.showToast({
- icon: "none",
- title: result.info || "接口获取数据失败!",
- });
- }
- },
- fabClick(){
- },
-
- trigger(e) {
- if (e.item.text === "我的任务") {
- uni.navigateTo({
- url: "../mypage/mypage",
- });
- } else if (e.item.text === "退出登录") {
-
- uni.showToast({
- title: "退出成功!",
- });
- let ip = uni.getStorageSync("ip");
- let username = uni.getStorageSync("username");
- let password = uni.getStorageSync("password");
- let savePasswordTime = uni.getStorageSync("savePasswordTime");
- let clientid = uni.getStorageSync("clientid");
- uni.clearStorageSync();
- if (username) {
- uni.setStorageSync("ip", ip);
- uni.setStorageSync("username", username);
- uni.setStorageSync("password", password);
- uni.setStorageSync("savePasswordTime", savePasswordTime);
- }
- uni.setStorageSync("clientid", clientid);
- uni.navigateTo({
- url: "../homePage/homePage",
- });
-
- deleteIt("/auth/logout2").then((result) => {
- if (result.status == 200) {
- uni.showToast({
- title: "退出成功!",
- });
- let ip = uni.getStorageSync("ip");
- let username = uni.getStorageSync("username");
- let password = uni.getStorageSync("password");
- let clientid = uni.getStorageSync("clientid");
- uni.clearStorageSync();
- uni.setStorageSync("ip", ip);
- uni.setStorageSync("username", username);
- uni.setStorageSync("password", password);
- uni.setStorageSync("clientid", clientid);
- uni.navigateTo({
- url: "../homePage/homePage",
- });
- } else {
- uni.showToast({
- icon: "none",
- title: result.msg || "接口获取数据失败!",
- });
- }
- });
- } else if (e.item.text === "药房") {
- uni.navigateTo({
- url: "../pharmacy/pharmacy",
- });
- } else if (e.item.text === "患者信息") {
- uni.navigateTo({
- url: "../patientInformationList/patientInformationList",
- });
- } else if (e.item.text === "负责科室") {
- if (uni.getStorageSync("setDepts")) {
- uni.removeStorageSync("setDepts");
- }
- let obj = uni.getStorageSync("setDeptConfg");
- uni.navigateTo({
- url: `../setDept/setDept?configName=${obj.configName}&id=${obj.id}&changedept=1`,
- });
- } else if (e.item.text === "检查信息") {
- uni.navigateTo({
- url: "../inspectList/inspectList",
- });
- } else if (e.item.text === "二维码设置") {
- uni.navigateTo({
- url: "../settingCode/settingCode",
- });
- } else if (e.item.text === "标本录入") {
- this.showHandViewSpecimen();
- } else if (e.item.text === "药品录入") {
- this.showHandViewDrugsbag();
- } else if (e.item.text === "示忙") {
- this.showLeisure();
- } else if (e.item.text === "示闲") {
- this.showBusy();
- } else if (e.item.text === "摆药取药") {
- this.handleTakeMedicine()
- } else if (e.item.text === "我的二维码") {
- this.myQrcodeHandler()
- } else if (e.item.text === "科室二维码") {
- this.departmentQrcodeHandler()
- } else if (e.item.text === "查看表单") {
- uni.navigateTo({
- url: "../formManagementWechat/formManagementWechat",
- });
- } else if (e.item.text === "快捷接单") {
- uni.navigateTo({
- url: "../quickOrderAcceptanceWx/quickOrderAcceptanceWx",
- });
- } else if (e.item.text === "被服回收") {
- this.quiltScan();
- } else if (e.item.text === "送回发起") {
- uni.navigateTo({
- url: "/pages/quiltWashing/quiltWashingSendSelectDept/quiltWashingSendSelectDept",
- });
- } else if (e.item.text === "领取交接") {
- this.quiltScan_send();
- } else if (e.item.text === "医废出库") {
- uni.navigateTo({
- url: "/pages/medicalWaste/medicalWasteSelect/medicalWasteSelect",
- });
- }
- },
-
- ok1() {
- this.models1.disjunctor = false;
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- let startDeptId, startDeptName, handoverId, handoverName;
- if(this.clothingType === 'user'){
- startDeptId = this.quiltData.dept.id;
- startDeptName = this.quiltData.dept.dept;
- handoverId = this.quiltData.id;
- handoverName = this.quiltData.name;
- }else if(this.clothingType === 'dept'){
- startDeptId = this.quiltData.id;
- startDeptName = this.quiltData.dept;
- handoverId = undefined;
- handoverName = '';
- }
- post("/transflow/createOrTakeOrder", {
- type: 'clothingGet',
- id: 0,
- startDeptId,
- hosId: this.hosId,
- handoverId,
- }).then((res) => {
- uni.hideLoading();
- if (res.data && res.data.state == 200) {
- uni.navigateTo({
- url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${startDeptId}&startDeptName=${startDeptName}&orderId=${res.data.orderId}&name=${handoverName}`,
- });
- }else{
- uni.showToast({
- icon: "none",
- title: res.data ? res.data.msg : "接口获取数据失败!",
- });
- }
- });
- },
-
- cancel1() {
- this.models1.disjunctor = false;
- },
-
- showQuiltData(data) {
- this.quiltData = data;
- let content = '';
- if(this.clothingType === 'user'){
- content = `您扫描的是<strong class="red">${data.name}</strong>的工号,是否建立<strong class="red">${data.dept.dept}</strong>的被服回收工单吗?`;
- }else if(this.clothingType === 'dept'){
- content = `您扫描的科室码,是否建立<strong class="red">${data.dept}</strong>的被服回收工单吗?`;
- }
- this.models1 = {
- disjunctor: true,
- title: "提示",
- content,
- icon: "warn",
- operate: {
- ok: "建立工单",
- cancel: "取消",
- },
- };
- },
-
- ok2(deptDto) {
- console.log(deptDto);
- this.models2.disjunctor = false;
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- let startDeptId, startDeptName, handoverId, handoverName;
- if(this.clothingType === 'user'){
- startDeptId = deptDto.id;
- startDeptName = deptDto.dept;
- handoverId = this.quiltData.id;
- handoverName = this.quiltData.name;
- }else if(this.clothingType === 'dept'){
- startDeptId = deptDto.id;
- startDeptName = deptDto.dept;
- handoverId = undefined;
- handoverName = '';
- }
- post("/transflow/createOrTakeOrder", {
- type: 'clothingGet',
- id: 0,
- startDeptId,
- hosId: this.hosId,
- handoverId,
- }).then((res) => {
- uni.hideLoading();
- if (res.data && res.data.state == 200) {
- uni.navigateTo({
- url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${startDeptId}&startDeptName=${startDeptName}&orderId=${res.data.orderId}&name=${handoverName}`,
- });
- }else{
- uni.showToast({
- icon: "none",
- title: res.data ? res.data.msg : "接口获取数据失败!",
- });
- }
- });
- },
-
- cancel2() {
- this.models2.disjunctor = false;
- },
- showParentQuiltData(data){
- this.quiltData = data;
-
- let startDeptId, startDeptName, handoverId, handoverName, content;
- if(this.clothingType === 'user'){
- startDeptId = this.quiltData.dept.id;
- startDeptName = this.quiltData.dept.dept;
- handoverId = this.quiltData.id;
- handoverName = this.quiltData.name;
- content = `您扫描的是<strong class="red">${handoverName}</strong>的工号,科室为<strong class="red">${startDeptName}</strong>,需要选择相应的子级科室建单。`;
- }else if(this.clothingType === 'dept'){
- startDeptId = this.quiltData.id;
- startDeptName = this.quiltData.dept;
- handoverId = undefined;
- handoverName = '';
- content = `您扫描的是科室为<strong class="red">${startDeptName}</strong>,需要选择相应的子级科室建单。`;
- }
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- post("/data/fetchDataList/department", {
- "idx": 0,
- "sum": 9999,
- "department": {
- "cascadeHosId": this.hosId,
- "parent": {
- "id": startDeptId
- },
- "searchType": 1,
- }
- }).then((res) => {
- uni.hideLoading();
- if (res.status == 200) {
- if(res.list.length > 0){
- this.models2 = {
- disjunctor: true,
- title: "提示",
- content,
- icon: "warn",
- list: res.list,
- operate: {
- cancel: "取消",
- },
- };
- }else{
- this.showQuiltData(data)
- }
- }else{
- uni.showToast({
- icon: "none",
- title: res.data ? res.data.msg : "接口获取数据失败!",
- });
- }
- });
- },
-
- ok3(busyContent) {
- console.log(busyContent);
- this.models3.disjunctor = false;
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- post("/user/data/changeWorkState", {
- workState: this.workStateList.find(v => v.value == 2).id,
- minute: busyContent.busyMinute,
- workStateRemark: busyContent.busyContent,
- }).then((res) => {
- uni.hideLoading();
- if (res.status == 200) {
- this.getCurrentUserNow();
- this.models3 = {
- disjunctor: true,
- title: "提示",
- content: `您上班状态修改为<strong class="red">${busyContent.busyContent}</strong>,<strong class="red">${busyContent.busyMinute}</strong>分钟后自动恢复`,
- icon: "warn",
- operate: {
- know: "知道了",
- },
- };
- }else{
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- cancel3() {
- this.models3.disjunctor = false;
- },
-
- know3() {
- this.models3.disjunctor = false;
- },
-
- quiltScan() {
- if (!this.SMFlag) {
- return;
- }
- this.SMFlag = false;
- SM().then((content) => {
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- post("/dept/scanning", {
- content,
- })
- .then((result) => {
- this.quiltCode = result.code;
- this.SMFlag = true;
-
- if (result.state == 200 || result.state == 201) {
- let data = {
- code: this.quiltCode,
- };
- post("/transflow/bigScan", { type: 'clothingGet', code: this.quiltCode })
- .then((res) => {
- uni.hideLoading();
- if (res.state == 200) {
- this.clothingType = res.type;
-
- if(res.orderId){
- if(res.type == 'user'){
- uni.navigateTo({
- url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${res.data.dept.id}&startDeptName=${res.data.dept.dept}&orderId=${res.orderId}&name=${res.data.name}&nameId=${res.data.id}`,
- });
- } else if(res.type == 'dept'){
- uni.navigateTo({
- url: `../quiltWashing/quiltWashingGetSignIn/quiltWashingGetSignIn?quiltCode=${this.quiltCode}&startDeptId=${res.data.id}&startDeptName=${res.data.dept}&orderId=${res.orderId}&name=`,
- });
- }
- }else{
- this.showParentQuiltData(res.data);
- }
- } else {
- uni.navigateTo({
- url: `../scanning_Result/scanning_Result?status=${res.state}&msg=${res.msg}&qrcode=${this.quiltCode}`,
- });
- }
- });
- } else {
- uni.hideLoading();
- uni.showToast({
- icon: "none",
- title: result.info || "接口获取数据失败!",
- });
- }
- })
- }).catch(err => {
- this.SMFlag = true;
- });
- },
-
- quiltScan_send() {
- if (!this.SMFlag) {
- return;
- }
- this.SMFlag = false;
- SM().then((content) => {
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- post("/dept/scanning", {
- content,
- })
- .then((result) => {
- this.quiltCode = result.code;
- this.SMFlag = true;
-
- if (result.state == 200 || result.state == 201) {
- let data = {
- code: this.quiltCode,
- };
- post("/transflow/extra", { type: 'clothingSend', receiveAndHandover: true, code: this.quiltCode }).then((res) => {
- uni.hideLoading();
- if (res.data && res.data.state == 200) {
- uni.navigateTo({
- url: `../quiltWashing/quiltWashingSendsendHandover/quiltWashingSendsendHandover?quiltCode=${this.quiltCode}`,
- });
- } else {
- uni.navigateTo({
- url: `../scanning_Result/scanning_Result?status=${res.data ? res.data.state : 500}&msg=${res.data ? res.data.msg : ''}&qrcode=${this.quiltCode}`,
- });
- }
- });
- } else {
- uni.hideLoading();
- uni.showToast({
- icon: "none",
- title: result.info || "接口获取数据失败!",
- });
- }
- })
- }).catch(err => {
- this.SMFlag = true;
- });
- },
-
- myQrcodeHandler(){
- this.showMyQrcodeModel = {
- disjunctor: true,
- };
- },
- closeMyQrcodeModel(){
- this.showMyQrcodeModel.disjunctor = false;
- },
-
- certificatHandler(data){
- this.showCertificatModel = {
- disjunctor: true,
- id: data.id,
- };
- },
- closeCertificatModel(){
- this.showCertificatModel.disjunctor = false;
- },
-
- departmentQrcodeHandler(){
- this.showDepartmentQrcodeModel = {
- disjunctor: true,
- };
- },
- closeDepartmentQrcodeModel(){
- this.showDepartmentQrcodeModel.disjunctor = false;
- },
-
- handleTakeMedicine() {
- if (!this.SMFlag) {
- return;
- }
- this.SMFlag = false;
- SM().then((content) => {
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- post("/dept/scanning", {
- content,
- })
- .then((result) => {
- this.currentCode = result.code;
- this.SMFlag = true;
-
- if (result.state == 200 || result.state == 201) {
- uni.hideLoading();
- uni.navigateTo({
- url: `../promptPage/promptPage?code=${result.code}`,
- });
- } else {
- uni.hideLoading();
- uni.showToast({
- icon: "none",
- title: result.info || "接口获取数据失败!",
- });
- }
- })
- }).catch(err => {
- this.SMFlag = true;
- });
- },
-
- clickHandler(key) {
- this.selectedLabelSlots = key;
- this.idx = 0;
- this.totalNum = -1;
- this.scroll_top = Math.random();
- this.execFilterReset()
- if (key === "待接单") {
- this.waitingOrders(0);
- } else if (key === "执行中") {
- this.executingOrders(0);
- }
- },
-
- itemInfo(workOrder) {
- console.log(workOrder);
- uni.navigateTo({
- url: `../receipt_infopage/receipt_infopage?id=${workOrder.id}&associationTypeValue=${workOrder.taskType.associationType.value}&associationTypeId=${workOrder.taskType.associationType.id}&taskTypeId=${workOrder.taskType.id}`,
- });
- },
-
- know() {
- this.models.disjunctor = false;
- this.idx = 0;
- this.totalNum = -1;
-
- this.executingOrdersGetNum();
- this.waitingOrders(0);
- this.scroll_top = Math.random();
- },
-
- ok() {
- this.models.disjunctor = false;
- get("/workerOrder/takeOrder/" + this.qdId.id).then((res) => {
- let msg = "接单失败";
- let icon = "error";
- if (res.status == 200) {
- msg = "接单成功";
- icon = "success";
- }
- this.models = {
- disjunctor: true,
- content: msg,
- icon: icon,
- operate: {
- know: "知道了",
- },
- };
- });
- },
-
- cancel() {
- this.models.disjunctor = false;
- },
-
- showAlerts(data) {
- this.qdId = data;
- this.models = {
- disjunctor: true,
- title: "提示",
- content: "是否确定接单?",
- icon: "warn",
- operate: {
- ok: "确定",
- cancel: "取消",
- },
- };
- },
-
- executingOrders(idx,type) {
- console.log(this.zxzData.length, this.totalNum);
- if (this.zxzData.length == this.totalNum) {
- uni.showToast({
- icon: "none",
- title: "没有更多数据了!",
- });
- this.freshing = true;
- return;
- }
- let data = {
- idx,
- sum: 20,
- };
- if (this.currentId) {
- data.keyWord = this.currentId;
- } else {
- delete data.keyWord;
- }
- if (this.deptId) {
- data.deptId = this.deptId;
- } else {
- delete data.deptId;
- }
- if (this.taskTypeId) {
- data.taskTypeId = this.taskTypeId;
- } else {
- delete data.taskTypeId;
- }
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
- post("/workerOrder/executingOrders", data).then((res) => {
- uni.hideLoading();
- if (res.status == 200) {
- this.triggered = false;
- this.freshing = true;
- this.totalNum = res.data.resultCount;
- res.data.data = res.data.data || [];
- res.data.data.forEach(v => {
- v.clinicalTaskIdsFlag = this.clinicalTaskIds.includes(v.taskType.id.toString());
- })
- if (idx === 0) {
- this.zxzData = res.data.data;
- } else {
- this.zxzData.push(...res.data.data);
- }
- this.tabs[1].num = res.data.resultCount;
- } else {
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- waitingOrders(idx) {
- if (this.zxzData.length == this.totalNum) {
- uni.showToast({
- icon: "none",
- title: "没有更多数据了!",
- });
- this.freshing = true;
- return;
- }
- let data = {
- idx,
- sum: 20,
- };
- if (this.deptId) {
- data.deptId = this.deptId;
- } else {
- delete data.deptId;
- }
- if (this.taskTypeId) {
- data.taskTypeId = this.taskTypeId;
- } else {
- delete data.taskTypeId;
- }
- uni.showLoading({
- title: "加载中",
- mask: true,
- });
-
- post("/workerOrder/waitingOrders", data).then((res) => {
- uni.hideLoading();
- if (res.status == 200) {
- this.triggered = false;
- this.freshing = true;
- this.totalNum = res.data.resultCount;
- if (idx === 0) {
- this.zxzData = res.data.data;
- } else {
- this.zxzData.push(...res.data.data);
- }
- this.tabs[0].num = res.data.resultCount;
- } else {
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- refresherrefresh() {
- if (this.triggered) {
- return;
- }
- this.triggered = true;
- this.idx = 0;
- this.totalNum = -1;
- if (this.selectedLabelSlots == "待接单") {
- this.waitingOrders(0);
- } else if (this.selectedLabelSlots == "执行中") {
- this.executingOrders(0);
- }
- },
-
- scroll(e) {
- if (e.detail.scrollTop < 20) {
- this.scroll_refresher_enabled = true;
- } else {
- this.scroll_refresher_enabled = false;
- }
- },
-
- refresherrestore() {
- this.triggered = false;
- console.log("下拉刷新复位");
- },
-
- refresherabort() {
- this.triggered = false;
- console.log("下拉刷新中止");
- },
-
- scrolltolower() {
- if (this.freshing) {
- this.freshing = false;
- if (this.selectedLabelSlots == "待接单") {
- this.waitingOrders(++this.idx);
- } else if (this.selectedLabelSlots == "执行中") {
- this.executingOrders(++this.idx);
- }
- }
- },
-
- executingOrdersGetNum() {
- let data = {
- idx: 0,
- sum: 20,
- };
- if (this.arrayKey) {
- data.keyWord = this.arrayKey;
- } else {
- delete data.keyWord;
- }
- post("/workerOrder/executingOrders", data).then((res) => {
- if (res.status == 200) {
- this.tabs[1].num = res.data.resultCount;
- } else {
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- waitingOrdersGetNum() {
- let data = {
- idx: 0,
- sum: 20,
- };
- post("/workerOrder/waitingOrders", data).then((res) => {
- if (res.status == 200) {
- this.tabs[0].num = res.data.resultCount;
- } else {
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- });
- },
-
- stop(e) {
- e.preventDefault();
- },
-
- updateUser(dept) {
- post("/user/data/bindDutyDept", {dutyDept: +dept.id}).then((res) => {
- if (res.status == 200) {
- this.getCurrentUserNow(true);
- }else{
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- })
- },
-
- getCurrentUserNow(updateDept = false) {
- get("/user/data/getCurrentUser").then((res) => {
- if (res.status == 200) {
- let userData = uni.getStorageSync('userData');
- userData.user = res.data;
- uni.setStorageSync('userData', userData);
-
- if(updateDept){
- this.departmentQrcodeHandler()
- }else{
- this.workState = uni.getStorageSync('userData').user.workState ? uni.getStorageSync('userData').user.workState.value : '1';
- this.content.forEach(v => {
- if(v.text == '示忙' || v.text == '示闲'){
- v.text = this.workState == 1 ? '示闲' : '示忙';
- }
- })
- }
- }else{
- uni.showToast({
- icon: "none",
- title: res.msg || "接口获取数据失败!",
- });
- }
- })
- },
- onLoad(options) {
- let admStore = uni.getStorageSync("admStore");
- if(admStore.type=='searchAdm'){
- if(Object.keys(admStore).length != 0){
- this.$nextTick(_=>{
- if(admStore.isSearch){
- this.isShowExecFilter = true
- }else{
- this.isShowExecFilter = false
- }
- this.deptName = admStore.dept
- this.deptId = admStore.deptId
- this.currentId = admStore.currentId
- this.taskTypeId = admStore.taskType
- this.selectedLabelSlots = admStore.selectedLabelSlots
- this.taskData = JSON.parse(admStore.taskData)
- })
- }
- }
- this.workState = uni.getStorageSync('userData').user.workState ? uni.getStorageSync('userData').user.workState.value : '1';
-
- this.getMenu();
- post("/auth/getUserWorkDept", {}).then((ress) => {
- if (ress.status == 200) {
- let userId = uni.getStorageSync("userData").user.id;
- let groupManager = ress.settings && ress.settings.groupManager;
- let workType = ress.settings ? ress.settings.workType : -1;
- let ruleType = ress.settings ? ress.settings.ruleType : -1;
- if (workType == 2 && (ruleType == 3 || (ruleType == 4 && userId == groupManager.manager))) {
-
- this.content.unshift({
- text: "负责科室",
- });
- }
- }
- });
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- this.selectedLabelSlots = "执行中";
- this.initList();
- this.getConfig();
-
- if (options.showDepartmentQrcodeId && options.showDepartmentQrcodeDept) {
- this.updateUser({id: options.showDepartmentQrcodeId, dept: options.showDepartmentQrcodeDept})
- }
-
- webHandle("no", "app");
- this.isUpdate = true
- this.isApp = true
-
-
- webHandle("no", "wx");
-
- },
- onShow() {
- this.getConfig();
- let that = this
-
- this.isUpdate = true
- this.isApp = true
- uni.$off('scan')
- uni.$on('scan', function(data) {
- that.padChange(data)
- })
-
- this.SMFlag = true;
-
- document.body.addEventListener("touchmove", this.stop, {
- passive: false,
- });
-
- },
- onHide() {
-
- document.body.removeEventListener("touchmove", this.stop, {
- passive: false,
- });
-
- },
- }
- };
- </script>
- <style scoped>
- >>>.uni-fab--leftBottom{
- bottom: calc(65px + var(--window-bottom)) !important;
- }
- >>>.uni-fab__circle--leftBottom{
- bottom: calc(75px + var(--window-bottom)) !important;
- }
- </style>
- <style lang="less">
- .hideInput{
- height: 40px;
- position: absolute;
- width: 100px;
- top: 100px;
- left: 100px;
- z-index: 99999;
- border: 1px solid;
- padding-left: 10px;
- }
- /deep/ .uni-drawer__content{
- width: 600rpx !important;
- }
- /deep/ .selected-item-active{
- border-bottom: 4rpx solid #49b856;
- }
- .Receiptpage {
- width: 100%;
- height: 100%;
- position: relative;
- .execFilterMask{
- // position: fixed;
- // top: 0;
- // right: 0;
- // bottom: 0;
- // left: 0;
- // z-index: 9999;
- // background-color: rgba(0, 0, 0, 0.5);
- // display: flex;
- // flex-direction: column;
- // justify-content: flex-end;
- .execFilter{
- position: relative;
- background-color: #fff;
- height: 100vh;
- border-radius: 100rpx 100rpx 0 0;
- .execFilterHeader{
- height: 70rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- border-bottom: 2rpx solid #ccc;
- }
- .execFilterBody{
- .execFilterItem{
- padding: 32rpx;
- border-bottom: 2rpx dashed #ccc;
- &:last-of-type{
- border-bottom: none;
- }
- .execFilterItemHeader{}
- .execFilterItemBody{
- display: flex;
- flex-wrap: wrap;
- padding: 32rpx 0 0;
- justify-content: space-between;
- text-align: left;
- .execFilterItemBox{
- width: 200rpx;
- height: 80rpx;
- text-align: center;
- line-height: 80rpx;
- background-color: #f6f6f6;
- margin-bottom: 20rpx;
- border-radius: 80rpx;
- &.active{
- color: #fff;
- background-color: #49b856;
- }
- }
- .deptName {
- height: 80rpx;
- background-color: #f6f6f6;
- border-radius: 20rpx;
- padding: 0 20rpx;
- width: 100%;
- }
- }
- }
- }
- .execFilterFooter {
- position: absolute;
- bottom: 0;
- right: 0;
- left: 0;
- line-height: 66rpx;
- height: 100rpx;
- display: flex;
- justify-content: space-between;
- .btn {
- height: 66rpx;
- flex: 1;
- margin: 0 1%;
- background-image: linear-gradient(to right, #72c172, #3bb197);
- color: #fff;
- border-radius: 8rpx;
- font-size: 28rpx;
- margin-top: 16rpx;
- text-align: center;
- }
- }
- }
- }
- .more {
- position: absolute;
- right: 20rpx;
- width: 40rpx;
- height: 4rpx;
- border-top: 2px solid #49b856;
- border-bottom: 2px solid #49b856;
- background-color: #49b856;
- padding: 5px 0;
- background-clip: content-box;
- z-index: 9999;
- top: 50%;
- transform: translateY(-50%);
- }
- .more_picker {
- position: absolute;
- right: 0;
- top: 0;
- height: 100%;
- opacity: 0;
- z-index: 9999;
- }
- .bigScreenWrap{
- position: fixed;
- left: 0;
- right: 0;
- bottom: 30rpx;
- z-index: 999;
- height: 88rpx;
- padding: 0 8rpx;
- display: flex;
- .left{
- width: 25%;
- background-color: #e5e9ed;
- margin-right: 8rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- .left-title{
- font-size: 34rpx;
- }
- .left-icon{
- font-size: 34rpx;
- color: #07863c;
- }
- }
- .right{
- width: 75%;
- background-color: #e5e9ed;
- }
- .right-100{
- width: 100% !important;
- }
- }
- .red {
- color: red !important;
- font-weight: bold !important;
- }
- .page_tab {
- width: 100%;
- height: 96rpx;
- display: flex;
- position: fixed;
- left: 0;
- top: 0;
- z-index: 999;
- .page_tab_bar {
- flex: 1;
- font-size: 36rpx;
- background: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- &:after {
- content: "";
- position: absolute;
- left: 0;
- bottom: 0;
- height: 2rpx;
- width: 100%;
- background-color: transparent;
- }
- .tab_num {
- color: #ff3b53;
- margin-left: 8rpx;
- }
- &.active {
- color: #49b856;
- &:after {
- background-color: #49b856;
- }
- }
- }
- }
- .zwsj {
- position: absolute;
- left: 50%;
- top: 180rpx;
- transform: translateX(-50%);
- .zwsj-img {
- width: 560rpx;
- }
- .zwsj-txt {
- font-size: 36rpx;
- font-weight: 700;
- margin-top: 20rpx;
- text-align: center;
- }
- }
- .page_items {
- height: calc(100vh - 214rpx);
- padding: 0 20rpx;
- // padding-bottom: 88rpx;
- padding-top: 96rpx;
- .page_items_scroll {
- height: 100%;
- .page_item_wrap {
- position: relative;
- margin-bottom: 32rpx;
- .page_item {
- margin-bottom: 16rpx;
- // min-height: 356rpx;
- background: #fff;
- border-radius: 8rpx;
- overflow: hidden;
- border: 2rpx solid #e5e9ed;
- .L {
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background: #f9fafb;
- position: absolute;
- left: -24rpx;
- top: 68rpx;
- border: 2rpx solid #e5e9ed;
- }
- .R {
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background: #f9fafb;
- position: absolute;
- float: right;
- right: -24rpx;
- top: 68rpx;
- border: 2rpx solid #e5e9ed;
- }
- .starting {
- width: 40rpx;
- height: 40rpx;
- color: #fff;
- background: #49b856;
- display: inline-block;
- border-radius: 50%;
- text-align: center;
- line-height: 40rpx;
- font-size: 28rpx;
- }
- .End {
- width: 40rpx;
- height: 40rpx;
- color: #fff;
- background: #39b199;
- display: inline-block;
- border-radius: 50%;
- text-align: center;
- line-height: 40rpx;
- font-size: 28rpx;
- }
- .page_item_top {
- height: 86rpx;
- border-bottom: 2rpx dashed #e5e9ed;
- padding: 0 16rpx;
- .page_item_top_L {
- height: 100%;
- float: left;
- line-height: 88rpx;
- display: flex;
- align-items: center;
- .emergencys {
- background: #ff3b53 !important;
- width: 124rpx !important;
- }
- .emergency {
- background: #ff3b53 !important;
- }
- .emergency1 {
- background: #49b856 !important;
- }
- .page_item_cont_start {
- text-align: center;
- height: 44rpx;
- width: 104rpx;
- line-height: 44rpx;
- border-radius: 8rpx;
- background: #49b856;
- color: #fff;
- .page_item_cont_start-img {
- width: 22rpx;
- position: relative;
- top: 6rpx;
- margin-right: 8rpx;
- }
- }
- .L_iocn {
- display: inline-block;
- width: 44rpx;
- height: 44rpx;
- line-height: 42rpx;
- border-radius: 100rpx;
- color: #6cc076;
- font-size: 32rpx;
- border: 4rpx solid #6cc076;
- background: #f0f6ed;
- text-align: center;
- margin-right: 8rpx;
- }
- .L_time {
- color: #6cc076;
- font-size: 32rpx;
- }
- .L_text {
- font-size: 32rpx;
- }
- }
- .page_item_top_R {
- height: 100%;
- float: right;
- line-height: 88rpx;
- font-size: 32rpx;
- &.type {
- margin-right: 32rpx;
- color: red;
- max-width: 260rpx;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .text_big{
- font-weight: bold;
- }
- }
- }
- .page_item_cont {
- min-height: 180rpx;
- padding: 0 16rpx;
- text-align: left;
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .text_big {
- font-size: 32rpx;
- margin-left: 10rpx;
- font-weight: 700;
- }
- .line {
- height: 100%;
- width: 2rpx;
- border-left: 2rpx solid #e5e9ed;
- position: absolute;
- // top: 70rpx;
- top: 50%;
- left: 20rpx;
- transform: translateY(-50%);
- }
- .lines {
- height: 40%;
- width: 2rpx;
- border-left: 2rpx solid #e5e9ed;
- position: absolute;
- top: 23%;
- left: 36rpx;
- }
- .emergencys {
- background: #ff3b53 !important;
- width: 124rpx !important;
- }
- .emergency {
- background: #ff3b53 !important;
- }
- .emergency1 {
- background: #49b856 !important;
- }
- .page_item_cont_T {
- // min-height: 80rpx;
- // max-height: 324rpx;
- font-size: 28rpx;
- margin-top: 16rpx;
- display: flex;
- justify-content: space-between;
- .page_item_cont_title {
- height: 100%;
- // float: left;
- }
- .page_item_cont_start {
- text-align: center;
- // float: right;
- height: 44rpx;
- width: 104rpx;
- line-height: 44rpx;
- border-radius: 8rpx;
- background: #49b856;
- color: #fff;
- .page_item_cont_start-img {
- width: 22rpx;
- position: relative;
- top: 6rpx;
- margin-right: 8rpx;
- }
- }
- }
- .page_item_conts {
- min-height: 30rpx;
- color: rgb(102, 102, 102);
- padding-left: 50rpx;
- font-size: 28rpx;
- margin: 16rpx 0;
- position: relative;
- view:not(.line) {
- line-height: 1.2;
- }
- text {
- color: #49b856;
- }
- }
- .page_item_cont_B {
- // padding-top: 20rpx;
- font-size: 28rpx;
- // overflow: hidden;
- margin-bottom: 16rpx;
- .page_item_cont_title {
- height: 100%;
- float: left;
- }
- }
- }
- .page_item_btn_wrap {
- display: flex;
- justify-content: space-between;
- .page_item_btn {
- height: 88rpx;
- flex: 1;
- margin-left: 1%;
- background-image: linear-gradient(to right, #72c172, #3bb197);
- border-radius: 8rpx;
- line-height: 88rpx;
- color: #fff;
- font-size: 36rpx;
- font-weight: 700;
- text-align: center;
- &:first-of-type{
- margin-left: 0;
- }
- }
- }
- .page_item_btn {
- height: 88rpx;
- background-image: linear-gradient(to right, #72c172, #3bb197);
- border-radius: 8rpx;
- line-height: 88rpx;
- color: #fff;
- font-size: 36rpx;
- font-weight: 700;
- text-align: center;
- }
- }
- .L-l {
- width: 2rpx;
- height: 40rpx;
- background: #f9fafb;
- position: absolute;
- left: 20rpx;
- top: 72rpx;
- display: none;
- }
- .R-l {
- width: 2rpx;
- height: 40rpx;
- background: #f9fafb;
- position: absolute;
- right: 20rpx;
- top: 72rpx;
- display: none;
- }
- }
- }
- }
- .text {
- font-size: 36rpx;
- }
- .wt_icon {
- font-size: 40rpx;
- }
- }
- </style>
|