inventoryTable.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <el-form ref="form" :model="form" :rules="rules">
  3. <ele-pro-table
  4. ref="table"
  5. :needPage="false"
  6. :columns="columns"
  7. :toolkit="[]"
  8. max-height="500px"
  9. :datasource="form.datasource"
  10. cache-key="systemRoleTable17"
  11. class="time-form"
  12. >
  13. <!-- 表头工具栏 -->
  14. <template v-slot:toolbar>
  15. <div class="headbox">
  16. <div>
  17. <el-button
  18. size="small"
  19. type="primary"
  20. icon="el-icon-plus"
  21. class="ele-btn-icon"
  22. @click="handParent('',-1)"
  23. >
  24. 新增
  25. </el-button>
  26. <el-button
  27. size="small"
  28. type="primary"
  29. icon="el-icon-plus"
  30. class="ele-btn-icon"
  31. @click="handlAdd"
  32. >
  33. 新增临时产品
  34. </el-button>
  35. </div>
  36. </div>
  37. </template>
  38. <template v-slot:productName="{ row, $index }">
  39. <el-form-item
  40. style="margin-bottom: 20px"
  41. :prop="'datasource.' + $index + '.productName'"
  42. :rules="{
  43. required: true,
  44. message: '请输入',
  45. trigger: 'change'
  46. }"
  47. >
  48. <el-input
  49. v-model="row.productName"
  50. placeholder="请输入"
  51. style="width: 60%; margin-right: 10px"
  52. :disabled="!!row.productCode"
  53. ></el-input>
  54. <el-button
  55. size="small"
  56. type="primary"
  57. @click.native="handParent(row, $index)"
  58. >选择
  59. </el-button
  60. >
  61. </el-form-item>
  62. </template>
  63. <template v-slot:productCode="scope">
  64. <el-form-item
  65. style="margin-bottom: 20px"
  66. :prop="'datasource.' + scope.$index + '.productCode'"
  67. >
  68. <el-input v-model="scope.row.productCode" disabled></el-input>
  69. </el-form-item>
  70. </template>
  71. <template v-slot:productCategoryName="scope">
  72. <el-form-item
  73. style="margin-bottom: 20px"
  74. :prop="'datasource.' + scope.$index + '.productCategoryName'"
  75. >
  76. <el-input v-model="scope.row.productCategoryName" disabled></el-input>
  77. </el-form-item>
  78. </template>
  79. <template v-slot:totalCount="scope">
  80. <el-form-item
  81. style="margin-bottom: 20px"
  82. :prop="'datasource.' + scope.$index + '.totalCount'"
  83. :rules="{
  84. required: true,
  85. pattern: numberReg,
  86. message: '请输入数量',
  87. trigger: 'blur'
  88. }"
  89. >
  90. <el-input
  91. v-model="scope.row.totalCount"
  92. placeholder="请输入"
  93. ></el-input>
  94. </el-form-item>
  95. </template>
  96. <template v-slot:productBrand="scope">
  97. <el-form-item
  98. style="margin-bottom: 20px"
  99. :prop="'datasource.' + scope.$index + '.productBrand'"
  100. >
  101. <el-input
  102. v-model="scope.row.productBrand"
  103. :disabled="!!scope.row.productCode"
  104. ></el-input>
  105. </el-form-item>
  106. </template>
  107. <template v-slot:brand="scope">
  108. <el-form-item
  109. style="margin-bottom: 20px"
  110. :prop="'datasource.' + scope.$index + '.brand'"
  111. >
  112. <el-input v-model="scope.row.brand"></el-input>
  113. </el-form-item>
  114. </template>
  115. <template v-slot:modelType="scope">
  116. <el-form-item
  117. style="margin-bottom: 20px"
  118. :prop="'datasource.' + scope.$index + '.modelType'"
  119. >
  120. <el-input
  121. v-model="scope.row.modelType"
  122. :disabled="!!scope.row.productCode"
  123. ></el-input>
  124. </el-form-item>
  125. </template>
  126. <template v-slot:specification="scope">
  127. <el-form-item
  128. style="margin-bottom: 20px"
  129. :prop="'datasource.' + scope.$index + '.specification'"
  130. >
  131. <el-input
  132. v-model="scope.row.specification"
  133. :disabled="!!scope.row.productCode"
  134. ></el-input>
  135. </el-form-item>
  136. </template>
  137. <template v-slot:measuringUnit="scope">
  138. <el-form-item
  139. style="margin-bottom: 20px"
  140. :prop="'datasource.' + scope.$index + '.measuringUnit'"
  141. >
  142. <el-input
  143. v-model="scope.row.measuringUnit"
  144. placeholder="请输入"
  145. :disabled="!!scope.row.productCode"
  146. ></el-input>
  147. </el-form-item>
  148. </template>
  149. <template v-slot:remark="scope">
  150. <el-form-item
  151. style="margin-bottom: 20px"
  152. :prop="'datasource.' + scope.$index + '.remark'"
  153. >
  154. <el-input
  155. v-model="scope.row.remark"
  156. type="textarea"
  157. placeholder="请输入"
  158. ></el-input>
  159. </el-form-item>
  160. </template>
  161. <template v-slot:technicalAnswerName="{ row, $index }">
  162. <el-form-item
  163. style="margin-bottom: 20px"
  164. :prop="'datasource.' + $index + '.technicalAnswerName'"
  165. :rules="{
  166. required: false,
  167. message: '请输入',
  168. trigger: 'change'
  169. }"
  170. >
  171. <el-input
  172. v-model="row.technicalAnswerName"
  173. placeholder="请输入"
  174. @click.native="handHead(row, $index)"
  175. ></el-input>
  176. </el-form-item>
  177. </template>
  178. <template v-slot:technicalParams="scope">
  179. <el-form-item
  180. style="margin-bottom: 20px"
  181. :prop="'datasource.' + scope.$index + '.technicalParams'"
  182. :rules="{
  183. required: false,
  184. message: '请输入',
  185. trigger: 'change'
  186. }"
  187. >
  188. <el-input
  189. type="textarea"
  190. v-model="scope.row.technicalParams"
  191. placeholder="请输入"
  192. ></el-input>
  193. </el-form-item>
  194. </template>
  195. <template v-slot:files="scope">
  196. <el-form-item
  197. style="margin-bottom: 20px"
  198. :prop="'datasource.' + scope.$index + '.files'"
  199. >
  200. <fileMain v-model="scope.row.files"></fileMain>
  201. <!-- <fileUpload-->
  202. <!-- v-model="scope.row.files"-->
  203. <!-- module="main"-->
  204. <!-- :showLib="false"-->
  205. <!-- :limit="5"-->
  206. <!-- />-->
  207. </el-form-item>
  208. </template>
  209. <template v-slot:technicalDrawings="scope">
  210. <el-form-item
  211. style="margin-bottom: 20px"
  212. :prop="'datasource.' + scope.$index + '.technicalDrawings'"
  213. >
  214. <fileMain v-model="scope.row.technicalDrawings"></fileMain>
  215. <!-- <fileUpload-->
  216. <!-- v-model="scope.row.technicalDrawings"-->
  217. <!-- module="main"-->
  218. <!-- :showLib="false"-->
  219. <!-- :limit="5"-->
  220. <!-- />-->
  221. </el-form-item>
  222. </template>
  223. <template v-slot:expectReceiveDate="scope">
  224. <el-form-item
  225. v-if="scope.row.arrivalWay == 1"
  226. style="margin-bottom: 20px"
  227. :prop="'datasource.' + scope.$index + '.expectReceiveDate'"
  228. :rules="{
  229. required: true,
  230. message: '请选择到货日期',
  231. trigger: 'blur'
  232. }"
  233. >
  234. <el-date-picker
  235. style="width: 100%"
  236. clearable
  237. v-model="scope.row.expectReceiveDate"
  238. type="date"
  239. value-format="yyyy-MM-dd"
  240. placeholder="请选择日期"
  241. >
  242. </el-date-picker>
  243. </el-form-item>
  244. <el-form-item
  245. style="margin-bottom: 20px"
  246. v-if="scope.row.arrivalWay == 2"
  247. >
  248. <el-link
  249. type="primary"
  250. :underline="false"
  251. @click.native="handleMethod(scope.row)"
  252. >
  253. 设置分批时间
  254. </el-link>
  255. </el-form-item>
  256. </template>
  257. <template v-slot:arrivalWay="scope">
  258. <el-form-item
  259. :prop="'datasource.' + scope.$index + '.arrivalWay'"
  260. :rules="{
  261. required: true,
  262. message: '请选择到货方式',
  263. trigger: 'blur'
  264. }"
  265. >
  266. <el-select
  267. v-model="scope.row.arrivalWay"
  268. clearable
  269. style="width: 100%"
  270. >
  271. <el-option
  272. v-for="item in arrivalWayList"
  273. :key="item.value"
  274. :label="item.label"
  275. :value="item.value"
  276. >
  277. </el-option>
  278. </el-select>
  279. </el-form-item>
  280. </template>
  281. <template v-slot:headerProductName="{ column }">
  282. <span class="is-required">{{ column.label }}</span>
  283. </template>
  284. <template v-slot:headerTotalCount="{ column }">
  285. <span class="is-required">{{ column.label }}</span>
  286. </template>
  287. <template v-slot:headerExpectReceiveDate="{ column }">
  288. <span class="is-required">{{ column.label }}</span>
  289. </template>
  290. <template v-slot:headerArrivalWay="{ column }">
  291. <span class="is-required">{{ column.label }}</span>
  292. </template>
  293. <!-- 操作列 -->
  294. <template v-slot:action="scope">
  295. <el-popconfirm
  296. class="ele-action"
  297. title="确定要删除吗?"
  298. @confirm="remove(scope.$index)"
  299. >
  300. <template v-slot:reference>
  301. <el-link type="danger" :underline="false" icon="el-icon-delete">
  302. 删除
  303. </el-link>
  304. </template>
  305. </el-popconfirm>
  306. </template>
  307. </ele-pro-table>
  308. <product-list
  309. :data="form.datasource"
  310. ref="productListRef"
  311. classType="1"
  312. :is-get-inventory-total="true"
  313. @changeParent="changeParent"
  314. :is-show-c-bom="true"
  315. @getSelectionCbom="getSelectionCbom"
  316. ></product-list>
  317. <head-list ref="headRef" @changeParent="changeAnswer"></head-list>
  318. <timeDialog @chooseTime="chooseTime" ref="timeDialogRef"></timeDialog>
  319. </el-form>
  320. </template>
  321. <script>
  322. import {numberReg} from 'ele-admin';
  323. import productList from '@/BIZComponents/product-list.vue';
  324. import cBomList from '@/BIZComponents/cBom-list.vue';
  325. import dictMixins from '@/mixins/dictMixins';
  326. import fileUpload from '@/components/upload/fileUpload';
  327. import headList from '@/BIZComponents/user-select/user-select.vue';
  328. import timeDialog from '@/components/timeDialog/index.vue';
  329. import {copyObj} from '@/utils/util';
  330. import {getInventoryTotalAPI} from "@/api/wms";
  331. import {getByCode} from "@/api/system/dictionary-data";
  332. import fileMain from "@/components/addDoc/index.vue";
  333. export default {
  334. mixins: [dictMixins],
  335. components: {
  336. fileMain,
  337. productList,
  338. cBomList,
  339. fileUpload,
  340. headList,
  341. timeDialog
  342. },
  343. data() {
  344. const defaultForm = {
  345. key: null,
  346. endTime: '',
  347. isFirst: 0,
  348. name: ''
  349. };
  350. return {
  351. numberReg,
  352. defaultForm,
  353. arrivalWayList: [
  354. {label: '一次性到货', value: 1},
  355. {label: '分批到货', value: 2}
  356. ],
  357. form: {
  358. datasource: []
  359. },
  360. rules: {},
  361. dictList: {},
  362. columns: [
  363. {
  364. width: 45,
  365. type: 'index',
  366. columnKey: 'index',
  367. align: 'center'
  368. },
  369. {
  370. width: 150,
  371. prop: 'productCategoryName',
  372. label: '分类',
  373. slot: 'productCategoryName',
  374. align: "center"
  375. },
  376. {
  377. width: 140,
  378. prop: 'productCode',
  379. label: '编码',
  380. slot: 'productCode',
  381. align: "center"
  382. },
  383. {
  384. width: 240,
  385. prop: 'productName',
  386. label: '名称',
  387. slot: 'productName',
  388. headerSlot: 'headerProductName',
  389. align: "center"
  390. },
  391. {
  392. width: 80,
  393. prop: 'totalCount',
  394. label: '数量',
  395. slot: 'totalCount',
  396. headerSlot: 'headerTotalCount',
  397. align: "center"
  398. },
  399. {
  400. width: 80,
  401. prop: 'availableCountBase',
  402. label: '库存数量',
  403. slot: 'availableCountBase',
  404. align: "center"
  405. },
  406. {
  407. width: 160,
  408. prop: 'arrivalWay',
  409. label: '到货方式',
  410. slot: 'arrivalWay',
  411. headerSlot: 'headerArrivalWay',
  412. align: "center"
  413. },
  414. {
  415. width: 170,
  416. prop: 'expectReceiveDate',
  417. label: '到货日期',
  418. slot: 'expectReceiveDate',
  419. headerSlot: 'headerExpectReceiveDate',
  420. align: "center"
  421. },
  422. {
  423. width: 150,
  424. prop: 'productBrand',
  425. label: '牌号',
  426. slot: 'productBrand',
  427. align: "center"
  428. },
  429. {
  430. width: 130,
  431. prop: 'modelType',
  432. label: '型号',
  433. slot: 'modelType',
  434. align: "center"
  435. },
  436. {
  437. width: 120,
  438. prop: 'specification',
  439. label: '规格',
  440. slot: 'specification',
  441. align: "center"
  442. },
  443. {
  444. width: 120,
  445. prop: 'imgCode',
  446. align: 'center',
  447. label: '图号/件号',
  448. showOverflowTooltip: true
  449. },
  450. {
  451. width: 120,
  452. prop: 'produceType',
  453. align: 'center',
  454. label: '生产类型',
  455. showOverflowTooltip: true,
  456. formatter: (row, column) => {
  457. return row.produceType&&row.produceType.length ? row.produceType.map(item => this.getDictV('productionType', item+'')).join(',') : ''
  458. }
  459. },
  460. {
  461. width: 120,
  462. prop: 'approvalNumber',
  463. align: 'center',
  464. label: '批准文号',
  465. showOverflowTooltip: true
  466. },
  467. {
  468. width: 120,
  469. prop: 'packingSpecification',
  470. align: 'center',
  471. label: '包装规格',
  472. showOverflowTooltip: true
  473. },
  474. {
  475. width: 100,
  476. prop: 'measuringUnit',
  477. label: '单位',
  478. slot: 'measuringUnit',
  479. align: "center"
  480. },
  481. {
  482. width: 130,
  483. prop: 'brand',
  484. label: '品牌',
  485. slot: 'brand',
  486. align: "center"
  487. },
  488. {
  489. width: 160,
  490. prop: 'technicalDrawings',
  491. label: '图纸附件',
  492. slot: 'technicalDrawings'
  493. },
  494. {
  495. width: 160,
  496. prop: 'files',
  497. label: '附件',
  498. slot: 'files'
  499. },
  500. {
  501. width: 220,
  502. prop: 'remark',
  503. label: '备注',
  504. slot: 'remark',
  505. align: "center"
  506. },
  507. {
  508. columnKey: 'action',
  509. label: '操作',
  510. width: 120,
  511. align: 'center',
  512. resizable: false,
  513. slot: 'action',
  514. fixed: 'right',
  515. showOverflowTooltip: true
  516. }
  517. ]
  518. };
  519. },
  520. created() {
  521. this.getDictList('productionType')
  522. },
  523. methods: {
  524. getDictV(code, val) {
  525. if (!this.dictList[code]) return '';
  526. return this.dictList[code].find(item => item.value == val)?.label
  527. },
  528. async getDictList(code) {
  529. let {data: res} = await getByCode(code)
  530. this.dictList[code] = res.map(item => {
  531. let values = Object.keys(item)
  532. return {
  533. value: values[0],
  534. label: item[values[0]]
  535. }
  536. })
  537. },
  538. // 返回列表数据
  539. getTableValue() {
  540. let comitDatasource = this.form.datasource;
  541. if (comitDatasource.length === 0) return [];
  542. comitDatasource.forEach((v) => {
  543. v.totalPrice = (v.totalCount * v.singlePrice)?.toFixed(2) || 0;
  544. v.files = v.files || [];
  545. v.technicalDrawings = v.technicalDrawings || [];
  546. v.arrivalBatch = v.arrivalBatch || [];
  547. });
  548. return comitDatasource;
  549. },
  550. //修改回显
  551. async putTableValue(data) {
  552. if (data && data?.length) {
  553. this.form.datasource = data;
  554. //获取仓库库存
  555. let codeList = this.form.datasource.map(item => item.productCode)
  556. if(codeList.length){
  557. let inventoryTotalList = await getInventoryTotalAPI(codeList);
  558. this.form.datasource.forEach((item) => {
  559. let find =
  560. inventoryTotalList.find((key) => key.code == item.productCode) || {};
  561. item.availableCountBase = find.availableCountBase;
  562. });
  563. }
  564. this.$refs.table.reload()
  565. }
  566. },
  567. handleMethod(row) {
  568. this.$refs.timeDialogRef.open(row);
  569. },
  570. chooseTime(row, arrivalBatch) {
  571. row.arrivalBatch = copyObj(arrivalBatch);
  572. console.log(row, 'row');
  573. },
  574. //cbom新增
  575. handCBom(row, index) {
  576. this.$refs.cBomRef.open(this.form.datasource, index);
  577. },
  578. getSelectionCbom(obj, idx = -1) {
  579. obj.forEach((item, index) => {
  580. let i = idx == -1 ? index : idx;
  581. let row = JSON.parse(JSON.stringify(this.defaultForm));
  582. row.key = this.form.datasource.length + 1;
  583. let parasm = idx == -1 ? row : this.form.datasource[i];
  584. this.$set(parasm, 'productId', item.id);
  585. // this.$set(parasm, 'id', item.id);
  586. this.$set(parasm, 'categoryName', item.name);
  587. this.$set(parasm, 'productCategoryId', item.categoryLevelId);
  588. this.$set(parasm, 'productBrand', item.brandNum);
  589. this.$set(parasm, 'productCategoryName', item.category.categoryLevelPath);
  590. this.$set(parasm, 'totalCount', item.dosage);
  591. this.$set(parasm, 'productCode', item.code);
  592. this.$set(parasm, 'productName', item.name);
  593. this.$set(parasm, 'availableCountBase', item.availableCountBase);
  594. this.$set(parasm, 'modelType', item.modelType);
  595. this.$set(parasm, 'weightUnit', item.unit);
  596. this.$set(parasm, 'measuringUnit', item.unit);
  597. this.$set(parasm, 'specification', item.specification);
  598. this.$set(parasm, 'remark', '');
  599. this.$set(parasm, 'imgCode', item.imgCode);
  600. this.$set(parasm, 'produceType', item.produceType);
  601. this.$set(parasm, 'approvalNumber', item.extField.approvalNumber);
  602. this.$set(parasm, 'packingSpecification', item.extField.packingSpecification);
  603. if (idx == -1) {
  604. this.form.datasource.push(row);
  605. }
  606. })
  607. },
  608. //选择产品
  609. handParent(row, index) {
  610. // let item = {
  611. // id: row.productCode
  612. // };
  613. this.$refs.productListRef.open(this.form.datasource, index);
  614. },
  615. //选择技术人回调
  616. changeAnswer(obj, idx) {
  617. this.$set(this.form.datasource[idx], 'technicalAnswerId', obj.id);
  618. this.$set(this.form.datasource[idx], 'technicalAnswerName', obj.name);
  619. },
  620. handHead(row, index) {
  621. let item = {
  622. id: row.technicalAnswerId
  623. };
  624. this.$refs.headRef.open(item, index);
  625. },
  626. //选择产品回调
  627. changeParent(obj = [], idx) {
  628. // if (
  629. // obj.code &&
  630. // this.form.datasource
  631. // .map((item) => item.productCode)
  632. // .includes(obj.code)
  633. // ) {
  634. // this.$message.warning('不能选择重复的产品');
  635. // return;
  636. // }
  637. obj.forEach((item, index) => {
  638. let i = idx == -1 ? index : idx;
  639. let row = JSON.parse(JSON.stringify(this.defaultForm));
  640. row.key = this.form.datasource.length + 1;
  641. let parasm = idx == -1 ? row : this.form.datasource[i];
  642. this.$set(parasm, 'productId', item.id);
  643. // this.$set(parasm, 'id', item.id);
  644. this.$set(parasm, 'categoryName', item.name);
  645. this.$set(parasm, 'productCategoryId', item.categoryLevelId);
  646. this.$set(parasm, 'productBrand', item.brandNum);
  647. this.$set(parasm, 'productCategoryName', item.categoryLevelPath);
  648. this.$set(parasm, 'productCode', item.code);
  649. this.$set(parasm, 'productName', item.name);
  650. this.$set(parasm, 'availableCountBase', item.availableCountBase);
  651. this.$set(parasm, 'modelType', item.modelType);
  652. this.$set(parasm, 'weightUnit', item.weightUnit);
  653. this.$set(parasm, 'measuringUnit', item.measuringUnit);
  654. this.$set(parasm, 'specification', item.specification);
  655. this.$set(parasm, 'remark', '');
  656. this.$set(parasm, 'imgCode', item.imgCode);
  657. this.$set(parasm, 'produceType', item.produceType);
  658. this.$set(parasm, 'approvalNumber', item.extField.approvalNumber);
  659. this.$set(parasm, 'packingSpecification', item.extField.packingSpecification);
  660. if (idx == -1) {
  661. this.form.datasource.push(row);
  662. }
  663. })
  664. },
  665. remove(i) {
  666. this.form.datasource.splice(i, 1);
  667. this.setSort();
  668. },
  669. // 清空表格
  670. restTable() {
  671. this.form.datasource = [];
  672. },
  673. // 重新排序
  674. setSort() {
  675. this.form.datasource.forEach((n, index) => {
  676. n.key = index + 1;
  677. });
  678. },
  679. // 添加
  680. handlAdd() {
  681. let item = JSON.parse(JSON.stringify(this.defaultForm));
  682. item.key = this.form.datasource.length + 1;
  683. this.form.datasource.push(item);
  684. },
  685. validateForm(callback) {
  686. //开始表单校验
  687. this.$refs.form.validate((valid,obj) => {
  688. if(obj){
  689. let messages= Object.keys(obj).map(key=>obj[key][0])
  690. if(messages.length>0){
  691. this.$message.warning(messages[0].message);
  692. }
  693. }
  694. callback(valid);
  695. });
  696. }
  697. }
  698. };
  699. </script>
  700. <style lang="scss" scoped>
  701. .headbox {
  702. display: flex;
  703. justify-content: space-between;
  704. align-items: center;
  705. .amount {
  706. font-size: 14px;
  707. font-weight: bold;
  708. }
  709. }
  710. .time-form .el-form-item {
  711. margin-bottom: 0 !important;
  712. }
  713. ::v-deep .period {
  714. display: flex;
  715. .borderleftnone {
  716. .el-input--medium .el-input__inner {
  717. border-top-right-radius: 0;
  718. border-bottom-right-radius: 0;
  719. }
  720. }
  721. .borderrightnone {
  722. .el-input--medium .el-input__inner {
  723. border-top-left-radius: 0;
  724. border-bottom-left-radius: 0;
  725. }
  726. }
  727. }
  728. ::v-deep .time-form tbody > tr:hover > td {
  729. background-color: transparent !important;
  730. }
  731. ::v-deep .time-form .el-table tr {
  732. background-color: #ffffff;
  733. }
  734. </style>