1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092 |
- <template>
- <div class="app-container">
- <el-form
- :model="queryParams"
- ref="queryForm"
- :inline="true"
- v-show="showSearch"
- label-width="68px"
- >
- <!-- <el-form-item label="" prop="unitId">
- <el-select
- v-model="queryParams.unitId"
- placeholder="请选择单位"
- @change="host"
- >
- <el-option
- v-for="(item, i) in deptOptionss"
- :key="i"
- :label="item.deptName"
- :value="item.deptId"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item> -->
- <el-form-item label="" prop="peopleId">
- <el-select
- v-model="queryParams.peopleId"
- placeholder="请选择值班员"
- @change="Renyuan"
- filterable
- class="input_xiala"
- >
- <el-option
- v-for="item in renYuans"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button size="btr" @click="resetQuery" icon="el-icon-refresh"
- >重置</el-button
- >
- </el-form-item>
- </el-form>
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
- v-hasPermi="['grassrootsregistration:bdglfood:add']"
- >新增</el-button
- >
- </el-col>
- <!-- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- v-hasPermi="['grassrootsregistration:bdglfood:edit']"
- >修改</el-button
- >
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- v-hasPermi="['grassrootsregistration:bdglfood:remove']"
- >删除</el-button
- >
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="warning"
- plain
- icon="el-icon-download"
- size="mini"
- :loading="exportLoading"
- @click="handleExport"
- v-hasPermi="['grassrootsregistration:bdglfood:export']"
- >导出</el-button
- >
- </el-col> -->
- <!-- <right-toolbar
- :showSearch.sync="showSearch"
- @queryTable="getList"
- ></right-toolbar> -->
- </el-row>
- <el-table
- v-loading="loading"
- :data="bdglfoodList"
- @selection-change="handleSelectionChange"
- :header-cell-style="{ background: '#003C69', color: 'white' }"
- >
- <el-table-column type="selection" width="55" align="center" />
- <!-- <el-table-column label="序号" align="center" prop="id" /> -->
- <el-table-column label="序号" type="index" width="50" align="center">
- <template scope="scope">
- <span>{{
- (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
- }}</span>
- </template>
- </el-table-column>
- <el-table-column label="单位" align="center" prop="unitName" />
- <el-table-column label="值班员" align="center" prop="peopleName" />
- <!-- <el-table-column label="更新时间" align="center" prop="id" /> -->
- <el-table-column
- label="登记日期"
- align="center"
- prop="recordDate"
- width="180"
- >
- <template slot-scope="scope">
- <span>{{ parseTime(scope.row.recordDate, "{y}-{m}-{d}") }}</span>
- </template>
- </el-table-column>
- <el-table-column label="经委会主任" align="center" prop="chairmanName" />
- <el-table-column label="单位首长" align="center" prop="people1Name" />
- <el-table-column
- label="操作"
- align="center"
- class-name="small-padding fixed-width"
- width="200"
- >
- <template slot-scope="scope">
- <el-button
- size="btk"
- type="text"
- @click="handleChakan(scope.row)"
- v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
- ><span class="chakan">查看</span></el-button
- >
- <el-button
- size="btu"
- type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['grassrootsregistration:bdglfood:edit']"
- ><span class="edit">修改</span></el-button
- >
- <el-button
- size="btd"
- type="text"
- @click="handleDelete(scope.row)"
- v-hasPermi="['grassrootsregistration:bdglfood:remove']"
- ><span class="delete">删除</span></el-button
- >
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total > 0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- <!-- 添加或修改伙食管理登记薄对话框 -->
- <el-dialog
- :title="title"
- :visible.sync="open"
- width="1016px"
- append-to-body
- :close-on-click-modal="false"
- >
- <div class="userAgree">
- <el-form
- ref="form"
- :model="form"
- :rules="rules"
- label-width="80px"
- :inline="true"
- >
- <div class="jiben">基本信息</div>
- <el-form-item label="单位" prop="unitId">
- <treeselect
- v-model="form.unitId"
- :options="deptOptions"
- placeholder="请选择单位"
- @select="selectPeo"
- @open="blurSelect"
- />
- </el-form-item>
- <el-form-item label="值班员" prop="peopleId">
- <el-select v-model="form.peopleId" placeholder="请选择值班员">
- <el-option
- v-for="item in renYuan"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- :disabled="item.status == 1"
- @click.native="zhiBan(item.name)"
- class="input_xiala"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="登记日期" prop="recordDate">
- <el-date-picker
- clearable
- size="small"
- v-model="form.recordDate"
- type="date"
- :editable="false"
- value-format="yyyy-MM-dd"
- placeholder="请选择登记日期"
- >
- </el-date-picker>
- </el-form-item>
- <el-form-item label="经委会主任" prop="chairmanId">
- <!-- <el-input v-model="form.chairmanId" placeholder="请输入经委会主任" /> -->
- <el-select
- ref="aa"
- v-model="form.chairmanId"
- placeholder="请选择经委会主任"
- >
- <el-option
- v-for="item in renYuan"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- :disabled="item.status == 1"
- @click.native="ZhuRen(item.name)"
- class="input_xiala"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="单位首长" prop="peopleId1">
- <el-select v-model="form.peopleId1" placeholder="请选择单位首长">
- <el-option
- v-for="item in renYuan"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- :disabled="item.status == 1"
- @click.native="SouZhang(item.name)"
- class="input_xiala"
- ></el-option>
- </el-select>
- </el-form-item>
- <div class="jiben">一日三餐(早餐)</div>
- <div class="box1">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td colspan="2">主食内容:</td>
- <td colspan="10">
- <el-input
- v-model="meal.stapleFood"
- placeholder="主食内容"
- ></el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">菜谱:</td>
- <td colspan="10">
- <el-input v-model="meal.menu" placeholder="菜谱"></el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">就餐人员总数:</td>
- <td colspan="2">
- <el-input
- v-model.number="meal.jiucanCount"
- placeholder="就餐人员总数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td colspan="2">联队就餐人数:</td>
- <td colspan="2">
- <el-input
- v-model.number="meal.lianduiCount"
- placeholder="联队就餐人数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td colspan="2">外来就餐人数:</td>
- <td colspan="2">
- <el-input
- v-model.number="meal.wailaiCount"
- placeholder="外来就餐人数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- </tr>
- </table>
- <div class="box2">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td>面粉<span>(kg)</span></td>
- <td>大米<span>(kg)</span></td>
- <td>肉类<span>(kg)</span></td>
- <td>鱼类<span>(kg)</span></td>
- <td>油类<span>(L)</span></td>
- <td>黄豆<span>(kg)</span></td>
- <td>蔬菜<span>(kg)</span></td>
- <td>水果<span>(kg)</span></td>
- <td>糖<span>(kg)</span></td>
- <td>燃料<span>(L)</span></td>
- <td>调料<span>(kg)</span></td>
- </tr>
- <tr align="center">
- <td>
- <el-input
- v-model.number="meal.mianfen"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.dami"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.rolei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.yulei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.youlei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.huangdo"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.suchai"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.shuiguo"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.tang"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.ranliao"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="meal.tiaoliao"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="jiben">一日三餐(午餐)</div>
- <div class="box1">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td colspan="2">主食内容:</td>
- <td colspan="10">
- <el-input
- v-model="zhongCan.stapleFood"
- placeholder="主食内容"
- ></el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">菜谱:</td>
- <td colspan="10">
- <el-input
- v-model="zhongCan.menu"
- placeholder="菜谱"
- ></el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">就餐人员总数:</td>
- <td colspan="2">
- <el-input
- v-model.number="zhongCan.jiucanCount"
- placeholder="就餐人员总数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td colspan="2">联队就餐人数:</td>
- <td colspan="2">
- <el-input
- v-model.number="zhongCan.lianduiCount"
- placeholder="联队就餐人数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td colspan="2">外来就餐人数:</td>
- <td colspan="2">
- <el-input
- v-model.number="zhongCan.wailaiCount"
- placeholder="外来就餐人数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- </tr>
- </table>
- <div class="box2">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td>面粉<span>(kg)</span></td>
- <td>大米<span>(kg)</span></td>
- <td>肉类<span>(kg)</span></td>
- <td>鱼类<span>(kg)</span></td>
- <td>油类<span>(L)</span></td>
- <td>黄豆<span>(kg)</span></td>
- <td>蔬菜<span>(kg)</span></td>
- <td>水果<span>(kg)</span></td>
- <td>糖<span>(kg)</span></td>
- <td>燃料<span>(L)</span></td>
- <td>调料<span>(kg)</span></td>
- </tr>
- <tr align="center">
- <td>
- <el-input
- v-model.number="zhongCan.mianfen"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.dami"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.rolei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.yulei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.youlei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.huangdo"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.suchai"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.shuiguo"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.tang"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.ranliao"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="zhongCan.tiaoliao"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="jiben">一日三餐(晚餐)</div>
- <div class="box1">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td colspan="2">主食内容:</td>
- <td colspan="10">
- <el-input
- v-model="wanCan.stapleFood"
- placeholder="主食内容"
- ></el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">菜谱:</td>
- <td colspan="10">
- <el-input v-model="wanCan.menu" placeholder="菜谱"></el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">就餐人员总数:</td>
- <td colspan="2">
- <el-input
- v-model.number="wanCan.jiucanCount"
- placeholder="就餐人员总数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td colspan="2">联队就餐人数:</td>
- <td colspan="2">
- <el-input
- v-model.number="wanCan.lianduiCount"
- placeholder="联队就餐人数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td colspan="2">外来就餐人数:</td>
- <td colspan="2">
- <el-input
- v-model.number="wanCan.wailaiCount"
- placeholder="外来就餐人数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- </tr>
- </table>
- <div class="box2">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td>面粉<span>(kg)</span></td>
- <td>大米<span>(kg)</span></td>
- <td>肉类<span>(kg)</span></td>
- <td>鱼类<span>(kg)</span></td>
- <td>油类<span>(L)</span></td>
- <td>黄豆<span>(kg)</span></td>
- <td>蔬菜<span>(kg)</span></td>
- <td>水果<span>(kg)</span></td>
- <td>糖<span>(kg)</span></td>
- <td>燃料<span>(L)</span></td>
- <td>调料<span>(kg)</span></td>
- </tr>
- <tr align="center">
- <td>
- <el-input
- v-model.number="wanCan.mianfen"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.dami"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.rolei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.yulei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.youlei"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.huangdo"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.suchai"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.shuiguo"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.tang"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.ranliao"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- <td>
- <el-input
- v-model.number="wanCan.tiaoliao"
- placeholder=""
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="jiben">实物检查验收</div>
- <div class="box3">
- <el-form v-for="(item, i) in acceptance" :key="i">
- <el-form-item label="" prop="">
- <el-select v-model="item.distinctions" placeholder="请选择">
- <el-option
- v-for="item in ziDian"
- :key="item.dictCode"
- :label="item.dictLabel"
- :value="item.dictValue"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-date-picker
- v-model="item.time"
- type="date"
- :editable="false"
- size="mini"
- placeholder="选择日期"
- value-format="yyyy-MM-dd"
- >
- </el-date-picker>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input v-model="item.name" placeholder="品名"></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item.weight"
- placeholder="数量"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item.money"
- placeholder="价格"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input v-model="item.types" placeholder="消耗品"></el-input>
- </el-form-item>
- <el-form-item>
- <el-button
- type="primary"
- icon="el-icon-plus"
- size="mini"
- v-if="i == acceptance.length - 1"
- @click="tianJia"
- ></el-button>
- <el-button
- type="primary"
- icon="el-icon-delete"
- size="mini"
- @click="jtDelete(i)"
- v-if="i != 0"
- ></el-button>
- </el-form-item>
- </el-form>
- </div>
- <div class="jiben">采购食材</div>
- <div class="box3">
- <el-form v-for="(item1, i) in caiGou" :key="i + ' '">
- <el-form-item label="" prop="">
- <el-select v-model="item1.distinction" placeholder="请选择">
- <el-option
- v-for="item in ziDian"
- :key="item.dictCode"
- :label="item.dictLabel"
- :value="item.dictValue"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-date-picker
- v-model="item1.time"
- type="date"
- :editable="false"
- size="mini"
- placeholder="选择日期"
- value-format="yyyy-MM-dd"
- >
- </el-date-picker>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input v-model="item1.name" placeholder="品名"></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item1.amount"
- placeholder="数量"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item1.price"
- placeholder="价格"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model="item1.consumption"
- placeholder="消耗品"
- ></el-input>
- </el-form-item>
- <el-form-item>
- <el-button
- type="primary"
- icon="el-icon-plus"
- @click="tianJia1"
- v-if="i == caiGou.length - 1"
- size="mini"
- ></el-button>
- <el-button
- type="primary"
- icon="el-icon-delete"
- size="mini"
- @click="jtDelete1(i)"
- v-if="i > 0"
- ></el-button>
- </el-form-item>
- </el-form>
- </div>
- <div class="jiben">交/退伙食费</div>
- <div class="box3">
- <el-form v-for="(item2, i) in expenses" :key="i + 's'">
- <el-form-item label="" prop="">
- <el-select v-model="item2.peopleId" placeholder="姓名">
- <el-option
- v-for="item in renYuan"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-select v-model="item2.type" placeholder="退交伙食费">
- <el-option
- v-for="item in jiao"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item2.sky"
- placeholder="天数"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model="item2.standard"
- placeholder="标准"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item2.money"
- placeholder="金额"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item>
- <el-button
- type="primary"
- icon="el-icon-plus"
- size="mini"
- v-if="i == expenses.length - 1"
- @click="tianJia2"
- ></el-button>
- <el-button
- type="primary"
- icon="el-icon-delete"
- size="mini"
- @click="jtDelete2(i)"
- v-if="i > 0"
- ></el-button>
- </el-form-item>
- </el-form>
- </div>
- <div class="jiben">在食堂购物</div>
- <div class="box3">
- <el-form v-for="(item3, i) in canteen" :key="i + 'p'">
- <el-form-item label="" prop="">
- <el-select v-model="item3.peopleId" placeholder="姓名">
- <el-option
- v-for="item in renYuan"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model="item3.zName"
- placeholder="主食品名"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item3.zWeight"
- placeholder="主食重量"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item3.zMoney"
- placeholder="主食金额"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model="item3.fName"
- placeholder="副食品名"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item3.fWeight"
- placeholder="副食重量"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item3.fMoney"
- placeholder="副食金额"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model="item3.qName"
- placeholder="其他物品品名"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item3.qWeight"
- placeholder="其他物品重量"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model="item3.qMoney"
- placeholder="其他物品"
- ></el-input>
- </el-form-item>
- <el-form-item label="" prop="">
- <el-input
- v-model.number="item3.total"
- placeholder="合计"
- oninput="value=value.replace(/[^\d]/g,'')"
- ></el-input>
- </el-form-item>
- <el-form-item>
- <el-button
- type="primary"
- icon="el-icon-plus"
- size="mini"
- v-if="i == canteen.length - 1"
- @click="tianJia3"
- ></el-button>
- <el-button
- type="primary"
- icon="el-icon-delete"
- size="mini"
- @click="jtDelete3(i)"
- v-if="i > 0"
- ></el-button>
- </el-form-item>
- </el-form>
- </div>
- <div class="jiben">后厨</div>
- <div class="box4">
- <table
- border="1"
- width="920"
- cellspacing="0"
- align="center"
- style="border-color: white; margin: 0px"
- >
- <tr align="center">
- <td colspan="2" width="150">炊事人员及食堂卫生:</td>
- <td colspan="7">
- <el-input
- type="textarea"
- :rows="1"
- placeholder="请输入内容"
- v-model="form.contents"
- autosize
- resize="none"
- >
- </el-input>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">帮厨人员:</td>
- <td colspan="7">
- <el-select
- v-model="form.peopleIds"
- multiple
- placeholder="请选择"
- >
- <el-option
- v-for="item in renYuan"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- class="input_xiala"
- >
- </el-option>
- </el-select>
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">就餐人员意见:</td>
- <td colspan="7">
- <el-input
- v-model="form.repastContent"
- placeholder="请输入内容"
- ></el-input>
- </td>
- </tr>
- </table>
- </div>
- </el-form>
- </div>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm(1)">确 定</el-button>
- <el-button @click="cancel" size="btn">取消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- :visible.sync="menuRoleVisible"
- :title="title"
- append-to-body
- id="chakan"
- :close-on-click-modal="false"
- >
- <bdglfood
- v-if="menuRoleVisible"
- ref="menuRole"
- :message="wordInfo"
- ></bdglfood>
- </el-dialog>
- </div>
- </template>
- <script>
- import bdglfood from "@/components/look_word/bdglfood.vue";
- import {
- listBdglfood,
- getBdglfood,
- delBdglfood,
- addBdglfood,
- updateBdglfood,
- exportBdglfood,
- } from "@/api/grassrootsregistration/bdglfood";
- import { getDept } from "@/api/grassrootsregistration/bdglparty";
- import {
- getZhuChiRen,
- getShouBu,
- getAll,
- } from "@/api/grassrootsregistration/bdglmeeting";
- // 导入树形结构
- import Treeselect from "@riophae/vue-treeselect";
- import "@riophae/vue-treeselect/dist/vue-treeselect.css";
- // 字典
- import { getDicts } from "@/api/system/dict/data";
- export default {
- name: "Bdglfood",
- components: {
- Treeselect,
- bdglfood,
- },
- data() {
- return {
- //查看页面
- menuRoleVisible: false,
- wordInfo: {},
- textarea: "",
- value1: "",
- //表格输入框
- input: "",
- //判断关闭
- style: "2",
- // 遮罩层
- loading: true,
- // 导出遮罩层
- exportLoading: false,
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- multiple: true,
- // 显示搜索条件
- showSearch: true,
- // 总条数
- total: 0,
- // 伙食管理登记薄表格数据
- bdglfoodList: [],
- // 弹出层标题
- title: "",
- // 是否显示弹出层
- open: false,
- // 查询参数
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- recordDate: null,
- unitId: null,
- peopleId: null,
- chairmanId: null,
- peopleId1: null,
- contents: null,
- peopleIds: null,
- repastContent: null,
- createtime: null,
- updatetime: null,
- },
- // 表单参数
- form: {},
- // 表单校验
- rules: {
- unitId: [
- { required: true, message: "单位名称不能为空", trigger: "blur" },
- ],
- peopleId: [
- { required: true, message: "值班员不能为空", trigger: "blur" },
- ],
- recordDate: [
- { required: true, message: "登记日期不能为空", trigger: "blur" },
- ],
- chairmanId: [
- { required: true, message: "经委会主任不能为空", trigger: "blur" },
- ],
- peopleId1: [
- { required: true, message: "单位首长不能为空", trigger: "blur" },
- ],
- },
- //下拉
- value2: [],
- roleOptions: [],
- // 部门树形列表
- deptOptions: [],
- // 树形配置对象
- defaultProps: {
- children: "children",
- label: "label",
- },
- // 人员列表
- renYuan: [],
- // 查询字典
- dictType: {
- dictType: "purchaseFood",
- },
- // 字典列表
- ziDian: [],
- // 一日三餐
- meal: {
- stapleFood: null,
- menu: null,
- type1: 1,
- jiucanCount: null,
- lianduiCount: null,
- wailaiCount: null,
- mianfen: null,
- dami: null,
- rolei: null,
- yulei: null,
- youlei: null,
- huangdo: null,
- suchai: null,
- shuiguo: null,
- tang: null,
- ranliao: null,
- tiaoliao: null,
- },
- // 中
- zhongCan: {
- stapleFood: null,
- menu: null,
- type1: 2,
- jiucanCount: null,
- lianduiCount: null,
- wailaiCount: null,
- mianfen: null,
- dami: null,
- rolei: null,
- yulei: null,
- youlei: null,
- huangdo: null,
- suchai: null,
- shuiguo: null,
- tang: null,
- ranliao: null,
- tiaoliao: null,
- },
- // 晚
- wanCan: {
- stapleFood: null,
- menu: null,
- type1: 3,
- jiucanCount: null,
- lianduiCount: null,
- wailaiCount: null,
- mianfen: null,
- dami: null,
- rolei: null,
- yulei: null,
- youlei: null,
- huangdo: null,
- suchai: null,
- shuiguo: null,
- tang: null,
- ranliao: null,
- tiaoliao: null,
- },
- options: [],
- // 实物检查验收
- acceptance: [
- {
- distinctions: null,
- name: null,
- weight: null,
- money: null,
- types: null,
- time: null,
- },
- ],
- // 交退伙食费
- expenses: [
- {
- peopleId: null,
- type: null,
- sky: null,
- standard: null,
- money: null,
- },
- ],
- // 在食堂购物
- canteen: [
- {
- peopleId: null,
- zName: null,
- zWeight: null,
- zMoney: null,
- total: null,
- fName: null,
- fWeight: null,
- fMoney: null,
- qName: null,
- qWeight: null,
- qMoney: null,
- },
- ],
- // 采购食物
- caiGou: [
- {
- distinction: null,
- time: null,
- name: null,
- amount: null,
- price: null,
- consumption: null,
- },
- ],
- // 交退记录
- jiao: [
- { name: "交", id: 1 },
- { name: "退", id: 2 },
- ],
- // 定义一个数组用来放对象提交
- Arr: [],
- arr: [],
- // 获取搜索单位列表
- deptOptionss: [],
- // 外面的人员
- renYuans: [],
- };
- },
- created() {
- this.getList();
- this.getdept();
- this.getSuo();
- },
- methods: {
- // 搜索人员触发
- Renyuan() {
- this.getList();
- },
- // 获取搜索所有人
- getSuo() {
- getAll().then((res) => {
- this.renYuans = res.rows;
- });
- },
- // //获取部门列表
- getdept() {
- getShouBu().then((res) => {
- this.deptOptionss = res.data;
- });
- },
- // 搜索单位触发
- host() {
- this.getList();
- },
- //增加实物检查验收表单
- tianJia() {
- this.acceptance.push({
- distinctions: null,
- name: null,
- weight: null,
- money: null,
- types: null,
- time: null,
- });
- },
- //点击删除工作登记
- jtDelete(i) {
- this.acceptance.splice(i, 1);
- },
- //增加采购食材表单
- tianJia1() {
- this.caiGou.push({
- distinction: null,
- time: null,
- name: null,
- amount: null,
- price: null,
- consumption: null,
- });
- },
- //点击删除采购食材表单
- jtDelete1(i) {
- this.caiGou.splice(i, 1);
- },
- //点击添加退交伙食费表单
- tianJia2() {
- this.expenses.push({
- peopleId: null,
- type: null,
- sky: null,
- standard: null,
- money: null,
- });
- },
- //点击删除腿交伙食费
- jtDelete2(i) {
- this.expenses.splice(i, 1);
- },
- //添加在食堂购物表单
- tianJia3() {
- this.canteen.push({
- peopleId: null,
- zName: null,
- zWeight: null,
- zMoney: null,
- total: null,
- fName: null,
- fWeight: null,
- fMoney: null,
- qName: null,
- qWeight: null,
- qMoney: null,
- });
- },
- //点击删除腿交伙食费
- jtDelete3(i) {
- this.canteen.splice(i, 1);
- },
- // 让select失去焦点
- blurSelect() {
- this.$refs.aa.blur();
- },
- // 查询电子产品
- getdict() {
- getDicts(this.dictType.dictType).then((res) => {
- this.ziDian = res.data;
- });
- },
- // 首长选中触发
- SouZhang(name) {
- this.form.people1Name = name;
- },
- // 委员会主任选中触发
- ZhuRen(name) {
- this.form.chairmanName = name;
- },
- // 值班人员选中触发
- zhiBan(name) {
- this.form.peopleName = name;
- },
- // 获取人员列表
- getRen(id) {
- getZhuChiRen(id).then((res) => {
- this.renYuan = res.data;
- });
- },
- // 重置表单人员
- ChongZhiRen() {
- (this.form.peopleId1 = null), (this.form.chairmanId = null);
- this.form.peopleId = null;
- this.expenses.forEach((item) => {
- item.peopleId = null;
- });
- this.canteen.forEach((item) => {
- item.peopleId = null;
- });
- },
- // 单位选择触发
- selectPeo(val) {
- this.ChongZhiRen();
- this.form.unitId = val.id;
- this.getRen(this.form.unitId);
- },
- /** 查询伙食管理登记薄列表 */
- getList() {
- this.loading = true;
- listBdglfood(this.queryParams).then((response) => {
- this.bdglfoodList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.reset();
- },
- // 表单重置
- reset() {
- this.form = {
- id: null,
- recordDate: null,
- unitId: null,
- peopleId: null,
- chairmanId: null,
- peopleId1: null,
- contents: null,
- peopleIds: null,
- repastContent: null,
- createtime: null,
- updatetime: null,
- };
- // 一日三餐
- (this.meal = {
- stapleFood: null,
- menu: null,
- type1: 1,
- jiucanCount: null,
- lianduiCount: null,
- wailaiCount: null,
- mianfen: null,
- dami: null,
- rolei: null,
- yulei: null,
- youlei: null,
- huangdo: null,
- suchai: null,
- shuiguo: null,
- tang: null,
- ranliao: null,
- tiaoliao: null,
- }),
- // 中
- (this.zhongCan = {
- stapleFood: null,
- menu: null,
- type1: 2,
- jiucanCount: null,
- lianduiCount: null,
- wailaiCount: null,
- mianfen: null,
- dami: null,
- rolei: null,
- yulei: null,
- youlei: null,
- huangdo: null,
- suchai: null,
- shuiguo: null,
- tang: null,
- ranliao: null,
- tiaoliao: null,
- }),
- // 晚
- (this.wanCan = {
- stapleFood: null,
- menu: null,
- type1: 3,
- jiucanCount: null,
- lianduiCount: null,
- wailaiCount: null,
- mianfen: null,
- dami: null,
- rolei: null,
- yulei: null,
- youlei: null,
- huangdo: null,
- suchai: null,
- shuiguo: null,
- tang: null,
- ranliao: null,
- tiaoliao: null,
- }),
- (this.acceptance = [
- {
- distinctions: null,
- name: null,
- weight: null,
- money: null,
- types: null,
- time: null,
- },
- ]),
- // 交退伙食费
- (this.expenses = [
- {
- peopleId: null,
- type: null,
- sky: null,
- standard: null,
- money: null,
- },
- ]),
- // 在食堂购物
- (this.canteen = [
- {
- peopleId: null,
- zName: null,
- zWeight: null,
- zMoney: null,
- total: null,
- fName: null,
- fWeight: null,
- fMoney: null,
- qName: null,
- qWeight: null,
- qMoney: null,
- },
- ]),
- (this.caiGou = [
- {
- distinction: null,
- time: null,
- name: null,
- amount: null,
- price: null,
- consumption: null,
- },
- ]),
- this.resetForm("form");
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- /** 对话框重置按钮操作 */
- resertwo() {
- this.reset();
- },
- // 获取部门下拉树形结构
- getShu() {
- getDept().then((res) => {
- this.deptOptions = res.data;
- });
- },
- // 多选框选中数据
- handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
- this.single = selection.length !== 1;
- this.multiple = !selection.length;
- },
- /** 新增按钮操作 */
- handleAdd() {
- // 人员列表
- (this.renYuan = []), this.reset();
- this.getShu();
- this.getdict();
- this.open = true;
- this.style = 2;
- this.title = "添加伙食管理登记薄";
- },
- /** 修改按钮操作 */
- handleUpdate(row) {
- this.reset();
- this.getShu();
- const id = row.id || this.ids;
- getBdglfood(id).then((response) => {
- console.log(response);
- this.form = response.data;
- this.getdict();
- this.getRen(this.form.unitId);
- // 一日三餐
- this.Arr = response.data.bdglFoodMeal;
- this.Arr.forEach((item) => {
- if (item.type1 == 1) {
- this.meal = item;
- }
- if (item.type1 == 2) {
- this.zhongCan = item;
- }
- if (item.type1 == 3) {
- this.wanCan = item;
- }
- });
- // 实物检查验收
- this.acceptance = response.data.bdglFoodKinds;
- // 采购食材
- console.log(response.data.bdglFoodProcurements, "点");
- this.caiGou = response.data.bdglFoodProcurements;
- // 交/退伙食费
- this.expenses = response.data.bdglFoodBoardWagess;
- // 在食堂购物
- this.canteen = response.data.bdglFoodShoppings;
- // 后厨
- if (response.data.peopleIds !== null) {
- this.form.peopleIds = response.data.peopleIds.split(",");
- this.arr = this.form.peopleIds;
- this.form.peopleIds = this.arr.map((i) => parseInt(i, 0));
- }
- this.open = true;
- this.title = "修改伙食管理登记薄";
- });
- },
- //查看按钮操作
- handleChakan(row) {
- // 是否隐藏按钮
- this.opens = false;
- const id = row.id || this.ids;
- getBdglfood(id).then((response) => {
- console.log(response);
- this.wordInfo = response.data;
- this.title = "查看伙食管理登记薄";
- this.menuRoleVisible = true;
- });
- },
- /** 提交按钮 */
- submitForm(style) {
- this.style = style;
- this.$refs["form"].validate((valid) => {
- if (valid) {
- if (this.form.id != null) {
- // 转换字符串
- this.form.peopleIds = this.form.peopleIds.join(",");
- // 追加元素
- this.Arr.push(this.meal);
- this.Arr.push(this.zhongCan);
- this.Arr.push(this.wanCan);
- this.form.bdglFoodMeal = this.Arr;
- console.log(this.form.bdglFoodMeal);
- // 赋值字段
- this.form.bdglFoodKinds = this.acceptance;
- // 采购食物
- this.form.bdglFoodProcurements = this.caiGou;
- // 交退伙食
- this.form.bdglFoodBoardWagess = this.expenses;
- // 在食堂购物
- this.form.bdglFoodShoppings = this.canteen;
- updateBdglfood(this.form).then((response) => {
- this.$modal.msgSuccess("修改成功");
- this.open = false;
- this.getList();
- });
- } else {
- // 转换字符串
- console.log(11);
- if (this.form.peopleIds !== null) {
- this.form.peopleIds = this.form.peopleIds.join(",");
- }
- // 追加元素
- this.Arr.push(this.meal, this.zhongCan, this.wanCan);
- this.form.bdglFoodMeal = this.Arr;
- // 赋值字段
- this.form.bdglFoodKinds = this.acceptance;
- // 采购食物
- this.form.bdglFoodProcurements = this.caiGou;
- // 交退伙食
- this.form.bdglFoodBoardWagess = this.expenses;
- // 在食堂购物
- this.form.bdglFoodShoppings = this.canteen;
- console.log(this.form);
- addBdglfood(this.form).then((response) => {
- this.$modal.msgSuccess("新增成功");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 删除按钮操作 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal
- // .confirm('是否确认删除伙食管理登记薄编号为"' + ids + '"的数据项?')
- .confirm("是否确认删除该数据?")
- .then(function () {
- return delBdglfood(ids);
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("删除成功");
- })
- .catch(() => {});
- },
- /** 导出按钮操作 */
- handleExport() {
- const queryParams = this.queryParams;
- this.$modal
- .confirm("是否确认导出所有伙食管理登记薄数据项?")
- .then(() => {
- this.exportLoading = true;
- return exportBdglfood(queryParams);
- })
- .then((response) => {
- this.$download.name(response.msg);
- this.exportLoading = false;
- })
- .catch(() => {});
- },
- },
- };
- </script>
- <style scoped>
- /* 对话框背景颜色 */
- ::v-deep .el-dialog {
- background: #004d86 !important;
- }
- ::v-deep .el-textarea__inner {
- width: 920px;
- height: 104px;
- }
- ::v-deep .el-dialog__header {
- border-bottom: 1px solid #718a9d;
- }
- ::v-deep .el-dialog__title {
- color: #fff;
- font: 18px;
- }
- ::v-deep .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- ::v-deep .el-form-item__label {
- font: 16px;
- color: #fff;
- width: 100px !important;
- }
- ::v-deep .el-input__inner {
- /* width: 200px !important;
- height: 36px; */
- background: transparent;
- color: #fff;
- border: 1px solid white !important;
- border-color: #fff !important;
- }
- /* 单位框背景颜色 */
- ::v-deep .vue-treeselect__control {
- background: #004d86 !important;
- }
- ::v-deep .el-input__inner {
- cursor: pointer !important;
- }
- /* 底部确定取消按钮 */
- ::v-deep .el-dialog__footer {
- padding: 30px 50px;
- }
- ::v-deep .el-dialog__body {
- /* margin: 10px 30px 20px 50px; */
- /* margin: 10px 0px 20px 38px; */
- padding-top: 20px !important;
- box-sizing: border-box;
- /* padding: 30px 12px 30px 28px; */
- padding: 30px 0px 30px 64px;
- }
- /*调整表单间距 */
- ::v-deep .el-form-item__content {
- width: 200px;
- }
- .contents {
- padding: 0px 40px !important;
- }
- /* 下拉菜单 */
- .el-dropdown-link {
- cursor: pointer;
- color: #409eff;
- }
- .el-icon-arrow-down {
- font-size: 12px;
- }
- /* 刷新图标 */
- .el-icon-refresh {
- width: 76px;
- height: 36px;
- color: #fff;
- background-color: #1d96ff !important;
- border-radius: 4px;
- border: none;
- margin-left: 20px;
- font-size: 14px;
- }
- /* 下拉菜单字体/背景颜色 */
- .el-select-dropdown__item.hover,
- .el-select-dropdown__item:hover {
- background-color: #004d86;
- color: #fff;
- }
- .el-select-dropdown__item {
- color: #fff;
- }
- /* 时间选择 */
- ::v-deep .el-input--small .el-input__inner {
- width: 200px;
- height: 36px;
- line-height: 36px;
- }
- .el-date-editor.el-input {
- width: 200px;
- height: 36px;
- line-height: 36px;
- }
- ::v-deep .el-date-editor.el-input .el-input__inner {
- height: 36px;
- line-height: 36px;
- }
- /* 单位框背景颜色 */
- ::v-deep .vue-treeselect__control {
- background: #004d86 !important;
- color: #fff;
- }
- /* 单位下拉菜单选中字体颜色 */
- ::v-deep .vue-treeselect__single-value {
- color: #fff !important;
- }
- /* 分页按钮 */
- ::v-deep .el-pagination.is-background .el-pager li {
- background-color: #004d86;
- color: #fff;
- }
- ::v-deep .el-pagination.is-background .btn-next {
- background-color: #004d86;
- color: #fff;
- }
- /* 计数器按钮 */
- ::v-deep .el-input-number__increase {
- background-color: transparent !important;
- border: none;
- color: #cccccc;
- border-bottom: none !important;
- }
- ::v-deep .el-input-number__decrease {
- background-color: transparent !important;
- border: none !important;
- color: #cccccc;
- }
- /* 三餐表格设置 */
- .box1 {
- padding-bottom: 30px;
- margin-left: 0px;
- padding-left: 0px;
- }
- ::v-deep .box2 td .el-input__inner {
- text-align: center;
- border: none !important;
- }
- /* 表格宽度 */
- table td {
- border-bottom: none !important;
- margin: 0px;
- padding: 0px;
- width: 79px;
- height: 38px;
- color: #fff;
- }
- ::v-deep .box .a1 {
- width: 200px !important;
- }
- ::v-deep td .el-input__inner {
- background: transparent;
- color: #fff;
- border: none;
- font-size: 10px;
- border: none !important;
- }
- /* 实物检查验收表格 */
- .box3 {
- width: 920px;
- min-height: 70px;
- border: 1px solid white;
- border-radius: 5px;
- /* background: #409eff; */
- margin-bottom: 30px;
- padding-top: 15px;
- padding-left: 15px;
- }
- /* 表单长度 */
- ::v-deep .box3 .el-form-item__content {
- width: 116px;
- }
- ::v-deep .box3 .el-input__inner {
- width: 116px;
- }
- /* 添加删除按钮 */
- ::v-deep .box3 .el-button {
- width: 32px;
- height: 32px;
- text-align: center;
- margin-left: -6px;
- margin-right: 3px;
- margin-left: 8px;
- }
- ::v-deep .box3 .el-button .el-icon-plus {
- margin-left: -6px;
- }
- ::v-deep .box3 .el-button .el-icon-delete {
- margin-left: -6px;
- }
- ::v-deep .el-input__prefix {
- display: none;
- }
- ::v-deep .el-date-editor.el-input {
- width: 116px;
- height: 36px;
- line-height: 36px;
- }
- ::v-deep .box3 .el-form-item__content .el-input__inner {
- padding: 0px 15px;
- }
- /* 后厨文本框 */
- ::v-deep .box4 .el-textarea__inner {
- width: 704px;
- border: none;
- margin: 0px;
- padding: 5px 0px;
- }
- ::v-deep .box4 .el-select el-select--medium {
- width: 704px !important;
- margin: 0;
- padding: 0;
- }
- ::v-deep .box4 .el-select__tags {
- width: 704px !important;
- margin: 0;
- padding: 0;
- }
- ::v-deep .box4 .el-input el-input--medium el-input--suffix {
- width: 704px !important;
- margin: 0;
- padding: 0;
- }
- ::v-deep .box4 .el-input__inner {
- width: 704px !important;
- margin: 0;
- padding: 0;
- border: none !important;
- }
- ::v-deep .box4 .el-textarea__inner {
- min-height: 100px !important;
- }
- table td {
- border-bottom: none !important;
- margin: 0px;
- padding: 0px;
- width: 155px;
- height: 38px;
- color: #fff;
- }
- /* 底部确定取消按钮 */
- ::v-deep .el-dialog__footer {
- padding: 18px 42px 30px 0px;
- /* margin-right: 30px; */
- margin-right: 36px;
- }
- /* 增加按钮弹框 */
- ::v-deep .el-dialog {
- width: 1060px !important;
- }
- ::v-deep .el-dialog__body {
- padding: none !important;
- }
- /* 调整输入框提示文字颜色 */
- ::v-deep .vue-treeselect__placeholder {
- color: #bdbdbd4f !important;
- }
- ::v-deep input::-webkit-input-placeholder {
- color: #bdbdbd4f !important;
- }
- ::v-deep input:-moz-placeholder {
- color: #bdbdbd4f !important;
- }
- ::v-deep :-ms-input-placeholder {
- color: #bdbdbd4f !important;
- }
- ::v-deep ::-moz-placeholder {
- color: #bdbdbd4f !important;
- }
- .box2 tr td span {
- font-size: 0.1em;
- }
- ::v-deep ::-webkit-input-placeholder {
- color: #bdbdbd4f !important;
- }
- /* 添加内部滚动条 */
- ::v-deep .el-dialog__body .userAgree {
- height: 600px;
- overflow: auto;
- }
- /*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/
- .userAgree::-webkit-scrollbar {
- width: 14px;
- /* height: 2px !important; */
- background: #3d83b8;
- }
- /*定义滑块,内阴影及圆角*/
- .userAgree::-webkit-scrollbar-thumb {
- /* border-radius: 20px; */
- /* height: 1px;
- width: 3px; */
- background: rgba(144, 206, 252, 1);
- }
- /*定义滚动条的轨道,内阴影及圆角*/
- /* .userAgree::-webkit-scrollbar-track {
- border-radius: 0;
- background: rgba(0, 0, 0, 0);
- } */
- </style>
|