index.vue 136 KB

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