index.vue 143 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="68px"
  9. >
  10. <el-form-item prop="unitName">
  11. <el-input placeholder="请输入单位" v-model="queryParams.unitName" @input="handleQuery"/>
  12. </el-form-item>
  13. <el-form-item label="" prop="createtime">
  14. <el-date-picker
  15. clearable
  16. size="small"
  17. v-model="queryParams.startTime"
  18. type="date"
  19. value-format="yyyy-MM-dd"
  20. placeholder="请选择时间"
  21. @change="time"
  22. :editable="false"
  23. >
  24. </el-date-picker>
  25. </el-form-item>
  26. <el-form-item>
  27. <el-button size="btr" @click="resetQuery">重置</el-button>
  28. </el-form-item>
  29. </el-form>
  30. <el-row :gutter="10" class="mb8">
  31. <el-col :span="1.5">
  32. <el-button
  33. type="primary"
  34. plain
  35. icon="el-icon-plus"
  36. size="mini"
  37. @click="handleAdd"
  38. v-hasPermi="['grassrootsregistration:bdglcookbook:add']"
  39. >新增</el-button
  40. >
  41. </el-col>
  42. <!-- <el-col :span="1.5">
  43. <el-button
  44. type="success"
  45. plain
  46. icon="el-icon-edit"
  47. size="mini"
  48. :disabled="single"
  49. @click="handleUpdate"
  50. v-hasPermi="['grassrootsregistration:bdglcookbook:edit']"
  51. >修改</el-button
  52. >
  53. </el-col>
  54. <el-col :span="1.5">
  55. <el-button
  56. type="danger"
  57. plain
  58. icon="el-icon-delete"
  59. size="mini"
  60. :disabled="multiple"
  61. @click="handleDelete"
  62. v-hasPermi="['grassrootsregistration:bdglcookbook:remove']"
  63. >删除</el-button
  64. >
  65. </el-col>
  66. <el-col :span="1.5">
  67. <el-button
  68. type="warning"
  69. plain
  70. icon="el-icon-download"
  71. size="mini"
  72. :loading="exportLoading"
  73. @click="handleExport"
  74. v-hasPermi="['grassrootsregistration:bdglcookbook:export']"
  75. >导出</el-button
  76. >
  77. </el-col> -->
  78. <!-- <right-toolbar
  79. :showSearch.sync="showSearch"
  80. @queryTable="getList"
  81. ></right-toolbar> -->
  82. </el-row>
  83. <el-table
  84. v-loading="loading"
  85. :data="bdglcookbookList"
  86. @selection-change="handleSelectionChange"
  87. :header-cell-style="{ background: '#003C69', color: 'white' }"
  88. >
  89. <el-table-column type="selection" width="55" align="center" />
  90. <!-- <el-table-column label="序号" align="center" prop="id" /> -->
  91. <el-table-column label="序号" type="index" width="50" align="center">
  92. <template scope="scope">
  93. <span>{{
  94. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  95. }}</span>
  96. </template>
  97. </el-table-column>
  98. <el-table-column
  99. label="单位"
  100. align="center"
  101. prop="unitName"
  102. width="150"
  103. />
  104. <!-- <el-table-column label="更新时间" align="center" prop="id" /> -->
  105. <el-table-column label="食谱标题" align="center" prop="title" />
  106. <el-table-column
  107. label="开始时间"
  108. align="center"
  109. prop="startTime"
  110. width="180"
  111. >
  112. <template slot-scope="scope">
  113. <span>{{ parseTime(scope.row.startTime, "{y}-{m}-{d}") }}</span>
  114. </template>
  115. </el-table-column>
  116. <el-table-column
  117. label="结束时间"
  118. align="center"
  119. prop="endTime"
  120. width="180"
  121. >
  122. <template slot-scope="scope">
  123. <span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
  124. </template>
  125. </el-table-column>
  126. <el-table-column label="司务长" align="center" prop="messOfficerName" />
  127. <el-table-column label="班长" align="center" prop="peopleName" />
  128. <!-- <el-table-column label="食谱内容" align="center" prop="contents" />
  129. <el-table-column label="创建时间" align="center" prop="createtime" />
  130. <el-table-column label="更新时间" align="center" prop="updatetime" /> -->
  131. <el-table-column
  132. label="操作"
  133. align="center"
  134. class-name="small-padding fixed-width"
  135. width="200"
  136. >
  137. <template slot-scope="scope">
  138. <el-button
  139. size="btk"
  140. type="text"
  141. @click="handleChakan(scope.row)"
  142. v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
  143. ><span class="chakan">查看</span></el-button
  144. >
  145. <el-button
  146. size="btu"
  147. type="text"
  148. @click="handleUpdate(scope.row)"
  149. v-hasPermi="['grassrootsregistration:bdglcookbook:edit']"
  150. ><span class="edit">修改</span></el-button
  151. >
  152. <el-button
  153. size="btd"
  154. type="text"
  155. @click="handleDelete(scope.row)"
  156. v-hasPermi="['grassrootsregistration:bdglcookbook:remove']"
  157. ><span class="delete">删除</span></el-button
  158. >
  159. </template>
  160. </el-table-column>
  161. </el-table>
  162. <pagination
  163. v-show="total > 0"
  164. :total="total"
  165. :page.sync="queryParams.pageNum"
  166. :limit.sync="queryParams.pageSize"
  167. @pagination="getList"
  168. />
  169. <!-- 添加或修改一周食谱对话框 -->
  170. <el-dialog
  171. :title="title"
  172. :visible.sync="open"
  173. width="1016px"
  174. append-to-body
  175. :close-on-click-modal="false"
  176. >
  177. <div class="userAgree">
  178. <div class="jiben">基本信息</div>
  179. <el-form
  180. ref="form"
  181. :model="form"
  182. :rules="rules"
  183. label-width="80px"
  184. :inline="true"
  185. >
  186. <el-form-item label="单位" prop="unitId">
  187. <!-- <treeselect
  188. @select="selectPeo"
  189. v-model="form.unitId"
  190. :options="deptOptions"
  191. placeholder="选择单位"
  192. /> -->
  193. <treeselect
  194. v-model="form.unitId"
  195. :options="deptOptions"
  196. placeholder="请选择单位"
  197. @select="selectPeo"
  198. />
  199. </el-form-item>
  200. <el-form-item label="食谱标题" prop="title">
  201. <el-input v-model="form.title" placeholder="请输入食谱标题" />
  202. </el-form-item>
  203. <el-form-item label="开始时间" prop="startTime">
  204. <el-date-picker
  205. clearable
  206. size="small"
  207. v-model="form.startTime"
  208. type="date"
  209. :editable="false"
  210. value-format="yyyy-MM-dd"
  211. placeholder="请选择开始时间"
  212. >
  213. </el-date-picker>
  214. </el-form-item>
  215. <el-form-item label="结束时间" prop="endTime">
  216. <el-date-picker
  217. clearable
  218. :editable="false"
  219. size="small"
  220. v-model="form.endTime"
  221. type="date"
  222. value-format="yyyy-MM-dd"
  223. placeholder="请选择结束时间"
  224. >
  225. </el-date-picker>
  226. </el-form-item>
  227. <el-form-item label="司务长" prop="messOfficer">
  228. <!-- <el-input v-model="form.messOfficer" placeholder="请输入司务长" /> -->
  229. <el-select v-model="form.messOfficer" placeholder="请选择单位">
  230. <el-option
  231. v-for="item in renYuan"
  232. :key="item.id"
  233. :label="item.name"
  234. :value="item.id"
  235. :disabled="item.status == 1"
  236. @click.native="siWu(item.name)"
  237. class="input_xiala"
  238. ></el-option>
  239. </el-select>
  240. </el-form-item>
  241. <el-form-item label="班长" prop="peopleId">
  242. <!-- <el-input v-model="form.peopleId" placeholder="请输入班长" /> -->
  243. <el-select v-model="form.peopleId" placeholder="请选择单位">
  244. <el-option
  245. v-for="item in renYuan"
  246. :key="item.id"
  247. :label="item.name"
  248. :value="item.id"
  249. :disabled="item.status == 1"
  250. @click.native="monitor(item.name)"
  251. class="input_xiala"
  252. ></el-option>
  253. </el-select>
  254. </el-form-item>
  255. <!-- <el-form-item label="食谱内容" prop="contents">
  256. <el-input
  257. v-model="form.contents"
  258. type="textarea"
  259. placeholder="请输入内容"
  260. />
  261. </el-form-item> -->
  262. <div class="jiben">食谱内容</div>
  263. <div class="">
  264. <table
  265. border="1"
  266. width="920"
  267. cellspacing="0"
  268. align="center"
  269. style="border-color: white; margin-left: -1px; color: white"
  270. >
  271. <!-- 星期一 -->
  272. <tr align="center">
  273. <td rowspan="6">星期一</td>
  274. <td rowspan="2">早餐</td>
  275. <td>
  276. <el-select
  277. v-model="Monday.zaoZu1"
  278. placeholder="请选择主食"
  279. multiple
  280. >
  281. <el-option
  282. v-for="(item, i) in yiZhou.zaoZhu"
  283. :key="i"
  284. :label="item.name"
  285. :value="item.id"
  286. class="input_xiala"
  287. ></el-option>
  288. </el-select>
  289. </td>
  290. <td>
  291. <el-select
  292. v-model="Monday.zaoZu1Ren"
  293. placeholder="请选择炊事员"
  294. multiple
  295. >
  296. <el-option
  297. v-for="item in renYuan"
  298. :key="item.id"
  299. :label="item.name"
  300. :value="item.id"
  301. class="input_xiala"
  302. >
  303. </el-option>
  304. </el-select>
  305. </td>
  306. </tr>
  307. <tr align="center">
  308. <td>
  309. <el-select
  310. v-model="Monday.zaoFu1"
  311. placeholder="请选择副食"
  312. multiple
  313. >
  314. <el-option
  315. v-for="item in yiZhou.zaoFu"
  316. :key="item.id"
  317. :label="item.name"
  318. :value="item.id"
  319. class="input_xiala"
  320. >
  321. </el-option>
  322. </el-select>
  323. </td>
  324. <td>
  325. <el-select
  326. v-model="Monday.zaoFu1Ren"
  327. placeholder="请选择炊事员"
  328. multiple
  329. >
  330. <el-option
  331. v-for="item in renYuan"
  332. :key="item.id"
  333. :label="item.name"
  334. :value="item.id"
  335. class="input_xiala"
  336. >
  337. </el-option>
  338. </el-select>
  339. </td>
  340. </tr>
  341. <!-- 午餐 -->
  342. <tr align="center">
  343. <td rowspan="2">午餐</td>
  344. <td>
  345. <el-select
  346. v-model="Monday.zhongZu1"
  347. placeholder="请选择主食"
  348. multiple
  349. >
  350. <el-option
  351. v-for="item in yiZhou.zhongZhu"
  352. :key="item.id"
  353. :label="item.name"
  354. :value="item.id"
  355. class="input_xiala"
  356. >
  357. </el-option>
  358. </el-select>
  359. </td>
  360. <td>
  361. <el-select
  362. v-model="Monday.zhongZu1Ren"
  363. placeholder="请选择炊事员"
  364. multiple
  365. >
  366. <el-option
  367. v-for="item in renYuan"
  368. :key="item.id"
  369. :label="item.name"
  370. :value="item.id"
  371. class="input_xiala"
  372. >
  373. </el-option>
  374. </el-select>
  375. </td>
  376. </tr>
  377. <tr align="center">
  378. <td>
  379. <el-select
  380. v-model="Monday.zhongFu1"
  381. placeholder="请选择副食"
  382. multiple
  383. >
  384. <el-option
  385. v-for="item in yiZhou.zhongFU"
  386. :key="item.id"
  387. :label="item.name"
  388. :value="item.id"
  389. class="input_xiala"
  390. >
  391. </el-option>
  392. </el-select>
  393. </td>
  394. <td>
  395. <el-select
  396. v-model="Monday.zhongFu1Ren"
  397. placeholder="请选择炊事员"
  398. multiple
  399. >
  400. <el-option
  401. v-for="item in renYuan"
  402. :key="item.id"
  403. :label="item.name"
  404. :value="item.id"
  405. class="input_xiala"
  406. >
  407. </el-option>
  408. </el-select>
  409. </td>
  410. </tr>
  411. <!-- 晚餐 -->
  412. <tr align="center">
  413. <td rowspan="2">晚餐</td>
  414. <td>
  415. <el-select
  416. v-model="Monday.wanZu1"
  417. placeholder="请选择主食"
  418. multiple
  419. >
  420. <el-option
  421. v-for="item in yiZhou.wanZhu"
  422. :key="item.id"
  423. :label="item.name"
  424. :value="item.id"
  425. class="input_xiala"
  426. >
  427. </el-option>
  428. </el-select>
  429. </td>
  430. <td>
  431. <el-select
  432. v-model="Monday.wanZu1Ren"
  433. placeholder="请选择炊事员"
  434. multiple
  435. >
  436. <el-option
  437. v-for="item in renYuan"
  438. :key="item.id"
  439. :label="item.name"
  440. :value="item.id"
  441. class="input_xiala"
  442. >
  443. </el-option>
  444. </el-select>
  445. </td>
  446. </tr>
  447. <tr align="center">
  448. <td>
  449. <el-select
  450. v-model="Monday.wanFu1"
  451. placeholder="请选择副食"
  452. multiple
  453. >
  454. <el-option
  455. v-for="item in yiZhou.wanFu"
  456. :key="item.id"
  457. :label="item.name"
  458. :value="item.id"
  459. class="input_xiala"
  460. >
  461. </el-option>
  462. </el-select>
  463. </td>
  464. <td>
  465. <el-select
  466. v-model="Monday.wanFu1Ren"
  467. placeholder="请选择炊事员"
  468. multiple
  469. >
  470. <el-option
  471. v-for="item in renYuan"
  472. :key="item.id"
  473. :label="item.name"
  474. :value="item.id"
  475. class="input_xiala"
  476. >
  477. </el-option>
  478. </el-select>
  479. </td>
  480. </tr>
  481. <!-- 星期二 -->
  482. <tr align="center">
  483. <td rowspan="6">星期二</td>
  484. <td rowspan="2">早餐</td>
  485. <td>
  486. <el-select
  487. v-model="Tuesday.zaoZu1"
  488. placeholder="请选择主食"
  489. multiple
  490. >
  491. <el-option
  492. v-for="(item, i) in yiZhou.zaoZhu"
  493. :key="i"
  494. :label="item.name"
  495. :value="item.id"
  496. class="input_xiala"
  497. ></el-option>
  498. </el-select>
  499. </td>
  500. <td>
  501. <el-select
  502. v-model="Tuesday.zaoZu1Ren"
  503. placeholder="请选择炊事员"
  504. multiple
  505. >
  506. <el-option
  507. v-for="item in renYuan"
  508. :key="item.id"
  509. :label="item.name"
  510. :value="item.id"
  511. class="input_xiala"
  512. >
  513. </el-option>
  514. </el-select>
  515. </td>
  516. </tr>
  517. <tr align="center">
  518. <td>
  519. <el-select
  520. v-model="Tuesday.zaoFu1"
  521. placeholder="请选择副食"
  522. multiple
  523. >
  524. <el-option
  525. v-for="item in yiZhou.zaoFu"
  526. :key="item.id"
  527. :label="item.name"
  528. :value="item.id"
  529. class="input_xiala"
  530. >
  531. </el-option>
  532. </el-select>
  533. </td>
  534. <td>
  535. <el-select
  536. v-model="Tuesday.zaoFu1Ren"
  537. placeholder="请选择炊事员"
  538. multiple
  539. >
  540. <el-option
  541. v-for="item in renYuan"
  542. :key="item.id"
  543. :label="item.name"
  544. :value="item.id"
  545. class="input_xiala"
  546. >
  547. </el-option>
  548. </el-select>
  549. </td>
  550. </tr>
  551. <!-- 午餐 -->
  552. <tr align="center">
  553. <td rowspan="2">午餐</td>
  554. <td>
  555. <el-select
  556. v-model="Tuesday.zhongZu1"
  557. placeholder="请选择主食"
  558. multiple
  559. >
  560. <el-option
  561. v-for="item in yiZhou.zhongZhu"
  562. :key="item.id"
  563. :label="item.name"
  564. :value="item.id"
  565. class="input_xiala"
  566. >
  567. </el-option>
  568. </el-select>
  569. </td>
  570. <td>
  571. <el-select
  572. v-model="Tuesday.zhongZu1Ren"
  573. placeholder="请选择炊事员"
  574. multiple
  575. >
  576. <el-option
  577. v-for="item in renYuan"
  578. :key="item.id"
  579. :label="item.name"
  580. :value="item.id"
  581. class="input_xiala"
  582. >
  583. </el-option>
  584. </el-select>
  585. </td>
  586. </tr>
  587. <tr align="center">
  588. <td>
  589. <el-select
  590. v-model="Tuesday.zhongFu1"
  591. placeholder="请选择副食"
  592. multiple
  593. >
  594. <el-option
  595. v-for="item in yiZhou.zhongFU"
  596. :key="item.id"
  597. :label="item.name"
  598. :value="item.id"
  599. class="input_xiala"
  600. >
  601. </el-option>
  602. </el-select>
  603. </td>
  604. <td>
  605. <el-select
  606. v-model="Tuesday.zhongFu1Ren"
  607. placeholder="请选择炊事员"
  608. multiple
  609. >
  610. <el-option
  611. v-for="item in renYuan"
  612. :key="item.id"
  613. :label="item.name"
  614. :value="item.id"
  615. class="input_xiala"
  616. >
  617. </el-option>
  618. </el-select>
  619. </td>
  620. </tr>
  621. <!-- 晚餐 -->
  622. <tr align="center">
  623. <td rowspan="2">晚餐</td>
  624. <td>
  625. <el-select
  626. v-model="Tuesday.wanZu1"
  627. placeholder="请选择主食"
  628. multiple
  629. >
  630. <el-option
  631. v-for="item in yiZhou.wanZhu"
  632. :key="item.id"
  633. :label="item.name"
  634. :value="item.id"
  635. class="input_xiala"
  636. >
  637. </el-option>
  638. </el-select>
  639. </td>
  640. <td>
  641. <el-select
  642. v-model="Tuesday.wanZu1Ren"
  643. placeholder="请选择炊事员"
  644. multiple
  645. >
  646. <el-option
  647. v-for="item in renYuan"
  648. :key="item.id"
  649. :label="item.name"
  650. :value="item.id"
  651. class="input_xiala"
  652. >
  653. </el-option>
  654. </el-select>
  655. </td>
  656. </tr>
  657. <tr align="center">
  658. <td>
  659. <el-select
  660. v-model="Tuesday.wanFu1"
  661. placeholder="请选择副食"
  662. multiple
  663. >
  664. <el-option
  665. v-for="item in yiZhou.wanFu"
  666. :key="item.id"
  667. :label="item.name"
  668. :value="item.id"
  669. class="input_xiala"
  670. >
  671. </el-option>
  672. </el-select>
  673. </td>
  674. <td>
  675. <el-select
  676. v-model="Tuesday.wanFu1Ren"
  677. placeholder="请选择炊事员"
  678. multiple
  679. >
  680. <el-option
  681. v-for="item in renYuan"
  682. :key="item.id"
  683. :label="item.name"
  684. :value="item.id"
  685. class="input_xiala"
  686. >
  687. </el-option>
  688. </el-select>
  689. </td>
  690. </tr>
  691. <!-- 星期三 -->
  692. <tr align="center">
  693. <td rowspan="6">星期三</td>
  694. <td rowspan="2">早餐</td>
  695. <td>
  696. <el-select
  697. v-model="Wednesday.zaoZu1"
  698. placeholder="请选择主食"
  699. multiple
  700. >
  701. <el-option
  702. v-for="(item, i) in yiZhou.zaoZhu"
  703. :key="i"
  704. :label="item.name"
  705. :value="item.id"
  706. class="input_xiala"
  707. ></el-option>
  708. </el-select>
  709. </td>
  710. <td>
  711. <el-select
  712. v-model="Wednesday.zaoZu1Ren"
  713. placeholder="请选择炊事员"
  714. multiple
  715. >
  716. <el-option
  717. v-for="item in renYuan"
  718. :key="item.id"
  719. :label="item.name"
  720. :value="item.id"
  721. class="input_xiala"
  722. >
  723. </el-option>
  724. </el-select>
  725. </td>
  726. </tr>
  727. <tr align="center">
  728. <td>
  729. <el-select
  730. v-model="Wednesday.zaoFu1"
  731. placeholder="请选择副食"
  732. multiple
  733. >
  734. <el-option
  735. v-for="item in yiZhou.zaoFu"
  736. :key="item.id"
  737. :label="item.name"
  738. :value="item.id"
  739. class="input_xiala"
  740. >
  741. </el-option>
  742. </el-select>
  743. </td>
  744. <td>
  745. <el-select
  746. v-model="Wednesday.zaoFu1Ren"
  747. placeholder="请选择炊事员"
  748. multiple
  749. >
  750. <el-option
  751. v-for="item in renYuan"
  752. :key="item.id"
  753. :label="item.name"
  754. :value="item.id"
  755. class="input_xiala"
  756. >
  757. </el-option>
  758. </el-select>
  759. </td>
  760. </tr>
  761. <!-- 午餐 -->
  762. <tr align="center">
  763. <td rowspan="2">午餐</td>
  764. <td>
  765. <el-select
  766. v-model="Wednesday.zhongZu1"
  767. placeholder="请选择主食"
  768. multiple
  769. >
  770. <el-option
  771. v-for="item in yiZhou.zhongZhu"
  772. :key="item.id"
  773. :label="item.name"
  774. :value="item.id"
  775. class="input_xiala"
  776. >
  777. </el-option>
  778. </el-select>
  779. </td>
  780. <td>
  781. <el-select
  782. v-model="Wednesday.zhongZu1Ren"
  783. placeholder="请选择炊事员"
  784. multiple
  785. >
  786. <el-option
  787. v-for="item in renYuan"
  788. :key="item.id"
  789. :label="item.name"
  790. :value="item.id"
  791. class="input_xiala"
  792. >
  793. </el-option>
  794. </el-select>
  795. </td>
  796. </tr>
  797. <tr align="center">
  798. <td>
  799. <el-select
  800. v-model="Wednesday.zhongFu1"
  801. placeholder="请选择副食"
  802. multiple
  803. >
  804. <el-option
  805. v-for="item in yiZhou.zhongFU"
  806. :key="item.id"
  807. :label="item.name"
  808. :value="item.id"
  809. class="input_xiala"
  810. >
  811. </el-option>
  812. </el-select>
  813. </td>
  814. <td>
  815. <el-select
  816. v-model="Wednesday.zhongFu1Ren"
  817. placeholder="请选择炊事员"
  818. multiple
  819. >
  820. <el-option
  821. v-for="item in renYuan"
  822. :key="item.id"
  823. :label="item.name"
  824. :value="item.id"
  825. class="input_xiala"
  826. >
  827. </el-option>
  828. </el-select>
  829. </td>
  830. </tr>
  831. <!-- 晚餐 -->
  832. <tr align="center">
  833. <td rowspan="2">晚餐</td>
  834. <td>
  835. <el-select
  836. v-model="Wednesday.wanZu1"
  837. placeholder="请选择主食"
  838. multiple
  839. >
  840. <el-option
  841. v-for="item in yiZhou.wanZhu"
  842. :key="item.id"
  843. :label="item.name"
  844. :value="item.id"
  845. class="input_xiala"
  846. >
  847. </el-option>
  848. </el-select>
  849. </td>
  850. <td>
  851. <el-select
  852. v-model="Wednesday.wanZu1Ren"
  853. placeholder="请选择炊事员"
  854. multiple
  855. >
  856. <el-option
  857. v-for="item in renYuan"
  858. :key="item.id"
  859. :label="item.name"
  860. :value="item.id"
  861. class="input_xiala"
  862. >
  863. </el-option>
  864. </el-select>
  865. </td>
  866. </tr>
  867. <tr align="center">
  868. <td>
  869. <el-select
  870. v-model="Wednesday.wanFu1"
  871. placeholder="请选择副食"
  872. multiple
  873. >
  874. <el-option
  875. v-for="item in yiZhou.wanFu"
  876. :key="item.id"
  877. :label="item.name"
  878. :value="item.id"
  879. class="input_xiala"
  880. >
  881. </el-option>
  882. </el-select>
  883. </td>
  884. <td>
  885. <el-select
  886. v-model="Wednesday.wanFu1Ren"
  887. placeholder="请选择炊事员"
  888. multiple
  889. >
  890. <el-option
  891. v-for="item in renYuan"
  892. :key="item.id"
  893. :label="item.name"
  894. :value="item.id"
  895. class="input_xiala"
  896. >
  897. </el-option>
  898. </el-select>
  899. </td>
  900. </tr>
  901. <!-- 星期四 -->
  902. <tr align="center">
  903. <td rowspan="6">星期四</td>
  904. <td rowspan="2">早餐</td>
  905. <td>
  906. <el-select
  907. v-model="Thursday.zaoZu1"
  908. placeholder="请选择主食"
  909. multiple
  910. >
  911. <el-option
  912. v-for="(item, i) in yiZhou.zaoZhu"
  913. :key="i"
  914. :label="item.name"
  915. :value="item.id"
  916. class="input_xiala"
  917. ></el-option>
  918. </el-select>
  919. </td>
  920. <td>
  921. <el-select
  922. v-model="Thursday.zaoZu1Ren"
  923. placeholder="请选择炊事员"
  924. multiple
  925. >
  926. <el-option
  927. v-for="item in renYuan"
  928. :key="item.id"
  929. :label="item.name"
  930. :value="item.id"
  931. class="input_xiala"
  932. >
  933. </el-option>
  934. </el-select>
  935. </td>
  936. </tr>
  937. <tr align="center">
  938. <td>
  939. <el-select
  940. v-model="Thursday.zaoFu1"
  941. placeholder="请选择副食"
  942. multiple
  943. >
  944. <el-option
  945. v-for="item in yiZhou.zaoFu"
  946. :key="item.id"
  947. :label="item.name"
  948. :value="item.id"
  949. class="input_xiala"
  950. >
  951. </el-option>
  952. </el-select>
  953. </td>
  954. <td>
  955. <el-select
  956. v-model="Thursday.zaoFu1Ren"
  957. placeholder="请选择炊事员"
  958. multiple
  959. >
  960. <el-option
  961. v-for="item in renYuan"
  962. :key="item.id"
  963. :label="item.name"
  964. :value="item.id"
  965. class="input_xiala"
  966. >
  967. </el-option>
  968. </el-select>
  969. </td>
  970. </tr>
  971. <!-- 午餐 -->
  972. <tr align="center">
  973. <td rowspan="2">午餐</td>
  974. <td>
  975. <el-select
  976. v-model="Thursday.zhongZu1"
  977. placeholder="请选择主食"
  978. multiple
  979. >
  980. <el-option
  981. v-for="item in yiZhou.zhongZhu"
  982. :key="item.id"
  983. :label="item.name"
  984. :value="item.id"
  985. class="input_xiala"
  986. >
  987. </el-option>
  988. </el-select>
  989. </td>
  990. <td>
  991. <el-select
  992. v-model="Thursday.zhongZu1Ren"
  993. placeholder="请选择炊事员"
  994. multiple
  995. >
  996. <el-option
  997. v-for="item in renYuan"
  998. :key="item.id"
  999. :label="item.name"
  1000. :value="item.id"
  1001. class="input_xiala"
  1002. >
  1003. </el-option>
  1004. </el-select>
  1005. </td>
  1006. </tr>
  1007. <tr align="center">
  1008. <td>
  1009. <el-select
  1010. v-model="Thursday.zhongFu1"
  1011. placeholder="请选择副食"
  1012. multiple
  1013. >
  1014. <el-option
  1015. v-for="item in yiZhou.zhongFU"
  1016. :key="item.id"
  1017. :label="item.name"
  1018. :value="item.id"
  1019. class="input_xiala"
  1020. >
  1021. </el-option>
  1022. </el-select>
  1023. </td>
  1024. <td>
  1025. <el-select
  1026. v-model="Thursday.zhongFu1Ren"
  1027. placeholder="请选择炊事员"
  1028. multiple
  1029. >
  1030. <el-option
  1031. v-for="item in renYuan"
  1032. :key="item.id"
  1033. :label="item.name"
  1034. :value="item.id"
  1035. class="input_xiala"
  1036. >
  1037. </el-option>
  1038. </el-select>
  1039. </td>
  1040. </tr>
  1041. <!-- 晚餐 -->
  1042. <tr align="center">
  1043. <td rowspan="2">晚餐</td>
  1044. <td>
  1045. <el-select
  1046. v-model="Thursday.wanZu1"
  1047. placeholder="请选择主食"
  1048. multiple
  1049. >
  1050. <el-option
  1051. v-for="item in yiZhou.wanZhu"
  1052. :key="item.id"
  1053. :label="item.name"
  1054. :value="item.id"
  1055. class="input_xiala"
  1056. >
  1057. </el-option>
  1058. </el-select>
  1059. </td>
  1060. <td>
  1061. <el-select
  1062. v-model="Thursday.wanZu1Ren"
  1063. placeholder="请选择炊事员"
  1064. multiple
  1065. >
  1066. <el-option
  1067. v-for="item in renYuan"
  1068. :key="item.id"
  1069. :label="item.name"
  1070. :value="item.id"
  1071. class="input_xiala"
  1072. >
  1073. </el-option>
  1074. </el-select>
  1075. </td>
  1076. </tr>
  1077. <tr align="center">
  1078. <td>
  1079. <el-select
  1080. v-model="Thursday.wanFu1"
  1081. placeholder="请选择副食"
  1082. multiple
  1083. >
  1084. <el-option
  1085. v-for="item in yiZhou.wanFu"
  1086. :key="item.id"
  1087. :label="item.name"
  1088. :value="item.id"
  1089. class="input_xiala"
  1090. >
  1091. </el-option>
  1092. </el-select>
  1093. </td>
  1094. <td>
  1095. <el-select
  1096. v-model="Thursday.wanFu1Ren"
  1097. placeholder="请选择炊事员"
  1098. multiple
  1099. >
  1100. <el-option
  1101. v-for="item in renYuan"
  1102. :key="item.id"
  1103. :label="item.name"
  1104. :value="item.id"
  1105. class="input_xiala"
  1106. >
  1107. </el-option>
  1108. </el-select>
  1109. </td>
  1110. </tr>
  1111. <!-- 星期五 -->
  1112. <tr align="center">
  1113. <td rowspan="6">星期五</td>
  1114. <td rowspan="2">早餐</td>
  1115. <td>
  1116. <el-select
  1117. v-model="Friday.zaoZu1"
  1118. placeholder="请选择主食"
  1119. multiple
  1120. >
  1121. <el-option
  1122. v-for="(item, i) in yiZhou.zaoZhu"
  1123. :key="i"
  1124. :label="item.name"
  1125. :value="item.id"
  1126. class="input_xiala"
  1127. ></el-option>
  1128. </el-select>
  1129. </td>
  1130. <td>
  1131. <el-select
  1132. v-model="Friday.zaoZu1Ren"
  1133. placeholder="请选择炊事员"
  1134. multiple
  1135. >
  1136. <el-option
  1137. v-for="item in renYuan"
  1138. :key="item.id"
  1139. :label="item.name"
  1140. :value="item.id"
  1141. class="input_xiala"
  1142. >
  1143. </el-option>
  1144. </el-select>
  1145. </td>
  1146. </tr>
  1147. <tr align="center">
  1148. <td>
  1149. <el-select
  1150. v-model="Friday.zaoFu1"
  1151. placeholder="请选择副食"
  1152. multiple
  1153. >
  1154. <el-option
  1155. v-for="item in yiZhou.zaoFu"
  1156. :key="item.id"
  1157. :label="item.name"
  1158. :value="item.id"
  1159. class="input_xiala"
  1160. >
  1161. </el-option>
  1162. </el-select>
  1163. </td>
  1164. <td>
  1165. <el-select
  1166. v-model="Friday.zaoFu1Ren"
  1167. placeholder="请选择炊事员"
  1168. multiple
  1169. >
  1170. <el-option
  1171. v-for="item in renYuan"
  1172. :key="item.id"
  1173. :label="item.name"
  1174. :value="item.id"
  1175. class="input_xiala"
  1176. >
  1177. </el-option>
  1178. </el-select>
  1179. </td>
  1180. </tr>
  1181. <!-- 午餐 -->
  1182. <tr align="center">
  1183. <td rowspan="2">午餐</td>
  1184. <td>
  1185. <el-select
  1186. v-model="Friday.zhongZu1"
  1187. placeholder="请选择主食"
  1188. multiple
  1189. >
  1190. <el-option
  1191. v-for="item in yiZhou.zhongZhu"
  1192. :key="item.id"
  1193. :label="item.name"
  1194. :value="item.id"
  1195. class="input_xiala"
  1196. >
  1197. </el-option>
  1198. </el-select>
  1199. </td>
  1200. <td>
  1201. <el-select
  1202. v-model="Friday.zhongZu1Ren"
  1203. placeholder="请选择炊事员"
  1204. multiple
  1205. >
  1206. <el-option
  1207. v-for="item in renYuan"
  1208. :key="item.id"
  1209. :label="item.name"
  1210. :value="item.id"
  1211. class="input_xiala"
  1212. >
  1213. </el-option>
  1214. </el-select>
  1215. </td>
  1216. </tr>
  1217. <tr align="center">
  1218. <td>
  1219. <el-select
  1220. v-model="Friday.zhongFu1"
  1221. placeholder="请选择副食"
  1222. multiple
  1223. >
  1224. <el-option
  1225. v-for="item in yiZhou.zhongFU"
  1226. :key="item.id"
  1227. :label="item.name"
  1228. :value="item.id"
  1229. class="input_xiala"
  1230. >
  1231. </el-option>
  1232. </el-select>
  1233. </td>
  1234. <td>
  1235. <el-select
  1236. v-model="Friday.zhongFu1Ren"
  1237. placeholder="请选择炊事员"
  1238. multiple
  1239. >
  1240. <el-option
  1241. v-for="item in renYuan"
  1242. :key="item.id"
  1243. :label="item.name"
  1244. :value="item.id"
  1245. class="input_xiala"
  1246. >
  1247. </el-option>
  1248. </el-select>
  1249. </td>
  1250. </tr>
  1251. <!-- 晚餐 -->
  1252. <tr align="center">
  1253. <td rowspan="2">晚餐</td>
  1254. <td>
  1255. <el-select
  1256. v-model="Friday.wanZu1"
  1257. placeholder="请选择主食"
  1258. multiple
  1259. >
  1260. <el-option
  1261. v-for="item in yiZhou.wanZhu"
  1262. :key="item.id"
  1263. :label="item.name"
  1264. :value="item.id"
  1265. class="input_xiala"
  1266. >
  1267. </el-option>
  1268. </el-select>
  1269. </td>
  1270. <td>
  1271. <el-select
  1272. v-model="Friday.wanZu1Ren"
  1273. placeholder="请选择炊事员"
  1274. multiple
  1275. >
  1276. <el-option
  1277. v-for="item in renYuan"
  1278. :key="item.id"
  1279. :label="item.name"
  1280. :value="item.id"
  1281. class="input_xiala"
  1282. >
  1283. </el-option>
  1284. </el-select>
  1285. </td>
  1286. </tr>
  1287. <tr align="center">
  1288. <td>
  1289. <el-select
  1290. v-model="Friday.wanFu1"
  1291. placeholder="请选择副食"
  1292. multiple
  1293. >
  1294. <el-option
  1295. v-for="item in yiZhou.wanFu"
  1296. :key="item.id"
  1297. :label="item.name"
  1298. :value="item.id"
  1299. class="input_xiala"
  1300. >
  1301. </el-option>
  1302. </el-select>
  1303. </td>
  1304. <td>
  1305. <el-select
  1306. v-model="Friday.wanFu1Ren"
  1307. placeholder="请选择炊事员"
  1308. multiple
  1309. >
  1310. <el-option
  1311. v-for="item in renYuan"
  1312. :key="item.id"
  1313. :label="item.name"
  1314. :value="item.id"
  1315. class="input_xiala"
  1316. >
  1317. </el-option>
  1318. </el-select>
  1319. </td>
  1320. </tr>
  1321. <!-- 星期六 -->
  1322. <tr align="center">
  1323. <td rowspan="6">星期六</td>
  1324. <td rowspan="2">早餐</td>
  1325. <td>
  1326. <el-select
  1327. v-model="Saturday.zaoZu1"
  1328. placeholder="请选择主食"
  1329. multiple
  1330. >
  1331. <el-option
  1332. v-for="(item, i) in yiZhou.zaoZhu"
  1333. :key="i"
  1334. :label="item.name"
  1335. :value="item.id"
  1336. class="input_xiala"
  1337. ></el-option>
  1338. </el-select>
  1339. </td>
  1340. <td>
  1341. <el-select
  1342. v-model="Saturday.zaoZu1Ren"
  1343. placeholder="请选择炊事员"
  1344. multiple
  1345. >
  1346. <el-option
  1347. v-for="item in renYuan"
  1348. :key="item.id"
  1349. :label="item.name"
  1350. :value="item.id"
  1351. class="input_xiala"
  1352. >
  1353. </el-option>
  1354. </el-select>
  1355. </td>
  1356. </tr>
  1357. <tr align="center">
  1358. <td>
  1359. <el-select
  1360. v-model="Saturday.zaoFu1"
  1361. placeholder="请选择副食"
  1362. multiple
  1363. >
  1364. <el-option
  1365. v-for="item in yiZhou.zaoFu"
  1366. :key="item.id"
  1367. :label="item.name"
  1368. :value="item.id"
  1369. class="input_xiala"
  1370. >
  1371. </el-option>
  1372. </el-select>
  1373. </td>
  1374. <td>
  1375. <el-select
  1376. v-model="Saturday.zaoFu1Ren"
  1377. placeholder="请选择炊事员"
  1378. multiple
  1379. >
  1380. <el-option
  1381. v-for="item in renYuan"
  1382. :key="item.id"
  1383. :label="item.name"
  1384. :value="item.id"
  1385. class="input_xiala"
  1386. >
  1387. </el-option>
  1388. </el-select>
  1389. </td>
  1390. </tr>
  1391. <!-- 午餐 -->
  1392. <tr align="center">
  1393. <td rowspan="2">午餐</td>
  1394. <td>
  1395. <el-select
  1396. v-model="Saturday.zhongZu1"
  1397. placeholder="请选择主食"
  1398. multiple
  1399. >
  1400. <el-option
  1401. v-for="item in yiZhou.zhongZhu"
  1402. :key="item.id"
  1403. :label="item.name"
  1404. :value="item.id"
  1405. class="input_xiala"
  1406. >
  1407. </el-option>
  1408. </el-select>
  1409. </td>
  1410. <td>
  1411. <el-select
  1412. v-model="Saturday.zhongZu1Ren"
  1413. placeholder="请选择炊事员"
  1414. multiple
  1415. >
  1416. <el-option
  1417. v-for="item in renYuan"
  1418. :key="item.id"
  1419. :label="item.name"
  1420. :value="item.id"
  1421. class="input_xiala"
  1422. >
  1423. </el-option>
  1424. </el-select>
  1425. </td>
  1426. </tr>
  1427. <tr align="center">
  1428. <td>
  1429. <el-select
  1430. v-model="Saturday.zhongFu1"
  1431. placeholder="请选择副食"
  1432. multiple
  1433. >
  1434. <el-option
  1435. v-for="item in yiZhou.zhongFU"
  1436. :key="item.id"
  1437. :label="item.name"
  1438. :value="item.id"
  1439. class="input_xiala"
  1440. >
  1441. </el-option>
  1442. </el-select>
  1443. </td>
  1444. <td>
  1445. <el-select
  1446. v-model="Saturday.zhongFu1Ren"
  1447. placeholder="请选择炊事员"
  1448. multiple
  1449. >
  1450. <el-option
  1451. v-for="item in renYuan"
  1452. :key="item.id"
  1453. :label="item.name"
  1454. :value="item.id"
  1455. class="input_xiala"
  1456. >
  1457. </el-option>
  1458. </el-select>
  1459. </td>
  1460. </tr>
  1461. <!-- 晚餐 -->
  1462. <tr align="center">
  1463. <td rowspan="2">晚餐</td>
  1464. <td>
  1465. <el-select
  1466. v-model="Saturday.wanZu1"
  1467. placeholder="请选择主食"
  1468. multiple
  1469. >
  1470. <el-option
  1471. v-for="item in yiZhou.wanZhu"
  1472. :key="item.id"
  1473. :label="item.name"
  1474. :value="item.id"
  1475. class="input_xiala"
  1476. >
  1477. </el-option>
  1478. </el-select>
  1479. </td>
  1480. <td>
  1481. <el-select
  1482. v-model="Saturday.wanZu1Ren"
  1483. placeholder="请选择炊事员"
  1484. multiple
  1485. >
  1486. <el-option
  1487. v-for="item in renYuan"
  1488. :key="item.id"
  1489. :label="item.name"
  1490. :value="item.id"
  1491. class="input_xiala"
  1492. >
  1493. </el-option>
  1494. </el-select>
  1495. </td>
  1496. </tr>
  1497. <tr align="center">
  1498. <td>
  1499. <el-select
  1500. v-model="Saturday.wanFu1"
  1501. placeholder="请选择副食"
  1502. multiple
  1503. >
  1504. <el-option
  1505. v-for="item in yiZhou.wanFu"
  1506. :key="item.id"
  1507. :label="item.name"
  1508. :value="item.id"
  1509. class="input_xiala"
  1510. >
  1511. </el-option>
  1512. </el-select>
  1513. </td>
  1514. <td>
  1515. <el-select
  1516. v-model="Saturday.wanFu1Ren"
  1517. placeholder="请选择炊事员"
  1518. multiple
  1519. >
  1520. <el-option
  1521. v-for="item in renYuan"
  1522. :key="item.id"
  1523. :label="item.name"
  1524. :value="item.id"
  1525. class="input_xiala"
  1526. >
  1527. </el-option>
  1528. </el-select>
  1529. </td>
  1530. </tr>
  1531. <!-- 星期日 -->
  1532. <tr align="center">
  1533. <td rowspan="6">星期日</td>
  1534. <td rowspan="2">早餐</td>
  1535. <td>
  1536. <el-select
  1537. v-model="Sunday.zaoZu1"
  1538. placeholder="请选择主食"
  1539. multiple
  1540. >
  1541. <el-option
  1542. v-for="(item, i) in yiZhou.zaoZhu"
  1543. :key="i"
  1544. :label="item.name"
  1545. :value="item.id"
  1546. class="input_xiala"
  1547. ></el-option>
  1548. </el-select>
  1549. </td>
  1550. <td>
  1551. <el-select
  1552. v-model="Sunday.zaoZu1Ren"
  1553. placeholder="请选择炊事员"
  1554. multiple
  1555. >
  1556. <el-option
  1557. v-for="item in renYuan"
  1558. :key="item.id"
  1559. :label="item.name"
  1560. :value="item.id"
  1561. class="input_xiala"
  1562. >
  1563. </el-option>
  1564. </el-select>
  1565. </td>
  1566. </tr>
  1567. <tr align="center">
  1568. <td>
  1569. <el-select
  1570. v-model="Sunday.zaoFu1"
  1571. placeholder="请选择副食"
  1572. multiple
  1573. >
  1574. <el-option
  1575. v-for="item in yiZhou.zaoFu"
  1576. :key="item.id"
  1577. :label="item.name"
  1578. :value="item.id"
  1579. class="input_xiala"
  1580. >
  1581. </el-option>
  1582. </el-select>
  1583. </td>
  1584. <td>
  1585. <el-select
  1586. v-model="Sunday.zaoFu1Ren"
  1587. placeholder="请选择炊事员"
  1588. multiple
  1589. >
  1590. <el-option
  1591. v-for="item in renYuan"
  1592. :key="item.id"
  1593. :label="item.name"
  1594. :value="item.id"
  1595. class="input_xiala"
  1596. >
  1597. </el-option>
  1598. </el-select>
  1599. </td>
  1600. </tr>
  1601. <!-- 午餐 -->
  1602. <tr align="center">
  1603. <td rowspan="2">午餐</td>
  1604. <td>
  1605. <el-select
  1606. v-model="Sunday.zhongZu1"
  1607. placeholder="请选择主食"
  1608. multiple
  1609. >
  1610. <el-option
  1611. v-for="item in yiZhou.zhongZhu"
  1612. :key="item.id"
  1613. :label="item.name"
  1614. :value="item.id"
  1615. class="input_xiala"
  1616. >
  1617. </el-option>
  1618. </el-select>
  1619. </td>
  1620. <td>
  1621. <el-select
  1622. v-model="Sunday.zhongZu1Ren"
  1623. placeholder="请选择炊事员"
  1624. multiple
  1625. >
  1626. <el-option
  1627. v-for="item in renYuan"
  1628. :key="item.id"
  1629. :label="item.name"
  1630. :value="item.id"
  1631. class="input_xiala"
  1632. >
  1633. </el-option>
  1634. </el-select>
  1635. </td>
  1636. </tr>
  1637. <tr align="center">
  1638. <td>
  1639. <el-select
  1640. v-model="Sunday.zhongFu1"
  1641. placeholder="请选择副食"
  1642. multiple
  1643. >
  1644. <el-option
  1645. v-for="item in yiZhou.zhongFU"
  1646. :key="item.id"
  1647. :label="item.name"
  1648. :value="item.id"
  1649. class="input_xiala"
  1650. >
  1651. </el-option>
  1652. </el-select>
  1653. </td>
  1654. <td>
  1655. <el-select
  1656. v-model="Sunday.zhongFu1Ren"
  1657. placeholder="请选择炊事员"
  1658. multiple
  1659. >
  1660. <el-option
  1661. v-for="item in renYuan"
  1662. :key="item.id"
  1663. :label="item.name"
  1664. :value="item.id"
  1665. class="input_xiala"
  1666. >
  1667. </el-option>
  1668. </el-select>
  1669. </td>
  1670. </tr>
  1671. <!-- 晚餐 -->
  1672. <tr align="center">
  1673. <td rowspan="2">晚餐</td>
  1674. <td>
  1675. <el-select
  1676. v-model="Sunday.wanZu1"
  1677. placeholder="请选择主食"
  1678. multiple
  1679. >
  1680. <el-option
  1681. v-for="item in yiZhou.wanZhu"
  1682. :key="item.id"
  1683. :label="item.name"
  1684. :value="item.id"
  1685. class="input_xiala"
  1686. >
  1687. </el-option>
  1688. </el-select>
  1689. </td>
  1690. <td>
  1691. <el-select
  1692. v-model="Sunday.wanZu1Ren"
  1693. placeholder="请选择炊事员"
  1694. multiple
  1695. >
  1696. <el-option
  1697. v-for="item in renYuan"
  1698. :key="item.id"
  1699. :label="item.name"
  1700. :value="item.id"
  1701. class="input_xiala"
  1702. >
  1703. </el-option>
  1704. </el-select>
  1705. </td>
  1706. </tr>
  1707. <tr align="center">
  1708. <td>
  1709. <el-select
  1710. v-model="Sunday.wanFu1"
  1711. placeholder="请选择副食"
  1712. multiple
  1713. >
  1714. <el-option
  1715. v-for="item in yiZhou.wanFu"
  1716. :key="item.id"
  1717. :label="item.name"
  1718. :value="item.id"
  1719. class="input_xiala"
  1720. >
  1721. </el-option>
  1722. </el-select>
  1723. </td>
  1724. <td>
  1725. <el-select
  1726. v-model="Sunday.wanFu1Ren"
  1727. placeholder="请选择炊事员"
  1728. multiple
  1729. >
  1730. <el-option
  1731. v-for="item in renYuan"
  1732. :key="item.id"
  1733. :label="item.name"
  1734. :value="item.id"
  1735. class="input_xiala"
  1736. >
  1737. </el-option>
  1738. </el-select>
  1739. </td>
  1740. </tr>
  1741. </table>
  1742. </div>
  1743. </el-form>
  1744. </div>
  1745. <div slot="footer" class="dialog-footer">
  1746. <el-button type="primary" @click="submitForm(1)">确 定</el-button>
  1747. <el-button @click="cancel" size="btn">取消</el-button>
  1748. </div>
  1749. </el-dialog>
  1750. <el-dialog
  1751. :visible.sync="menuRoleVisible"
  1752. :title="title"
  1753. append-to-body
  1754. id="chakan"
  1755. :close-on-click-modal="false"
  1756. >
  1757. <bdglcookbook
  1758. v-if="menuRoleVisible"
  1759. ref="menuRole"
  1760. :message="wordInfo"
  1761. ></bdglcookbook>
  1762. </el-dialog>
  1763. </div>
  1764. </template>
  1765. <script>
  1766. import bdglcookbook from "@/components/look_word/bdglcookbook.vue";
  1767. import {
  1768. listBdglcookbook,
  1769. getBdglcookbook,
  1770. delBdglcookbook,
  1771. addBdglcookbook,
  1772. updateBdglcookbook,
  1773. exportBdglcookbook,
  1774. getThings,
  1775. } from "@/api/grassrootsregistration/bdglcookbook";
  1776. import {
  1777. getZhuChiRen,
  1778. getShouBu,
  1779. } from "@/api/grassrootsregistration/bdglmeeting";
  1780. // 导入树形结构
  1781. import Treeselect from "@riophae/vue-treeselect";
  1782. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  1783. import { getDept } from "@/api/grassrootsregistration/bdglmeeting";
  1784. export default {
  1785. name: "Bdglcookbook",
  1786. components: {
  1787. Treeselect,
  1788. bdglcookbook,
  1789. },
  1790. data() {
  1791. return {
  1792. //查看页面
  1793. menuRoleVisible: false,
  1794. wordInfo: {},
  1795. //判断关闭
  1796. style: "2",
  1797. // 遮罩层
  1798. loading: true,
  1799. // 导出遮罩层
  1800. exportLoading: false,
  1801. // 选中数组
  1802. ids: [],
  1803. // 非单个禁用
  1804. single: true,
  1805. // 非多个禁用
  1806. multiple: true,
  1807. // 显示搜索条件
  1808. showSearch: true,
  1809. // 总条数
  1810. total: 0,
  1811. // 一周食谱表格数据
  1812. bdglcookbookList: [],
  1813. // 弹出层标题
  1814. title: "",
  1815. // 是否显示弹出层
  1816. open: false,
  1817. // 查询参数
  1818. queryParams: {
  1819. pageNum: 1,
  1820. pageSize: 10,
  1821. title: null,
  1822. startTime: null,
  1823. endTime: null,
  1824. messOfficer: null,
  1825. peopleId: null,
  1826. contents: null,
  1827. unitId: null,
  1828. createtime: null,
  1829. updatetime: null,
  1830. },
  1831. // 表单参数
  1832. form: {},
  1833. // 表单校验
  1834. rules: {
  1835. unitId: [
  1836. { required: true, message: "单位名称不能为空", trigger: "blur" },
  1837. ],
  1838. },
  1839. options: [],
  1840. value: "",
  1841. // 单位树形
  1842. deptOptions: [],
  1843. // 人员列表
  1844. renYuan: [],
  1845. food: [],
  1846. // 一周食物
  1847. yiZhou: [],
  1848. // 部门下拉列表
  1849. deptOptionss: [],
  1850. // 食谱内容
  1851. // 食物名称
  1852. rows: {},
  1853. Monday: {
  1854. zaoZu1: [],
  1855. zaoZu1Ren: [],
  1856. zaoFu1: [],
  1857. zaoFu1Ren: [],
  1858. zhongZu1: [],
  1859. zhongZu1Ren: [],
  1860. zhongFu1: [],
  1861. zhongFu1Ren: [],
  1862. wanZu1: [],
  1863. wanZu1Ren: [],
  1864. wanFu1: [],
  1865. wanFu1Ren: [],
  1866. },
  1867. Tuesday: {
  1868. zaoZu1: [],
  1869. zaoZu1Ren: [],
  1870. zaoFu1: [],
  1871. zaoFu1Ren: [],
  1872. zhongZu1: [],
  1873. zhongZu1Ren: [],
  1874. zhongFu1: [],
  1875. zhongFu1Ren: [],
  1876. wanZu1: [],
  1877. wanZu1Ren: [],
  1878. wanFu1: [],
  1879. wanFu1Ren: [],
  1880. },
  1881. Wednesday: {
  1882. zaoZu1: [],
  1883. zaoZu1Ren: [],
  1884. zaoFu1: [],
  1885. zaoFu1Ren: [],
  1886. zhongZu1: [],
  1887. zhongZu1Ren: [],
  1888. zhongFu1: [],
  1889. zhongFu1Ren: [],
  1890. wanZu1: [],
  1891. wanZu1Ren: [],
  1892. wanFu1: [],
  1893. wanFu1Ren: [],
  1894. },
  1895. Thursday: {
  1896. zaoZu1: [],
  1897. zaoZu1Ren: [],
  1898. zaoFu1: [],
  1899. zaoFu1Ren: [],
  1900. zhongZu1: [],
  1901. zhongZu1Ren: [],
  1902. zhongFu1: [],
  1903. zhongFu1Ren: [],
  1904. wanZu1: [],
  1905. wanZu1Ren: [],
  1906. wanFu1: [],
  1907. wanFu1Ren: [],
  1908. },
  1909. Friday: {
  1910. zaoZu1: [],
  1911. zaoZu1Ren: [],
  1912. zaoFu1: [],
  1913. zaoFu1Ren: [],
  1914. zhongZu1: [],
  1915. zhongZu1Ren: [],
  1916. zhongFu1: [],
  1917. zhongFu1Ren: [],
  1918. wanZu1: [],
  1919. wanZu1Ren: [],
  1920. wanFu1: [],
  1921. wanFu1Ren: [],
  1922. },
  1923. Saturday: {
  1924. zaoZu1: [],
  1925. zaoZu1Ren: [],
  1926. zaoFu1: [],
  1927. zaoFu1Ren: [],
  1928. zhongZu1: [],
  1929. zhongZu1Ren: [],
  1930. zhongFu1: [],
  1931. zhongFu1Ren: [],
  1932. wanZu1: [],
  1933. wanZu1Ren: [],
  1934. wanFu1: [],
  1935. wanFu1Ren: [],
  1936. },
  1937. Sunday: {
  1938. zaoZu1: [],
  1939. zaoZu1Ren: [],
  1940. zaoFu1: [],
  1941. zaoFu1Ren: [],
  1942. zhongZu1: [],
  1943. zhongZu1Ren: [],
  1944. zhongFu1: [],
  1945. zhongFu1Ren: [],
  1946. wanZu1: [],
  1947. wanZu1Ren: [],
  1948. wanFu1: [],
  1949. wanFu1Ren: [],
  1950. },
  1951. // 1
  1952. zaoZu1: {},
  1953. zaoFu1: {},
  1954. zhongZhu1: {},
  1955. zhongFu1: {},
  1956. wanZhu1: {},
  1957. wanFu1: {},
  1958. // 2
  1959. zaoZu2: {},
  1960. zaoFu2: {},
  1961. zhongZhu2: {},
  1962. zhongFu2: {},
  1963. wanZhu2: {},
  1964. wanFu2: {},
  1965. // 3
  1966. zaoZu3: {},
  1967. zaoFu3: {},
  1968. zhongZhu3: {},
  1969. zhongFu3: {},
  1970. wanZhu3: {},
  1971. wanFu3: {},
  1972. // 4
  1973. zaoZu4: {},
  1974. zaoFu4: {},
  1975. zhongZhu4: {},
  1976. zhongFu4: {},
  1977. wanZhu4: {},
  1978. wanFu4: {},
  1979. // 5
  1980. zaoZu5: {},
  1981. zaoFu5: {},
  1982. zhongZhu5: {},
  1983. zhongFu5: {},
  1984. wanZhu5: {},
  1985. wanFu5: {},
  1986. // 6
  1987. zaoZu6: {},
  1988. zaoFu6: {},
  1989. zhongZhu6: {},
  1990. zhongFu6: {},
  1991. wanZhu6: {},
  1992. wanFu6: {},
  1993. // 7
  1994. zaoZu7: {},
  1995. zaoFu7: {},
  1996. zhongZhu7: {},
  1997. zhongFu7: {},
  1998. wanZhu7: {},
  1999. wanFu7: {},
  2000. arr: [],
  2001. };
  2002. },
  2003. created() {
  2004. this.getList();
  2005. this.getdept();
  2006. },
  2007. methods: {
  2008. // //获取部门列表
  2009. getdept() {
  2010. getShouBu().then((res) => {
  2011. this.deptOptionss = res.data;
  2012. });
  2013. },
  2014. // 获取人员
  2015. getRen(id) {
  2016. getZhuChiRen(id).then((res) => {
  2017. this.renYuan = res.data;
  2018. });
  2019. },
  2020. // 搜索时间触发
  2021. time() {
  2022. this.getList();
  2023. },
  2024. // 搜索单位触发
  2025. host() {
  2026. this.getList();
  2027. },
  2028. // 选中班长触发
  2029. monitor(name) {
  2030. this.form.peopleName = name;
  2031. },
  2032. // 选中司务触发
  2033. siWu(name) {
  2034. this.form.messOfficerName = name;
  2035. },
  2036. // 获取一天的食物
  2037. getThingsbook() {
  2038. getThings().then((res) => {
  2039. this.yiZhou = res.data;
  2040. });
  2041. },
  2042. // 重置人员
  2043. ChongZhi() {
  2044. (this.form.messOfficer = null), (this.form.peopleId = null);
  2045. },
  2046. // 新增选中单位触发
  2047. selectPeo(data) {
  2048. this.ChongZhi();
  2049. this.form.unitId = data.id;
  2050. this.getRen(this.form.unitId);
  2051. },
  2052. /** 查询部门下拉树结构 */
  2053. getTreeselect() {
  2054. getDept().then((response) => {
  2055. this.deptOptions = response.data;
  2056. });
  2057. },
  2058. /** 查询一周食谱列表 */
  2059. getList() {
  2060. this.loading = true;
  2061. listBdglcookbook(this.queryParams).then((response) => {
  2062. this.bdglcookbookList = response.rows;
  2063. this.total = response.total;
  2064. this.loading = false;
  2065. });
  2066. },
  2067. // 取消按钮
  2068. cancel() {
  2069. this.open = false;
  2070. this.reset();
  2071. },
  2072. // 表单重置
  2073. reset() {
  2074. this.form = {
  2075. id: null,
  2076. title: null,
  2077. startTime: null,
  2078. endTime: null,
  2079. messOfficer: null,
  2080. peopleId: null,
  2081. contents: null,
  2082. unitId: null,
  2083. createtime: null,
  2084. updatetime: null,
  2085. };
  2086. this.resetForm("form");
  2087. },
  2088. // 重置菜谱
  2089. resets() {
  2090. this.Monday = {
  2091. zaoZu1: [],
  2092. zaoZu1Ren: [],
  2093. zaoFu1: [],
  2094. zaoFu1Ren: [],
  2095. zhongZu1: [],
  2096. zhongZu1Ren: [],
  2097. zhongFu1: [],
  2098. zhongFu1Ren: [],
  2099. wanZu1: [],
  2100. wanZu1Ren: [],
  2101. wanFu1: [],
  2102. wanFu1Ren: [],
  2103. };
  2104. this.Tuesday = {
  2105. zaoZu1: [],
  2106. zaoZu1Ren: [],
  2107. zaoFu1: [],
  2108. zaoFu1Ren: [],
  2109. zhongZu1: [],
  2110. zhongZu1Ren: [],
  2111. zhongFu1: [],
  2112. zhongFu1Ren: [],
  2113. wanZu1: [],
  2114. wanZu1Ren: [],
  2115. wanFu1: [],
  2116. wanFu1Ren: [],
  2117. };
  2118. this.Wednesday = {
  2119. zaoZu1: [],
  2120. zaoZu1Ren: [],
  2121. zaoFu1: [],
  2122. zaoFu1Ren: [],
  2123. zhongZu1: [],
  2124. zhongZu1Ren: [],
  2125. zhongFu1: [],
  2126. zhongFu1Ren: [],
  2127. wanZu1: [],
  2128. wanZu1Ren: [],
  2129. wanFu1: [],
  2130. wanFu1Ren: [],
  2131. };
  2132. this.Thursday = {
  2133. zaoZu1: [],
  2134. zaoZu1Ren: [],
  2135. zaoFu1: [],
  2136. zaoFu1Ren: [],
  2137. zhongZu1: [],
  2138. zhongZu1Ren: [],
  2139. zhongFu1: [],
  2140. zhongFu1Ren: [],
  2141. wanZu1: [],
  2142. wanZu1Ren: [],
  2143. wanFu1: [],
  2144. wanFu1Ren: [],
  2145. };
  2146. this.Friday = {
  2147. zaoZu1: [],
  2148. zaoZu1Ren: [],
  2149. zaoFu1: [],
  2150. zaoFu1Ren: [],
  2151. zhongZu1: [],
  2152. zhongZu1Ren: [],
  2153. zhongFu1: [],
  2154. zhongFu1Ren: [],
  2155. wanZu1: [],
  2156. wanZu1Ren: [],
  2157. wanFu1: [],
  2158. wanFu1Ren: [],
  2159. };
  2160. this.Saturday = {
  2161. zaoZu1: [],
  2162. zaoZu1Ren: [],
  2163. zaoFu1: [],
  2164. zaoFu1Ren: [],
  2165. zhongZu1: [],
  2166. zhongZu1Ren: [],
  2167. zhongFu1: [],
  2168. zhongFu1Ren: [],
  2169. wanZu1: [],
  2170. wanZu1Ren: [],
  2171. wanFu1: [],
  2172. wanFu1Ren: [],
  2173. };
  2174. this.Sunday = {
  2175. zaoZu1: [],
  2176. zaoZu1Ren: [],
  2177. zaoFu1: [],
  2178. zaoFu1Ren: [],
  2179. zhongZu1: [],
  2180. zhongZu1Ren: [],
  2181. zhongFu1: [],
  2182. zhongFu1Ren: [],
  2183. wanZu1: [],
  2184. wanZu1Ren: [],
  2185. wanFu1: [],
  2186. wanFu1Ren: [],
  2187. };
  2188. },
  2189. /** 搜索按钮操作 */
  2190. handleQuery() {
  2191. this.queryParams.pageNum = 1;
  2192. this.getList();
  2193. },
  2194. /** 重置按钮操作 */
  2195. resetQuery() {
  2196. this.resetForm("queryForm");
  2197. this.queryParams.startTime = null;
  2198. this.handleQuery();
  2199. },
  2200. /** 对话框重置按钮操作 */
  2201. resertwo() {
  2202. this.reset();
  2203. this.resets();
  2204. },
  2205. // 多选框选中数据
  2206. handleSelectionChange(selection) {
  2207. this.ids = selection.map((item) => item.id);
  2208. this.single = selection.length !== 1;
  2209. this.multiple = !selection.length;
  2210. },
  2211. /** 新增按钮操作 */
  2212. handleAdd() {
  2213. // 人员列表
  2214. (this.renYuan = []), this.reset();
  2215. this.resets();
  2216. this.getTreeselect();
  2217. this.getThingsbook();
  2218. this.open = true;
  2219. this.style = 2;
  2220. this.title = "添加一周食谱";
  2221. },
  2222. //查看按钮操作
  2223. handleChakan(row) {
  2224. // 是否隐藏按钮
  2225. this.opens = false;
  2226. const id = row.id || this.ids;
  2227. getBdglcookbook(id).then((response) => {
  2228. this.wordInfo = response.data;
  2229. this.title = "查看一周食谱";
  2230. this.menuRoleVisible = true;
  2231. });
  2232. },
  2233. /** 修改按钮操作 */
  2234. handleUpdate(row) {
  2235. this.getTreeselect();
  2236. this.form.unitId = row.unitId;
  2237. this.getThingsbook();
  2238. this.getRen(row.unitId);
  2239. this.reset();
  2240. const id = row.id || this.ids;
  2241. getBdglcookbook(id).then((response) => {
  2242. this.form = response.data;
  2243. this.open = true;
  2244. this.title = "修改一周食谱";
  2245. this.arr = this.form.cookbookRegistrations;
  2246. this.arr.forEach((element) => {
  2247. if (
  2248. element.weeklist === "星期一" &&
  2249. element.timelist === "早餐" &&
  2250. element.typelist === "主食" &&
  2251. element.cookcategoryNames !== null &&
  2252. element.peopleIds !== ","
  2253. ) {
  2254. this.zaoZu1 = element;
  2255. this.Monday.zaoZu1 = this.zaoZu1.cookcategoryIds.split(",");
  2256. this.Monday.zaoZu1 = this.Monday.zaoZu1.map((i) => parseInt(i, 0));
  2257. this.Monday.zaoZu1Ren = this.zaoZu1.peopleIds.split(",");
  2258. this.Monday.zaoZu1Ren = this.Monday.zaoZu1Ren.map((i) =>
  2259. parseInt(i, 0)
  2260. );
  2261. } else if (
  2262. element.weeklist === "星期一" &&
  2263. element.timelist === "早餐" &&
  2264. element.typelist === "副食" &&
  2265. element.cookcategoryNames !== null &&
  2266. element.peopleIds !== ","
  2267. ) {
  2268. this.zaoFu1 = element;
  2269. this.Monday.zaoFu1 = this.zaoFu1.cookcategoryIds.split(",");
  2270. this.Monday.zaoFu1 = this.Monday.zaoFu1.map((i) => parseInt(i, 0));
  2271. this.Monday.zaoFu1Ren = this.zaoFu1.peopleIds.split(",");
  2272. this.Monday.zaoFu1Ren = this.Monday.zaoFu1Ren.map((i) =>
  2273. parseInt(i, 0)
  2274. );
  2275. } else if (
  2276. element.weeklist === "星期一" &&
  2277. element.timelist === "午餐" &&
  2278. element.typelist === "主食" &&
  2279. element.cookcategoryNames !== null &&
  2280. element.peopleIds !== ","
  2281. ) {
  2282. this.zhongZhu1 = element;
  2283. this.Monday.zhongZu1 = this.zhongZhu1.cookcategoryIds.split(",");
  2284. this.Monday.zhongZu1 = this.Monday.zhongZu1.map((i) =>
  2285. parseInt(i, 0)
  2286. );
  2287. this.Monday.zhongZu1Ren = this.zhongZhu1.peopleIds.split(",");
  2288. this.Monday.zhongZu1Ren = this.Monday.zhongZu1Ren.map((i) =>
  2289. parseInt(i, 0)
  2290. );
  2291. } else if (
  2292. element.weeklist === "星期一" &&
  2293. element.timelist === "午餐" &&
  2294. element.typelist === "副食" &&
  2295. element.cookcategoryNames !== null &&
  2296. element.peopleIds !== ","
  2297. ) {
  2298. this.zhongFu1 = element;
  2299. this.Monday.zhongFu1 = this.zhongFu1.cookcategoryIds.split(",");
  2300. this.Monday.zhongFu1 = this.Monday.zhongFu1.map((i) =>
  2301. parseInt(i, 0)
  2302. );
  2303. this.Monday.zhongFu1Ren = this.zhongFu1.peopleIds.split(",");
  2304. this.Monday.zhongFu1Ren = this.Monday.zhongFu1Ren.map((i) =>
  2305. parseInt(i, 0)
  2306. );
  2307. } else if (
  2308. element.weeklist === "星期一" &&
  2309. element.timelist === "晚餐" &&
  2310. element.typelist === "主食" &&
  2311. element.cookcategoryNames !== null &&
  2312. element.peopleIds !== ","
  2313. ) {
  2314. this.wanZhu1 = element;
  2315. this.Monday.wanZu1 = this.wanZhu1.cookcategoryIds.split(",");
  2316. this.Monday.wanZu1 = this.Monday.wanZu1.map((i) => parseInt(i, 0));
  2317. this.Monday.wanZu1Ren = this.wanZhu1.peopleIds.split(",");
  2318. this.Monday.wanZu1Ren = this.Monday.wanZu1Ren.map((i) =>
  2319. parseInt(i, 0)
  2320. );
  2321. } else if (
  2322. element.weeklist === "星期一" &&
  2323. element.timelist === "晚餐" &&
  2324. element.typelist === "副食" &&
  2325. element.cookcategoryNames !== null &&
  2326. element.peopleIds !== ","
  2327. ) {
  2328. this.wanFu1 = element;
  2329. this.Monday.wanFu1 = this.wanFu1.cookcategoryIds.split(",");
  2330. this.Monday.wanFu1 = this.Monday.wanFu1.map((i) => parseInt(i, 0));
  2331. this.Monday.wanFu1Ren = this.wanFu1.peopleIds.split(",");
  2332. this.Monday.wanFu1Ren = this.Monday.wanFu1Ren.map((i) =>
  2333. parseInt(i, 0)
  2334. );
  2335. } else if (
  2336. element.weeklist === "星期二" &&
  2337. element.timelist === "早餐" &&
  2338. element.typelist === "主食" &&
  2339. element.cookcategoryNames !== null &&
  2340. element.peopleIds !== ","
  2341. ) {
  2342. this.zaoZu2 = element;
  2343. this.Tuesday.zaoZu1 = this.zaoZu2.cookcategoryIds.split(",");
  2344. this.Tuesday.zaoZu1 = this.Tuesday.zaoZu1.map((i) =>
  2345. parseInt(i, 0)
  2346. );
  2347. this.Tuesday.zaoZu1Ren = this.zaoZu2.peopleIds.split(",");
  2348. this.Tuesday.zaoZu1Ren = this.Tuesday.zaoZu1Ren.map((i) =>
  2349. parseInt(i, 0)
  2350. );
  2351. } else if (
  2352. element.weeklist === "星期二" &&
  2353. element.timelist === "早餐" &&
  2354. element.typelist === "副食" &&
  2355. element.cookcategoryNames !== null &&
  2356. element.peopleIds !== ","
  2357. ) {
  2358. this.zaoFu2 = element;
  2359. this.Tuesday.zaoFu1 = this.zaoFu2.cookcategoryIds.split(",");
  2360. this.Tuesday.zaoFu1 = this.Tuesday.zaoFu1.map((i) =>
  2361. parseInt(i, 0)
  2362. );
  2363. this.Tuesday.zaoFu1Ren = this.zaoFu2.peopleIds.split(",");
  2364. this.Tuesday.zaoFu1Ren = this.Tuesday.zaoFu1Ren.map((i) =>
  2365. parseInt(i, 0)
  2366. );
  2367. } else if (
  2368. // 在这里
  2369. element.weeklist === "星期二" &&
  2370. element.timelist === "午餐" &&
  2371. element.typelist === "主食" &&
  2372. element.cookcategoryNames !== null &&
  2373. element.peopleIds !== ","
  2374. ) {
  2375. this.zhongZhu2 = element;
  2376. this.Tuesday.zhongZu1 = this.zhongZhu2.cookcategoryIds.split(",");
  2377. this.Tuesday.zhongZu1 = this.Tuesday.zhongZu1.map((i) =>
  2378. parseInt(i, 0)
  2379. );
  2380. this.Tuesday.zhongZu1Ren = this.zhongZhu2.peopleIds.split(",");
  2381. this.Tuesday.zhongZu1Ren = this.Tuesday.zhongZu1Ren.map((i) =>
  2382. parseInt(i, 0)
  2383. );
  2384. } else if (
  2385. element.weeklist === "星期二" &&
  2386. element.timelist === "午餐" &&
  2387. element.typelist === "副食" &&
  2388. element.cookcategoryNames !== null &&
  2389. element.peopleIds !== ","
  2390. ) {
  2391. this.zhongFu2 = element;
  2392. this.Tuesday.zhongFu1 = this.zhongFu2.cookcategoryIds.split(",");
  2393. this.Tuesday.zhongFu1 = this.Tuesday.zhongFu1.map((i) =>
  2394. parseInt(i, 0)
  2395. );
  2396. this.Tuesday.zhongFu1Ren = this.zhongFu2.peopleIds.split(",");
  2397. this.Tuesday.zhongFu1Ren = this.Tuesday.zhongFu1Ren.map((i) =>
  2398. parseInt(i, 0)
  2399. );
  2400. } else if (
  2401. element.weeklist === "星期二" &&
  2402. element.timelist === "晚餐" &&
  2403. element.typelist === "主食" &&
  2404. element.cookcategoryNames !== null &&
  2405. element.peopleIds !== ","
  2406. ) {
  2407. this.wanZhu2 = element;
  2408. this.Tuesday.wanZu1 = this.wanZhu2.cookcategoryIds.split(",");
  2409. this.Tuesday.wanZu1 = this.Tuesday.wanZu1.map((i) =>
  2410. parseInt(i, 0)
  2411. );
  2412. this.Tuesday.wanZu1Ren = this.wanZhu2.peopleIds.split(",");
  2413. this.Tuesday.wanZu1Ren = this.Tuesday.wanZu1Ren.map((i) =>
  2414. parseInt(i, 0)
  2415. );
  2416. } else if (
  2417. element.weeklist === "星期二" &&
  2418. element.timelist === "晚餐" &&
  2419. element.typelist === "副食" &&
  2420. element.cookcategoryNames !== null &&
  2421. element.peopleIds !== ","
  2422. ) {
  2423. this.wanFu2 = element;
  2424. this.Tuesday.wanFu1 = this.wanFu2.cookcategoryIds.split(",");
  2425. this.Tuesday.wanFu1 = this.Tuesday.wanFu1.map((i) =>
  2426. parseInt(i, 0)
  2427. );
  2428. this.Tuesday.wanFu1Ren = this.wanFu2.peopleIds.split(",");
  2429. this.Tuesday.wanFu1Ren = this.Tuesday.wanFu1Ren.map((i) =>
  2430. parseInt(i, 0)
  2431. );
  2432. } else if (
  2433. element.weeklist === "星期三" &&
  2434. element.timelist === "早餐" &&
  2435. element.typelist === "主食" &&
  2436. element.cookcategoryNames !== null &&
  2437. element.peopleIds !== ","
  2438. ) {
  2439. this.zaoZu3 = element;
  2440. this.Wednesday.zaoZu1 = this.zaoZu3.cookcategoryIds.split(",");
  2441. this.Wednesday.zaoZu1 = this.Wednesday.zaoZu1.map((i) =>
  2442. parseInt(i, 0)
  2443. );
  2444. this.Wednesday.zaoZu1Ren = this.zaoZu3.peopleIds.split(",");
  2445. this.Wednesday.zaoZu1Ren = this.Wednesday.zaoZu1Ren.map((i) =>
  2446. parseInt(i, 0)
  2447. );
  2448. } else if (
  2449. element.weeklist === "星期三" &&
  2450. element.timelist === "早餐" &&
  2451. element.typelist === "副食" &&
  2452. element.cookcategoryNames !== null &&
  2453. element.peopleIds !== ","
  2454. ) {
  2455. this.zaoFu3 = element;
  2456. this.Wednesday.zaoFu1 = this.zaoFu3.cookcategoryIds.split(",");
  2457. this.Wednesday.zaoFu1 = this.Wednesday.zaoFu1.map((i) =>
  2458. parseInt(i, 0)
  2459. );
  2460. this.Wednesday.zaoFu1Ren = this.zaoFu3.peopleIds.split(",");
  2461. this.Wednesday.zaoFu1Ren = this.Wednesday.zaoFu1Ren.map((i) =>
  2462. parseInt(i, 0)
  2463. );
  2464. } else if (
  2465. element.weeklist === "星期三" &&
  2466. element.timelist === "午餐" &&
  2467. element.typelist === "主食" &&
  2468. element.cookcategoryNames !== null &&
  2469. element.peopleIds !== ","
  2470. ) {
  2471. this.zhongZhu3 = element;
  2472. this.Wednesday.zhongZu1 = this.zhongZhu3.cookcategoryIds.split(",");
  2473. this.Wednesday.zhongZu1 = this.Wednesday.zhongZu1.map((i) =>
  2474. parseInt(i, 0)
  2475. );
  2476. this.Wednesday.zhongZu1Ren = this.zhongZhu3.peopleIds.split(",");
  2477. this.Wednesday.zhongZu1Ren = this.Wednesday.zhongZu1Ren.map((i) =>
  2478. parseInt(i, 0)
  2479. );
  2480. } else if (
  2481. element.weeklist === "星期三" &&
  2482. element.timelist === "午餐" &&
  2483. element.typelist === "副食" &&
  2484. element.cookcategoryNames !== null &&
  2485. element.peopleIds !== ","
  2486. ) {
  2487. this.zhongFu3 = element;
  2488. this.Wednesday.zhongFu1 = this.zhongFu3.cookcategoryIds.split(",");
  2489. this.Wednesday.zhongFu1 = this.Wednesday.zhongFu1.map((i) =>
  2490. parseInt(i, 0)
  2491. );
  2492. this.Wednesday.zhongFu1Ren = this.zhongFu3.peopleIds.split(",");
  2493. this.Wednesday.zhongFu1Ren = this.Wednesday.zhongFu1Ren.map((i) =>
  2494. parseInt(i, 0)
  2495. );
  2496. } else if (
  2497. element.weeklist === "星期三" &&
  2498. element.timelist === "晚餐" &&
  2499. element.typelist === "主食" &&
  2500. element.cookcategoryNames !== null &&
  2501. element.peopleIds !== ","
  2502. ) {
  2503. this.wanZhu3 = element;
  2504. this.Wednesday.wanZu1 = this.wanZhu3.cookcategoryIds.split(",");
  2505. this.Wednesday.wanZu1 = this.Wednesday.wanZu1.map((i) =>
  2506. parseInt(i, 0)
  2507. );
  2508. this.Wednesday.wanZu1Ren = this.wanZhu3.peopleIds.split(",");
  2509. this.Wednesday.wanZu1Ren = this.Wednesday.wanZu1Ren.map((i) =>
  2510. parseInt(i, 0)
  2511. );
  2512. } else if (
  2513. element.weeklist === "星期三" &&
  2514. element.timelist === "晚餐" &&
  2515. element.typelist === "副食" &&
  2516. element.cookcategoryNames !== null &&
  2517. element.peopleIds !== ","
  2518. ) {
  2519. this.wanFu3 = element;
  2520. this.Wednesday.wanFu1 = this.wanFu3.cookcategoryIds.split(",");
  2521. this.Wednesday.wanFu1 = this.Wednesday.wanFu1.map((i) =>
  2522. parseInt(i, 0)
  2523. );
  2524. this.Wednesday.wanFu1Ren = this.wanFu3.peopleIds.split(",");
  2525. this.Wednesday.wanFu1Ren = this.Wednesday.wanFu1Ren.map((i) =>
  2526. parseInt(i, 0)
  2527. );
  2528. } else if (
  2529. element.weeklist === "星期四" &&
  2530. element.timelist === "早餐" &&
  2531. element.typelist === "主食" &&
  2532. element.cookcategoryNames !== null &&
  2533. element.peopleIds !== ","
  2534. ) {
  2535. this.zaoZu4 = element;
  2536. this.Thursday.zaoZu1 = this.zaoZu4.cookcategoryIds.split(",");
  2537. this.Thursday.zaoZu1 = this.Thursday.zaoZu1.map((i) =>
  2538. parseInt(i, 0)
  2539. );
  2540. this.Thursday.zaoZu1Ren = this.zaoZu4.peopleIds.split(",");
  2541. this.Thursday.zaoZu1Ren = this.Thursday.zaoZu1Ren.map((i) =>
  2542. parseInt(i, 0)
  2543. );
  2544. } else if (
  2545. element.weeklist === "星期四" &&
  2546. element.timelist === "早餐" &&
  2547. element.typelist === "副食" &&
  2548. element.cookcategoryNames !== null &&
  2549. element.peopleIds !== ","
  2550. ) {
  2551. this.zaoFu4 = element;
  2552. this.Thursday.zaoFu1 = this.zaoFu4.cookcategoryIds.split(",");
  2553. this.Thursday.zaoFu1 = this.Thursday.zaoFu1.map((i) =>
  2554. parseInt(i, 0)
  2555. );
  2556. this.Thursday.zaoFu1Ren = this.zaoFu4.peopleIds.split(",");
  2557. this.Thursday.zaoFu1Ren = this.Thursday.zaoFu1Ren.map((i) =>
  2558. parseInt(i, 0)
  2559. );
  2560. } else if (
  2561. element.weeklist === "星期四" &&
  2562. element.timelist === "午餐" &&
  2563. element.typelist === "主食" &&
  2564. element.cookcategoryNames !== null &&
  2565. element.peopleIds !== ","
  2566. ) {
  2567. this.zhongZhu4 = element;
  2568. this.Thursday.zhongZu1 = this.zhongZhu4.cookcategoryIds.split(",");
  2569. this.Thursday.zhongZu1 = this.Thursday.zhongZu1.map((i) =>
  2570. parseInt(i, 0)
  2571. );
  2572. this.Thursday.zhongZu1Ren = this.zhongZhu4.peopleIds.split(",");
  2573. this.Thursday.zhongZu1Ren = this.Thursday.zhongZu1Ren.map((i) =>
  2574. parseInt(i, 0)
  2575. );
  2576. } else if (
  2577. element.weeklist === "星期四" &&
  2578. element.timelist === "午餐" &&
  2579. element.typelist === "副食" &&
  2580. element.cookcategoryNames !== null &&
  2581. element.peopleIds !== ","
  2582. ) {
  2583. this.zhongFu4 = element;
  2584. this.Thursday.zhongFu1 = this.zhongFu4.cookcategoryIds.split(",");
  2585. this.Thursday.zhongFu1 = this.Thursday.zhongFu1.map((i) =>
  2586. parseInt(i, 0)
  2587. );
  2588. this.Thursday.zhongFu1Ren = this.zhongFu4.peopleIds.split(",");
  2589. this.Thursday.zhongFu1Ren = this.Thursday.zhongFu1Ren.map((i) =>
  2590. parseInt(i, 0)
  2591. );
  2592. } else if (
  2593. element.weeklist === "星期四" &&
  2594. element.timelist === "晚餐" &&
  2595. element.typelist === "主食" &&
  2596. element.cookcategoryNames !== null &&
  2597. element.peopleIds !== ","
  2598. ) {
  2599. this.wanZhu4 = element;
  2600. this.Thursday.wanZu1 = this.wanZhu4.cookcategoryIds.split(",");
  2601. this.Thursday.wanZu1 = this.Thursday.wanZu1.map((i) =>
  2602. parseInt(i, 0)
  2603. );
  2604. this.Thursday.wanZu1Ren = this.wanZhu4.peopleIds.split(",");
  2605. this.Thursday.wanZu1Ren = this.Thursday.wanZu1Ren.map((i) =>
  2606. parseInt(i, 0)
  2607. );
  2608. } else if (
  2609. element.weeklist === "星期四" &&
  2610. element.timelist === "晚餐" &&
  2611. element.typelist === "副食" &&
  2612. element.cookcategoryNames !== null &&
  2613. element.peopleIds !== ","
  2614. ) {
  2615. this.wanFu4 = element;
  2616. this.Thursday.wanFu1 = this.wanFu4.cookcategoryIds.split(",");
  2617. this.Thursday.wanFu1 = this.Thursday.wanFu1.map((i) =>
  2618. parseInt(i, 0)
  2619. );
  2620. this.Thursday.wanFu1Ren = this.wanFu4.peopleIds.split(",");
  2621. this.Thursday.wanFu1Ren = this.Thursday.wanFu1Ren.map((i) =>
  2622. parseInt(i, 0)
  2623. );
  2624. } else if (
  2625. element.weeklist === "星期五" &&
  2626. element.timelist === "早餐" &&
  2627. element.typelist === "主食" &&
  2628. element.cookcategoryNames !== null &&
  2629. element.peopleIds !== ","
  2630. ) {
  2631. this.zaoZu5 = element;
  2632. this.Friday.zaoZu1 = this.zaoZu5.cookcategoryIds.split(",");
  2633. this.Friday.zaoZu1 = this.Friday.zaoZu1.map((i) => parseInt(i, 0));
  2634. this.Friday.zaoZu1Ren = this.zaoZu5.peopleIds.split(",");
  2635. this.Friday.zaoZu1Ren = this.Friday.zaoZu1Ren.map((i) =>
  2636. parseInt(i, 0)
  2637. );
  2638. } else if (
  2639. element.weeklist === "星期五" &&
  2640. element.timelist === "早餐" &&
  2641. element.typelist === "副食" &&
  2642. element.cookcategoryNames !== null &&
  2643. element.peopleIds !== ","
  2644. ) {
  2645. this.zaoFu5 = element;
  2646. this.Friday.zaoFu1 = this.zaoFu5.cookcategoryIds.split(",");
  2647. this.Friday.zaoFu1 = this.Friday.zaoFu1.map((i) => parseInt(i, 0));
  2648. this.Friday.zaoFu1Ren = this.zaoFu5.peopleIds.split(",");
  2649. this.Friday.zaoFu1Ren = this.Friday.zaoFu1Ren.map((i) =>
  2650. parseInt(i, 0)
  2651. );
  2652. } else if (
  2653. element.weeklist === "星期五" &&
  2654. element.timelist === "午餐" &&
  2655. element.typelist === "主食" &&
  2656. element.cookcategoryNames !== null &&
  2657. element.peopleIds !== ","
  2658. ) {
  2659. this.zhongZhu5 = element;
  2660. this.Friday.zhongZu1 = this.zhongZhu5.cookcategoryIds.split(",");
  2661. this.Friday.zhongZu1 = this.Friday.zhongZu1.map((i) =>
  2662. parseInt(i, 0)
  2663. );
  2664. this.Friday.zhongZu1Ren = this.zhongZhu5.peopleIds.split(",");
  2665. this.Friday.zhongZu1Ren = this.Friday.zhongZu1Ren.map((i) =>
  2666. parseInt(i, 0)
  2667. );
  2668. } else if (
  2669. element.weeklist === "星期五" &&
  2670. element.timelist === "午餐" &&
  2671. element.typelist === "副食" &&
  2672. element.cookcategoryNames !== null &&
  2673. element.peopleIds !== ","
  2674. ) {
  2675. this.zhongFu5 = element;
  2676. this.Friday.zhongFu1 = this.zhongFu5.cookcategoryIds.split(",");
  2677. this.Friday.zhongFu1 = this.Friday.zhongFu1.map((i) =>
  2678. parseInt(i, 0)
  2679. );
  2680. this.Friday.zhongFu1Ren = this.zhongFu5.peopleIds.split(",");
  2681. this.Friday.zhongFu1Ren = this.Friday.zhongFu1Ren.map((i) =>
  2682. parseInt(i, 0)
  2683. );
  2684. } else if (
  2685. element.weeklist === "星期五" &&
  2686. element.timelist === "晚餐" &&
  2687. element.typelist === "主食" &&
  2688. element.cookcategoryNames !== null &&
  2689. element.peopleIds !== ","
  2690. ) {
  2691. this.wanZhu5 = element;
  2692. this.Friday.wanZu1 = this.wanZhu5.cookcategoryIds.split(",");
  2693. this.Friday.wanZu1 = this.Friday.wanZu1.map((i) => parseInt(i, 0));
  2694. this.Friday.wanZu1Ren = this.wanZhu5.peopleIds.split(",");
  2695. this.Friday.wanZu1Ren = this.Friday.wanZu1Ren.map((i) =>
  2696. parseInt(i, 0)
  2697. );
  2698. } else if (
  2699. element.weeklist === "星期五" &&
  2700. element.timelist === "晚餐" &&
  2701. element.typelist === "副食" &&
  2702. element.cookcategoryNames !== null &&
  2703. element.peopleIds !== ","
  2704. ) {
  2705. this.wanFu5 = element;
  2706. this.Friday.wanFu1 = this.wanFu5.cookcategoryIds.split(",");
  2707. this.Friday.wanFu1 = this.Friday.wanFu1.map((i) => parseInt(i, 0));
  2708. this.Friday.wanFu1Ren = this.wanFu5.peopleIds.split(",");
  2709. this.Friday.wanFu1Ren = this.Friday.wanFu1Ren.map((i) =>
  2710. parseInt(i, 0)
  2711. );
  2712. } else if (
  2713. element.weeklist === "星期六" &&
  2714. element.timelist === "早餐" &&
  2715. element.typelist === "主食" &&
  2716. element.cookcategoryNames !== null &&
  2717. element.peopleIds !== ","
  2718. ) {
  2719. this.zaoZu6 = element;
  2720. this.Saturday.zaoZu1 = this.zaoZu6.cookcategoryIds.split(",");
  2721. this.Saturday.zaoZu1 = this.Saturday.zaoZu1.map((i) =>
  2722. parseInt(i, 0)
  2723. );
  2724. this.Saturday.zaoZu1Ren = this.zaoZu6.peopleIds.split(",");
  2725. this.Saturday.zaoZu1Ren = this.Saturday.zaoZu1Ren.map((i) =>
  2726. parseInt(i, 0)
  2727. );
  2728. } else if (
  2729. element.weeklist === "星期六" &&
  2730. element.timelist === "早餐" &&
  2731. element.typelist === "副食" &&
  2732. element.cookcategoryNames !== null &&
  2733. element.peopleIds !== ","
  2734. ) {
  2735. this.zaoFu6 = element;
  2736. this.Saturday.zaoFu1 = this.zaoFu6.cookcategoryIds.split(",");
  2737. this.Saturday.zaoFu1 = this.Saturday.zaoFu1.map((i) =>
  2738. parseInt(i, 0)
  2739. );
  2740. this.Saturday.zaoFu1Ren = this.zaoFu6.peopleIds.split(",");
  2741. this.Saturday.zaoFu1Ren = this.Saturday.zaoFu1Ren.map((i) =>
  2742. parseInt(i, 0)
  2743. );
  2744. } else if (
  2745. element.weeklist === "星期六" &&
  2746. element.timelist === "午餐" &&
  2747. element.typelist === "主食" &&
  2748. element.cookcategoryNames !== null &&
  2749. element.peopleIds !== ","
  2750. ) {
  2751. this.zhongZhu6 = element;
  2752. this.Saturday.zhongZu1 = this.zhongZhu6.cookcategoryIds.split(",");
  2753. this.Saturday.zhongZu1 = this.Saturday.zhongZu1.map((i) =>
  2754. parseInt(i, 0)
  2755. );
  2756. this.Saturday.zhongZu1Ren = this.zhongZhu6.peopleIds.split(",");
  2757. this.Saturday.zhongZu1Ren = this.Saturday.zhongZu1Ren.map((i) =>
  2758. parseInt(i, 0)
  2759. );
  2760. } else if (
  2761. element.weeklist === "星期六" &&
  2762. element.timelist === "午餐" &&
  2763. element.typelist === "副食" &&
  2764. element.cookcategoryNames !== null &&
  2765. element.peopleIds !== ","
  2766. ) {
  2767. this.zhongFu6 = element;
  2768. this.Saturday.zhongFu1 = this.zhongFu6.cookcategoryIds.split(",");
  2769. this.Saturday.zhongFu1 = this.Saturday.zhongFu1.map((i) =>
  2770. parseInt(i, 0)
  2771. );
  2772. this.Saturday.zhongFu1Ren = this.zhongFu6.peopleIds.split(",");
  2773. this.Saturday.zhongFu1Ren = this.Saturday.zhongFu1Ren.map((i) =>
  2774. parseInt(i, 0)
  2775. );
  2776. } else if (
  2777. element.weeklist === "星期六" &&
  2778. element.timelist === "晚餐" &&
  2779. element.typelist === "主食" &&
  2780. element.cookcategoryNames !== null &&
  2781. element.peopleIds !== ","
  2782. ) {
  2783. this.wanZhu6 = element;
  2784. this.Saturday.wanZu1 = this.wanZhu6.cookcategoryIds.split(",");
  2785. this.Saturday.wanZu1 = this.Saturday.wanZu1.map((i) =>
  2786. parseInt(i, 0)
  2787. );
  2788. this.Saturday.wanZu1Ren = this.wanZhu6.peopleIds.split(",");
  2789. this.Saturday.wanZu1Ren = this.Saturday.wanZu1Ren.map((i) =>
  2790. parseInt(i, 0)
  2791. );
  2792. } else if (
  2793. element.weeklist === "星期六" &&
  2794. element.timelist === "晚餐" &&
  2795. element.typelist === "副食" &&
  2796. element.cookcategoryNames !== null &&
  2797. element.peopleIds !== ","
  2798. ) {
  2799. this.wanFu6 = element;
  2800. this.Saturday.wanFu1 = this.wanFu6.cookcategoryIds.split(",");
  2801. this.Saturday.wanFu1 = this.Saturday.wanFu1.map((i) =>
  2802. parseInt(i, 0)
  2803. );
  2804. this.Saturday.wanFu1Ren = this.wanFu6.peopleIds.split(",");
  2805. this.Saturday.wanFu1Ren = this.Saturday.wanFu1Ren.map((i) =>
  2806. parseInt(i, 0)
  2807. );
  2808. } else if (
  2809. element.weeklist === "星期日" &&
  2810. element.timelist === "早餐" &&
  2811. element.typelist === "主食" &&
  2812. element.cookcategoryNames !== null &&
  2813. element.peopleIds !== ","
  2814. ) {
  2815. this.zaoZu7 = element;
  2816. this.Sunday.zaoZu1 = this.zaoZu7.cookcategoryIds.split(",");
  2817. this.Sunday.zaoZu1 = this.Sunday.zaoZu1.map((i) => parseInt(i, 0));
  2818. this.Sunday.zaoZu1Ren = this.zaoZu7.peopleIds.split(",");
  2819. this.Sunday.zaoZu1Ren = this.Sunday.zaoZu1Ren.map((i) =>
  2820. parseInt(i, 0)
  2821. );
  2822. } else if (
  2823. element.weeklist === "星期日" &&
  2824. element.timelist === "早餐" &&
  2825. element.typelist === "副食" &&
  2826. element.cookcategoryNames !== null &&
  2827. element.peopleIds !== ","
  2828. ) {
  2829. this.zaoFu7 = element;
  2830. this.Sunday.zaoFu1 = this.zaoFu7.cookcategoryIds.split(",");
  2831. this.Sunday.zaoFu1 = this.Sunday.zaoFu1.map((i) => parseInt(i, 0));
  2832. this.Sunday.zaoFu1Ren = this.zaoFu7.peopleIds.split(",");
  2833. this.Sunday.zaoFu1Ren = this.Sunday.zaoFu1Ren.map((i) =>
  2834. parseInt(i, 0)
  2835. );
  2836. } else if (
  2837. element.weeklist === "星期日" &&
  2838. element.timelist === "午餐" &&
  2839. element.typelist === "主食" &&
  2840. element.cookcategoryNames !== null &&
  2841. element.peopleIds !== ","
  2842. ) {
  2843. this.zhongZhu7 = element;
  2844. this.Sunday.zhongZu1 = this.zhongZhu7.cookcategoryIds.split(",");
  2845. this.Sunday.zhongZu1 = this.Sunday.zhongZu1.map((i) =>
  2846. parseInt(i, 0)
  2847. );
  2848. this.Sunday.zhongZu1Ren = this.zhongZhu7.peopleIds.split(",");
  2849. this.Sunday.zhongZu1Ren = this.Sunday.zhongZu1Ren.map((i) =>
  2850. parseInt(i, 0)
  2851. );
  2852. } else if (
  2853. element.weeklist === "星期日" &&
  2854. element.timelist === "午餐" &&
  2855. element.typelist === "副食" &&
  2856. element.cookcategoryNames !== null &&
  2857. element.peopleIds !== ","
  2858. ) {
  2859. this.zhongFu7 = element;
  2860. this.Sunday.zhongFu1 = this.zhongFu7.cookcategoryIds.split(",");
  2861. this.Sunday.zhongFu1 = this.Sunday.zhongFu1.map((i) =>
  2862. parseInt(i, 0)
  2863. );
  2864. this.Sunday.zhongFu1Ren = this.zhongFu7.peopleIds.split(",");
  2865. this.Sunday.zhongFu1Ren = this.Sunday.zhongFu1Ren.map((i) =>
  2866. parseInt(i, 0)
  2867. );
  2868. } else if (
  2869. element.weeklist === "星期日" &&
  2870. element.timelist === "晚餐" &&
  2871. element.typelist === "主食" &&
  2872. element.cookcategoryNames !== null &&
  2873. element.peopleIds !== ","
  2874. ) {
  2875. this.wanZhu7 = element;
  2876. this.Sunday.wanZu1 = this.wanZhu7.cookcategoryIds.split(",");
  2877. this.Sunday.wanZu1 = this.Sunday.wanZu1.map((i) => parseInt(i, 0));
  2878. this.Sunday.wanZu1Ren = this.wanZhu7.peopleIds.split(",");
  2879. this.Sunday.wanZu1Ren = this.Sunday.wanZu1Ren.map((i) =>
  2880. parseInt(i, 0)
  2881. );
  2882. } else if (
  2883. element.weeklist === "星期日" &&
  2884. element.timelist === "晚餐" &&
  2885. element.typelist === "副食" &&
  2886. element.cookcategoryNames !== null &&
  2887. element.peopleIds !== ","
  2888. ) {
  2889. this.wanFu7 = element;
  2890. this.Sunday.wanFu1 = this.wanFu7.cookcategoryIds.split(",");
  2891. this.Sunday.wanFu1 = this.Sunday.wanFu1.map((i) => parseInt(i, 0));
  2892. this.Sunday.wanFu1Ren = this.wanFu7.peopleIds.split(",");
  2893. this.Sunday.wanFu1Ren = this.Sunday.wanFu1Ren.map((i) =>
  2894. parseInt(i, 0)
  2895. );
  2896. }
  2897. });
  2898. });
  2899. },
  2900. /** 提交按钮 */
  2901. submitForm(style) {
  2902. this.style = style;
  2903. this.$refs["form"].validate((valid) => {
  2904. if (valid) {
  2905. if (this.form.id != null) {
  2906. // 1.早主;
  2907. if (this.Monday.zaoZu1 != "") {
  2908. var str1 = this.Monday.zaoZu1.join(",");
  2909. var pstr1 = this.Monday.zaoZu1Ren.join(",");
  2910. }
  2911. // 早副;
  2912. if (this.Monday.zaoFu1 != "") {
  2913. var str11 = this.Monday.zaoFu1.join(",");
  2914. var pstr11 = this.Monday.zaoFu1Ren.join(",");
  2915. }
  2916. // 中主;
  2917. if (this.Monday.zhongZu1 != "") {
  2918. var str2 = this.Monday.zhongZu1.join(",");
  2919. var pstr2 = this.Monday.zhongZu1Ren.join(",");
  2920. }
  2921. // 中副
  2922. if (this.Monday.zhongFu1 != "") {
  2923. var str22 = this.Monday.zhongFu1.join(",");
  2924. var pstr22 = this.Monday.zhongFu1Ren.join(",");
  2925. }
  2926. // 晚主
  2927. if (this.Monday.wanZu1 != "") {
  2928. var str3 = this.Monday.wanZu1.join(",");
  2929. var pstr3 = this.Monday.wanZu1Ren.join(",");
  2930. }
  2931. // 晚副
  2932. if (this.Monday.wanFu1 != "") {
  2933. var str33 = this.Monday.wanFu1.join(",");
  2934. var pstr33 = this.Monday.wanFu1Ren.join(",");
  2935. }
  2936. // 2.早主;
  2937. if (this.Tuesday.zaoZu1 != "") {
  2938. var str4 = this.Tuesday.zaoZu1.join(",");
  2939. var pstr4 = this.Tuesday.zaoZu1Ren.join(",");
  2940. }
  2941. // 早副;
  2942. if (this.Tuesday.zaoFu1 != "") {
  2943. var str44 = this.Tuesday.zaoFu1.join(",");
  2944. var pstr44 = this.Tuesday.zaoFu1Ren.join(",");
  2945. }
  2946. // 中主;
  2947. if (this.Tuesday.zhongZu1 != "") {
  2948. var str5 = this.Tuesday.zhongZu1.join(",");
  2949. var pstr5 = this.Tuesday.zhongZu1Ren.join(",");
  2950. }
  2951. // 中副
  2952. if (this.Tuesday.zhongFu1 != "") {
  2953. var str55 = this.Tuesday.zhongFu1.join(",");
  2954. var pstr55 = this.Tuesday.zhongFu1Ren.join(",");
  2955. }
  2956. // 晚主
  2957. if (this.Tuesday.wanZu1 != "") {
  2958. var str6 = this.Tuesday.wanZu1.join(",");
  2959. var pstr6 = this.Tuesday.wanZu1Ren.join(",");
  2960. }
  2961. // 晚副
  2962. if (this.Tuesday.wanFu1 != "") {
  2963. var str66 = this.Tuesday.wanFu1.join(",");
  2964. var pstr66 = this.Tuesday.wanFu1Ren.join(",");
  2965. }
  2966. // 3.早主;
  2967. if (this.Wednesday.zaoZu1 != "") {
  2968. var str7 = this.Wednesday.zaoZu1.join(",");
  2969. var pstr7 = this.Wednesday.zaoZu1Ren.join(",");
  2970. }
  2971. // 早副;
  2972. if (this.Wednesday.zaoFu1 != "") {
  2973. var str77 = this.Wednesday.zaoFu1.join(",");
  2974. var pstr77 = this.Wednesday.zaoFu1Ren.join(",");
  2975. }
  2976. // 中主;
  2977. if (this.Wednesday.zhongZu1 != "") {
  2978. var str8 = this.Wednesday.zhongZu1.join(",");
  2979. var pstr8 = this.Wednesday.zhongZu1Ren.join(",");
  2980. }
  2981. // 中副
  2982. if (this.Wednesday.zhongFu1 != "") {
  2983. var str88 = this.Wednesday.zhongFu1.join(",");
  2984. var pstr88 = this.Wednesday.zhongFu1Ren.join(",");
  2985. }
  2986. // 晚主
  2987. if (this.Wednesday.wanZu1 != "") {
  2988. var str9 = this.Wednesday.wanZu1.join(",");
  2989. var pstr9 = this.Wednesday.wanZu1Ren.join(",");
  2990. }
  2991. // 晚副
  2992. if (this.Wednesday.wanFu1 != "") {
  2993. var str99 = this.Wednesday.wanFu1.join(",");
  2994. var pstr99 = this.Wednesday.wanFu1Ren.join(",");
  2995. }
  2996. // 4.早主;
  2997. if (this.Thursday.zaoZu1 != "") {
  2998. var str10 = this.Thursday.zaoZu1.join(",");
  2999. var pstr10 = this.Thursday.zaoZu1Ren.join(",");
  3000. }
  3001. // 早副;
  3002. if (this.Thursday.zaoFu1 != "") {
  3003. var str1010 = this.Thursday.zaoFu1.join(",");
  3004. var pstr1010 = this.Thursday.zaoFu1Ren.join(",");
  3005. }
  3006. // 中主;
  3007. if (this.Thursday.zhongZu1 != "") {
  3008. var str12 = this.Thursday.zhongZu1.join(",");
  3009. var pstr12 = this.Thursday.zhongZu1Ren.join(",");
  3010. }
  3011. // 中副
  3012. if (this.Thursday.zhongFu1 != "") {
  3013. var str1212 = this.Thursday.zhongFu1.join(",");
  3014. var pstr1212 = this.Thursday.zhongFu1Ren.join(",");
  3015. }
  3016. // 晚主
  3017. if (this.Thursday.wanZu1 != "") {
  3018. var str13 = this.Thursday.wanZu1.join(",");
  3019. var pstr13 = this.Thursday.wanZu1Ren.join(",");
  3020. }
  3021. // 晚副
  3022. if (this.Thursday.wanFu1 != "") {
  3023. var str1313 = this.Thursday.wanFu1.join(",");
  3024. var pstr1313 = this.Thursday.wanFu1Ren.join(",");
  3025. }
  3026. // 5.早主;
  3027. if (this.Friday.zaoZu1 != "") {
  3028. var str14 = this.Friday.zaoZu1.join(",");
  3029. var pstr14 = this.Friday.zaoZu1Ren.join(",");
  3030. }
  3031. // 早副;
  3032. if (this.Friday.zaoFu1 != "") {
  3033. var str1414 = this.Friday.zaoFu1.join(",");
  3034. var pstr1414 = this.Friday.zaoFu1Ren.join(",");
  3035. }
  3036. // 中主;
  3037. if (this.Friday.zhongZu1 != "") {
  3038. var str15 = this.Friday.zhongZu1.join(",");
  3039. var pstr15 = this.Friday.zhongZu1Ren.join(",");
  3040. }
  3041. // 中副
  3042. if (this.Friday.zhongFu1 != "") {
  3043. var str1515 = this.Friday.zhongFu1.join(",");
  3044. var pstr1515 = this.Friday.zhongFu1Ren.join(",");
  3045. }
  3046. // 晚主
  3047. if (this.Friday.wanZu1 != "") {
  3048. var str16 = this.Friday.wanZu1.join(",");
  3049. var pstr16 = this.Friday.wanZu1Ren.join(",");
  3050. }
  3051. // 晚副
  3052. if (this.Friday.wanFu1 != "") {
  3053. var str1616 = this.Friday.wanFu1.join(",");
  3054. var pstr1616 = this.Friday.wanFu1Ren.join(",");
  3055. }
  3056. // 6.早主;
  3057. if (this.Saturday.zaoZu1 != "") {
  3058. var str17 = this.Saturday.zaoZu1.join(",");
  3059. var pstr17 = this.Saturday.zaoZu1Ren.join(",");
  3060. }
  3061. // 早副;
  3062. if (this.Saturday.zaoFu1 != "") {
  3063. var str1717 = this.Saturday.zaoFu1.join(",");
  3064. var pstr1717 = this.Saturday.zaoFu1Ren.join(",");
  3065. }
  3066. // 中主;
  3067. if (this.Saturday.zhongZu1 != "") {
  3068. var str18 = this.Saturday.zhongZu1.join(",");
  3069. var pstr18 = this.Saturday.zhongZu1Ren.join(",");
  3070. }
  3071. // 中副
  3072. if (this.Saturday.zhongFu1 != "") {
  3073. var str1818 = this.Saturday.zhongFu1.join(",");
  3074. var pstr1818 = this.Saturday.zhongFu1Ren.join(",");
  3075. }
  3076. // 晚主
  3077. if (this.Saturday.wanZu1 != "") {
  3078. var str19 = this.Saturday.wanZu1.join(",");
  3079. var pstr19 = this.Saturday.wanZu1Ren.join(",");
  3080. }
  3081. // 晚副
  3082. if (this.Saturday.wanFu1 != "") {
  3083. var str1919 = this.Saturday.wanFu1.join(",");
  3084. var pstr1919 = this.Saturday.wanFu1Ren.join(",");
  3085. }
  3086. // 7.早主;
  3087. if (this.Sunday.zaoZu1 != "") {
  3088. var str20 = this.Sunday.zaoZu1.join(",");
  3089. var pstr20 = this.Sunday.zaoZu1Ren.join(",");
  3090. }
  3091. // 早副;
  3092. if (this.Sunday.zaoFu1 != "") {
  3093. var str2020 = this.Sunday.zaoFu1.join(",");
  3094. var pstr2020 = this.Sunday.zaoFu1Ren.join(",");
  3095. }
  3096. // 中主;
  3097. if (this.Sunday.zhongZu1 != "") {
  3098. var str21 = this.Sunday.zhongZu1.join(",");
  3099. var pstr21 = this.Sunday.zhongZu1Ren.join(",");
  3100. }
  3101. // 中副
  3102. if (this.Sunday.zhongFu1 != "") {
  3103. var str2121 = this.Sunday.zhongFu1.join(",");
  3104. var pstr2121 = this.Sunday.zhongFu1Ren.join(",");
  3105. }
  3106. // 晚主
  3107. if (this.Sunday.wanZu1 != "") {
  3108. var str23 = this.Sunday.wanZu1.join(",");
  3109. var pstr23 = this.Sunday.wanZu1Ren.join(",");
  3110. }
  3111. // 晚副
  3112. if (this.Sunday.wanFu1 != "") {
  3113. var str2323 = this.Sunday.wanFu1.join(",");
  3114. var pstr2323 = this.Sunday.wanFu1Ren.join(",");
  3115. }
  3116. this.arr = [
  3117. {
  3118. cookcategoryIds: str1,
  3119. peopleIds: pstr1,
  3120. // id: this.arr[0].id,
  3121. cookbookRegistration: {
  3122. timelist: "早餐",
  3123. weeklist: "星期一",
  3124. typelist: "主食",
  3125. },
  3126. },
  3127. {
  3128. // id: this.arr[1].id,
  3129. cookcategoryIds: str11,
  3130. peopleIds: pstr11,
  3131. cookbookRegistration: {
  3132. timelist: "早餐",
  3133. weeklist: "星期一",
  3134. typelist: "副食",
  3135. },
  3136. },
  3137. {
  3138. // id: this.arr[2].id,
  3139. cookcategoryIds: str2,
  3140. peopleIds: pstr2,
  3141. cookbookRegistration: {
  3142. timelist: "午餐",
  3143. weeklist: "星期一",
  3144. typelist: "主食",
  3145. },
  3146. },
  3147. {
  3148. // id: this.arr[3].id,
  3149. cookcategoryIds: str22,
  3150. peopleIds: pstr22,
  3151. cookbookRegistration: {
  3152. timelist: "午餐",
  3153. weeklist: "星期一",
  3154. typelist: "副食",
  3155. },
  3156. },
  3157. {
  3158. // id: this.arr[4].id,
  3159. cookcategoryIds: str3,
  3160. peopleIds: pstr3,
  3161. cookbookRegistration: {
  3162. timelist: "晚餐",
  3163. weeklist: "星期一",
  3164. typelist: "主食",
  3165. },
  3166. },
  3167. {
  3168. // id: this.arr[5].id,
  3169. cookcategoryIds: str33,
  3170. peopleIds: pstr33,
  3171. cookbookRegistration: {
  3172. timelist: "晚餐",
  3173. weeklist: "星期一",
  3174. typelist: "副食",
  3175. },
  3176. },
  3177. {
  3178. // id: this.arr[6].id,
  3179. cookcategoryIds: str4,
  3180. peopleIds: pstr4,
  3181. cookbookRegistration: {
  3182. timelist: "早餐",
  3183. weeklist: "星期二",
  3184. typelist: "主食",
  3185. },
  3186. },
  3187. {
  3188. // id: this.arr[7].id,
  3189. cookcategoryIds: str44,
  3190. peopleIds: pstr44,
  3191. cookbookRegistration: {
  3192. timelist: "早餐",
  3193. weeklist: "星期二",
  3194. typelist: "副食",
  3195. },
  3196. },
  3197. {
  3198. // id: this.arr[8].id,
  3199. cookcategoryIds: str5,
  3200. peopleIds: pstr5,
  3201. cookbookRegistration: {
  3202. timelist: "午餐",
  3203. weeklist: "星期二",
  3204. typelist: "主食",
  3205. },
  3206. },
  3207. {
  3208. // id: this.arr[9].id,
  3209. cookcategoryIds: str55,
  3210. peopleIds: pstr55,
  3211. cookbookRegistration: {
  3212. timelist: "午餐",
  3213. weeklist: "星期二",
  3214. typelist: "副食",
  3215. },
  3216. },
  3217. {
  3218. // id: this.arr[10].id,
  3219. cookcategoryIds: str6,
  3220. peopleIds: pstr6,
  3221. cookbookRegistration: {
  3222. timelist: "晚餐",
  3223. weeklist: "星期二",
  3224. typelist: "主食",
  3225. },
  3226. },
  3227. {
  3228. // id: this.arr[11].id,
  3229. cookcategoryIds: str66,
  3230. peopleIds: pstr66,
  3231. cookbookRegistration: {
  3232. timelist: "晚餐",
  3233. weeklist: "星期二",
  3234. typelist: "副食",
  3235. },
  3236. },
  3237. {
  3238. // id: this.arr[12].id,
  3239. cookcategoryIds: str7,
  3240. peopleIds: pstr7,
  3241. cookbookRegistration: {
  3242. timelist: "早餐",
  3243. weeklist: "星期三",
  3244. typelist: "主食",
  3245. },
  3246. },
  3247. {
  3248. // id: this.arr[13].id,
  3249. cookcategoryIds: str77,
  3250. peopleIds: pstr77,
  3251. cookbookRegistration: {
  3252. timelist: "早餐",
  3253. weeklist: "星期三",
  3254. typelist: "副食",
  3255. },
  3256. },
  3257. {
  3258. // id: this.arr[14].id,
  3259. cookcategoryIds: str8,
  3260. peopleIds: pstr8,
  3261. cookbookRegistration: {
  3262. timelist: "午餐",
  3263. weeklist: "星期三",
  3264. typelist: "主食",
  3265. },
  3266. },
  3267. {
  3268. // id: this.arr[15].id,
  3269. cookcategoryIds: str88,
  3270. peopleIds: pstr88,
  3271. cookbookRegistration: {
  3272. timelist: "午餐",
  3273. weeklist: "星期三",
  3274. typelist: "副食",
  3275. },
  3276. },
  3277. {
  3278. // id: this.arr[16].id,
  3279. cookcategoryIds: str9,
  3280. peopleIds: pstr9,
  3281. cookbookRegistration: {
  3282. timelist: "晚餐",
  3283. weeklist: "星期三",
  3284. typelist: "主食",
  3285. },
  3286. },
  3287. {
  3288. // id: this.arr[17].id,
  3289. cookcategoryIds: str99,
  3290. peopleIds: pstr99,
  3291. cookbookRegistration: {
  3292. timelist: "晚餐",
  3293. weeklist: "星期三",
  3294. typelist: "副食",
  3295. },
  3296. },
  3297. {
  3298. // id: this.arr[18].id,
  3299. cookcategoryIds: str10,
  3300. peopleIds: pstr10,
  3301. cookbookRegistration: {
  3302. timelist: "早餐",
  3303. weeklist: "星期四",
  3304. typelist: "主食",
  3305. },
  3306. },
  3307. {
  3308. // id: this.arr[19].id,
  3309. cookcategoryIds: str1010,
  3310. peopleIds: pstr1010,
  3311. cookbookRegistration: {
  3312. timelist: "早餐",
  3313. weeklist: "星期四",
  3314. typelist: "副食",
  3315. },
  3316. },
  3317. {
  3318. // id: this.arr[20].id,
  3319. cookcategoryIds: str12,
  3320. peopleIds: pstr12,
  3321. cookbookRegistration: {
  3322. timelist: "午餐",
  3323. weeklist: "星期四",
  3324. typelist: "主食",
  3325. },
  3326. },
  3327. {
  3328. // id: this.arr[21].id,
  3329. cookcategoryIds: str1212,
  3330. peopleIds: pstr1212,
  3331. cookbookRegistration: {
  3332. timelist: "午餐",
  3333. weeklist: "星期四",
  3334. typelist: "副食",
  3335. },
  3336. },
  3337. {
  3338. // id: this.arr[22].id,
  3339. cookcategoryIds: str13,
  3340. peopleIds: pstr13,
  3341. cookbookRegistration: {
  3342. timelist: "晚餐",
  3343. weeklist: "星期四",
  3344. typelist: "主食",
  3345. },
  3346. },
  3347. {
  3348. // id: this.arr[23].id,
  3349. cookcategoryIds: str1313,
  3350. peopleIds: pstr1313,
  3351. cookbookRegistration: {
  3352. timelist: "晚餐",
  3353. weeklist: "星期四",
  3354. typelist: "副食",
  3355. },
  3356. },
  3357. {
  3358. // id: this.arr[24].id,
  3359. cookcategoryIds: str14,
  3360. peopleIds: pstr14,
  3361. cookbookRegistration: {
  3362. timelist: "早餐",
  3363. weeklist: "星期五",
  3364. typelist: "主食",
  3365. },
  3366. },
  3367. {
  3368. // id: this.arr[25].id,
  3369. cookcategoryIds: str1414,
  3370. peopleIds: pstr1414,
  3371. cookbookRegistration: {
  3372. timelist: "早餐",
  3373. weeklist: "星期五",
  3374. typelist: "副食",
  3375. },
  3376. },
  3377. {
  3378. // id: this.arr[26].id,
  3379. cookcategoryIds: str15,
  3380. peopleIds: pstr15,
  3381. cookbookRegistration: {
  3382. timelist: "午餐",
  3383. weeklist: "星期五",
  3384. typelist: "主食",
  3385. },
  3386. },
  3387. {
  3388. // id: this.arr[27].id,
  3389. cookcategoryIds: str1515,
  3390. peopleIds: pstr1515,
  3391. cookbookRegistration: {
  3392. timelist: "午餐",
  3393. weeklist: "星期五",
  3394. typelist: "副食",
  3395. },
  3396. },
  3397. {
  3398. // id: this.arr[28].id,
  3399. cookcategoryIds: str16,
  3400. peopleIds: pstr16,
  3401. cookbookRegistration: {
  3402. timelist: "晚餐",
  3403. weeklist: "星期五",
  3404. typelist: "主食",
  3405. },
  3406. },
  3407. {
  3408. // id: this.arr[29].id,
  3409. cookcategoryIds: str1616,
  3410. peopleIds: pstr1616,
  3411. cookbookRegistration: {
  3412. timelist: "晚餐",
  3413. weeklist: "星期五",
  3414. typelist: "副食",
  3415. },
  3416. },
  3417. {
  3418. // id: this.arr[30].id,
  3419. cookcategoryIds: str17,
  3420. peopleIds: pstr17,
  3421. cookbookRegistration: {
  3422. timelist: "早餐",
  3423. weeklist: "星期六",
  3424. typelist: "主食",
  3425. },
  3426. },
  3427. {
  3428. // id: this.arr[31].id,
  3429. cookcategoryIds: str1717,
  3430. peopleIds: pstr1717,
  3431. cookbookRegistration: {
  3432. timelist: "早餐",
  3433. weeklist: "星期六",
  3434. typelist: "副食",
  3435. },
  3436. },
  3437. {
  3438. // id: this.arr[32].id,
  3439. cookcategoryIds: str18,
  3440. peopleIds: pstr18,
  3441. cookbookRegistration: {
  3442. timelist: "午餐",
  3443. weeklist: "星期六",
  3444. typelist: "主食",
  3445. },
  3446. },
  3447. {
  3448. // id: this.arr[33].id,
  3449. cookcategoryIds: str1818,
  3450. peopleIds: pstr1818,
  3451. cookbookRegistration: {
  3452. timelist: "午餐",
  3453. weeklist: "星期六",
  3454. typelist: "副食",
  3455. },
  3456. },
  3457. {
  3458. // id: this.arr[34].id,
  3459. cookcategoryIds: str19,
  3460. peopleIds: pstr19,
  3461. cookbookRegistration: {
  3462. timelist: "晚餐",
  3463. weeklist: "星期六",
  3464. typelist: "主食",
  3465. },
  3466. },
  3467. {
  3468. // id: this.arr[35].id,
  3469. cookcategoryIds: str1919,
  3470. peopleIds: pstr1919,
  3471. cookbookRegistration: {
  3472. timelist: "晚餐",
  3473. weeklist: "星期六",
  3474. typelist: "副食",
  3475. },
  3476. },
  3477. {
  3478. // id: this.arr[36].id,
  3479. cookcategoryIds: str20,
  3480. peopleIds: pstr20,
  3481. cookbookRegistration: {
  3482. timelist: "早餐",
  3483. weeklist: "星期日",
  3484. typelist: "主食",
  3485. },
  3486. },
  3487. {
  3488. // id: this.arr[37].id,
  3489. cookcategoryIds: str2020,
  3490. peopleIds: pstr2020,
  3491. cookbookRegistration: {
  3492. timelist: "早餐",
  3493. weeklist: "星期日",
  3494. typelist: "副食",
  3495. },
  3496. },
  3497. {
  3498. // id: this.arr[38].id,
  3499. cookcategoryIds: str21,
  3500. peopleIds: pstr21,
  3501. cookbookRegistration: {
  3502. timelist: "午餐",
  3503. weeklist: "星期日",
  3504. typelist: "主食",
  3505. },
  3506. },
  3507. {
  3508. // id: this.arr[39].id,
  3509. cookcategoryIds: str2121,
  3510. peopleIds: pstr2121,
  3511. cookbookRegistration: {
  3512. timelist: "午餐",
  3513. weeklist: "星期日",
  3514. typelist: "副食",
  3515. },
  3516. },
  3517. {
  3518. // id: this.arr[40].id,
  3519. cookcategoryIds: str23,
  3520. peopleIds: pstr23,
  3521. cookbookRegistration: {
  3522. timelist: "晚餐",
  3523. weeklist: "星期日",
  3524. typelist: "主食",
  3525. },
  3526. },
  3527. {
  3528. // id: this.arr[41].id,
  3529. cookcategoryIds: str2323,
  3530. peopleIds: pstr2323,
  3531. cookbookRegistration: {
  3532. timelist: "晚餐",
  3533. weeklist: "星期日",
  3534. typelist: "副食",
  3535. },
  3536. },
  3537. ];
  3538. this.form.cookbookRegistrations = this.arr;
  3539. updateBdglcookbook(this.form).then((response) => {
  3540. this.$modal.msgSuccess("修改成功");
  3541. this.open = false;
  3542. this.getList();
  3543. });
  3544. } else {
  3545. // 1.早主;
  3546. if (this.Monday.zaoZu1 != "") {
  3547. var str1 = this.Monday.zaoZu1.join(",");
  3548. var pstr1 = this.Monday.zaoZu1Ren.join(",");
  3549. }
  3550. // 早副;
  3551. if (this.Monday.zaoFu1 != "") {
  3552. var str11 = this.Monday.zaoFu1.join(",");
  3553. var pstr11 = this.Monday.zaoFu1Ren.join(",");
  3554. }
  3555. // 中主;
  3556. if (this.Monday.zhongZu1 != "") {
  3557. var str2 = this.Monday.zhongZu1.join(",");
  3558. var pstr2 = this.Monday.zhongZu1Ren.join(",");
  3559. }
  3560. // 中副
  3561. if (this.Monday.zhongFu1 != "") {
  3562. var str22 = this.Monday.zhongFu1.join(",");
  3563. var pstr22 = this.Monday.zhongFu1Ren.join(",");
  3564. }
  3565. // 晚主
  3566. if (this.Monday.wanZu1 != "") {
  3567. var str3 = this.Monday.wanZu1.join(",");
  3568. var pstr3 = this.Monday.wanZu1Ren.join(",");
  3569. }
  3570. // 晚副
  3571. if (this.Monday.wanFu1 != "") {
  3572. var str33 = this.Monday.wanFu1.join(",");
  3573. var pstr33 = this.Monday.wanFu1Ren.join(",");
  3574. }
  3575. // 2.早主;
  3576. if (this.Tuesday.zaoZu1 != "") {
  3577. var str4 = this.Tuesday.zaoZu1.join(",");
  3578. var pstr4 = this.Tuesday.zaoZu1Ren.join(",");
  3579. }
  3580. // 早副;
  3581. if (this.Tuesday.zaoFu1 != "") {
  3582. var str44 = this.Tuesday.zaoFu1.join(",");
  3583. var pstr44 = this.Tuesday.zaoFu1Ren.join(",");
  3584. }
  3585. // 中主;
  3586. if (this.Tuesday.zhongZu1 != "") {
  3587. var str5 = this.Tuesday.zhongZu1.join(",");
  3588. var pstr5 = this.Tuesday.zhongZu1Ren.join(",");
  3589. }
  3590. // 中副
  3591. if (this.Tuesday.zhongFu1 != "") {
  3592. var str55 = this.Tuesday.zhongFu1.join(",");
  3593. var pstr55 = this.Tuesday.zhongFu1Ren.join(",");
  3594. }
  3595. // 晚主
  3596. if (this.Tuesday.wanZu1 != "") {
  3597. var str6 = this.Tuesday.wanZu1.join(",");
  3598. var pstr6 = this.Tuesday.wanZu1Ren.join(",");
  3599. }
  3600. // 晚副
  3601. if (this.Tuesday.wanFu1 != "") {
  3602. var str66 = this.Tuesday.wanFu1.join(",");
  3603. var pstr66 = this.Tuesday.wanFu1Ren.join(",");
  3604. }
  3605. // 3.早主;
  3606. if (this.Wednesday.zaoZu1 != "") {
  3607. var str7 = this.Wednesday.zaoZu1.join(",");
  3608. var pstr7 = this.Wednesday.zaoZu1Ren.join(",");
  3609. }
  3610. // 早副;
  3611. if (this.Wednesday.zaoFu1 != "") {
  3612. var str77 = this.Wednesday.zaoFu1.join(",");
  3613. var pstr77 = this.Wednesday.zaoFu1Ren.join(",");
  3614. }
  3615. // 中主;
  3616. if (this.Wednesday.zhongZu1 != "") {
  3617. var str8 = this.Wednesday.zhongZu1.join(",");
  3618. var pstr8 = this.Wednesday.zhongZu1Ren.join(",");
  3619. }
  3620. // 中副
  3621. if (this.Wednesday.zhongFu1 != "") {
  3622. var str88 = this.Wednesday.zhongFu1.join(",");
  3623. var pstr88 = this.Wednesday.zhongFu1Ren.join(",");
  3624. }
  3625. // 晚主
  3626. if (this.Wednesday.wanZu1 != "") {
  3627. var str9 = this.Wednesday.wanZu1.join(",");
  3628. var pstr9 = this.Wednesday.wanZu1Ren.join(",");
  3629. }
  3630. // 晚副
  3631. if (this.Wednesday.wanFu1 != "") {
  3632. var str99 = this.Wednesday.wanFu1.join(",");
  3633. var pstr99 = this.Wednesday.wanFu1Ren.join(",");
  3634. }
  3635. // 4.早主;
  3636. if (this.Thursday.zaoZu1 != "") {
  3637. var str10 = this.Thursday.zaoZu1.join(",");
  3638. var pstr10 = this.Thursday.zaoZu1Ren.join(",");
  3639. }
  3640. // 早副;
  3641. if (this.Thursday.zaoFu1 != "") {
  3642. var str1010 = this.Thursday.zaoFu1.join(",");
  3643. var pstr1010 = this.Thursday.zaoFu1Ren.join(",");
  3644. }
  3645. // 中主;
  3646. if (this.Thursday.zhongZu1 != "") {
  3647. var str12 = this.Thursday.zhongZu1.join(",");
  3648. var pstr12 = this.Thursday.zhongZu1Ren.join(",");
  3649. }
  3650. // 中副
  3651. if (this.Thursday.zhongFu1 != "") {
  3652. var str1212 = this.Thursday.zhongFu1.join(",");
  3653. var pstr1212 = this.Thursday.zhongFu1Ren.join(",");
  3654. }
  3655. // 晚主
  3656. if (this.Thursday.wanZu1 != "") {
  3657. var str13 = this.Thursday.wanZu1.join(",");
  3658. var pstr13 = this.Thursday.wanZu1Ren.join(",");
  3659. }
  3660. // 晚副
  3661. if (this.Thursday.wanFu1 != "") {
  3662. var str1313 = this.Thursday.wanFu1.join(",");
  3663. var pstr1313 = this.Thursday.wanFu1Ren.join(",");
  3664. }
  3665. // 5.早主;
  3666. if (this.Friday.zaoZu1 != "") {
  3667. var str14 = this.Friday.zaoZu1.join(",");
  3668. var pstr14 = this.Friday.zaoZu1Ren.join(",");
  3669. }
  3670. // 早副;
  3671. if (this.Friday.zaoFu1 != "") {
  3672. var str1414 = this.Friday.zaoFu1.join(",");
  3673. var pstr1414 = this.Friday.zaoFu1Ren.join(",");
  3674. }
  3675. // 中主;
  3676. if (this.Friday.zhongZu1 != "") {
  3677. var str15 = this.Friday.zhongZu1.join(",");
  3678. var pstr15 = this.Friday.zhongZu1Ren.join(",");
  3679. }
  3680. // 中副
  3681. if (this.Friday.zhongFu1 != "") {
  3682. var str1515 = this.Friday.zhongFu1.join(",");
  3683. var pstr1515 = this.Friday.zhongFu1Ren.join(",");
  3684. }
  3685. // 晚主
  3686. if (this.Friday.wanZu1 != "") {
  3687. var str16 = this.Friday.wanZu1.join(",");
  3688. var pstr16 = this.Friday.wanZu1Ren.join(",");
  3689. }
  3690. // 晚副
  3691. if (this.Friday.wanFu1 != "") {
  3692. var str1616 = this.Friday.wanFu1.join(",");
  3693. var pstr1616 = this.Friday.wanFu1Ren.join(",");
  3694. }
  3695. // 6.早主;
  3696. if (this.Saturday.zaoZu1 != "") {
  3697. var str17 = this.Saturday.zaoZu1.join(",");
  3698. var pstr17 = this.Saturday.zaoZu1Ren.join(",");
  3699. }
  3700. // 早副;
  3701. if (this.Saturday.zaoFu1 != "") {
  3702. var str1717 = this.Saturday.zaoFu1.join(",");
  3703. var pstr1717 = this.Saturday.zaoFu1Ren.join(",");
  3704. }
  3705. // 中主;
  3706. if (this.Saturday.zhongZu1 != "") {
  3707. var str18 = this.Saturday.zhongZu1.join(",");
  3708. var pstr18 = this.Saturday.zhongZu1Ren.join(",");
  3709. }
  3710. // 中副
  3711. if (this.Saturday.zhongFu1 != "") {
  3712. var str1818 = this.Saturday.zhongFu1.join(",");
  3713. var pstr1818 = this.Saturday.zhongFu1Ren.join(",");
  3714. }
  3715. // 晚主
  3716. if (this.Saturday.wanZu1 != "") {
  3717. var str19 = this.Saturday.wanZu1.join(",");
  3718. var pstr19 = this.Saturday.wanZu1Ren.join(",");
  3719. }
  3720. // 晚副
  3721. if (this.Saturday.wanFu1 != "") {
  3722. var str1919 = this.Saturday.wanFu1.join(",");
  3723. var pstr1919 = this.Saturday.wanFu1Ren.join(",");
  3724. }
  3725. // 7.早主;
  3726. if (this.Sunday.zaoZu1 != "") {
  3727. var str20 = this.Sunday.zaoZu1.join(",");
  3728. var pstr20 = this.Sunday.zaoZu1Ren.join(",");
  3729. }
  3730. // 早副;
  3731. if (this.Sunday.zaoFu1 != "") {
  3732. var str2020 = this.Sunday.zaoFu1.join(",");
  3733. var pstr2020 = this.Sunday.zaoFu1Ren.join(",");
  3734. }
  3735. // 中主;
  3736. if (this.Sunday.zhongZu1 != "") {
  3737. var str21 = this.Sunday.zhongZu1.join(",");
  3738. var pstr21 = this.Sunday.zhongZu1Ren.join(",");
  3739. }
  3740. // 中副
  3741. if (this.Sunday.zhongFu1 != "") {
  3742. var str2121 = this.Sunday.zhongFu1.join(",");
  3743. var pstr2121 = this.Sunday.zhongFu1Ren.join(",");
  3744. }
  3745. // 晚主
  3746. if (this.Sunday.wanZu1 != "") {
  3747. var str23 = this.Sunday.wanZu1.join(",");
  3748. var pstr23 = this.Sunday.wanZu1Ren.join(",");
  3749. }
  3750. // 晚副
  3751. if (this.Sunday.wanFu1 != "") {
  3752. var str2323 = this.Sunday.wanFu1.join(",");
  3753. var pstr2323 = this.Sunday.wanFu1Ren.join(",");
  3754. }
  3755. var contentsShi = [
  3756. {
  3757. cookcategoryIds: str1,
  3758. peopleIds: pstr1,
  3759. cookbookRegistration: {
  3760. timelist: "早餐",
  3761. weeklist: "星期一",
  3762. typelist: "主食",
  3763. },
  3764. },
  3765. {
  3766. cookcategoryIds: str11,
  3767. peopleIds: pstr11,
  3768. cookbookRegistration: {
  3769. timelist: "早餐",
  3770. weeklist: "星期一",
  3771. typelist: "副食",
  3772. },
  3773. },
  3774. {
  3775. cookcategoryIds: str2,
  3776. peopleIds: pstr2,
  3777. cookbookRegistration: {
  3778. timelist: "午餐",
  3779. weeklist: "星期一",
  3780. typelist: "主食",
  3781. },
  3782. },
  3783. {
  3784. cookcategoryIds: str22,
  3785. peopleIds: pstr22,
  3786. cookbookRegistration: {
  3787. timelist: "午餐",
  3788. weeklist: "星期一",
  3789. typelist: "副食",
  3790. },
  3791. },
  3792. {
  3793. cookcategoryIds: str3,
  3794. peopleIds: pstr3,
  3795. cookbookRegistration: {
  3796. timelist: "晚餐",
  3797. weeklist: "星期一",
  3798. typelist: "主食",
  3799. },
  3800. },
  3801. {
  3802. cookcategoryIds: str33,
  3803. peopleIds: pstr33,
  3804. cookbookRegistration: {
  3805. timelist: "晚餐",
  3806. weeklist: "星期一",
  3807. typelist: "副食",
  3808. },
  3809. },
  3810. {
  3811. cookcategoryIds: str4,
  3812. peopleIds: pstr4,
  3813. cookbookRegistration: {
  3814. timelist: "早餐",
  3815. weeklist: "星期二",
  3816. typelist: "主食",
  3817. },
  3818. },
  3819. {
  3820. cookcategoryIds: str44,
  3821. peopleIds: pstr44,
  3822. cookbookRegistration: {
  3823. timelist: "早餐",
  3824. weeklist: "星期二",
  3825. typelist: "副食",
  3826. },
  3827. },
  3828. {
  3829. cookcategoryIds: str5,
  3830. peopleIds: pstr5,
  3831. cookbookRegistration: {
  3832. timelist: "午餐",
  3833. weeklist: "星期二",
  3834. typelist: "主食",
  3835. },
  3836. },
  3837. {
  3838. cookcategoryIds: str55,
  3839. peopleIds: pstr55,
  3840. cookbookRegistration: {
  3841. timelist: "午餐",
  3842. weeklist: "星期二",
  3843. typelist: "副食",
  3844. },
  3845. },
  3846. {
  3847. cookcategoryIds: str6,
  3848. peopleIds: pstr6,
  3849. cookbookRegistration: {
  3850. timelist: "晚餐",
  3851. weeklist: "星期二",
  3852. typelist: "主食",
  3853. },
  3854. },
  3855. {
  3856. cookcategoryIds: str66,
  3857. peopleIds: pstr66,
  3858. cookbookRegistration: {
  3859. timelist: "晚餐",
  3860. weeklist: "星期二",
  3861. typelist: "副食",
  3862. },
  3863. },
  3864. {
  3865. cookcategoryIds: str7,
  3866. peopleIds: pstr7,
  3867. cookbookRegistration: {
  3868. timelist: "早餐",
  3869. weeklist: "星期三",
  3870. typelist: "主食",
  3871. },
  3872. },
  3873. {
  3874. cookcategoryIds: str77,
  3875. peopleIds: pstr77,
  3876. cookbookRegistration: {
  3877. timelist: "早餐",
  3878. weeklist: "星期三",
  3879. typelist: "副食",
  3880. },
  3881. },
  3882. {
  3883. cookcategoryIds: str8,
  3884. peopleIds: pstr8,
  3885. cookbookRegistration: {
  3886. timelist: "午餐",
  3887. weeklist: "星期三",
  3888. typelist: "主食",
  3889. },
  3890. },
  3891. {
  3892. cookcategoryIds: str88,
  3893. peopleIds: pstr88,
  3894. cookbookRegistration: {
  3895. timelist: "午餐",
  3896. weeklist: "星期三",
  3897. typelist: "副食",
  3898. },
  3899. },
  3900. {
  3901. cookcategoryIds: str9,
  3902. peopleIds: pstr9,
  3903. cookbookRegistration: {
  3904. timelist: "晚餐",
  3905. weeklist: "星期三",
  3906. typelist: "主食",
  3907. },
  3908. },
  3909. {
  3910. cookcategoryIds: str99,
  3911. peopleIds: pstr99,
  3912. cookbookRegistration: {
  3913. timelist: "晚餐",
  3914. weeklist: "星期三",
  3915. typelist: "副食",
  3916. },
  3917. },
  3918. {
  3919. cookcategoryIds: str10,
  3920. peopleIds: pstr10,
  3921. cookbookRegistration: {
  3922. timelist: "早餐",
  3923. weeklist: "星期四",
  3924. typelist: "主食",
  3925. },
  3926. },
  3927. {
  3928. cookcategoryIds: str1010,
  3929. peopleIds: pstr1010,
  3930. cookbookRegistration: {
  3931. timelist: "早餐",
  3932. weeklist: "星期四",
  3933. typelist: "副食",
  3934. },
  3935. },
  3936. {
  3937. cookcategoryIds: str12,
  3938. peopleIds: pstr12,
  3939. cookbookRegistration: {
  3940. timelist: "午餐",
  3941. weeklist: "星期四",
  3942. typelist: "主食",
  3943. },
  3944. },
  3945. {
  3946. cookcategoryIds: str1212,
  3947. peopleIds: pstr1212,
  3948. cookbookRegistration: {
  3949. timelist: "午餐",
  3950. weeklist: "星期四",
  3951. typelist: "副食",
  3952. },
  3953. },
  3954. {
  3955. cookcategoryIds: str13,
  3956. peopleIds: pstr13,
  3957. cookbookRegistration: {
  3958. timelist: "晚餐",
  3959. weeklist: "星期四",
  3960. typelist: "主食",
  3961. },
  3962. },
  3963. {
  3964. cookcategoryIds: str1313,
  3965. peopleIds: pstr1313,
  3966. cookbookRegistration: {
  3967. timelist: "晚餐",
  3968. weeklist: "星期四",
  3969. typelist: "副食",
  3970. },
  3971. },
  3972. {
  3973. cookcategoryIds: str14,
  3974. peopleIds: pstr14,
  3975. cookbookRegistration: {
  3976. timelist: "早餐",
  3977. weeklist: "星期五",
  3978. typelist: "主食",
  3979. },
  3980. },
  3981. {
  3982. cookcategoryIds: str1414,
  3983. peopleIds: pstr1414,
  3984. cookbookRegistration: {
  3985. timelist: "早餐",
  3986. weeklist: "星期五",
  3987. typelist: "副食",
  3988. },
  3989. },
  3990. {
  3991. cookcategoryIds: str15,
  3992. peopleIds: pstr15,
  3993. cookbookRegistration: {
  3994. timelist: "午餐",
  3995. weeklist: "星期五",
  3996. typelist: "主食",
  3997. },
  3998. },
  3999. {
  4000. cookcategoryIds: str1515,
  4001. peopleIds: pstr1515,
  4002. cookbookRegistration: {
  4003. timelist: "午餐",
  4004. weeklist: "星期五",
  4005. typelist: "副食",
  4006. },
  4007. },
  4008. {
  4009. cookcategoryIds: str16,
  4010. peopleIds: pstr16,
  4011. cookbookRegistration: {
  4012. timelist: "晚餐",
  4013. weeklist: "星期五",
  4014. typelist: "主食",
  4015. },
  4016. },
  4017. {
  4018. cookcategoryIds: str1616,
  4019. peopleIds: pstr1616,
  4020. cookbookRegistration: {
  4021. timelist: "晚餐",
  4022. weeklist: "星期五",
  4023. typelist: "副食",
  4024. },
  4025. },
  4026. {
  4027. cookcategoryIds: str17,
  4028. peopleIds: pstr17,
  4029. cookbookRegistration: {
  4030. timelist: "早餐",
  4031. weeklist: "星期六",
  4032. typelist: "主食",
  4033. },
  4034. },
  4035. {
  4036. cookcategoryIds: str1717,
  4037. peopleIds: pstr1717,
  4038. cookbookRegistration: {
  4039. timelist: "早餐",
  4040. weeklist: "星期六",
  4041. typelist: "副食",
  4042. },
  4043. },
  4044. {
  4045. cookcategoryIds: str18,
  4046. peopleIds: pstr18,
  4047. cookbookRegistration: {
  4048. timelist: "午餐",
  4049. weeklist: "星期六",
  4050. typelist: "主食",
  4051. },
  4052. },
  4053. {
  4054. cookcategoryIds: str1818,
  4055. peopleIds: pstr1818,
  4056. cookbookRegistration: {
  4057. timelist: "午餐",
  4058. weeklist: "星期六",
  4059. typelist: "副食",
  4060. },
  4061. },
  4062. {
  4063. cookcategoryIds: str19,
  4064. peopleIds: pstr19,
  4065. cookbookRegistration: {
  4066. timelist: "晚餐",
  4067. weeklist: "星期六",
  4068. typelist: "主食",
  4069. },
  4070. },
  4071. {
  4072. cookcategoryIds: str1919,
  4073. peopleIds: pstr1919,
  4074. cookbookRegistration: {
  4075. timelist: "晚餐",
  4076. weeklist: "星期六",
  4077. typelist: "副食",
  4078. },
  4079. },
  4080. {
  4081. cookcategoryIds: str20,
  4082. peopleIds: pstr20,
  4083. cookbookRegistration: {
  4084. timelist: "早餐",
  4085. weeklist: "星期日",
  4086. typelist: "主食",
  4087. },
  4088. },
  4089. {
  4090. cookcategoryIds: str2020,
  4091. peopleIds: pstr2020,
  4092. cookbookRegistration: {
  4093. timelist: "早餐",
  4094. weeklist: "星期日",
  4095. typelist: "副食",
  4096. },
  4097. },
  4098. {
  4099. cookcategoryIds: str21,
  4100. peopleIds: pstr21,
  4101. cookbookRegistration: {
  4102. timelist: "午餐",
  4103. weeklist: "星期日",
  4104. typelist: "主食",
  4105. },
  4106. },
  4107. {
  4108. cookcategoryIds: str2121,
  4109. peopleIds: pstr2121,
  4110. cookbookRegistration: {
  4111. timelist: "午餐",
  4112. weeklist: "星期日",
  4113. typelist: "副食",
  4114. },
  4115. },
  4116. {
  4117. cookcategoryIds: str23,
  4118. peopleIds: pstr23,
  4119. cookbookRegistration: {
  4120. timelist: "晚餐",
  4121. weeklist: "星期日",
  4122. typelist: "主食",
  4123. },
  4124. },
  4125. {
  4126. cookcategoryIds: str2323,
  4127. peopleIds: pstr2323,
  4128. cookbookRegistration: {
  4129. timelist: "晚餐",
  4130. weeklist: "星期日",
  4131. typelist: "副食",
  4132. },
  4133. },
  4134. ];
  4135. this.form.cookbookRegistrations = contentsShi;
  4136. addBdglcookbook(this.form).then((response) => {
  4137. this.$modal.msgSuccess("新增成功");
  4138. this.open = false;
  4139. this.getList();
  4140. });
  4141. }
  4142. }
  4143. });
  4144. },
  4145. /** 删除按钮操作 */
  4146. handleDelete(row) {
  4147. const ids = row.id || this.ids;
  4148. this.$modal
  4149. // .confirm('是否确认删除一周食谱编号为"' + ids + '"的数据项?')
  4150. .confirm("是否确认删除该数据?")
  4151. .then(function () {
  4152. return delBdglcookbook(ids);
  4153. })
  4154. .then(() => {
  4155. this.getList();
  4156. this.$modal.msgSuccess("删除成功");
  4157. })
  4158. .catch(() => {});
  4159. },
  4160. /** 导出按钮操作 */
  4161. handleExport() {
  4162. const queryParams = this.queryParams;
  4163. this.$modal
  4164. .confirm("是否确认导出所有一周食谱数据项?")
  4165. .then(() => {
  4166. this.exportLoading = true;
  4167. return exportBdglcookbook(queryParams);
  4168. })
  4169. .then((response) => {
  4170. this.$download.name(response.msg);
  4171. this.exportLoading = false;
  4172. })
  4173. .catch(() => {});
  4174. },
  4175. },
  4176. };
  4177. </script>
  4178. <style scoped>
  4179. /* 对话框背景颜色 */
  4180. ::v-deep .el-dialog {
  4181. background: #004d86 !important;
  4182. }
  4183. ::v-deep .el-textarea__inner {
  4184. width: 920px;
  4185. height: 104px;
  4186. }
  4187. ::v-deep .el-dialog__header {
  4188. border-bottom: 1px solid #718a9d;
  4189. }
  4190. ::v-deep .el-dialog__title {
  4191. color: #fff;
  4192. font: 18px;
  4193. }
  4194. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  4195. color: #fff;
  4196. }
  4197. ::v-deep .el-form-item__label {
  4198. font: 16px;
  4199. color: #fff;
  4200. width: 100px !important;
  4201. }
  4202. ::v-deep .el-input__inner {
  4203. /* width: 200px !important;
  4204. height: 36px; */
  4205. background: transparent;
  4206. color: #fff;
  4207. border-color: #fff !important;
  4208. }
  4209. /* 单位框背景颜色 */
  4210. ::v-deep .vue-treeselect__control {
  4211. background: #004d86 !important;
  4212. }
  4213. /* 基本信息背景 */
  4214. .jiben {
  4215. width: 920px;
  4216. height: 32px;
  4217. background-image: url(../../../images/小标题底.png);
  4218. margin-bottom: 25px;
  4219. color: #fff;
  4220. padding-left: 16px;
  4221. line-height: 32px;
  4222. }
  4223. /*调整表单间距 */
  4224. ::v-deep .el-form-item__content {
  4225. width: 200px;
  4226. }
  4227. ::v-deep .el-input__inner {
  4228. cursor: pointer !important;
  4229. }
  4230. ::v-deep .el-dialog__body {
  4231. /* margin: 10px 30px 20px 50px; */
  4232. margin: 10px 0px 20px 62px;
  4233. padding-top: 20px !important;
  4234. padding-right: 0px !important;
  4235. padding-bottom: 0px !important;
  4236. padding-left: 0px !important;
  4237. box-sizing: border-box;
  4238. }
  4239. .contents {
  4240. padding: 0px 40px !important;
  4241. }
  4242. /* 下拉菜单 */
  4243. .el-dropdown-link {
  4244. cursor: pointer;
  4245. color: #409eff;
  4246. }
  4247. .el-icon-arrow-down {
  4248. font-size: 12px;
  4249. }
  4250. /* 刷新图标 */
  4251. /* .el-icon-refresh {
  4252. width: 76px;
  4253. height: 36px;
  4254. color: #fff;
  4255. background-color: #1d96ff !important;
  4256. border-radius: 4px;
  4257. border: none;
  4258. margin-left: 20px;
  4259. font-size: 14px;
  4260. } */
  4261. /* 下拉菜单字体/背景颜色 */
  4262. .el-select-dropdown__item.hover,
  4263. .el-select-dropdown__item:hover {
  4264. background-color: #004d86;
  4265. color: #fff;
  4266. }
  4267. .el-select-dropdown__item {
  4268. color: #fff;
  4269. }
  4270. /* 时间选择 */
  4271. ::v-deep .el-input--small .el-input__inner {
  4272. width: 200px;
  4273. height: 36px;
  4274. line-height: 36px;
  4275. }
  4276. .el-date-editor.el-input {
  4277. width: 200px;
  4278. height: 36px;
  4279. line-height: 36px;
  4280. }
  4281. ::v-deep .el-date-editor.el-input .el-input__inner {
  4282. height: 36px;
  4283. line-height: 36px;
  4284. }
  4285. /* 单位下拉菜单选中字体颜色 */
  4286. ::v-deep .vue-treeselect__single-value {
  4287. color: #fff !important;
  4288. }
  4289. /* 分页按钮 */
  4290. ::v-deep .el-pagination.is-background .el-pager li {
  4291. background-color: #004d86;
  4292. color: #fff;
  4293. }
  4294. ::v-deep .el-pagination.is-background .btn-next {
  4295. background-color: #004d86;
  4296. color: #fff;
  4297. }
  4298. /* 表格宽度 */
  4299. table td {
  4300. border-bottom: none !important;
  4301. margin: 0px;
  4302. padding: 0px;
  4303. width: 200px;
  4304. }
  4305. /* 表格下拉 */
  4306. ::v-deep td .el-input__inner {
  4307. background: transparent;
  4308. color: #fff;
  4309. border: none;
  4310. }
  4311. /* ::v-deep .el-dialog__body {
  4312. color: #fff;
  4313. font-size: 14px;
  4314. } */
  4315. ::v-deep .el-input__inner {
  4316. cursor: pointer !important;
  4317. }
  4318. /* 底部确定取消按钮 */
  4319. ::v-deep .el-dialog__footer {
  4320. padding: 18px 42px 30 0px;
  4321. margin-right: 60px;
  4322. }
  4323. /* 增加按钮弹框 */
  4324. ::v-deep .el-dialog {
  4325. width: 1060px !important;
  4326. }
  4327. ::v-deep .el-dialog__body {
  4328. padding: none !important;
  4329. }
  4330. /* 树形下拉背景颜色 */
  4331. /* .el-dialog__body {
  4332. color: #fff !important;
  4333. }
  4334. ::v-deep .vue-treeselect__menu {
  4335. background: #004d86 !important;
  4336. } */
  4337. /* ::v-deep.el-input_inner ::-webkit-input-placeholder{
  4338. font-size:16px;
  4339. color: rgba(255,255,255,0.1) !important;
  4340. } */
  4341. /* 调整输入框提示文字颜色 */
  4342. ::v-deep .vue-treeselect__placeholder {
  4343. color: #bdbdbd4f !important;
  4344. }
  4345. ::v-deep input::-webkit-input-placeholder {
  4346. color: #bdbdbd4f !important;
  4347. }
  4348. ::v-deep input:-moz-placeholder {
  4349. color: #bdbdbd4f !important;
  4350. }
  4351. #chakan /deep/ .el-dialog__body {
  4352. margin: 10px 0px 20px 64px;
  4353. }
  4354. </style>