zongjianbaogong.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <template>
  2. <div>
  3. <layout>
  4. <layout-content >
  5. <el-main>
  6. <div class="gva-table-box">
  7. <h1 style="margin: 0%;margin-bottom: 10px;">总检报工</h1>
  8. <el-row :gutter="24" style="margin-bottom: 15px;">
  9. <el-input v-model="add_searchInfo" placeholder="扫描订单子编号二维码获取"
  10. @keyup.enter="add_onSubmit"
  11. id="searchInput"
  12. style="width: 230px;margin: 5px;height: 50px;">
  13. </el-input>
  14. <el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>
  15. <el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
  16. <el-input v-model="add_formData['机台号']" style="width: 110px;height: 40px;" id="机台号" />
  17. </el-form-item>
  18. <el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
  19. <el-input v-model="add_formData['工序']" style="width: 110px;height: 40px;" id="工序" />
  20. </el-form-item>
  21. <el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
  22. <el-input v-model="add_formData['组别']" style="width: 110px;height: 40px;" id="组别" />
  23. </el-form-item>
  24. <el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
  25. <el-input v-model="add_formData['人员']" style="width: 110px;height: 40px;" id="人员" />
  26. </el-form-item>
  27. <el-form-item label="数量:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
  28. <el-input v-model="add_formData['数量']" style="width: 110px;height: 40px;" id="数量" />
  29. </el-form-item>
  30. <el-form-item label="尺码:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
  31. <el-input v-model="add_formData['尺码']" style="width: 110px;height: 40px;" id="尺码" />
  32. </el-form-item>
  33. </el-row>
  34. <el-row :gutter="24">
  35. <el-form-item label="是否尾包:" prop="joinDate" style="font-size: 30px; margin: 10px;" label-width="150">
  36. <!-- 假设 activeButtonValue 是从后端或某个方法获取的,这里直接硬编码为 0 或 1 -->
  37. <div
  38. :class="{'info-button': activeButtonValue === '1', 'default-button': activeButtonValue !== '1'}"
  39. style="margin-top:-20px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"
  40. :style="{ backgroundColor: activeButtonValue === '1' ? '#ff0000' : '#808080' }"
  41. >
  42. </div>
  43. <div
  44. :class="{'info-button': activeButtonValue === '0', 'default-button': activeButtonValue !== '0'}"
  45. style="margin-top:-20px; height: 50px; width: 70px; display: flex; justify-content: center; align-items: center; cursor: not-allowed; border: 1px solid #ccc; border-radius: 4px; color: #000000;"
  46. :style="{ backgroundColor: activeButtonValue === '0' ? '#ff0000' : '#808080' }"
  47. >
  48. </div>
  49. </el-form-item>
  50. </el-row>
  51. <!-- <el-row :gutter="24">
  52. <el-form-item label="尺码" class="mab" prop="keyOrder" label-width="220" style="font-size: 30px;margin: 10px;">
  53. <el-input v-model="cmformdata.cm1" disabled style="width: 90px;height: 40px;"/>
  54. <el-input v-model="cmformdata.cm2" disabled style="width: 90px;height: 40px;"/>
  55. <el-input v-model="cmformdata.cm3" disabled style="width: 90px;height: 40px;"/>
  56. <el-input v-model="cmformdata.cm4" disabled style="width: 90px;height: 40px;"/>
  57. <el-input v-model="cmformdata.cm5" disabled style="width: 90px;height: 40px;"/>
  58. <el-input v-model="cmformdata.cm6" disabled style="width: 90px;height: 40px;"/>
  59. <el-input v-model="cmformdata.cm7" disabled style="width: 90px;height: 40px;"/>
  60. <el-input v-model="cmformdata.cm8" disabled style="width: 90px;height: 40px;"/>
  61. <el-input v-model="cmformdata.cm9" disabled style="width: 90px;height: 40px;"/>
  62. <el-input v-model="cmformdata.cm10" disabled style="width: 90px;height: 40px;"/>
  63. <el-input v-model="cmformdata.cm11" disabled style="width: 90px;height: 40px;"/>
  64. </el-form-item>
  65. </el-row>
  66. <el-row :gutter="24">
  67. <el-form-item label="制单数/实裁量" class="mab" prop="keyOrder" label-width="220" style="font-size: 30px;margin: 10px;">
  68. <el-input v-model="zdscformdata.zdsc1" disabled style="width: 90px;height: 40px;" id="zdsc1"/>
  69. <el-input v-model="zdscformdata.zdsc2" disabled style="width: 90px;height: 40px;" id="zdsc2"/>
  70. <el-input v-model="zdscformdata.zdsc3" disabled style="width: 90px;height: 40px;" id="zdsc3"/>
  71. <el-input v-model="zdscformdata.zdsc4" disabled style="width: 90px;height: 40px;" id="zdsc4"/>
  72. <el-input v-model="zdscformdata.zdsc5" disabled style="width: 90px;height: 40px;" id="zdsc5"/>
  73. <el-input v-model="zdscformdata.zdsc6" disabled style="width: 90px;height: 40px;" id="zdsc6"/>
  74. <el-input v-model="zdscformdata.zdsc7" disabled style="width: 90px;height: 40px;" id="zdsc7"/>
  75. <el-input v-model="zdscformdata.zdsc8" disabled style="width: 90px;height: 40px;" id="zdsc8"/>
  76. <el-input v-model="zdscformdata.zdsc9" disabled style="width: 90px;height: 40px;" id="zdsc9"/>
  77. <el-input v-model="zdscformdata.zdsc10" disabled style="width: 90px;height: 40px;" id="zdsc10"/>
  78. <el-input v-model="zdscformdata.zdtotal" disabled style="width: 90px;height: 40px;" id="zdsc11"/>
  79. </el-form-item>
  80. </el-row>
  81. <el-row :gutter="24">
  82. <el-form-item label="数量" class="mab" prop="keyOrder" label-width="220" style="font-size: 30px;margin: 10px;">
  83. <el-input v-model="slformdata.sl1" style="width: 90px;height: 40px;" id="sl1" @keydown="handleKeyDown($event, 'sl10', 'sl1', 'sl2')"/>
  84. <el-input v-model="slformdata.sl2" style="width: 90px;height: 40px;" id="sl2" @keydown="handleKeyDown($event, 'sl1', 'sl2', 'sl3')"/>
  85. <el-input v-model="slformdata.sl3" style="width: 90px;height: 40px;" id="sl3"@keydown="handleKeyDown($event, 'sl2', 'sl3', 'sl4')"/>
  86. <el-input v-model="slformdata.sl4" style="width: 90px;height: 40px;" id="sl4"@keydown="handleKeyDown($event, 'sl3', 'sl4', 'sl5')"/>
  87. <el-input v-model="slformdata.sl5" style="width: 90px;height: 40px;" id="sl5"@keydown="handleKeyDown($event, 'sl4', 'sl5', 'sl6')"/>
  88. <el-input v-model="slformdata.sl6" style="width: 90px;height: 40px;" id="sl6"@keydown="handleKeyDown($event, 'sl5', 'sl6', 'sl7')"/>
  89. <el-input v-model="slformdata.sl7" style="width: 90px;height: 40px;" id="sl7"@keydown="handleKeyDown($event, 'sl6', 'sl7', 'sl8')"/>
  90. <el-input v-model="slformdata.sl8" style="width: 90px;height: 40px;" id="sl8"@keydown="handleKeyDown($event, 'sl7', 'sl8', 'sl9')"/>
  91. <el-input v-model="slformdata.sl9" style="width: 90px;height: 40px;" id="sl9"@keydown="handleKeyDown($event, 'sl8', 'sl9', 'sl10')"/>
  92. <el-input v-model="slformdata.sl10" style="width: 90px;height: 40px;" id="sl10"@keydown="handleKeyDown($event, 'sl9', 'sl10', 'sl1')"/>
  93. <el-input v-model="slformdata.sctotal" disabled style="width: 90px;height: 40px;" id="sctotal"/>
  94. </el-form-item>
  95. </el-row> -->
  96. <el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
  97. <div @contextmenu.prevent>
  98. <el-table
  99. ref="multipleTableRef"
  100. style="width: 100%;height: 53vh"
  101. tooltip-effect="dark"
  102. :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
  103. :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
  104. :data="add_tableData" border row-key="ID" size="small"
  105. highlight-current-row="true"
  106. @row-dblclick="add_updateCompanyFunc" @row-click="add_tableRowClick" @row-contextmenu="handleRightClick"
  107. :show-overflow-tooltip="true" @selection-change="add_xpSelectionChange">
  108. <el-table-column type="selection" width="70" />
  109. <el-table-column sortable align="left" label="订单编号" prop="订单编号" width="140"/>
  110. <el-table-column sortable align="left" label="订单子编号" prop="子订单编号" width="140"/>
  111. <el-table-column sortable align="left" label="生产款号" prop="款号" width="140"/>
  112. <el-table-column sortable align="left" label="款式" prop="款式" width="140"/>
  113. <el-table-column sortable align="left" label="颜色" prop="颜色" width="140"/>
  114. <el-table-column sortable align="left" label="尺码" prop="尺码" width="140"/>
  115. <el-table-column sortable align="left" label="数量" prop="数量" width="140"/>
  116. <el-table-column sortable align="left" label="是否尾包" prop="尾包" width="140"/>
  117. <el-table-column sortable align="left" label="组别" prop="组别" width="140"/>
  118. </el-table>
  119. </div>
  120. </el-row>
  121. <div class="dialog-footer" style="text-align: left;margin-right: 60px;">
  122. <el-button type="primary" @click="add_Dialog" style="width: 110px;height: 60px;font-size: 20px;">确认</el-button>
  123. </div>
  124. </div>
  125. </el-main>
  126. </layout-content>
  127. </layout>
  128. </div>
  129. </template>
  130. <script>
  131. export default {
  132. methods: {
  133. handleKeyDown(event, prevId, currentId, nextId) {
  134. const currentElement = document.getElementById(currentId);
  135. const isEmpty = currentElement.value === '';
  136. const atStart = currentElement.selectionStart === 0;
  137. const atEnd = currentElement.selectionStart === currentElement.value.length;
  138. switch (event.keyCode) {
  139. case 13: // Enter
  140. case 40: // 向下箭头
  141. if (nextId) {
  142. document.getElementById(nextId).focus();
  143. }
  144. break;
  145. case 38: // 向上箭头
  146. if (prevId) {
  147. document.getElementById(prevId).focus();
  148. }
  149. break;
  150. case 8: // 删除键
  151. if (prevId && (isEmpty || atStart)) {
  152. document.getElementById(prevId).focus();
  153. }
  154. break;
  155. case 37: // 向左箭头
  156. if (prevId && atStart) {
  157. document.getElementById(prevId).focus();
  158. }
  159. break;
  160. case 39: // 向右箭头
  161. if (nextId && atEnd) {
  162. document.getElementById(nextId).focus();
  163. }
  164. break;
  165. default:
  166. break;
  167. }
  168. },
  169. },
  170. };
  171. </script>
  172. <script setup>
  173. // 全量引入格式化工具 请按需保留
  174. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  175. import {hiprint} from "vue-plugin-hiprint";
  176. import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
  177. import {getSpotList,search,getMachineMac,getTab} from '@/api/mes/job'
  178. import {ElMessage} from "element-plus";
  179. import { get } from 'scriptjs';
  180. defineOptions({name: 'Company'})
  181. // =========== 全局获取当前日期 ===========
  182. // currentDate 年月日 时分秒
  183. // currentDates 年月日
  184. const today = new Date();
  185. const year = today.getFullYear();
  186. const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要补零
  187. const day = String(today.getDate()).padStart(2, '0');
  188. const hours = String(today.getHours()).padStart(2, '0');
  189. const minutes = String(today.getMinutes()).padStart(2, '0');
  190. const seconds = String(today.getSeconds()).padStart(2, '0');
  191. const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  192. const currentDates = `${year}-${month}-${day}`;
  193. //物理地址获取机台编号
  194. const getMachineMacdata = async () => {
  195. try {
  196. const Machine = '68-ED-A4-26-5F-84'
  197. const data = await getMachineMac({sys_sbID:Machine});
  198. add_formData['机台号'] = data.data['机台号']
  199. add_formData['工序'] = data.data['工序']
  200. add_formData['组别'] = data.data['组别']
  201. add_formData['人员'] = 'xxx'
  202. } catch (error) {
  203. console.error(error)
  204. }
  205. }
  206. getMachineMacdata();
  207. //点击【查询】按钮DC2408001-1,01,8,10,0
  208. const add_searchInfo = ref('')
  209. const add_tableData = reactive([]);
  210. const activeButtonValue = ref('')
  211. const UniqId = ref('')
  212. //全局获取颜色款式款号
  213. const _yskskh= ref('')
  214. const add_onSubmit = async ()=>{
  215. if(add_searchInfo.value === '' || add_searchInfo.value === undefined){
  216. const WorkListdata = [];
  217. add_tableData.splice(0,add_tableData.length,...WorkListdata);
  218. ElMessage({type: 'warning',message: '请扫描小票二维码' })
  219. }else{
  220. const order =add_searchInfo.value;
  221. const sys_sbID = add_formData['机台号']
  222. const getSpotLists = await getSpotList({order:order,code:'总检',sys_sbID:sys_sbID});
  223. activeButtonValue.value = getSpotLists.data.result.wb
  224. UniqId.value = getSpotLists.data.result.UniqId
  225. add_formData['数量'] = getSpotLists.data.result.sl
  226. add_formData['尺码'] = getSpotLists.data.result.cm
  227. //获取下面报工历史记录
  228. add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);//表格数据
  229. }
  230. }
  231. const AttendanceVisible=ref(false)
  232. //清空对象的属性值
  233. const gd_clearFormData = () => {
  234. Object.keys(add_formData).forEach(key => {
  235. add_formData[key] = '';
  236. });
  237. };
  238. const add_formData = reactive({
  239. 机台号: '',
  240. 工序: '',
  241. 组别: '',
  242. 人员: '',
  243. 尺码: '',
  244. 数量: '',
  245. 是否订单尾包: '',
  246. });
  247. const currentSlValue=ref('')
  248. //后道确认按钮
  249. const add_Dialog = async ()=>{
  250. if(add_searchInfo.value === ''){
  251. ElMessage({type: 'warning',message: '请勾选具体的出库订单后,再操作此功能'})
  252. }else{
  253. console.log(UniqId)
  254. // 检查paramsList是否为空
  255. if (add_formData.数量 && add_formData.数量 !== '') {
  256. // 假设search函数可以处理一个包含多个参数的数组
  257. // 注意:如果search函数不支持数组,并且需要单独调用每个params,您可能需要使用Promise.all
  258. const cf_gettab = await search({UniqId:UniqId._value,code:'总检'}); // 调用search函数
  259. if (cf_gettab.code === 0) {
  260. const firstPart = add_searchInfo.value.split(',')[0];
  261. const lsjltable = await getTab({order_id:firstPart,sczl_jtbh:add_formData['机台号']});
  262. console.log(lsjltable)
  263. add_tableData.splice(0,add_tableData.length,...lsjltable.data.records);
  264. add_searchInfo.value = '';
  265. setTimeout(() => {
  266. const inputElement = document.getElementById('searchInput');
  267. if (inputElement) {
  268. inputElement.focus();
  269. }
  270. }, 100); // 延迟100毫秒
  271. ElMessage({type: 'success', message: '报工成功'});
  272. } else {
  273. ElMessage({type: 'error', message: '报工失败'});
  274. }
  275. } else {
  276. ElMessage({type: 'info', message: '没有选中要报工的数据'});
  277. }
  278. }
  279. }
  280. // AttendanceVisible.value = false
  281. // 新增取消
  282. const add_closeDialog = () => {
  283. AttendanceVisible.value = false
  284. };
  285. //单机
  286. const add_tableRowClick = async (row) => {
  287. roww.value = row
  288. }
  289. //双击
  290. const add_updateCompanyFunc = async (row) => {
  291. }
  292. //右键
  293. const handleRightClick = async (row) => {
  294. }
  295. //复选框
  296. const add_xpSelectionChange = async (selection) => {
  297. console.log(selection.length)
  298. selectedRows.value = selection;
  299. if (selection.length === 0) {
  300. ElMessage({type: 'warning', message: '请勾选打印的数据' });
  301. return false;
  302. }else if(selection.length>0){
  303. allPrintData.value = selection.map((row) => {
  304. let weibao = row['是否尾包'] === '是' ? 1 : 0;
  305. const ewm = `${row['订单子编号']},01,${row['尺码']},${row['数量']},${weibao}`;
  306. return {
  307. emm: ewm,
  308. zddbh: row['子订单编号'],
  309. kh: row['款号'],
  310. pm: row['款式'],
  311. ys: row['颜色'],
  312. cm: row['尺码'],
  313. sl: row['数量'],
  314. zb: row['组别'],
  315. dyrq: currentDates,
  316. wb: row['尾包']
  317. };
  318. });
  319. }else{
  320. allPrintData.value = [];
  321. }
  322. console.log(allPrintData.value)
  323. }
  324. // =========== 删除按钮 ===========
  325. //记录复选框的值
  326. const bgSelection = ref(null)
  327. const baogong_del = () => {
  328. if(bgSelection.value === null || bgSelection.value === ''){
  329. ElMessage({type: 'warning',message: '请选择删除的数据' })
  330. }else{
  331. console.log(bgSelection.value)
  332. }
  333. }
  334. // 保存当前选中的行数据
  335. const table_selectrows = ref([]);
  336. // 表格复选框选中变化时触发
  337. const table_SelectionChange = (val) => {
  338. table_selectrows.value = val; // 将选中的行数据保存到 table_selectrows
  339. }
  340. // =========== 修改 ===========
  341. const dialogFormVisible = ref(false)
  342. const edit_formData = ref({})
  343. // 双击修改
  344. const updateCompanyFunc = async (row) => {
  345. console.log(row)
  346. dialogFormVisible.value = true;
  347. Object.assign(edit_formData.value,row);
  348. edit_formData.value['是否订单尾包'] = row['是否尾包'];
  349. // let code = row['员工编号'];
  350. // const getStaffInfo_data = await getStaffInfo({code:code});
  351. // formDataTest.value = getStaffInfo_data.data;
  352. };
  353. // 弹窗修改确定
  354. const edit_Dialog = async () => {
  355. _ygjbzledit();
  356. }
  357. // 弹窗修改关闭
  358. const edit_closeDialog = () => {
  359. dialogFormVisible.value = false
  360. }
  361. const _ygjbzledit = async ()=>{
  362. // const formattedData = {
  363. // '订单子编号': edit_formData.value['订单子编号'],
  364. // '订单号': edit_formData.value['订单号'],
  365. // '生产款号': edit_formData.value['生产款号'],
  366. // '款式': edit_formData.value['款式'],
  367. // '颜色': edit_formData.value['颜色'],
  368. // '制单总数': edit_formData.value['制单总数'],
  369. // '组别': edit_formData.value['组别'],
  370. // '排产单数': edit_formData.value['排产单数'],
  371. // '尺码': edit_formData.value['尺码'],
  372. // '报工数量': edit_formData.value['报工数量'],
  373. // '是否为尾包': edit_formData.value['是否为尾包'],
  374. // '工序': edit_formData.value['工序'],
  375. // '验片人': edit_formData.value['验片人'],
  376. // '日期': edit_formData.value['日期'],
  377. // };
  378. // try {
  379. // const edid_edit_formData = await 修改接口(formattedData);
  380. // if (edid_edit_formData .code === 0) {
  381. // dialogFormVisible.value = false;
  382. // ElMessage({type: 'success',message: '更新成功'})
  383. // } else {
  384. // ElMessage({ type: 'error',message: '更新失败'})
  385. // }
  386. // } catch (error) {
  387. // console.error(error);
  388. // }
  389. }
  390. // =========== 分页 ===========
  391. // 分页相关的响应式变量
  392. const page = ref(1)
  393. const total = ref(0)
  394. const pageSize = ref(10)
  395. // 分页
  396. const handleCurrentChange = (val) => {
  397. page.value = val;
  398. _getStaffList();
  399. };
  400. // 修改页面容量 点击多少条/页
  401. const handleSizeChange = (val) => {
  402. page.value = 10;//默认显示
  403. pageSize.value = val;
  404. _getStaffList();
  405. };
  406. </script>
  407. <style scoped>
  408. .form-container {
  409. display: flex;
  410. flex-wrap: wrap;
  411. }
  412. .form-column {
  413. /*flex: 1;*/
  414. margin-right: 15px; /* 调整列之间的间距 */
  415. }
  416. /* 左侧输入框宽度调整 */
  417. .form-column .el-form-item .el-input {
  418. width: 150px; /* 调整左侧输入框的宽度 */
  419. }
  420. /* 媒体查询,根据需要调整断点 */
  421. @media screen and (max-width: 768px) {
  422. .form-column {
  423. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  424. margin-right: 0;
  425. }
  426. }
  427. /* 表格复选框大小调整 */
  428. :deep(.el-checkbox.el-checkbox--small .el-checkbox__inner) {
  429. width: 30px; /* 复选框宽度 */
  430. height: 20px; /* 复选框高度 */
  431. }
  432. :deep(.el-checkbox.el-checkbox--small.is-checked .el-checkbox__inner::after) {
  433. transform: scale(1.2) rotate(45deg); /* 调整选中后的对勾大小 */
  434. top: 5%; /* 调整对勾位置 */
  435. left: 40%; /* 调整对勾位置 */
  436. width: 5px; /* 调整对勾宽度 */
  437. height: 9px; /* 调整对勾高度 */
  438. }
  439. /*:deep(.el-table td .cell) {*/
  440. /* line-height: 30px !important;*/
  441. /*}*/
  442. .JKWTree-container {
  443. display: flex;
  444. }
  445. .JKWTree-tree {
  446. /*width: 300px;*/
  447. background-color: #fff;
  448. padding: 10px;
  449. margin-right: 20px;
  450. }
  451. .JKWTree-tree h3 {
  452. font-size: 15px;
  453. font-weight: 700;
  454. margin: 10px 0;
  455. }
  456. .JKWTree-content {
  457. flex: 1;
  458. }
  459. /* 图片上传 */
  460. .upload-box {
  461. width: 200px;
  462. height: 200px;
  463. border: 2px dashed #e2e2e2;
  464. display: flex;
  465. justify-content: center;
  466. align-items: center;
  467. position: relative;
  468. cursor: pointer;
  469. }
  470. .uploaded-image {
  471. width: 100%;
  472. height: 100%;
  473. object-fit: cover;
  474. }
  475. .upload-icon {
  476. font-size: 40px;
  477. color: #c0c4cc;
  478. }
  479. .file-input {
  480. display: none;
  481. }
  482. .el-table .warning-row {
  483. background: oldlace;
  484. }
  485. /* 选中某行时的背景色 */
  486. :deep(.el-table__body tr.current-row) > td {
  487. background: #ff80ff !important;
  488. }
  489. </style>
  490. <style scoped>
  491. :deep(.el-table td .cell) {
  492. line-height: 20px !important;
  493. }
  494. :deep(.el-tabs__header){
  495. margin-bottom: 0;
  496. }
  497. .search{
  498. margin-left: 0px !important;
  499. margin-right: 10px !important;
  500. }
  501. .bt{
  502. margin-left: 2px !important;
  503. padding: 3px !important;
  504. font-size: 12px;
  505. }
  506. .el-tabs__header{
  507. margin: 0px !important;
  508. }
  509. .gva-table-box{
  510. padding: 0px !important;
  511. }
  512. .mab{
  513. margin-bottom: 5px;
  514. }
  515. /* 点击按钮改变颜色 */
  516. .active-button {
  517. background-color: #ff0000;
  518. }
  519. .default-button {
  520. background-color: #808080;
  521. }
  522. </style>