baozhuangbaogong.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. <template>
  2. <div>
  3. <layout>
  4. <layout-content >
  5. <!-- <el-main> -->
  6. <div class="gva-table-box">
  7. <h1 id="title" style="margin: 0%;margin-bottom: 10px;">包装报工</h1>
  8. <el-row :gutter="10" style="align-items: center; margin-bottom: 20px;">
  9. <!-- 子订单编号输入框 -->
  10. <el-col :span="4" style="padding: 0px;margin: 0px;">
  11. <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号"@keyup.enter="add_onSubmit" id="searchInput" style="width: 100%; height: 50px;"/>
  12. </el-col>
  13. <!-- 查询按钮 -->
  14. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  15. <el-button type="primary" icon="search" @click="add_onSubmit"style="height: 50px;width: 80px;">查询</el-button>
  16. </el-col>
  17. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  18. <el-text style="font-size: 30px;">机台号</el-text>
  19. </el-col>
  20. <!-- 机台号输入框 -->
  21. <el-col :span="2"><el-input v-model="add_formData['机台号']" readonly style="width: 100%; height: 40px;"/></el-col>
  22. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  23. <el-text style="font-size: 30px;">工序</el-text>
  24. </el-col>
  25. <!-- 工序输入框 -->
  26. <el-col :span="2"><el-input v-model="add_formData['工序']" readonly style="width: 100%; height: 40px;" /></el-col>
  27. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  28. <el-text style="font-size: 30px;">组别</el-text>
  29. </el-col>
  30. <!-- 组别输入框 -->
  31. <el-col :span="2"><el-input v-model="add_formData['组别']" readonly style="width: 100%; height: 40px;" /></el-col>
  32. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  33. <el-text style="font-size: 30px;">人员</el-text>
  34. </el-col>
  35. <!-- 人员输入框 -->
  36. <el-col :span="2"><el-input v-model="add_formData['人员']" readonly style="width: 100%; height: 40px;"/></el-col>
  37. </el-row>
  38. <el-row :gutter="10" style="align-items: center; margin-bottom: 20px;">
  39. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  40. <el-text style="font-size: 30px;">尺码</el-text>
  41. </el-col>
  42. <!-- 尺码输入框 -->
  43. <el-col :span="2"><el-input v-model="add_formData['尺码']" readonly style="width: 100%; height: 40px;"/></el-col>
  44. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  45. <el-text style="font-size: 30px;">总数量</el-text>
  46. </el-col>
  47. <!-- 总数量输入框 -->
  48. <el-col :span="2"><el-input v-model="add_formData['总数量']" readonly style="width: 100%; height: 40px;"/></el-col>
  49. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  50. <el-text style="font-size: 30px;">剩余数量</el-text>
  51. </el-col>
  52. <!--剩余数量输入框 -->
  53. <el-col :span="2"><el-input v-model="add_formData['剩余数量']" readonly style="width: 100%; height: 40px;"/></el-col>
  54. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  55. <el-text style="font-size: 30px;">上报数量</el-text>
  56. </el-col>
  57. <!--上报数量输入框 -->
  58. <el-col :span="2"><el-input v-model="add_formData['上报数量']" readonly style="width: 100%; height: 40px;"/></el-col>
  59. <!-- 是否尾包文本 -->
  60. <el-col :span="2.5">
  61. <el-text style="font-size: 30px;">是否尾包</el-text>
  62. </el-col>
  63. <!-- 是否尾包按钮 -->
  64. <el-col :span="1">
  65. <el-button
  66. :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"
  67. style="margin-top:-6px; margin-right:15px; height: 50px; width: 60px;
  68. display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc;
  69. border-radius: 4px; color: #000000; font-size: 24px;"
  70. :style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }"
  71. >是</el-button>
  72. </el-col>
  73. <el-col :span="1">
  74. <el-button
  75. :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"
  76. style="margin-top:-6px; height: 50px; width: 60px; margin-left: 10px;
  77. display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc;
  78. border-radius: 4px; color: #000000; font-size: 24px;"
  79. :style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }"
  80. >否</el-button>
  81. </el-col>
  82. </el-row>
  83. <layout-content >
  84. <el-main>
  85. <el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
  86. <div @contextmenu.prevent>
  87. <el-table ref="multipleTableRef" style="width: 100%;height: 53vh"
  88. :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
  89. :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
  90. :data="add_tableData" border row-key="ID" size="small"
  91. highlight-current-row="true" tooltip-effect="dark"
  92. @row-dblclick="add_updateCompanyFunc" @row-click="add_tableRowClick" @row-contextmenu="handleRightClick"
  93. :show-overflow-tooltip="true" @selection-change="add_xpSelectionChange">
  94. <!-- <el-table-column type="selection" width="70" /> -->
  95. <el-table-column sortable align="left" label="流水号" prop="serial" width="100"/>
  96. <el-table-column sortable align="left" label="报工时间" prop="sys_rq" width="160"/>
  97. <el-table-column sortable align="left" label="订单编号" prop="订单编号" width="130"/>
  98. <el-table-column sortable align="left" label="订单子编号" prop="子订单编号" width="140"/>
  99. <!-- <el-table-column sortable align="left" label="款式" prop="款式" width="140"/> -->
  100. <el-table-column sortable align="left" label="色系名称" prop="颜色" width="130"/>
  101. <el-table-column sortable align="left" label="尺码" prop="尺码" width="110"/>
  102. <el-table-column sortable align="left" label="数量" prop="数量" width="110"/>
  103. <el-table-column sortable align="left" label="上报数量" prop="上报数量" width="110"/>
  104. <el-table-column sortable align="left" label="是否尾包" prop="尾包" width="130"/>
  105. <el-table-column sortable align="left" label="组别" prop="组别" width="130"/>
  106. </el-table>
  107. </div>
  108. </el-row>
  109. </el-main>
  110. </layout-content>
  111. <div class="dialog-footer" style="text-align: left;margin-right: 60px;">
  112. <el-button type="primary" @click="add_Dialog" id="add_Dialog" :disabled="add_Dialogonclick === false" style="width: 110px;height: 60px;font-size: 20px; margin-left: 20px;">确认</el-button>
  113. <el-button type="primary" @click="gd_yulan" style="width: 100px;height: 60px;font-size: 20px;">工单预览</el-button>
  114. </div>
  115. </div>
  116. <!-- </el-main> -->
  117. </layout-content>
  118. </layout>
  119. <PrintPage ref="printPageRef" />
  120. </div>
  121. </template>
  122. <script>
  123. export default {
  124. methods: {
  125. handleKeyDown(event, prevId, currentId, nextId) {
  126. const currentElement = document.getElementById(currentId);
  127. const isEmpty = currentElement.value === '';
  128. const atStart = currentElement.selectionStart === 0;
  129. const atEnd = currentElement.selectionStart === currentElement.value.length;
  130. switch (event.keyCode) {
  131. case 13: // Enter
  132. case 40: // 向下箭头
  133. if (nextId) {
  134. document.getElementById(nextId).focus();
  135. }
  136. break;
  137. case 38: // 向上箭头
  138. if (prevId) {
  139. document.getElementById(prevId).focus();
  140. }
  141. break;
  142. case 8: // 删除键
  143. if (prevId && (isEmpty || atStart)) {
  144. document.getElementById(prevId).focus();
  145. }
  146. break;
  147. case 37: // 向左箭头
  148. if (prevId && atStart) {
  149. document.getElementById(prevId).focus();
  150. }
  151. break;
  152. case 39: // 向右箭头
  153. if (nextId && atEnd) {
  154. document.getElementById(nextId).focus();
  155. }
  156. break;
  157. default:
  158. break;
  159. }
  160. },
  161. },
  162. };
  163. </script>
  164. <script setup>
  165. // 全量引入格式化工具 请按需保留
  166. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  167. import {hiprint} from "vue-plugin-hiprint";
  168. import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
  169. import {getSpotList,search,getTab} from '@/api/mes/job'
  170. import {getMachineMac} from '@/api/jixiaoguanli/jitairibaobiao'
  171. import {getMac} from '@/api/jixiaoguanli/baogong'
  172. import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
  173. import {ElMessage} from "element-plus";
  174. import { get } from 'scriptjs';
  175. defineOptions({name: 'Company'})
  176. const printPageRef = ref()
  177. // =========== 全局获取当前日期 ===========
  178. // currentDate 年月日 时分秒
  179. // currentDates 年月日
  180. const today = new Date();
  181. const year = today.getFullYear();
  182. const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要补零
  183. const day = String(today.getDate()).padStart(2, '0');
  184. const hours = String(today.getHours()).padStart(2, '0');
  185. const minutes = String(today.getMinutes()).padStart(2, '0');
  186. const seconds = String(today.getSeconds()).padStart(2, '0');
  187. const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  188. const currentDates = `${year}-${month}-${day}`;
  189. //全局获取code,接口接收code
  190. const _code = '包装'
  191. //全局接口接受的物理地址
  192. const Machine = ref('')
  193. //全局获取UniqId
  194. const UniqId = ref('')
  195. //全局获取工序
  196. const _gx = '7'
  197. //全局获取工序名称
  198. const _gxmc = '包装'
  199. //物理地址获取机台编号
  200. const getMachineMacdata = async () => {
  201. console.log("包装机台获取物理地址",Machine.value)
  202. try {
  203. const data = await getMachineMac({sys_sbID:Machine.value});
  204. add_formData['机台号'] = data.data['机台号']
  205. add_formData['工序'] = data.data['生产工序']
  206. add_formData['组别'] = data.data['组别']
  207. add_formData['人员'] = data.data['组长']
  208. setTimeout(() => {
  209. const inputElement = document.getElementById('searchInput');
  210. if (inputElement) {
  211. inputElement.focus();
  212. }
  213. }, 100); // 延迟100毫秒
  214. } catch (error) {
  215. console.error(error)
  216. }
  217. }
  218. //自动获取物理地址
  219. const GetAddr = () => {
  220. var xmlhttp = null;
  221. var res;
  222. if (window.XMLHttpRequest) {
  223. xmlhttp = new XMLHttpRequest();
  224. } else if (window.ActiveXObject) {
  225. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  226. }
  227. // 2. 设置回调函数
  228. xmlhttp.onreadystatechange = function() {
  229. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  230. res = eval('('+xmlhttp.response+')');
  231. let result = ''
  232. for (let i = 0; i < res.macAddress.length; i++) {
  233. if (i % 2 === 0 && i !== 0) {
  234. result += '-' // 根据实际需求修改分隔符
  235. }
  236. result += res.macAddress[i]
  237. }
  238. Machine.value = result
  239. getMachineMacdata(Machine.value)
  240. }
  241. }
  242. // 3. 打开一个连接
  243. xmlhttp.open("get", "http://127.0.0.1:8090/init")
  244. // 5. 发送
  245. xmlhttp.send();
  246. }
  247. // getMachineMacdata();
  248. GetAddr()
  249. //搜索
  250. const add_searchInfo = ref('')
  251. //表格
  252. const add_tableData = reactive([]);
  253. //尾包选中值
  254. const activeButtonValue = ref('')
  255. //代表扫描两次自动保存
  256. const searcs = ref('')
  257. const _order = ref('')
  258. //查询询钮
  259. const add_onSubmit = async ()=>{
  260. if(add_searchInfo.value === '' || add_searchInfo.value === undefined){
  261. const WorkListdata = [];
  262. add_tableData.splice(0,add_tableData.length,...WorkListdata);
  263. ElMessage({type: 'warning',message: '请扫描小票二维码' })
  264. }else{
  265. add_formData['尺码'] = ''
  266. add_formData['总数量'] = ''
  267. add_formData['剩余数量'] = ''
  268. add_formData['上报数量'] = ''
  269. // if(searcs.value === ''){
  270. _order.value = add_searchInfo.value;
  271. const sys_sbID = add_formData['机台号']
  272. //获取下面报工历史记录
  273. const getSpotLists = await getSpotList({order:add_searchInfo.value,code:_code,sys_sbID:sys_sbID});
  274. activeButtonValue.value = getSpotLists.data.result.wb
  275. UniqId.value = getSpotLists.data.result.UniqId
  276. add_formData['尺码'] = getSpotLists.data.result.cm
  277. add_formData['总数量'] = getSpotLists.data.result.sl
  278. add_formData['剩余数量'] = getSpotLists.data.result.ci_num
  279. add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);
  280. // searcs.value = 1;
  281. add_searchInfo.value = ''
  282. setTimeout(() => {
  283. const inputElement = document.getElementById('sbsl');
  284. if (inputElement) {
  285. inputElement.focus();
  286. }
  287. }, 100); // 延迟100毫秒
  288. // }else{
  289. // add_Dialog();
  290. // }
  291. }
  292. }
  293. const AttendanceVisible=ref(false)
  294. //清空对象的属性值
  295. const gd_clearFormData = () => {
  296. Object.keys(add_formData).forEach(key => {
  297. add_formData[key] = '';
  298. });
  299. };
  300. const add_formData = reactive({
  301. 机台号: '',
  302. 工序: '',
  303. 组别: '',
  304. 人员: '',
  305. 尺码: '',
  306. 数量: '',
  307. 剩余数量: '',
  308. 上报数量:'',
  309. 是否订单尾包: '',
  310. });
  311. const add_Dialogonclick = ref(false)
  312. function baogongslpd() {
  313. // 将字符串转换为数字
  314. const reportedQuantity = parseInt(add_formData['上报数量'], 10) || 0; // 使用10作为基数表示十进制,如果转换失败则返回0
  315. const totalQuantity = parseInt(add_formData['剩余数量'], 10) || 0; // 同样处理
  316. if (reportedQuantity > totalQuantity) {
  317. ElMessage({ type: 'warning', message: '上报数量不能大于剩余数量' });
  318. add_Dialogonclick.value = false;
  319. }else if(reportedQuantity === 0){
  320. add_Dialogonclick.value = false;
  321. } else {
  322. add_Dialogonclick.value = true;
  323. }
  324. }
  325. const currentSlValue=ref('')
  326. //后道确认按钮
  327. const add_Dialog = async ()=>{
  328. if(_order.value === ''){
  329. ElMessage({type: 'warning',message: '请重新扫描小票二维码'})
  330. }else{
  331. console.log(_order.value.split(',')[0])
  332. let params ={}
  333. params.code = _code
  334. params.order = _order.value.split(',')[0].split('-')[0]
  335. params.order_id = _order.value.split(',')[0]
  336. params.gx = _gx
  337. params.gxmc = _gxmc
  338. params.cm = _order.value.split(',')[3]
  339. params.sl = _order.value.split(',')[4]
  340. params.sczl_jtbh = add_formData['机台号']
  341. params.sczl_bh = add_formData['组别']
  342. params.wb = _order.value.split(',')[5]
  343. params.sys_id = add_formData['人员']
  344. params.UniqId = UniqId.value
  345. params.s_num = add_formData['上报数量']
  346. params.ci_num = add_formData['剩余数量']
  347. console.log(params)
  348. // return false;
  349. const cf_gettab = await search(params); // 调用search函数
  350. if (cf_gettab.code === 0) {
  351. // const firstPart = add_searchInfo.value.split(',')[0];
  352. //上报后历史记录表格刷新
  353. const lsjltable = await getTab({order_id:_order.value.split(',')[0],sczl_jtbh:add_formData['机台号']});
  354. add_tableData.splice(0,add_tableData.length,...lsjltable.data.records);
  355. // //上报后刷新表格数据
  356. // const getSpotLists = await getSpotList({order:_order.value.split(',')[0],code:_code,sys_sbID:sys_sbID});
  357. // add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);
  358. add_searchInfo.value = '';
  359. setTimeout(() => {
  360. const inputElement = document.getElementById('searchInput');
  361. if (inputElement) {
  362. inputElement.focus();
  363. }
  364. }, 100); // 延迟100毫秒
  365. // searcs.value = '';
  366. add_formData['尺码']=''
  367. add_formData['总数量']=''
  368. add_formData['上报数量']=''
  369. add_formData['剩余数量']=''
  370. // searcs.value = 1;
  371. add_searchInfo.value = ''
  372. ElMessage({type: 'success', message: '报工成功'});
  373. }
  374. }
  375. }
  376. const gd_yulan = () => {
  377. if(_order.value === '' || _order.value === null){
  378. ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
  379. return false;
  380. }else{
  381. const order = _order.value.split('-')[0]
  382. printPageRef.value.open(order)
  383. }
  384. }
  385. //单击
  386. const add_tableRowClick = async (row) => {
  387. const orderString = `${row['子订单编号']},${row['组别']},3,${row['尺码']},${row['数量']},${row['尾包']}`;
  388. add_formData['尺码'] = row.尺码
  389. add_formData['总数量'] = row.数量
  390. add_formData['剩余数量'] = row.剩余数量
  391. _order.value = orderString
  392. console.log(row)
  393. }
  394. //双击
  395. const add_updateCompanyFunc = async (row) => {
  396. }
  397. //右键
  398. const handleRightClick = async (row) => {
  399. }
  400. //复选框
  401. const add_xpSelectionChange = async (selection) => {
  402. console.log(selection.length)
  403. selectedRows.value = selection;
  404. if (selection.length === 0) {
  405. ElMessage({type: 'warning', message: '请勾选打印的数据' });
  406. return false;
  407. }else if(selection.length>0){
  408. allPrintData.value = selection.map((row) => {
  409. let weibao = row['是否尾包'] === '是' ? 1 : 0;
  410. const ewm = `${row['订单子编号']},01,${row['尺码']},${row['数量']},${weibao}`;
  411. return {
  412. emm: ewm,
  413. zddbh: row['子订单编号'],
  414. kh: row['款号'],
  415. pm: row['款式'],
  416. ys: row['颜色'],
  417. cm: row['尺码'],
  418. sl: row['数量'],
  419. zb: row['组别'],
  420. dyrq: currentDates,
  421. wb: row['尾包']
  422. };
  423. });
  424. }else{
  425. allPrintData.value = [];
  426. }
  427. console.log(allPrintData.value)
  428. }
  429. // =========== 删除按钮 ===========
  430. //记录复选框的值
  431. const bgSelection = ref(null)
  432. const baogong_del = () => {
  433. if(bgSelection.value === null || bgSelection.value === ''){
  434. ElMessage({type: 'warning',message: '请选择删除的数据' })
  435. }else{
  436. console.log(bgSelection.value)
  437. }
  438. }
  439. // 保存当前选中的行数据
  440. const table_selectrows = ref([]);
  441. // 表格复选框选中变化时触发
  442. const table_SelectionChange = (val) => {
  443. table_selectrows.value = val; // 将选中的行数据保存到 table_selectrows
  444. }
  445. // =========== 分页 ===========
  446. // 分页相关的响应式变量
  447. const page = ref(1)
  448. const total = ref(0)
  449. const pageSize = ref(10)
  450. // 分页
  451. const handleCurrentChange = (val) => {
  452. page.value = val;
  453. _getStaffList();
  454. };
  455. // 修改页面容量 点击多少条/页
  456. const handleSizeChange = (val) => {
  457. page.value = 10;//默认显示
  458. pageSize.value = val;
  459. _getStaffList();
  460. };
  461. </script>
  462. <style scoped>
  463. .form-container {
  464. display: flex;
  465. flex-wrap: wrap;
  466. }
  467. .form-column {
  468. /*flex: 1;*/
  469. margin-right: 15px; /* 调整列之间的间距 */
  470. }
  471. /* 左侧输入框宽度调整 */
  472. .form-column .el-form-item .el-input {
  473. width: 150px; /* 调整左侧输入框的宽度 */
  474. }
  475. /* 媒体查询,根据需要调整断点 */
  476. @media screen and (max-width: 768px) {
  477. .form-column {
  478. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  479. margin-right: 0;
  480. }
  481. }
  482. /* 表格复选框大小调整 */
  483. :deep(.el-checkbox.el-checkbox--small .el-checkbox__inner) {
  484. width: 30px; /* 复选框宽度 */
  485. height: 20px; /* 复选框高度 */
  486. }
  487. :deep(.el-checkbox.el-checkbox--small.is-checked .el-checkbox__inner::after) {
  488. transform: scale(1.2) rotate(45deg); /* 调整选中后的对勾大小 */
  489. top: 5%; /* 调整对勾位置 */
  490. left: 40%; /* 调整对勾位置 */
  491. width: 5px; /* 调整对勾宽度 */
  492. height: 9px; /* 调整对勾高度 */
  493. }
  494. /*:deep(.el-table td .cell) {*/
  495. /* line-height: 30px !important;*/
  496. /*}*/
  497. .JKWTree-container {
  498. display: flex;
  499. }
  500. .JKWTree-tree {
  501. /*width: 300px;*/
  502. background-color: #fff;
  503. padding: 10px;
  504. margin-right: 20px;
  505. }
  506. .JKWTree-tree h3 {
  507. font-size: 15px;
  508. font-weight: 700;
  509. margin: 10px 0;
  510. }
  511. .JKWTree-content {
  512. flex: 1;
  513. }
  514. /* 图片上传 */
  515. .upload-box {
  516. width: 200px;
  517. height: 200px;
  518. border: 2px dashed #e2e2e2;
  519. display: flex;
  520. justify-content: center;
  521. align-items: center;
  522. position: relative;
  523. cursor: pointer;
  524. }
  525. .uploaded-image {
  526. width: 100%;
  527. height: 100%;
  528. object-fit: cover;
  529. }
  530. .upload-icon {
  531. font-size: 40px;
  532. color: #c0c4cc;
  533. }
  534. .file-input {
  535. display: none;
  536. }
  537. .el-table .warning-row {
  538. background: oldlace;
  539. }
  540. /* 选中某行时的背景色 */
  541. :deep(.el-table__body tr.current-row) > td {
  542. background: #ff80ff !important;
  543. }
  544. </style>
  545. <style scoped>
  546. :deep(.el-table td .cell) {
  547. line-height: 20px !important;
  548. }
  549. :deep(.el-tabs__header){
  550. margin-bottom: 0;
  551. }
  552. .search{
  553. margin-left: 0px !important;
  554. margin-right: 10px !important;
  555. }
  556. .bt{
  557. margin-left: 2px !important;
  558. padding: 3px !important;
  559. font-size: 12px;
  560. }
  561. .el-tabs__header{
  562. margin: 0px !important;
  563. }
  564. .gva-table-box{
  565. padding: 0px !important;
  566. margin-left: -10px !important;
  567. }
  568. .mab{
  569. margin-bottom: 5px;
  570. }
  571. /* 点击按钮改变颜色 */
  572. .active-button {
  573. background-color: #ff0000;
  574. }
  575. .default-button {
  576. background-color: #808080;
  577. }
  578. /* 搜索样式 */
  579. ::v-deep .el-input__wrapper #searchInput {
  580. font-size: 16px;
  581. }
  582. ::v-deep .el-input__wrapper #jitaihao {
  583. font-size: 18px;
  584. }
  585. ::v-deep .el-input__wrapper #gongxu {
  586. font-size: 18px;
  587. }
  588. ::v-deep .el-input__wrapper #zubie {
  589. font-size: 18px;
  590. }
  591. ::v-deep .el-input__wrapper #renyuan {
  592. font-size: 18px;
  593. }
  594. ::v-deep .el-input__wrapper #shuliang {
  595. font-size: 18px;
  596. color: red;
  597. }
  598. ::v-deep .el-input__wrapper #chima {
  599. font-size: 18px;
  600. }
  601. ::v-deep .el-input__wrapper #sbsl {
  602. font-size: 18px;
  603. color: red;
  604. }
  605. </style>