index.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092
  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. >
  16. <el-option
  17. v-for="(item, i) in deptOptionss"
  18. :key="i"
  19. :label="item.deptName"
  20. :value="item.deptId"
  21. class="input_xiala"
  22. >
  23. </el-option>
  24. </el-select>
  25. </el-form-item> -->
  26. <el-form-item label="" prop="peopleId">
  27. <el-select
  28. v-model="queryParams.peopleId"
  29. placeholder="请选择值班员"
  30. @change="Renyuan"
  31. filterable
  32. class="input_xiala"
  33. >
  34. <el-option
  35. v-for="item in renYuans"
  36. :key="item.id"
  37. :label="item.name"
  38. :value="item.id"
  39. class="input_xiala"
  40. >
  41. </el-option>
  42. </el-select>
  43. </el-form-item>
  44. <el-form-item>
  45. <el-button size="btr" @click="resetQuery" icon="el-icon-refresh"
  46. >重置</el-button
  47. >
  48. </el-form-item>
  49. </el-form>
  50. <el-row :gutter="10" class="mb8">
  51. <el-col :span="1.5">
  52. <el-button
  53. type="primary"
  54. plain
  55. icon="el-icon-plus"
  56. size="mini"
  57. @click="handleAdd"
  58. v-hasPermi="['grassrootsregistration:bdglfood:add']"
  59. >新增</el-button
  60. >
  61. </el-col>
  62. <!-- <el-col :span="1.5">
  63. <el-button
  64. type="success"
  65. plain
  66. icon="el-icon-edit"
  67. size="mini"
  68. :disabled="single"
  69. @click="handleUpdate"
  70. v-hasPermi="['grassrootsregistration:bdglfood:edit']"
  71. >修改</el-button
  72. >
  73. </el-col>
  74. <el-col :span="1.5">
  75. <el-button
  76. type="danger"
  77. plain
  78. icon="el-icon-delete"
  79. size="mini"
  80. :disabled="multiple"
  81. @click="handleDelete"
  82. v-hasPermi="['grassrootsregistration:bdglfood:remove']"
  83. >删除</el-button
  84. >
  85. </el-col>
  86. <el-col :span="1.5">
  87. <el-button
  88. type="warning"
  89. plain
  90. icon="el-icon-download"
  91. size="mini"
  92. :loading="exportLoading"
  93. @click="handleExport"
  94. v-hasPermi="['grassrootsregistration:bdglfood:export']"
  95. >导出</el-button
  96. >
  97. </el-col> -->
  98. <!-- <right-toolbar
  99. :showSearch.sync="showSearch"
  100. @queryTable="getList"
  101. ></right-toolbar> -->
  102. </el-row>
  103. <el-table
  104. v-loading="loading"
  105. :data="bdglfoodList"
  106. @selection-change="handleSelectionChange"
  107. :header-cell-style="{ background: '#003C69', color: 'white' }"
  108. >
  109. <el-table-column type="selection" width="55" align="center" />
  110. <!-- <el-table-column label="序号" align="center" prop="id" /> -->
  111. <el-table-column label="序号" type="index" width="50" align="center">
  112. <template scope="scope">
  113. <span>{{
  114. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  115. }}</span>
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="单位" align="center" prop="unitName" />
  119. <el-table-column label="值班员" align="center" prop="peopleName" />
  120. <!-- <el-table-column label="更新时间" align="center" prop="id" /> -->
  121. <el-table-column
  122. label="登记日期"
  123. align="center"
  124. prop="recordDate"
  125. width="180"
  126. >
  127. <template slot-scope="scope">
  128. <span>{{ parseTime(scope.row.recordDate, "{y}-{m}-{d}") }}</span>
  129. </template>
  130. </el-table-column>
  131. <el-table-column label="经委会主任" align="center" prop="chairmanName" />
  132. <el-table-column label="单位首长" align="center" prop="people1Name" />
  133. <el-table-column
  134. label="操作"
  135. align="center"
  136. class-name="small-padding fixed-width"
  137. width="200"
  138. >
  139. <template slot-scope="scope">
  140. <el-button
  141. size="btk"
  142. type="text"
  143. @click="handleChakan(scope.row)"
  144. v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
  145. ><span class="chakan">查看</span></el-button
  146. >
  147. <el-button
  148. size="btu"
  149. type="text"
  150. @click="handleUpdate(scope.row)"
  151. v-hasPermi="['grassrootsregistration:bdglfood:edit']"
  152. ><span class="edit">修改</span></el-button
  153. >
  154. <el-button
  155. size="btd"
  156. type="text"
  157. @click="handleDelete(scope.row)"
  158. v-hasPermi="['grassrootsregistration:bdglfood:remove']"
  159. ><span class="delete">删除</span></el-button
  160. >
  161. </template>
  162. </el-table-column>
  163. </el-table>
  164. <pagination
  165. v-show="total > 0"
  166. :total="total"
  167. :page.sync="queryParams.pageNum"
  168. :limit.sync="queryParams.pageSize"
  169. @pagination="getList"
  170. />
  171. <!-- 添加或修改伙食管理登记薄对话框 -->
  172. <el-dialog
  173. :title="title"
  174. :visible.sync="open"
  175. width="1016px"
  176. append-to-body
  177. :close-on-click-modal="false"
  178. >
  179. <div class="userAgree">
  180. <el-form
  181. ref="form"
  182. :model="form"
  183. :rules="rules"
  184. label-width="80px"
  185. :inline="true"
  186. >
  187. <div class="jiben">基本信息</div>
  188. <el-form-item label="单位" prop="unitId">
  189. <treeselect
  190. v-model="form.unitId"
  191. :options="deptOptions"
  192. placeholder="请选择单位"
  193. @select="selectPeo"
  194. @open="blurSelect"
  195. />
  196. </el-form-item>
  197. <el-form-item label="值班员" prop="peopleId">
  198. <el-select v-model="form.peopleId" placeholder="请选择值班员">
  199. <el-option
  200. v-for="item in renYuan"
  201. :key="item.id"
  202. :label="item.name"
  203. :value="item.id"
  204. :disabled="item.status == 1"
  205. @click.native="zhiBan(item.name)"
  206. class="input_xiala"
  207. ></el-option>
  208. </el-select>
  209. </el-form-item>
  210. <el-form-item label="登记日期" prop="recordDate">
  211. <el-date-picker
  212. clearable
  213. size="small"
  214. v-model="form.recordDate"
  215. type="date"
  216. :editable="false"
  217. value-format="yyyy-MM-dd"
  218. placeholder="请选择登记日期"
  219. >
  220. </el-date-picker>
  221. </el-form-item>
  222. <el-form-item label="经委会主任" prop="chairmanId">
  223. <!-- <el-input v-model="form.chairmanId" placeholder="请输入经委会主任" /> -->
  224. <el-select
  225. ref="aa"
  226. v-model="form.chairmanId"
  227. placeholder="请选择经委会主任"
  228. >
  229. <el-option
  230. v-for="item in renYuan"
  231. :key="item.id"
  232. :label="item.name"
  233. :value="item.id"
  234. :disabled="item.status == 1"
  235. @click.native="ZhuRen(item.name)"
  236. class="input_xiala"
  237. ></el-option>
  238. </el-select>
  239. </el-form-item>
  240. <el-form-item label="单位首长" prop="peopleId1">
  241. <el-select v-model="form.peopleId1" placeholder="请选择单位首长">
  242. <el-option
  243. v-for="item in renYuan"
  244. :key="item.id"
  245. :label="item.name"
  246. :value="item.id"
  247. :disabled="item.status == 1"
  248. @click.native="SouZhang(item.name)"
  249. class="input_xiala"
  250. ></el-option>
  251. </el-select>
  252. </el-form-item>
  253. <div class="jiben">一日三餐(早餐)</div>
  254. <div class="box1">
  255. <table
  256. border="1"
  257. width="920"
  258. cellspacing="0"
  259. align="center"
  260. style="border-color: white; margin: 0px"
  261. >
  262. <tr align="center">
  263. <td colspan="2">主食内容:</td>
  264. <td colspan="10">
  265. <el-input
  266. v-model="meal.stapleFood"
  267. placeholder="主食内容"
  268. ></el-input>
  269. </td>
  270. </tr>
  271. <tr align="center">
  272. <td colspan="2">菜谱:</td>
  273. <td colspan="10">
  274. <el-input v-model="meal.menu" placeholder="菜谱"></el-input>
  275. </td>
  276. </tr>
  277. <tr align="center">
  278. <td colspan="2">就餐人员总数:</td>
  279. <td colspan="2">
  280. <el-input
  281. v-model.number="meal.jiucanCount"
  282. placeholder="就餐人员总数"
  283. oninput="value=value.replace(/[^\d]/g,'')"
  284. ></el-input>
  285. </td>
  286. <td colspan="2">联队就餐人数:</td>
  287. <td colspan="2">
  288. <el-input
  289. v-model.number="meal.lianduiCount"
  290. placeholder="联队就餐人数"
  291. oninput="value=value.replace(/[^\d]/g,'')"
  292. ></el-input>
  293. </td>
  294. <td colspan="2">外来就餐人数:</td>
  295. <td colspan="2">
  296. <el-input
  297. v-model.number="meal.wailaiCount"
  298. placeholder="外来就餐人数"
  299. oninput="value=value.replace(/[^\d]/g,'')"
  300. ></el-input>
  301. </td>
  302. </tr>
  303. </table>
  304. <div class="box2">
  305. <table
  306. border="1"
  307. width="920"
  308. cellspacing="0"
  309. align="center"
  310. style="border-color: white; margin: 0px"
  311. >
  312. <tr align="center">
  313. <td>面粉<span>(kg)</span></td>
  314. <td>大米<span>(kg)</span></td>
  315. <td>肉类<span>(kg)</span></td>
  316. <td>鱼类<span>(kg)</span></td>
  317. <td>油类<span>(L)</span></td>
  318. <td>黄豆<span>(kg)</span></td>
  319. <td>蔬菜<span>(kg)</span></td>
  320. <td>水果<span>(kg)</span></td>
  321. <td>糖<span>(kg)</span></td>
  322. <td>燃料<span>(L)</span></td>
  323. <td>调料<span>(kg)</span></td>
  324. </tr>
  325. <tr align="center">
  326. <td>
  327. <el-input
  328. v-model.number="meal.mianfen"
  329. placeholder=""
  330. oninput="value=value.replace(/[^\d]/g,'')"
  331. ></el-input>
  332. </td>
  333. <td>
  334. <el-input
  335. v-model.number="meal.dami"
  336. placeholder=""
  337. oninput="value=value.replace(/[^\d]/g,'')"
  338. ></el-input>
  339. </td>
  340. <td>
  341. <el-input
  342. v-model.number="meal.rolei"
  343. placeholder=""
  344. oninput="value=value.replace(/[^\d]/g,'')"
  345. ></el-input>
  346. </td>
  347. <td>
  348. <el-input
  349. v-model.number="meal.yulei"
  350. placeholder=""
  351. oninput="value=value.replace(/[^\d]/g,'')"
  352. ></el-input>
  353. </td>
  354. <td>
  355. <el-input
  356. v-model.number="meal.youlei"
  357. placeholder=""
  358. oninput="value=value.replace(/[^\d]/g,'')"
  359. ></el-input>
  360. </td>
  361. <td>
  362. <el-input
  363. v-model.number="meal.huangdo"
  364. placeholder=""
  365. oninput="value=value.replace(/[^\d]/g,'')"
  366. ></el-input>
  367. </td>
  368. <td>
  369. <el-input
  370. v-model.number="meal.suchai"
  371. placeholder=""
  372. oninput="value=value.replace(/[^\d]/g,'')"
  373. ></el-input>
  374. </td>
  375. <td>
  376. <el-input
  377. v-model.number="meal.shuiguo"
  378. placeholder=""
  379. oninput="value=value.replace(/[^\d]/g,'')"
  380. ></el-input>
  381. </td>
  382. <td>
  383. <el-input
  384. v-model.number="meal.tang"
  385. placeholder=""
  386. oninput="value=value.replace(/[^\d]/g,'')"
  387. ></el-input>
  388. </td>
  389. <td>
  390. <el-input
  391. v-model.number="meal.ranliao"
  392. placeholder=""
  393. oninput="value=value.replace(/[^\d]/g,'')"
  394. ></el-input>
  395. </td>
  396. <td>
  397. <el-input
  398. v-model.number="meal.tiaoliao"
  399. placeholder=""
  400. oninput="value=value.replace(/[^\d]/g,'')"
  401. ></el-input>
  402. </td>
  403. </tr>
  404. </table>
  405. </div>
  406. </div>
  407. <div class="jiben">一日三餐(午餐)</div>
  408. <div class="box1">
  409. <table
  410. border="1"
  411. width="920"
  412. cellspacing="0"
  413. align="center"
  414. style="border-color: white; margin: 0px"
  415. >
  416. <tr align="center">
  417. <td colspan="2">主食内容:</td>
  418. <td colspan="10">
  419. <el-input
  420. v-model="zhongCan.stapleFood"
  421. placeholder="主食内容"
  422. ></el-input>
  423. </td>
  424. </tr>
  425. <tr align="center">
  426. <td colspan="2">菜谱:</td>
  427. <td colspan="10">
  428. <el-input
  429. v-model="zhongCan.menu"
  430. placeholder="菜谱"
  431. ></el-input>
  432. </td>
  433. </tr>
  434. <tr align="center">
  435. <td colspan="2">就餐人员总数:</td>
  436. <td colspan="2">
  437. <el-input
  438. v-model.number="zhongCan.jiucanCount"
  439. placeholder="就餐人员总数"
  440. oninput="value=value.replace(/[^\d]/g,'')"
  441. ></el-input>
  442. </td>
  443. <td colspan="2">联队就餐人数:</td>
  444. <td colspan="2">
  445. <el-input
  446. v-model.number="zhongCan.lianduiCount"
  447. placeholder="联队就餐人数"
  448. oninput="value=value.replace(/[^\d]/g,'')"
  449. ></el-input>
  450. </td>
  451. <td colspan="2">外来就餐人数:</td>
  452. <td colspan="2">
  453. <el-input
  454. v-model.number="zhongCan.wailaiCount"
  455. placeholder="外来就餐人数"
  456. oninput="value=value.replace(/[^\d]/g,'')"
  457. ></el-input>
  458. </td>
  459. </tr>
  460. </table>
  461. <div class="box2">
  462. <table
  463. border="1"
  464. width="920"
  465. cellspacing="0"
  466. align="center"
  467. style="border-color: white; margin: 0px"
  468. >
  469. <tr align="center">
  470. <td>面粉<span>(kg)</span></td>
  471. <td>大米<span>(kg)</span></td>
  472. <td>肉类<span>(kg)</span></td>
  473. <td>鱼类<span>(kg)</span></td>
  474. <td>油类<span>(L)</span></td>
  475. <td>黄豆<span>(kg)</span></td>
  476. <td>蔬菜<span>(kg)</span></td>
  477. <td>水果<span>(kg)</span></td>
  478. <td>糖<span>(kg)</span></td>
  479. <td>燃料<span>(L)</span></td>
  480. <td>调料<span>(kg)</span></td>
  481. </tr>
  482. <tr align="center">
  483. <td>
  484. <el-input
  485. v-model.number="zhongCan.mianfen"
  486. placeholder=""
  487. oninput="value=value.replace(/[^\d]/g,'')"
  488. ></el-input>
  489. </td>
  490. <td>
  491. <el-input
  492. v-model.number="zhongCan.dami"
  493. placeholder=""
  494. oninput="value=value.replace(/[^\d]/g,'')"
  495. ></el-input>
  496. </td>
  497. <td>
  498. <el-input
  499. v-model.number="zhongCan.rolei"
  500. placeholder=""
  501. oninput="value=value.replace(/[^\d]/g,'')"
  502. ></el-input>
  503. </td>
  504. <td>
  505. <el-input
  506. v-model.number="zhongCan.yulei"
  507. placeholder=""
  508. oninput="value=value.replace(/[^\d]/g,'')"
  509. ></el-input>
  510. </td>
  511. <td>
  512. <el-input
  513. v-model.number="zhongCan.youlei"
  514. placeholder=""
  515. oninput="value=value.replace(/[^\d]/g,'')"
  516. ></el-input>
  517. </td>
  518. <td>
  519. <el-input
  520. v-model.number="zhongCan.huangdo"
  521. placeholder=""
  522. oninput="value=value.replace(/[^\d]/g,'')"
  523. ></el-input>
  524. </td>
  525. <td>
  526. <el-input
  527. v-model.number="zhongCan.suchai"
  528. placeholder=""
  529. oninput="value=value.replace(/[^\d]/g,'')"
  530. ></el-input>
  531. </td>
  532. <td>
  533. <el-input
  534. v-model.number="zhongCan.shuiguo"
  535. placeholder=""
  536. oninput="value=value.replace(/[^\d]/g,'')"
  537. ></el-input>
  538. </td>
  539. <td>
  540. <el-input
  541. v-model.number="zhongCan.tang"
  542. placeholder=""
  543. oninput="value=value.replace(/[^\d]/g,'')"
  544. ></el-input>
  545. </td>
  546. <td>
  547. <el-input
  548. v-model.number="zhongCan.ranliao"
  549. placeholder=""
  550. oninput="value=value.replace(/[^\d]/g,'')"
  551. ></el-input>
  552. </td>
  553. <td>
  554. <el-input
  555. v-model.number="zhongCan.tiaoliao"
  556. placeholder=""
  557. oninput="value=value.replace(/[^\d]/g,'')"
  558. ></el-input>
  559. </td>
  560. </tr>
  561. </table>
  562. </div>
  563. </div>
  564. <div class="jiben">一日三餐(晚餐)</div>
  565. <div class="box1">
  566. <table
  567. border="1"
  568. width="920"
  569. cellspacing="0"
  570. align="center"
  571. style="border-color: white; margin: 0px"
  572. >
  573. <tr align="center">
  574. <td colspan="2">主食内容:</td>
  575. <td colspan="10">
  576. <el-input
  577. v-model="wanCan.stapleFood"
  578. placeholder="主食内容"
  579. ></el-input>
  580. </td>
  581. </tr>
  582. <tr align="center">
  583. <td colspan="2">菜谱:</td>
  584. <td colspan="10">
  585. <el-input v-model="wanCan.menu" placeholder="菜谱"></el-input>
  586. </td>
  587. </tr>
  588. <tr align="center">
  589. <td colspan="2">就餐人员总数:</td>
  590. <td colspan="2">
  591. <el-input
  592. v-model.number="wanCan.jiucanCount"
  593. placeholder="就餐人员总数"
  594. oninput="value=value.replace(/[^\d]/g,'')"
  595. ></el-input>
  596. </td>
  597. <td colspan="2">联队就餐人数:</td>
  598. <td colspan="2">
  599. <el-input
  600. v-model.number="wanCan.lianduiCount"
  601. placeholder="联队就餐人数"
  602. oninput="value=value.replace(/[^\d]/g,'')"
  603. ></el-input>
  604. </td>
  605. <td colspan="2">外来就餐人数:</td>
  606. <td colspan="2">
  607. <el-input
  608. v-model.number="wanCan.wailaiCount"
  609. placeholder="外来就餐人数"
  610. oninput="value=value.replace(/[^\d]/g,'')"
  611. ></el-input>
  612. </td>
  613. </tr>
  614. </table>
  615. <div class="box2">
  616. <table
  617. border="1"
  618. width="920"
  619. cellspacing="0"
  620. align="center"
  621. style="border-color: white; margin: 0px"
  622. >
  623. <tr align="center">
  624. <td>面粉<span>(kg)</span></td>
  625. <td>大米<span>(kg)</span></td>
  626. <td>肉类<span>(kg)</span></td>
  627. <td>鱼类<span>(kg)</span></td>
  628. <td>油类<span>(L)</span></td>
  629. <td>黄豆<span>(kg)</span></td>
  630. <td>蔬菜<span>(kg)</span></td>
  631. <td>水果<span>(kg)</span></td>
  632. <td>糖<span>(kg)</span></td>
  633. <td>燃料<span>(L)</span></td>
  634. <td>调料<span>(kg)</span></td>
  635. </tr>
  636. <tr align="center">
  637. <td>
  638. <el-input
  639. v-model.number="wanCan.mianfen"
  640. placeholder=""
  641. oninput="value=value.replace(/[^\d]/g,'')"
  642. ></el-input>
  643. </td>
  644. <td>
  645. <el-input
  646. v-model.number="wanCan.dami"
  647. placeholder=""
  648. oninput="value=value.replace(/[^\d]/g,'')"
  649. ></el-input>
  650. </td>
  651. <td>
  652. <el-input
  653. v-model.number="wanCan.rolei"
  654. placeholder=""
  655. oninput="value=value.replace(/[^\d]/g,'')"
  656. ></el-input>
  657. </td>
  658. <td>
  659. <el-input
  660. v-model.number="wanCan.yulei"
  661. placeholder=""
  662. oninput="value=value.replace(/[^\d]/g,'')"
  663. ></el-input>
  664. </td>
  665. <td>
  666. <el-input
  667. v-model.number="wanCan.youlei"
  668. placeholder=""
  669. oninput="value=value.replace(/[^\d]/g,'')"
  670. ></el-input>
  671. </td>
  672. <td>
  673. <el-input
  674. v-model.number="wanCan.huangdo"
  675. placeholder=""
  676. oninput="value=value.replace(/[^\d]/g,'')"
  677. ></el-input>
  678. </td>
  679. <td>
  680. <el-input
  681. v-model.number="wanCan.suchai"
  682. placeholder=""
  683. oninput="value=value.replace(/[^\d]/g,'')"
  684. ></el-input>
  685. </td>
  686. <td>
  687. <el-input
  688. v-model.number="wanCan.shuiguo"
  689. placeholder=""
  690. oninput="value=value.replace(/[^\d]/g,'')"
  691. ></el-input>
  692. </td>
  693. <td>
  694. <el-input
  695. v-model.number="wanCan.tang"
  696. placeholder=""
  697. oninput="value=value.replace(/[^\d]/g,'')"
  698. ></el-input>
  699. </td>
  700. <td>
  701. <el-input
  702. v-model.number="wanCan.ranliao"
  703. placeholder=""
  704. oninput="value=value.replace(/[^\d]/g,'')"
  705. ></el-input>
  706. </td>
  707. <td>
  708. <el-input
  709. v-model.number="wanCan.tiaoliao"
  710. placeholder=""
  711. oninput="value=value.replace(/[^\d]/g,'')"
  712. ></el-input>
  713. </td>
  714. </tr>
  715. </table>
  716. </div>
  717. </div>
  718. <div class="jiben">实物检查验收</div>
  719. <div class="box3">
  720. <el-form v-for="(item, i) in acceptance" :key="i">
  721. <el-form-item label="" prop="">
  722. <el-select v-model="item.distinctions" placeholder="请选择">
  723. <el-option
  724. v-for="item in ziDian"
  725. :key="item.dictCode"
  726. :label="item.dictLabel"
  727. :value="item.dictValue"
  728. class="input_xiala"
  729. >
  730. </el-option>
  731. </el-select>
  732. </el-form-item>
  733. <el-form-item label="" prop="">
  734. <el-date-picker
  735. v-model="item.time"
  736. type="date"
  737. :editable="false"
  738. size="mini"
  739. placeholder="选择日期"
  740. value-format="yyyy-MM-dd"
  741. >
  742. </el-date-picker>
  743. </el-form-item>
  744. <el-form-item label="" prop="">
  745. <el-input v-model="item.name" placeholder="品名"></el-input>
  746. </el-form-item>
  747. <el-form-item label="" prop="">
  748. <el-input
  749. v-model.number="item.weight"
  750. placeholder="数量"
  751. oninput="value=value.replace(/[^\d]/g,'')"
  752. ></el-input>
  753. </el-form-item>
  754. <el-form-item label="" prop="">
  755. <el-input
  756. v-model.number="item.money"
  757. placeholder="价格"
  758. oninput="value=value.replace(/[^\d]/g,'')"
  759. ></el-input>
  760. </el-form-item>
  761. <el-form-item label="" prop="">
  762. <el-input v-model="item.types" placeholder="消耗品"></el-input>
  763. </el-form-item>
  764. <el-form-item>
  765. <el-button
  766. type="primary"
  767. icon="el-icon-plus"
  768. size="mini"
  769. v-if="i == acceptance.length - 1"
  770. @click="tianJia"
  771. ></el-button>
  772. <el-button
  773. type="primary"
  774. icon="el-icon-delete"
  775. size="mini"
  776. @click="jtDelete(i)"
  777. v-if="i != 0"
  778. ></el-button>
  779. </el-form-item>
  780. </el-form>
  781. </div>
  782. <div class="jiben">采购食材</div>
  783. <div class="box3">
  784. <el-form v-for="(item1, i) in caiGou" :key="i + ' '">
  785. <el-form-item label="" prop="">
  786. <el-select v-model="item1.distinction" placeholder="请选择">
  787. <el-option
  788. v-for="item in ziDian"
  789. :key="item.dictCode"
  790. :label="item.dictLabel"
  791. :value="item.dictValue"
  792. class="input_xiala"
  793. >
  794. </el-option>
  795. </el-select>
  796. </el-form-item>
  797. <el-form-item label="" prop="">
  798. <el-date-picker
  799. v-model="item1.time"
  800. type="date"
  801. :editable="false"
  802. size="mini"
  803. placeholder="选择日期"
  804. value-format="yyyy-MM-dd"
  805. >
  806. </el-date-picker>
  807. </el-form-item>
  808. <el-form-item label="" prop="">
  809. <el-input v-model="item1.name" placeholder="品名"></el-input>
  810. </el-form-item>
  811. <el-form-item label="" prop="">
  812. <el-input
  813. v-model.number="item1.amount"
  814. placeholder="数量"
  815. oninput="value=value.replace(/[^\d]/g,'')"
  816. ></el-input>
  817. </el-form-item>
  818. <el-form-item label="" prop="">
  819. <el-input
  820. v-model.number="item1.price"
  821. placeholder="价格"
  822. oninput="value=value.replace(/[^\d]/g,'')"
  823. ></el-input>
  824. </el-form-item>
  825. <el-form-item label="" prop="">
  826. <el-input
  827. v-model="item1.consumption"
  828. placeholder="消耗品"
  829. ></el-input>
  830. </el-form-item>
  831. <el-form-item>
  832. <el-button
  833. type="primary"
  834. icon="el-icon-plus"
  835. @click="tianJia1"
  836. v-if="i == caiGou.length - 1"
  837. size="mini"
  838. ></el-button>
  839. <el-button
  840. type="primary"
  841. icon="el-icon-delete"
  842. size="mini"
  843. @click="jtDelete1(i)"
  844. v-if="i > 0"
  845. ></el-button>
  846. </el-form-item>
  847. </el-form>
  848. </div>
  849. <div class="jiben">交/退伙食费</div>
  850. <div class="box3">
  851. <el-form v-for="(item2, i) in expenses" :key="i + 's'">
  852. <el-form-item label="" prop="">
  853. <el-select v-model="item2.peopleId" placeholder="姓名">
  854. <el-option
  855. v-for="item in renYuan"
  856. :key="item.id"
  857. :label="item.name"
  858. :value="item.id"
  859. class="input_xiala"
  860. >
  861. </el-option>
  862. </el-select>
  863. </el-form-item>
  864. <el-form-item label="" prop="">
  865. <el-select v-model="item2.type" placeholder="退交伙食费">
  866. <el-option
  867. v-for="item in jiao"
  868. :key="item.id"
  869. :label="item.name"
  870. :value="item.name"
  871. class="input_xiala"
  872. >
  873. </el-option>
  874. </el-select>
  875. </el-form-item>
  876. <el-form-item label="" prop="">
  877. <el-input
  878. v-model.number="item2.sky"
  879. placeholder="天数"
  880. oninput="value=value.replace(/[^\d]/g,'')"
  881. ></el-input>
  882. </el-form-item>
  883. <el-form-item label="" prop="">
  884. <el-input
  885. v-model="item2.standard"
  886. placeholder="标准"
  887. ></el-input>
  888. </el-form-item>
  889. <el-form-item label="" prop="">
  890. <el-input
  891. v-model.number="item2.money"
  892. placeholder="金额"
  893. oninput="value=value.replace(/[^\d]/g,'')"
  894. ></el-input>
  895. </el-form-item>
  896. <el-form-item>
  897. <el-button
  898. type="primary"
  899. icon="el-icon-plus"
  900. size="mini"
  901. v-if="i == expenses.length - 1"
  902. @click="tianJia2"
  903. ></el-button>
  904. <el-button
  905. type="primary"
  906. icon="el-icon-delete"
  907. size="mini"
  908. @click="jtDelete2(i)"
  909. v-if="i > 0"
  910. ></el-button>
  911. </el-form-item>
  912. </el-form>
  913. </div>
  914. <div class="jiben">在食堂购物</div>
  915. <div class="box3">
  916. <el-form v-for="(item3, i) in canteen" :key="i + 'p'">
  917. <el-form-item label="" prop="">
  918. <el-select v-model="item3.peopleId" placeholder="姓名">
  919. <el-option
  920. v-for="item in renYuan"
  921. :key="item.id"
  922. :label="item.name"
  923. :value="item.id"
  924. class="input_xiala"
  925. >
  926. </el-option>
  927. </el-select>
  928. </el-form-item>
  929. <el-form-item label="" prop="">
  930. <el-input
  931. v-model="item3.zName"
  932. placeholder="主食品名"
  933. ></el-input>
  934. </el-form-item>
  935. <el-form-item label="" prop="">
  936. <el-input
  937. v-model.number="item3.zWeight"
  938. placeholder="主食重量"
  939. oninput="value=value.replace(/[^\d]/g,'')"
  940. ></el-input>
  941. </el-form-item>
  942. <el-form-item label="" prop="">
  943. <el-input
  944. v-model.number="item3.zMoney"
  945. placeholder="主食金额"
  946. oninput="value=value.replace(/[^\d]/g,'')"
  947. ></el-input>
  948. </el-form-item>
  949. <el-form-item label="" prop="">
  950. <el-input
  951. v-model="item3.fName"
  952. placeholder="副食品名"
  953. ></el-input>
  954. </el-form-item>
  955. <el-form-item label="" prop="">
  956. <el-input
  957. v-model.number="item3.fWeight"
  958. placeholder="副食重量"
  959. oninput="value=value.replace(/[^\d]/g,'')"
  960. ></el-input>
  961. </el-form-item>
  962. <el-form-item label="" prop="">
  963. <el-input
  964. v-model.number="item3.fMoney"
  965. placeholder="副食金额"
  966. oninput="value=value.replace(/[^\d]/g,'')"
  967. ></el-input>
  968. </el-form-item>
  969. <el-form-item label="" prop="">
  970. <el-input
  971. v-model="item3.qName"
  972. placeholder="其他物品品名"
  973. ></el-input>
  974. </el-form-item>
  975. <el-form-item label="" prop="">
  976. <el-input
  977. v-model.number="item3.qWeight"
  978. placeholder="其他物品重量"
  979. oninput="value=value.replace(/[^\d]/g,'')"
  980. ></el-input>
  981. </el-form-item>
  982. <el-form-item label="" prop="">
  983. <el-input
  984. v-model="item3.qMoney"
  985. placeholder="其他物品"
  986. ></el-input>
  987. </el-form-item>
  988. <el-form-item label="" prop="">
  989. <el-input
  990. v-model.number="item3.total"
  991. placeholder="合计"
  992. oninput="value=value.replace(/[^\d]/g,'')"
  993. ></el-input>
  994. </el-form-item>
  995. <el-form-item>
  996. <el-button
  997. type="primary"
  998. icon="el-icon-plus"
  999. size="mini"
  1000. v-if="i == canteen.length - 1"
  1001. @click="tianJia3"
  1002. ></el-button>
  1003. <el-button
  1004. type="primary"
  1005. icon="el-icon-delete"
  1006. size="mini"
  1007. @click="jtDelete3(i)"
  1008. v-if="i > 0"
  1009. ></el-button>
  1010. </el-form-item>
  1011. </el-form>
  1012. </div>
  1013. <div class="jiben">后厨</div>
  1014. <div class="box4">
  1015. <table
  1016. border="1"
  1017. width="920"
  1018. cellspacing="0"
  1019. align="center"
  1020. style="border-color: white; margin: 0px"
  1021. >
  1022. <tr align="center">
  1023. <td colspan="2" width="150">炊事人员及食堂卫生:</td>
  1024. <td colspan="7">
  1025. <el-input
  1026. type="textarea"
  1027. :rows="1"
  1028. placeholder="请输入内容"
  1029. v-model="form.contents"
  1030. autosize
  1031. resize="none"
  1032. >
  1033. </el-input>
  1034. </td>
  1035. </tr>
  1036. <tr align="center">
  1037. <td colspan="2">帮厨人员:</td>
  1038. <td colspan="7">
  1039. <el-select
  1040. v-model="form.peopleIds"
  1041. multiple
  1042. placeholder="请选择"
  1043. >
  1044. <el-option
  1045. v-for="item in renYuan"
  1046. :key="item.id"
  1047. :label="item.name"
  1048. :value="item.id"
  1049. class="input_xiala"
  1050. >
  1051. </el-option>
  1052. </el-select>
  1053. </td>
  1054. </tr>
  1055. <tr align="center">
  1056. <td colspan="2">就餐人员意见:</td>
  1057. <td colspan="7">
  1058. <el-input
  1059. v-model="form.repastContent"
  1060. placeholder="请输入内容"
  1061. ></el-input>
  1062. </td>
  1063. </tr>
  1064. </table>
  1065. </div>
  1066. </el-form>
  1067. </div>
  1068. <div slot="footer" class="dialog-footer">
  1069. <el-button type="primary" @click="submitForm(1)">确 定</el-button>
  1070. <el-button @click="cancel" size="btn">取消</el-button>
  1071. </div>
  1072. </el-dialog>
  1073. <el-dialog
  1074. :visible.sync="menuRoleVisible"
  1075. :title="title"
  1076. append-to-body
  1077. id="chakan"
  1078. :close-on-click-modal="false"
  1079. >
  1080. <bdglfood
  1081. v-if="menuRoleVisible"
  1082. ref="menuRole"
  1083. :message="wordInfo"
  1084. ></bdglfood>
  1085. </el-dialog>
  1086. </div>
  1087. </template>
  1088. <script>
  1089. import bdglfood from "@/components/look_word/bdglfood.vue";
  1090. import {
  1091. listBdglfood,
  1092. getBdglfood,
  1093. delBdglfood,
  1094. addBdglfood,
  1095. updateBdglfood,
  1096. exportBdglfood,
  1097. } from "@/api/grassrootsregistration/bdglfood";
  1098. import { getDept } from "@/api/grassrootsregistration/bdglparty";
  1099. import {
  1100. getZhuChiRen,
  1101. getShouBu,
  1102. getAll,
  1103. } from "@/api/grassrootsregistration/bdglmeeting";
  1104. // 导入树形结构
  1105. import Treeselect from "@riophae/vue-treeselect";
  1106. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  1107. // 字典
  1108. import { getDicts } from "@/api/system/dict/data";
  1109. export default {
  1110. name: "Bdglfood",
  1111. components: {
  1112. Treeselect,
  1113. bdglfood,
  1114. },
  1115. data() {
  1116. return {
  1117. //查看页面
  1118. menuRoleVisible: false,
  1119. wordInfo: {},
  1120. textarea: "",
  1121. value1: "",
  1122. //表格输入框
  1123. input: "",
  1124. //判断关闭
  1125. style: "2",
  1126. // 遮罩层
  1127. loading: true,
  1128. // 导出遮罩层
  1129. exportLoading: false,
  1130. // 选中数组
  1131. ids: [],
  1132. // 非单个禁用
  1133. single: true,
  1134. // 非多个禁用
  1135. multiple: true,
  1136. // 显示搜索条件
  1137. showSearch: true,
  1138. // 总条数
  1139. total: 0,
  1140. // 伙食管理登记薄表格数据
  1141. bdglfoodList: [],
  1142. // 弹出层标题
  1143. title: "",
  1144. // 是否显示弹出层
  1145. open: false,
  1146. // 查询参数
  1147. queryParams: {
  1148. pageNum: 1,
  1149. pageSize: 10,
  1150. recordDate: null,
  1151. unitId: null,
  1152. peopleId: null,
  1153. chairmanId: null,
  1154. peopleId1: null,
  1155. contents: null,
  1156. peopleIds: null,
  1157. repastContent: null,
  1158. createtime: null,
  1159. updatetime: null,
  1160. },
  1161. // 表单参数
  1162. form: {},
  1163. // 表单校验
  1164. rules: {
  1165. unitId: [
  1166. { required: true, message: "单位名称不能为空", trigger: "blur" },
  1167. ],
  1168. peopleId: [
  1169. { required: true, message: "值班员不能为空", trigger: "blur" },
  1170. ],
  1171. recordDate: [
  1172. { required: true, message: "登记日期不能为空", trigger: "blur" },
  1173. ],
  1174. chairmanId: [
  1175. { required: true, message: "经委会主任不能为空", trigger: "blur" },
  1176. ],
  1177. peopleId1: [
  1178. { required: true, message: "单位首长不能为空", trigger: "blur" },
  1179. ],
  1180. },
  1181. //下拉
  1182. value2: [],
  1183. roleOptions: [],
  1184. // 部门树形列表
  1185. deptOptions: [],
  1186. // 树形配置对象
  1187. defaultProps: {
  1188. children: "children",
  1189. label: "label",
  1190. },
  1191. // 人员列表
  1192. renYuan: [],
  1193. // 查询字典
  1194. dictType: {
  1195. dictType: "purchaseFood",
  1196. },
  1197. // 字典列表
  1198. ziDian: [],
  1199. // 一日三餐
  1200. meal: {
  1201. stapleFood: null,
  1202. menu: null,
  1203. type1: 1,
  1204. jiucanCount: null,
  1205. lianduiCount: null,
  1206. wailaiCount: null,
  1207. mianfen: null,
  1208. dami: null,
  1209. rolei: null,
  1210. yulei: null,
  1211. youlei: null,
  1212. huangdo: null,
  1213. suchai: null,
  1214. shuiguo: null,
  1215. tang: null,
  1216. ranliao: null,
  1217. tiaoliao: null,
  1218. },
  1219. // 中
  1220. zhongCan: {
  1221. stapleFood: null,
  1222. menu: null,
  1223. type1: 2,
  1224. jiucanCount: null,
  1225. lianduiCount: null,
  1226. wailaiCount: null,
  1227. mianfen: null,
  1228. dami: null,
  1229. rolei: null,
  1230. yulei: null,
  1231. youlei: null,
  1232. huangdo: null,
  1233. suchai: null,
  1234. shuiguo: null,
  1235. tang: null,
  1236. ranliao: null,
  1237. tiaoliao: null,
  1238. },
  1239. // 晚
  1240. wanCan: {
  1241. stapleFood: null,
  1242. menu: null,
  1243. type1: 3,
  1244. jiucanCount: null,
  1245. lianduiCount: null,
  1246. wailaiCount: null,
  1247. mianfen: null,
  1248. dami: null,
  1249. rolei: null,
  1250. yulei: null,
  1251. youlei: null,
  1252. huangdo: null,
  1253. suchai: null,
  1254. shuiguo: null,
  1255. tang: null,
  1256. ranliao: null,
  1257. tiaoliao: null,
  1258. },
  1259. options: [],
  1260. // 实物检查验收
  1261. acceptance: [
  1262. {
  1263. distinctions: null,
  1264. name: null,
  1265. weight: null,
  1266. money: null,
  1267. types: null,
  1268. time: null,
  1269. },
  1270. ],
  1271. // 交退伙食费
  1272. expenses: [
  1273. {
  1274. peopleId: null,
  1275. type: null,
  1276. sky: null,
  1277. standard: null,
  1278. money: null,
  1279. },
  1280. ],
  1281. // 在食堂购物
  1282. canteen: [
  1283. {
  1284. peopleId: null,
  1285. zName: null,
  1286. zWeight: null,
  1287. zMoney: null,
  1288. total: null,
  1289. fName: null,
  1290. fWeight: null,
  1291. fMoney: null,
  1292. qName: null,
  1293. qWeight: null,
  1294. qMoney: null,
  1295. },
  1296. ],
  1297. // 采购食物
  1298. caiGou: [
  1299. {
  1300. distinction: null,
  1301. time: null,
  1302. name: null,
  1303. amount: null,
  1304. price: null,
  1305. consumption: null,
  1306. },
  1307. ],
  1308. // 交退记录
  1309. jiao: [
  1310. { name: "交", id: 1 },
  1311. { name: "退", id: 2 },
  1312. ],
  1313. // 定义一个数组用来放对象提交
  1314. Arr: [],
  1315. arr: [],
  1316. // 获取搜索单位列表
  1317. deptOptionss: [],
  1318. // 外面的人员
  1319. renYuans: [],
  1320. };
  1321. },
  1322. created() {
  1323. this.getList();
  1324. this.getdept();
  1325. this.getSuo();
  1326. },
  1327. methods: {
  1328. // 搜索人员触发
  1329. Renyuan() {
  1330. this.getList();
  1331. },
  1332. // 获取搜索所有人
  1333. getSuo() {
  1334. getAll().then((res) => {
  1335. this.renYuans = res.rows;
  1336. });
  1337. },
  1338. // //获取部门列表
  1339. getdept() {
  1340. getShouBu().then((res) => {
  1341. this.deptOptionss = res.data;
  1342. });
  1343. },
  1344. // 搜索单位触发
  1345. host() {
  1346. this.getList();
  1347. },
  1348. //增加实物检查验收表单
  1349. tianJia() {
  1350. this.acceptance.push({
  1351. distinctions: null,
  1352. name: null,
  1353. weight: null,
  1354. money: null,
  1355. types: null,
  1356. time: null,
  1357. });
  1358. },
  1359. //点击删除工作登记
  1360. jtDelete(i) {
  1361. this.acceptance.splice(i, 1);
  1362. },
  1363. //增加采购食材表单
  1364. tianJia1() {
  1365. this.caiGou.push({
  1366. distinction: null,
  1367. time: null,
  1368. name: null,
  1369. amount: null,
  1370. price: null,
  1371. consumption: null,
  1372. });
  1373. },
  1374. //点击删除采购食材表单
  1375. jtDelete1(i) {
  1376. this.caiGou.splice(i, 1);
  1377. },
  1378. //点击添加退交伙食费表单
  1379. tianJia2() {
  1380. this.expenses.push({
  1381. peopleId: null,
  1382. type: null,
  1383. sky: null,
  1384. standard: null,
  1385. money: null,
  1386. });
  1387. },
  1388. //点击删除腿交伙食费
  1389. jtDelete2(i) {
  1390. this.expenses.splice(i, 1);
  1391. },
  1392. //添加在食堂购物表单
  1393. tianJia3() {
  1394. this.canteen.push({
  1395. peopleId: null,
  1396. zName: null,
  1397. zWeight: null,
  1398. zMoney: null,
  1399. total: null,
  1400. fName: null,
  1401. fWeight: null,
  1402. fMoney: null,
  1403. qName: null,
  1404. qWeight: null,
  1405. qMoney: null,
  1406. });
  1407. },
  1408. //点击删除腿交伙食费
  1409. jtDelete3(i) {
  1410. this.canteen.splice(i, 1);
  1411. },
  1412. // 让select失去焦点
  1413. blurSelect() {
  1414. this.$refs.aa.blur();
  1415. },
  1416. // 查询电子产品
  1417. getdict() {
  1418. getDicts(this.dictType.dictType).then((res) => {
  1419. this.ziDian = res.data;
  1420. });
  1421. },
  1422. // 首长选中触发
  1423. SouZhang(name) {
  1424. this.form.people1Name = name;
  1425. },
  1426. // 委员会主任选中触发
  1427. ZhuRen(name) {
  1428. this.form.chairmanName = name;
  1429. },
  1430. // 值班人员选中触发
  1431. zhiBan(name) {
  1432. this.form.peopleName = name;
  1433. },
  1434. // 获取人员列表
  1435. getRen(id) {
  1436. getZhuChiRen(id).then((res) => {
  1437. this.renYuan = res.data;
  1438. });
  1439. },
  1440. // 重置表单人员
  1441. ChongZhiRen() {
  1442. (this.form.peopleId1 = null), (this.form.chairmanId = null);
  1443. this.form.peopleId = null;
  1444. this.expenses.forEach((item) => {
  1445. item.peopleId = null;
  1446. });
  1447. this.canteen.forEach((item) => {
  1448. item.peopleId = null;
  1449. });
  1450. },
  1451. // 单位选择触发
  1452. selectPeo(val) {
  1453. this.ChongZhiRen();
  1454. this.form.unitId = val.id;
  1455. this.getRen(this.form.unitId);
  1456. },
  1457. /** 查询伙食管理登记薄列表 */
  1458. getList() {
  1459. this.loading = true;
  1460. listBdglfood(this.queryParams).then((response) => {
  1461. this.bdglfoodList = response.rows;
  1462. this.total = response.total;
  1463. this.loading = false;
  1464. });
  1465. },
  1466. // 取消按钮
  1467. cancel() {
  1468. this.open = false;
  1469. this.reset();
  1470. },
  1471. // 表单重置
  1472. reset() {
  1473. this.form = {
  1474. id: null,
  1475. recordDate: null,
  1476. unitId: null,
  1477. peopleId: null,
  1478. chairmanId: null,
  1479. peopleId1: null,
  1480. contents: null,
  1481. peopleIds: null,
  1482. repastContent: null,
  1483. createtime: null,
  1484. updatetime: null,
  1485. };
  1486. // 一日三餐
  1487. (this.meal = {
  1488. stapleFood: null,
  1489. menu: null,
  1490. type1: 1,
  1491. jiucanCount: null,
  1492. lianduiCount: null,
  1493. wailaiCount: null,
  1494. mianfen: null,
  1495. dami: null,
  1496. rolei: null,
  1497. yulei: null,
  1498. youlei: null,
  1499. huangdo: null,
  1500. suchai: null,
  1501. shuiguo: null,
  1502. tang: null,
  1503. ranliao: null,
  1504. tiaoliao: null,
  1505. }),
  1506. // 中
  1507. (this.zhongCan = {
  1508. stapleFood: null,
  1509. menu: null,
  1510. type1: 2,
  1511. jiucanCount: null,
  1512. lianduiCount: null,
  1513. wailaiCount: null,
  1514. mianfen: null,
  1515. dami: null,
  1516. rolei: null,
  1517. yulei: null,
  1518. youlei: null,
  1519. huangdo: null,
  1520. suchai: null,
  1521. shuiguo: null,
  1522. tang: null,
  1523. ranliao: null,
  1524. tiaoliao: null,
  1525. }),
  1526. // 晚
  1527. (this.wanCan = {
  1528. stapleFood: null,
  1529. menu: null,
  1530. type1: 3,
  1531. jiucanCount: null,
  1532. lianduiCount: null,
  1533. wailaiCount: null,
  1534. mianfen: null,
  1535. dami: null,
  1536. rolei: null,
  1537. yulei: null,
  1538. youlei: null,
  1539. huangdo: null,
  1540. suchai: null,
  1541. shuiguo: null,
  1542. tang: null,
  1543. ranliao: null,
  1544. tiaoliao: null,
  1545. }),
  1546. (this.acceptance = [
  1547. {
  1548. distinctions: null,
  1549. name: null,
  1550. weight: null,
  1551. money: null,
  1552. types: null,
  1553. time: null,
  1554. },
  1555. ]),
  1556. // 交退伙食费
  1557. (this.expenses = [
  1558. {
  1559. peopleId: null,
  1560. type: null,
  1561. sky: null,
  1562. standard: null,
  1563. money: null,
  1564. },
  1565. ]),
  1566. // 在食堂购物
  1567. (this.canteen = [
  1568. {
  1569. peopleId: null,
  1570. zName: null,
  1571. zWeight: null,
  1572. zMoney: null,
  1573. total: null,
  1574. fName: null,
  1575. fWeight: null,
  1576. fMoney: null,
  1577. qName: null,
  1578. qWeight: null,
  1579. qMoney: null,
  1580. },
  1581. ]),
  1582. (this.caiGou = [
  1583. {
  1584. distinction: null,
  1585. time: null,
  1586. name: null,
  1587. amount: null,
  1588. price: null,
  1589. consumption: null,
  1590. },
  1591. ]),
  1592. this.resetForm("form");
  1593. },
  1594. /** 搜索按钮操作 */
  1595. handleQuery() {
  1596. this.queryParams.pageNum = 1;
  1597. this.getList();
  1598. },
  1599. /** 重置按钮操作 */
  1600. resetQuery() {
  1601. this.resetForm("queryForm");
  1602. this.handleQuery();
  1603. },
  1604. /** 对话框重置按钮操作 */
  1605. resertwo() {
  1606. this.reset();
  1607. },
  1608. // 获取部门下拉树形结构
  1609. getShu() {
  1610. getDept().then((res) => {
  1611. this.deptOptions = res.data;
  1612. });
  1613. },
  1614. // 多选框选中数据
  1615. handleSelectionChange(selection) {
  1616. this.ids = selection.map((item) => item.id);
  1617. this.single = selection.length !== 1;
  1618. this.multiple = !selection.length;
  1619. },
  1620. /** 新增按钮操作 */
  1621. handleAdd() {
  1622. // 人员列表
  1623. (this.renYuan = []), this.reset();
  1624. this.getShu();
  1625. this.getdict();
  1626. this.open = true;
  1627. this.style = 2;
  1628. this.title = "添加伙食管理登记薄";
  1629. },
  1630. /** 修改按钮操作 */
  1631. handleUpdate(row) {
  1632. this.reset();
  1633. this.getShu();
  1634. const id = row.id || this.ids;
  1635. getBdglfood(id).then((response) => {
  1636. console.log(response);
  1637. this.form = response.data;
  1638. this.getdict();
  1639. this.getRen(this.form.unitId);
  1640. // 一日三餐
  1641. this.Arr = response.data.bdglFoodMeal;
  1642. this.Arr.forEach((item) => {
  1643. if (item.type1 == 1) {
  1644. this.meal = item;
  1645. }
  1646. if (item.type1 == 2) {
  1647. this.zhongCan = item;
  1648. }
  1649. if (item.type1 == 3) {
  1650. this.wanCan = item;
  1651. }
  1652. });
  1653. // 实物检查验收
  1654. this.acceptance = response.data.bdglFoodKinds;
  1655. // 采购食材
  1656. console.log(response.data.bdglFoodProcurements, "点");
  1657. this.caiGou = response.data.bdglFoodProcurements;
  1658. // 交/退伙食费
  1659. this.expenses = response.data.bdglFoodBoardWagess;
  1660. // 在食堂购物
  1661. this.canteen = response.data.bdglFoodShoppings;
  1662. // 后厨
  1663. if (response.data.peopleIds !== null) {
  1664. this.form.peopleIds = response.data.peopleIds.split(",");
  1665. this.arr = this.form.peopleIds;
  1666. this.form.peopleIds = this.arr.map((i) => parseInt(i, 0));
  1667. }
  1668. this.open = true;
  1669. this.title = "修改伙食管理登记薄";
  1670. });
  1671. },
  1672. //查看按钮操作
  1673. handleChakan(row) {
  1674. // 是否隐藏按钮
  1675. this.opens = false;
  1676. const id = row.id || this.ids;
  1677. getBdglfood(id).then((response) => {
  1678. console.log(response);
  1679. this.wordInfo = response.data;
  1680. this.title = "查看伙食管理登记薄";
  1681. this.menuRoleVisible = true;
  1682. });
  1683. },
  1684. /** 提交按钮 */
  1685. submitForm(style) {
  1686. this.style = style;
  1687. this.$refs["form"].validate((valid) => {
  1688. if (valid) {
  1689. if (this.form.id != null) {
  1690. // 转换字符串
  1691. this.form.peopleIds = this.form.peopleIds.join(",");
  1692. // 追加元素
  1693. this.Arr.push(this.meal);
  1694. this.Arr.push(this.zhongCan);
  1695. this.Arr.push(this.wanCan);
  1696. this.form.bdglFoodMeal = this.Arr;
  1697. console.log(this.form.bdglFoodMeal);
  1698. // 赋值字段
  1699. this.form.bdglFoodKinds = this.acceptance;
  1700. // 采购食物
  1701. this.form.bdglFoodProcurements = this.caiGou;
  1702. // 交退伙食
  1703. this.form.bdglFoodBoardWagess = this.expenses;
  1704. // 在食堂购物
  1705. this.form.bdglFoodShoppings = this.canteen;
  1706. updateBdglfood(this.form).then((response) => {
  1707. this.$modal.msgSuccess("修改成功");
  1708. this.open = false;
  1709. this.getList();
  1710. });
  1711. } else {
  1712. // 转换字符串
  1713. console.log(11);
  1714. if (this.form.peopleIds !== null) {
  1715. this.form.peopleIds = this.form.peopleIds.join(",");
  1716. }
  1717. // 追加元素
  1718. this.Arr.push(this.meal, this.zhongCan, this.wanCan);
  1719. this.form.bdglFoodMeal = this.Arr;
  1720. // 赋值字段
  1721. this.form.bdglFoodKinds = this.acceptance;
  1722. // 采购食物
  1723. this.form.bdglFoodProcurements = this.caiGou;
  1724. // 交退伙食
  1725. this.form.bdglFoodBoardWagess = this.expenses;
  1726. // 在食堂购物
  1727. this.form.bdglFoodShoppings = this.canteen;
  1728. console.log(this.form);
  1729. addBdglfood(this.form).then((response) => {
  1730. this.$modal.msgSuccess("新增成功");
  1731. this.open = false;
  1732. this.getList();
  1733. });
  1734. }
  1735. }
  1736. });
  1737. },
  1738. /** 删除按钮操作 */
  1739. handleDelete(row) {
  1740. const ids = row.id || this.ids;
  1741. this.$modal
  1742. // .confirm('是否确认删除伙食管理登记薄编号为"' + ids + '"的数据项?')
  1743. .confirm("是否确认删除该数据?")
  1744. .then(function () {
  1745. return delBdglfood(ids);
  1746. })
  1747. .then(() => {
  1748. this.getList();
  1749. this.$modal.msgSuccess("删除成功");
  1750. })
  1751. .catch(() => {});
  1752. },
  1753. /** 导出按钮操作 */
  1754. handleExport() {
  1755. const queryParams = this.queryParams;
  1756. this.$modal
  1757. .confirm("是否确认导出所有伙食管理登记薄数据项?")
  1758. .then(() => {
  1759. this.exportLoading = true;
  1760. return exportBdglfood(queryParams);
  1761. })
  1762. .then((response) => {
  1763. this.$download.name(response.msg);
  1764. this.exportLoading = false;
  1765. })
  1766. .catch(() => {});
  1767. },
  1768. },
  1769. };
  1770. </script>
  1771. <style scoped>
  1772. /* 对话框背景颜色 */
  1773. ::v-deep .el-dialog {
  1774. background: #004d86 !important;
  1775. }
  1776. ::v-deep .el-textarea__inner {
  1777. width: 920px;
  1778. height: 104px;
  1779. }
  1780. ::v-deep .el-dialog__header {
  1781. border-bottom: 1px solid #718a9d;
  1782. }
  1783. ::v-deep .el-dialog__title {
  1784. color: #fff;
  1785. font: 18px;
  1786. }
  1787. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  1788. color: #fff;
  1789. }
  1790. ::v-deep .el-form-item__label {
  1791. font: 16px;
  1792. color: #fff;
  1793. width: 100px !important;
  1794. }
  1795. ::v-deep .el-input__inner {
  1796. /* width: 200px !important;
  1797. height: 36px; */
  1798. background: transparent;
  1799. color: #fff;
  1800. border: 1px solid white !important;
  1801. border-color: #fff !important;
  1802. }
  1803. /* 单位框背景颜色 */
  1804. ::v-deep .vue-treeselect__control {
  1805. background: #004d86 !important;
  1806. }
  1807. ::v-deep .el-input__inner {
  1808. cursor: pointer !important;
  1809. }
  1810. /* 底部确定取消按钮 */
  1811. ::v-deep .el-dialog__footer {
  1812. padding: 30px 50px;
  1813. }
  1814. ::v-deep .el-dialog__body {
  1815. /* margin: 10px 30px 20px 50px; */
  1816. /* margin: 10px 0px 20px 38px; */
  1817. padding-top: 20px !important;
  1818. box-sizing: border-box;
  1819. /* padding: 30px 12px 30px 28px; */
  1820. padding: 30px 0px 30px 64px;
  1821. }
  1822. /*调整表单间距 */
  1823. ::v-deep .el-form-item__content {
  1824. width: 200px;
  1825. }
  1826. .contents {
  1827. padding: 0px 40px !important;
  1828. }
  1829. /* 下拉菜单 */
  1830. .el-dropdown-link {
  1831. cursor: pointer;
  1832. color: #409eff;
  1833. }
  1834. .el-icon-arrow-down {
  1835. font-size: 12px;
  1836. }
  1837. /* 刷新图标 */
  1838. .el-icon-refresh {
  1839. width: 76px;
  1840. height: 36px;
  1841. color: #fff;
  1842. background-color: #1d96ff !important;
  1843. border-radius: 4px;
  1844. border: none;
  1845. margin-left: 20px;
  1846. font-size: 14px;
  1847. }
  1848. /* 下拉菜单字体/背景颜色 */
  1849. .el-select-dropdown__item.hover,
  1850. .el-select-dropdown__item:hover {
  1851. background-color: #004d86;
  1852. color: #fff;
  1853. }
  1854. .el-select-dropdown__item {
  1855. color: #fff;
  1856. }
  1857. /* 时间选择 */
  1858. ::v-deep .el-input--small .el-input__inner {
  1859. width: 200px;
  1860. height: 36px;
  1861. line-height: 36px;
  1862. }
  1863. .el-date-editor.el-input {
  1864. width: 200px;
  1865. height: 36px;
  1866. line-height: 36px;
  1867. }
  1868. ::v-deep .el-date-editor.el-input .el-input__inner {
  1869. height: 36px;
  1870. line-height: 36px;
  1871. }
  1872. /* 单位框背景颜色 */
  1873. ::v-deep .vue-treeselect__control {
  1874. background: #004d86 !important;
  1875. color: #fff;
  1876. }
  1877. /* 单位下拉菜单选中字体颜色 */
  1878. ::v-deep .vue-treeselect__single-value {
  1879. color: #fff !important;
  1880. }
  1881. /* 分页按钮 */
  1882. ::v-deep .el-pagination.is-background .el-pager li {
  1883. background-color: #004d86;
  1884. color: #fff;
  1885. }
  1886. ::v-deep .el-pagination.is-background .btn-next {
  1887. background-color: #004d86;
  1888. color: #fff;
  1889. }
  1890. /* 计数器按钮 */
  1891. ::v-deep .el-input-number__increase {
  1892. background-color: transparent !important;
  1893. border: none;
  1894. color: #cccccc;
  1895. border-bottom: none !important;
  1896. }
  1897. ::v-deep .el-input-number__decrease {
  1898. background-color: transparent !important;
  1899. border: none !important;
  1900. color: #cccccc;
  1901. }
  1902. /* 三餐表格设置 */
  1903. .box1 {
  1904. padding-bottom: 30px;
  1905. margin-left: 0px;
  1906. padding-left: 0px;
  1907. }
  1908. ::v-deep .box2 td .el-input__inner {
  1909. text-align: center;
  1910. border: none !important;
  1911. }
  1912. /* 表格宽度 */
  1913. table td {
  1914. border-bottom: none !important;
  1915. margin: 0px;
  1916. padding: 0px;
  1917. width: 79px;
  1918. height: 38px;
  1919. color: #fff;
  1920. }
  1921. ::v-deep .box .a1 {
  1922. width: 200px !important;
  1923. }
  1924. ::v-deep td .el-input__inner {
  1925. background: transparent;
  1926. color: #fff;
  1927. border: none;
  1928. font-size: 10px;
  1929. border: none !important;
  1930. }
  1931. /* 实物检查验收表格 */
  1932. .box3 {
  1933. width: 920px;
  1934. min-height: 70px;
  1935. border: 1px solid white;
  1936. border-radius: 5px;
  1937. /* background: #409eff; */
  1938. margin-bottom: 30px;
  1939. padding-top: 15px;
  1940. padding-left: 15px;
  1941. }
  1942. /* 表单长度 */
  1943. ::v-deep .box3 .el-form-item__content {
  1944. width: 116px;
  1945. }
  1946. ::v-deep .box3 .el-input__inner {
  1947. width: 116px;
  1948. }
  1949. /* 添加删除按钮 */
  1950. ::v-deep .box3 .el-button {
  1951. width: 32px;
  1952. height: 32px;
  1953. text-align: center;
  1954. margin-left: -6px;
  1955. margin-right: 3px;
  1956. margin-left: 8px;
  1957. }
  1958. ::v-deep .box3 .el-button .el-icon-plus {
  1959. margin-left: -6px;
  1960. }
  1961. ::v-deep .box3 .el-button .el-icon-delete {
  1962. margin-left: -6px;
  1963. }
  1964. ::v-deep .el-input__prefix {
  1965. display: none;
  1966. }
  1967. ::v-deep .el-date-editor.el-input {
  1968. width: 116px;
  1969. height: 36px;
  1970. line-height: 36px;
  1971. }
  1972. ::v-deep .box3 .el-form-item__content .el-input__inner {
  1973. padding: 0px 15px;
  1974. }
  1975. /* 后厨文本框 */
  1976. ::v-deep .box4 .el-textarea__inner {
  1977. width: 704px;
  1978. border: none;
  1979. margin: 0px;
  1980. padding: 5px 0px;
  1981. }
  1982. ::v-deep .box4 .el-select el-select--medium {
  1983. width: 704px !important;
  1984. margin: 0;
  1985. padding: 0;
  1986. }
  1987. ::v-deep .box4 .el-select__tags {
  1988. width: 704px !important;
  1989. margin: 0;
  1990. padding: 0;
  1991. }
  1992. ::v-deep .box4 .el-input el-input--medium el-input--suffix {
  1993. width: 704px !important;
  1994. margin: 0;
  1995. padding: 0;
  1996. }
  1997. ::v-deep .box4 .el-input__inner {
  1998. width: 704px !important;
  1999. margin: 0;
  2000. padding: 0;
  2001. border: none !important;
  2002. }
  2003. ::v-deep .box4 .el-textarea__inner {
  2004. min-height: 100px !important;
  2005. }
  2006. table td {
  2007. border-bottom: none !important;
  2008. margin: 0px;
  2009. padding: 0px;
  2010. width: 155px;
  2011. height: 38px;
  2012. color: #fff;
  2013. }
  2014. /* 底部确定取消按钮 */
  2015. ::v-deep .el-dialog__footer {
  2016. padding: 18px 42px 30px 0px;
  2017. /* margin-right: 30px; */
  2018. margin-right: 36px;
  2019. }
  2020. /* 增加按钮弹框 */
  2021. ::v-deep .el-dialog {
  2022. width: 1060px !important;
  2023. }
  2024. ::v-deep .el-dialog__body {
  2025. padding: none !important;
  2026. }
  2027. /* 调整输入框提示文字颜色 */
  2028. ::v-deep .vue-treeselect__placeholder {
  2029. color: #bdbdbd4f !important;
  2030. }
  2031. ::v-deep input::-webkit-input-placeholder {
  2032. color: #bdbdbd4f !important;
  2033. }
  2034. ::v-deep input:-moz-placeholder {
  2035. color: #bdbdbd4f !important;
  2036. }
  2037. ::v-deep :-ms-input-placeholder {
  2038. color: #bdbdbd4f !important;
  2039. }
  2040. ::v-deep ::-moz-placeholder {
  2041. color: #bdbdbd4f !important;
  2042. }
  2043. .box2 tr td span {
  2044. font-size: 0.1em;
  2045. }
  2046. ::v-deep ::-webkit-input-placeholder {
  2047. color: #bdbdbd4f !important;
  2048. }
  2049. /* 添加内部滚动条 */
  2050. ::v-deep .el-dialog__body .userAgree {
  2051. height: 600px;
  2052. overflow: auto;
  2053. }
  2054. /*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/
  2055. .userAgree::-webkit-scrollbar {
  2056. width: 14px;
  2057. /* height: 2px !important; */
  2058. background: #3d83b8;
  2059. }
  2060. /*定义滑块,内阴影及圆角*/
  2061. .userAgree::-webkit-scrollbar-thumb {
  2062. /* border-radius: 20px; */
  2063. /* height: 1px;
  2064. width: 3px; */
  2065. background: rgba(144, 206, 252, 1);
  2066. }
  2067. /*定义滚动条的轨道,内阴影及圆角*/
  2068. /* .userAgree::-webkit-scrollbar-track {
  2069. border-radius: 0;
  2070. background: rgba(0, 0, 0, 0);
  2071. } */
  2072. </style>