index.vue 146 KB

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