chukubaogong.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. <template>
  2. <div>
  3. <layout>
  4. <div class="gva-table-box">
  5. <h1 style="margin: 0%;margin-bottom: 6px;">出库</h1>
  6. <el-row :gutter="24" style="margin-bottom: 6px;">
  7. <el-input v-model="add_searchInfo" placeholder="请扫描订单号或输入生产款号进行出库领料"
  8. @keyup.enter="add_onSubmit"
  9. id="searchInput"
  10. style="width: 340px;height: 50px;margin-left: 10px;">
  11. </el-input>
  12. <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;">出库</el-button>
  13. <el-button type="primary" icon="reading" @click="details_onSubmit" style="height: 50px;font-size: 20px;">出库退还记录</el-button>
  14. </el-row>
  15. </div>
  16. <layout>
  17. <layout-content >
  18. <div class="gva-table-box">
  19. <el-table ref="multipleTable" style="width: 100%;height: 64vh" tooltip-effect="dark"
  20. :row-style="{ height: '40px' }" :header-cell-style="{ padding: '0px' }"
  21. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  22. :data="restableData" border row-key="ID" size="small"
  23. :cell-class-name="tableDataCellClass"
  24. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  25. @row-click="tableRowClick" :show-overflow-tooltip="true"
  26. @selection-change="handleSelectionChange">
  27. <!-- <el-table-column type="selection" width="80" /> -->
  28. <el-table-column align="left" label="订单编号" prop="订单编号" width="105" />
  29. <el-table-column align="left" label="客户编号" prop="客户编号" width="80"/>
  30. <el-table-column align="left" label="生产款号" prop="生产款号" width="170"/>
  31. <el-table-column align="left" label="款式" prop="款式" width="170"/>
  32. <el-table-column align="left" label="接单日期" prop="接单日期" width="160"/>
  33. <el-table-column align="left" label="创建人员" prop="创建人员" width="160"/>
  34. <el-table-column align="left" label="创建时间" prop="创建时间" width="160"/>
  35. </el-table>
  36. <div class="dialog-footer" style="text-align: left;margin-right: 60px;">
  37. </div>
  38. </div>
  39. </layout-content>
  40. </layout>
  41. </layout>
  42. </div>
  43. <el-dialog v-model="res_bomdialogFormVisible" :before-close="res_bomcloseDialog" width="100%" style="height: 100%;margin: 0%;" destroy-on-close>
  44. <div class="dialog-footer" style="margin-top: 5px;">
  45. <el-input v-model="add_lysearchInfo" placeholder="请扫描订单号或输入生产款号进行出库领料"
  46. @keyup.enter="add_lyonSubmit" id="searchInput"
  47. style="width: 340px;height: 50px;margin-left: 10px;">
  48. </el-input>
  49. <el-button type="primary" @click="res_bomcloseDialog" style="width: 100px;height: 50px;margin-left: 10px;">关 闭</el-button>
  50. <el-button type="primary" @click="res_bomenterDialog" style="width: 100px;height: 50px;">确定领用</el-button>
  51. <el-button type="primary" @click="print_lingyong" style="width: 100px;height: 50px;">增加至领用页</el-button>
  52. </div>
  53. <el-divider content-position="left">
  54. <span style="font-size: 18px;color:red;font-weight: bold;margin-left: 20px;">绿色部分可进行填写</span>
  55. </el-divider>
  56. <div style="margin-top: 5px;">
  57. <el-table ref="paichengRef"
  58. :show-overflow-tooltip="true"
  59. highlight-current-row="true"
  60. :row-style="{ height: '0px' }" :header-cell-style="{ padding: '0px' }"
  61. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
  62. style="width: 100%;height: 25vh" border tooltip-effect="dark"
  63. :data="resbomtableData" row-key="ID"
  64. :cell-class-name="scfjfpxsCellClass">
  65. <template v-for="(item, idx) in resbom_tableColumns">
  66. <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
  67. <div v-if="['领用'].includes(item.prop)">
  68. <el-input v-model="row[item.prop]" :clearable="false"
  69. :id="`input${idx}${$index}`" @keyup="resbom_handleKeyDown($event, idx, $index, item.prop)"/>
  70. </div>
  71. <div v-else>{{ row[item.prop] }}</div>
  72. </el-table-column>
  73. </template>
  74. </el-table>
  75. </div>
  76. <el-divider content-position="left">
  77. <span style="font-size: 18px;color:red;font-weight: bold;margin-left: 20px;">面料领用页</span>
  78. </el-divider>
  79. <div style="margin-top: 5px;">
  80. <el-table ref="paichengRef1"
  81. :show-overflow-tooltip="true"
  82. highlight-current-row="true"
  83. :row-style="{ height: '40px' }" :header-cell-style="{ padding: '0px' }"
  84. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  85. style="width: 100%;height: 45vh" border tooltip-effect="dark"
  86. :data="FabriccollartableData" row-key="ID"
  87. :cell-class-name="scfjfpxsCellClass">
  88. <template v-for="(item, idx) in Fabriccollar_tableColumns">
  89. <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
  90. <div v-if="['领用'].includes(item.prop)">
  91. <el-input v-model="row[item.prop]" :clearable="false"
  92. :id="`input${idx}${$index}`" @keyup="resbom_handleKeyDown($event, idx, $index, item.prop)"/>
  93. </div>
  94. <div v-else>{{ row[item.prop] }}</div>
  95. </el-table-column>
  96. </template>
  97. </el-table>
  98. </div>
  99. </el-dialog>
  100. <!-- 出库退还记录 -->
  101. <el-dialog v-model="pickingaddvisible" :before-close="()=> pickingaddvisible = false" style="width: 70%; margin: 5% auto; height: 79%;" :title="'出库退还记录'" destroy-on-close>
  102. <div class="dialog-footer" style="bottom: 10px; right: 10px; width: 100%;">
  103. <el-button type="primary" @click="ckth_closeDialog" style="width: 80px;height: 40px;">取 消</el-button>
  104. </div>
  105. <br>
  106. <div>
  107. <el-tabs v-model="activeName" @tab-click="handleClick">
  108. <el-tab-pane label="出库记录" @click="showTable('出库记录')" name="first">
  109. <el-table ref="multipleTable"
  110. :row-style="{ height: '20px' }"
  111. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  112. :header-cell-style="{ padding: '0px' }"
  113. :show-overflow-tooltip="true"
  114. highlight-current-row="true"
  115. @row-click="tableclick"
  116. @row-dblclick="ysupdateCompanyFunc"
  117. style="width: 100%;height: 36vh" border
  118. :summary-method="getSummaries" tooltip-effect="dark" :data="cktableData" row-key="ID" >
  119. <el-table-column align="left" sortable label="订单编号" prop="订单编号" width="140"/>
  120. <el-table-column align="left" sortable label="款号" prop="款号" width="180"/>
  121. <el-table-column align="left" sortable label="数量" prop="数量" width="105"/>
  122. <el-table-column align="left" sortable label="出库时间" prop="出库时间" width="160"/>
  123. <el-table-column align="left" sortable label="上报机台" prop="上报机台" width="160"/>
  124. </el-table>
  125. </el-tab-pane>
  126. <el-tab-pane label="退还记录" @click="showTable('退还记录')" name="second">
  127. <el-table ref="multipleTable"
  128. :row-style="{ height: '20px' }"
  129. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  130. :header-cell-style="{ padding: '0px' }"
  131. highlight-current-row="true"
  132. :show-overflow-tooltip="true"
  133. :cell-class-name="gysatusCellClass"
  134. @row-dblclick="gdgyupdateCompanyFunc"
  135. @row-click="clickybupdate2"
  136. :row-class-name="rowClassStyle2"
  137. style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="thtableData" row-key="ID">
  138. <el-table-column align="left" sortable label="订单编号" prop="订单编号" width="140"/>
  139. <el-table-column align="left" sortable label="款号" prop="款号" width="180"/>
  140. <el-table-column align="left" sortable label="数量" prop="数量" width="105"/>
  141. <el-table-column align="left" sortable label="出库时间" prop="出库时间" width="160"/>
  142. <el-table-column align="left" sortable label="上报机台" prop="上报机台" width="160"/>
  143. </el-table>
  144. </el-tab-pane>
  145. </el-tabs>
  146. </div>
  147. </el-dialog>
  148. </template>
  149. <script>
  150. //点击按钮显示下方表格
  151. export default {
  152. data() {
  153. return {
  154. currentTable: '', // 当前展示的表格
  155. activeName: 'first',
  156. _ddhval:'',
  157. add_gddialogFormVisible: true,
  158. };
  159. },
  160. methods: {
  161. }
  162. };
  163. </script>
  164. <script setup>
  165. // 全量引入格式化工具 请按需保留
  166. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  167. import {ref, reactive} from 'vue'
  168. import {getSpotList,getSpotTab,orderSearch,outReport,orderBomList,FabricDetail} from '@/api/mes/job'
  169. import {ElMessage} from "element-plus";
  170. // import { get } from 'scriptjs';
  171. defineOptions({name: 'Company'})
  172. import { useUserStore } from '@/pinia/modules/user'
  173. //获取用户登录信息
  174. const userStore = useUserStore()
  175. const _username = ref('')
  176. _username.value = userStore.userInfo.userName + '/' + userStore.userInfo.nickName
  177. console.log('获取用户名称',_username.value)
  178. //全局调用获取当前日期
  179. const today = new Date();
  180. const year = today.getFullYear();
  181. const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要补零
  182. const day = String(today.getDate()).padStart(2, '0');
  183. const hours = String(today.getHours()).padStart(2, '0');
  184. const minutes = String(today.getMinutes()).padStart(2, '0');
  185. const seconds = String(today.getSeconds()).padStart(2, '0');
  186. const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  187. const currentDates = `${year}-${month}-${day}`;
  188. //自动聚焦光标input
  189. const getMachineMacdata = async () => {
  190. setTimeout(() => {
  191. const inputElement = document.getElementById('searchInput');
  192. if (inputElement) {
  193. inputElement.focus();
  194. }
  195. }, 100); // 延迟100毫秒
  196. }
  197. getMachineMacdata();
  198. //全局调用参数
  199. const add_searchInfo = ref('')//搜索
  200. const add_lysearchInfo = ref('')//搜索
  201. const restableData = reactive([])//表格
  202. const _orderid = ref('')//订单子编号
  203. const _kh = ref('')//生产款号
  204. //查询按钮
  205. const add_onSubmit = async ()=>{
  206. restableData.splice(0, restableData.length);//清空表格
  207. //订单信息数据查询【接口】
  208. const orderSearchdata = await orderSearch({search:add_searchInfo.value});
  209. if(orderSearchdata.data.length === 1){
  210. res_bomdialogFormVisible.value = true
  211. _orderid.value = orderSearchdata.data[0]['订单编号']
  212. add_lysearchInfo.value = add_searchInfo.value
  213. Reporting_onSubmit()
  214. }else{
  215. restableData.splice(0,orderSearchdata.length,...orderSearchdata.data);
  216. }
  217. };
  218. //表格行点击
  219. const tableRowClick = async (row)=>{
  220. console.log(row)
  221. add_searchInfo.value = row.订单编号
  222. _orderid.value = row.订单编号
  223. _kh.value = row.生产款号
  224. }
  225. //出库查询
  226. const add_lyonSubmit = async ()=>{
  227. try {
  228. const orderBomListdata = await orderBomList({order:add_lysearchInfo.value});
  229. resbomtableData.value = orderBomListdata.data;
  230. const formattedData = orderBomListdata.data.map(item=>{
  231. item.物料名称 = item.物料名称;
  232. item.计划用料 = item.计划用料;
  233. item.定额用料 = item.定额用料;
  234. item.裁床实际用料 = item.裁床实际用料;
  235. item.裁床领用面料 = item.裁床领用面料;
  236. item.裁床退回仓库面料 = item.裁床退回仓库面料;
  237. item.备注 = item.备注;
  238. item.UNIQID = item.UNIQID;
  239. item.领用 = '';
  240. return item
  241. });
  242. } catch (error) {
  243. console.error(error);
  244. }
  245. };
  246. //===========报工==========
  247. const res_bomdialogFormVisible = ref(false)
  248. const resbomtableData = ref([]);
  249. const FabriccollartableData = ref([]);
  250. const ddhformData = reactive({
  251. ddh: '',
  252. kh:'',
  253. sckh:'',
  254. ks:'',
  255. });
  256. const resbom_tableColumns = ref(
  257. [
  258. { label: '订单编号', prop: '订单编号', width: '170' },
  259. { label: '客户', prop: '客户编号', width: '170' },
  260. { label: '生产款号', prop: '生产款号', width: '170' },
  261. { label: '款式', prop: '款式', width: '170' },
  262. { label: '物料名称', prop: '物料名称', width: '170' },
  263. { label: '计划用料', prop: '计划用料', width: '110' },
  264. { label: '定额用料', prop: '定额用料', width: '110' },
  265. { label: '裁床实际用料', prop: '裁床实际用料', width: '115' },
  266. { label: '裁床领用面料', prop: '裁床领用面料', width: '115' },
  267. { label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '150' },
  268. { label: '入库总量', prop: '入库总量', width: '100' },
  269. { label: '面料结余', prop: '面料结余', width: '110' },
  270. { label: '本次领用', prop: '领用', width: '110' },
  271. // { label: '备注', prop: '备注', width: '120' },
  272. { label: '投料单位', prop: '投料单位', width: '100' },
  273. // { label: 'UNIQID', prop: 'UNIQID', width: '80' },
  274. ]
  275. )
  276. const Fabriccollar_tableColumns = ref(
  277. [
  278. { label: '订单编号', prop: '订单编号', width: '170' },
  279. { label: '客户', prop: '客户编号', width: '170' },
  280. { label: '生产款号', prop: '生产款号', width: '170' },
  281. { label: '款式', prop: '款式', width: '170' },
  282. { label: '物料名称', prop: '物料名称', width: '170' },
  283. { label: '计划用料', prop: '计划用料', width: '110' },
  284. { label: '定额用料', prop: '定额用料', width: '110' },
  285. { label: '裁床实际用料', prop: '裁床实际用料', width: '115' },
  286. { label: '裁床领用面料', prop: '裁床领用面料', width: '115' },
  287. { label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '150' },
  288. { label: '入库总量', prop: '入库总量', width: '100' },
  289. { label: '面料结余', prop: '面料结余', width: '110' },
  290. { label: '本次领用', prop: '领用', width: '110' },
  291. // { label: '备注', prop: '备注', width: '120' },
  292. { label: '投料单位', prop: '投料单位', width: '100' },
  293. // { label: 'UNIQID', prop: 'UNIQID', width: '80' },
  294. ]
  295. )
  296. //报工按钮
  297. const Reporting_onSubmit = async ()=>{
  298. if(_orderid.value === '' || _orderid.value === null){
  299. ElMessage({type: 'warning',message: '请扫描订单后,再操作此功能'})
  300. }else{
  301. add_lysearchInfo.value = add_searchInfo.value
  302. res_bomdialogFormVisible.value = true
  303. FabriccollartableData.value = [];
  304. const orderBomListlsit = await orderBomList({order:_orderid.value});
  305. console.log(orderBomListlsit)
  306. _TestCoefficient();
  307. }
  308. }
  309. //bom数据获取
  310. const _TestCoefficient = async ()=>{
  311. try {
  312. ddhformData.ddh = restableData[0]['订单编号']
  313. ddhformData.kh = restableData[0]['客户编号']
  314. ddhformData.sckh = restableData[0]['生产款号']
  315. ddhformData.ks = restableData[0]['款式']
  316. const orderBomListdata = await orderBomList({order:_orderid.value});
  317. console.log(orderBomListdata)
  318. resbomtableData.value = orderBomListdata.data;
  319. const formattedData = orderBomListdata.data.map(item=>{
  320. item.物料名称 = item.物料名称;
  321. item.计划用料 = item.计划用料;
  322. item.定额用料 = item.定额用料;
  323. item.裁床实际用料 = item.裁床实际用料;
  324. item.裁床领用面料 = item.裁床领用面料;
  325. item.裁床退回仓库面料 = item.裁床退回仓库面料;
  326. item.备注 = item.备注;
  327. item.UNIQID = item.UNIQID;
  328. item.领用 = '';
  329. return item
  330. });
  331. } catch (error) {
  332. console.error(error);
  333. }
  334. }
  335. // const resbom_handleKeyDown = (event, x, y, prop) => {
  336. // const currentElement = document.getElementById(`input${x}${y}`);
  337. // if (currentElement === null && currentElement === undefined) return
  338. // let move = 0
  339. // switch (event.keyCode) {
  340. // case 13: // Enter
  341. // case 40: // 向下箭头
  342. // if (y < resbomtableData.value.length )
  343. // document.getElementById(`input${x}${y + 1}`).focus();
  344. // break;
  345. // case 38: // 向上箭头
  346. // if ( y > 0) {
  347. // document.getElementById(`input${x}${y - 1}`).focus();
  348. // }
  349. // break;
  350. // case 39: // 向左箭头
  351. // if (x >= 0 && x <=6) {
  352. // move = x + 1
  353. // }
  354. // document.getElementById(`input${move}${y}`).focus();
  355. // break;
  356. // case 37: // 向右箭头
  357. // if (x = 0 && x <=6) {
  358. // move = x - 1
  359. // }
  360. // document.getElementById(`input${move}${y}`).focus();
  361. // break;
  362. // default:
  363. // break;
  364. // }
  365. // }
  366. const scfjfpxsCellClass = ({row, column, rowIndex, columnIndex}) =>{
  367. if (column.label === '本次领用') {
  368. return 'background-plan-usage-low';
  369. }
  370. }
  371. // 确定
  372. const res_bomenterDialog = async() => {
  373. if(FabriccollartableData.value.length === 0){
  374. ElMessage({ type: 'warning',message: '请先添加领用信息'})
  375. return
  376. }
  377. const rawValueArray = FabriccollartableData._rawValue;
  378. const formattedData = rawValueArray.map(item => {
  379. return {
  380. order_id: ddhformData.ddh,
  381. 款号: ddhformData.kh,
  382. 物料名称: item.物料名称 !== null ? item.物料名称 : "",
  383. number: item.领用 !== null ? item.领用 : "",
  384. rq: currentDate,
  385. name: "出库",
  386. sys_id: _username.value
  387. }
  388. });
  389. console.log(formattedData);
  390. const add_outReport = await outReport(formattedData);
  391. if (add_outReport.code === 0) {
  392. res_bomdialogFormVisible.value = false;
  393. ElMessage({type: 'success',message: '领用成功'})
  394. } else {
  395. ElMessage({ type: 'error',message: '领用失败'})
  396. }
  397. }
  398. // 取消
  399. const res_bomcloseDialog = () => {
  400. res_bomdialogFormVisible.value = false;
  401. }
  402. // 增加至领用页
  403. const print_lingyong = async () => {
  404. const filteredData = resbomtableData.value.filter(item => item.领用 && item.领用.trim() !== "");
  405. // 将过滤后的数据添加到 FabriccollartableData
  406. FabriccollartableData.value.push(...filteredData);
  407. }
  408. //=============出库退还记录==================
  409. const cktableData = reactive([])
  410. const thtableData = reactive([])
  411. const pickingaddvisible = ref(false)//弹窗
  412. // const detailData = reactive({})
  413. const add_prinkformData = reactive({});
  414. //详情按钮
  415. const details_onSubmit = async ()=>{
  416. pickingaddvisible.value = true
  417. const FabricDetaillist = await FabricDetail({order:_orderid.value});
  418. console.log(FabricDetaillist)
  419. cktableData.splice(0,FabricDetaillist.length,...FabricDetaillist.data['出库记录']);
  420. thtableData.splice(0,FabricDetaillist.length,...FabricDetaillist.data['退还记录']);
  421. }
  422. //领料取消
  423. const ckth_closeDialog = async ()=>{
  424. pickingaddvisible.value = false
  425. //自动聚焦光标input
  426. getMachineMacdata();
  427. }
  428. // =========== 分页 ===========
  429. // 分页相关的响应式变量
  430. const page = ref(1)
  431. const total = ref(0)
  432. const pageSize = ref(10)
  433. // 分页
  434. const handleCurrentChange = (val) => {
  435. page.value = val;
  436. _getStaffList();
  437. };
  438. // 修改页面容量 点击多少条/页
  439. const handleSizeChange = (val) => {
  440. page.value = 10;//默认显示
  441. pageSize.value = val;
  442. _getStaffList();
  443. };
  444. </script>
  445. <style scoped>
  446. /* 根据出库状态文字颜色 */
  447. :deep(.status-plan-usage-low div) {
  448. color: #8c939d !important;
  449. }
  450. :deep(.statusy-plan-usage-low div) {
  451. color: blue !important;
  452. }
  453. .form-container {
  454. display: flex;
  455. flex-wrap: wrap;
  456. }
  457. .form-column {
  458. /*flex: 1;*/
  459. margin-right: 15px; /* 调整列之间的间距 */
  460. }
  461. /* 左侧输入框宽度调整 */
  462. .form-column .el-form-item .el-input {
  463. width: 150px; /* 调整左侧输入框的宽度 */
  464. }
  465. /* 媒体查询,根据需要调整断点 */
  466. @media screen and (max-width: 768px) {
  467. .form-column {
  468. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  469. margin-right: 0;
  470. }
  471. }
  472. .JKWTree-container {
  473. display: flex;
  474. }
  475. .JKWTree-tree {
  476. /*width: 300px;*/
  477. background-color: #fff;
  478. padding: 10px;
  479. margin-right: 20px;
  480. }
  481. .JKWTree-tree h3 {
  482. font-size: 15px;
  483. font-weight: 700;
  484. margin: 10px 0;
  485. }
  486. .JKWTree-content {
  487. flex: 1;
  488. }
  489. /* 表格复选框大小调整 */
  490. :deep(.el-checkbox.el-checkbox--small .el-checkbox__inner) {
  491. width: 45px; /* 复选框宽度 */
  492. height: 23px; /* 复选框高度 */
  493. }
  494. /*bom参数背景*/
  495. :deep(.el-table__body .background-plan-usage-low div div div) {
  496. background: #80FA80 !important;
  497. }
  498. /* 选中某行时的背景色 */
  499. :deep(.el-table__body tr.current-row) > td {
  500. background: #ff80ff !important;
  501. }
  502. :deep(.el-checkbox.el-checkbox--small.is-checked .el-checkbox__inner::after) {
  503. transform: scale(1.2) rotate(45deg); /* 调整选中后的对勾大小 */
  504. top: 5%; /* 调整对勾位置 */
  505. left: 40%; /* 调整对勾位置 */
  506. width: 5px; /* 调整对勾宽度 */
  507. height: 9px; /* 调整对勾高度 */
  508. }
  509. /* 选中某行时的背景色 */
  510. :deep(.el-table__body tr.current-row) > td {
  511. background: #ff80ff !important;
  512. }
  513. </style>
  514. <style scoped>
  515. :deep(.el-table td .cell) {
  516. line-height: 20px !important;
  517. }
  518. :deep(.el-tabs__header){
  519. margin-bottom: 0;
  520. }
  521. .search{
  522. margin-left: 0px !important;
  523. margin-right: 10px !important;
  524. }
  525. .bt{
  526. margin-left: 2px !important;
  527. padding: 3px !important;
  528. font-size: 12px;
  529. }
  530. .el-tabs__header{
  531. margin: 0px !important;
  532. }
  533. .gva-table-box{
  534. padding: 0px !important;
  535. margin-left: 5px !important;
  536. }
  537. .mab{
  538. margin-bottom: 5px;
  539. }
  540. /* 搜索样式 */
  541. ::v-deep .el-input__wrapper #searchInput {
  542. font-size: 16px;
  543. }
  544. ::v-deep(.el-descriptions__table tbody tr .is-bordered-label){
  545. width: 30px;
  546. }
  547. ::v-deep(.el-descriptions__table tbody tr .el-descriptions__content){
  548. width: 120px;
  549. }
  550. </style>