shengchanjincheng.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. <template>
  2. <div>
  3. <layout>
  4. <layout-header>
  5. <div class="">
  6. <!-- 按钮部分-->
  7. <el-form ref="elSearchFormRef" class="demo-form-inline" :rules="searchRule" @keyup.enter="onSubmit">
  8. <el-form-item>
  9. <el-input v-model="searchInfo" placeholder="搜索员工编号或员工姓名" clearable style="width: 200px;margin: 5px"></el-input>
  10. <el-button type="primary" icon="search" @click="onSubmit" style="margin: 5px">查询</el-button>
  11. <!-- <el-button type="primary" icon="edit" @click="gd_gxcltjonClick" class="bt" title="工序产量核查">工序产量统计</el-button> -->
  12. <el-button type="primary" icon="edit" @click="cp_gdprintonClick" class="bt" title="打印生产工单" >工单打印</el-button>
  13. <el-button type="primary" title="设置工单的状态-->【计划中】 【生产中】 【已完成】" icon="edit" @click="onStatusClick" class="bt">工单状态设置</el-button>
  14. <el-button type="primary" icon="edit" @click="gd_gxclhconClick" class="bt" title="工序产量核查">工序产量核查</el-button>
  15. </el-form-item>
  16. </el-form>
  17. <!-- 状态设置【弹窗】-->
  18. <el-dialog v-model="onstatuslist" title="工单状态设置" width="30%" style="top: 15%">
  19. <div style="width: 100%;height: 100%;">
  20. <div style="width: 100%; display: flex; align-items: center;">
  21. <el-form-item label="工单编号 :" prop="currentProcess">
  22. <el-input v-model="statusformData['gdbh']" placeholder="" />
  23. </el-form-item>
  24. </div>
  25. <div style="width: 100%; display: flex; align-items: center; margin-top: 30px;">
  26. <span>状态设置:</span>
  27. <el-radio-group v-model="status" style="margin-left: 10px;">
  28. <el-radio label="计划中">计划中</el-radio>
  29. <el-radio label="生产中">生产中</el-radio>
  30. <el-radio label="已完工">已完工</el-radio>
  31. </el-radio-group>
  32. </div>
  33. <div class="dialog-footer" style="text-align: right; margin-top: 40px;">
  34. <el-button @click="handleCancel">取消</el-button>
  35. <el-button type="primary" @click="handleConfirm">确认</el-button>
  36. </div>
  37. </div>
  38. </el-dialog>
  39. <!--工序产量核查【弹窗】-->
  40. <el-dialog v-model="gd_gxclhclist" title="工序产量核查" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
  41. <el-button type="" @click="gxclhcCancel">退出</el-button>
  42. <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; display: flex; align-items: center;">
  43. <div style="width: 100%; height: 60px; padding: 0px; display: flex; align-items: center;">
  44. <el-form-item label="工单编号" prop="currentProcess" style="margin-right: 20px; padding: 0px">
  45. <el-input v-model="gxclhcformData['gdbh']" @keyup.enter="gxclhcProductValue" />
  46. </el-form-item>
  47. </div>
  48. </div>
  49. <el-table ref="paichengRef"
  50. :show-overflow-tooltip="true"
  51. :row-style="{ height: '0px' }"
  52. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
  53. :header-cell-style="{ padding: '0px' }"
  54. style="width: 100%;height: 70vh" border tooltip-effect="dark"
  55. highlight-current-row="true"
  56. @row-click="gxclhc_tableRowClick"
  57. :data="gxclhc_Data" row-key="ID"
  58. :cell-class-name="gxclhcCellClass">
  59. <template v-for="(item, idx) in gxclhc_Columns">
  60. <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
  61. {{row[item.prop]}}
  62. </el-table-column>
  63. </template>
  64. </el-table>
  65. </el-dialog>
  66. </div>
  67. </layout-header>
  68. <layout>
  69. <!-- 左侧树侧形结构-->
  70. <layout-sider :resize-directions="['right']" :width="190" style="margin-right: 10px;">
  71. <div class="JKWTree-tree" style="height: 200px">
  72. <h3>生产进程查询</h3>
  73. <el-tree :data="treeData" :props="defaultProps" @node-click="handleNodeClick" @node-expand="handleNodeExpand">
  74. </el-tree>
  75. </div>
  76. </layout-sider>
  77. <!-- 右侧区域 -->
  78. <layout-content >
  79. <el-main>
  80. <div class="gva-table-box">
  81. <!-- 表格数据 -->
  82. <el-table ref="multipleTable" style="width: 100%;height: 65vh" tooltip-effect="dark"
  83. :row-style="{ height: '25px' }" :header-cell-style="{ padding: '0px' }"
  84. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  85. :data="tableData" border row-key="ID"
  86. size="small"
  87. :cell-class-name="gxbgCellClass"
  88. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  89. @row-click="tableRowClick" :show-overflow-tooltip="true"
  90. @selection-change="handleSelectionChange">
  91. <el-table-column sortable align="center" label="工单编号" prop="工单编号" width="120" />
  92. <el-table-column sortable align="center" label="印件代号" prop="印件代号" width="120" />
  93. <el-table-column sortable align="center" label="印件名称" prop="印件名称" width="200" />
  94. <el-table-column sortable align="center" label="联数" prop="联数" width="100" />
  95. <el-table-column sortable align="center" label="投料大箱" prop="投料大箱" width="100" />
  96. <el-table-column sortable align="center" label="计划投料" prop="计划投料" width="100" />
  97. <el-table-column sortable align="center" label="工序1" prop="工序1" width="200" />
  98. <el-table-column sortable align="center" label="工序2" prop="工序2" width="200" />
  99. <el-table-column sortable align="center" label="工序3" prop="工序3" width="200" />
  100. <el-table-column sortable align="center" label="工序4" prop="工序4" width="200" />
  101. <el-table-column sortable align="center" label="工序5" prop="工序5" width="200" />
  102. <el-table-column sortable align="center" label="工序6" prop="工序6" width="200" />
  103. <el-table-column sortable align="center" label="工序7" prop="工序7" width="200" />
  104. <el-table-column sortable align="center" label="工序8" prop="工序8" width="200" />
  105. <el-table-column sortable align="center" label="工序9" prop="工序9" width="200" />
  106. <el-table-column sortable align="center" label="工序10" prop="工序10" width="200" />
  107. <el-table-column sortable align="center" label="工序11" prop="工序11" width="200" />
  108. <el-table-column sortable align="center" label="工序12" prop="工序12" width="200" />
  109. <el-table-column sortable align="center" label="工序13" prop="工序13" width="200" />
  110. <el-table-column sortable align="center" label="工序14" prop="工序14" width="200" />
  111. <el-table-column sortable align="center" label="工序15" prop="工序15" width="200" />
  112. <el-table-column sortable align="center" label="工序16" prop="工序16" width="200" />
  113. <el-table-column sortable align="center" label="工序17" prop="工序17" width="200" />
  114. </el-table>
  115. <!-- 分页 -->
  116. <div class="gva-pagination">
  117. <el-pagination layout="total" :current-page="page" :page-size="pageSize"
  118. :total="total" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
  119. <!-- <el-pagination layout="total, sizes, prev, pager, next, jumper" :current-page="page" :page-size="pageSize" :page-sizes="[10, 30, 50, 100]"-->
  120. <!-- :total="total" @current-change="handleCurrentChange" @size-change="handleSizeChange" />-->
  121. </div>
  122. </div>
  123. </el-main>
  124. </layout-content>
  125. </layout>
  126. </layout>
  127. <!-- 工单打印 -->
  128. <PrintPage ref="printPageRef" />
  129. </div>
  130. </template>
  131. <script setup>
  132. // 全量引入格式化工具 请按需保留
  133. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  134. import {ref, reactive} from 'vue'
  135. import {
  136. jcgetTab,
  137. workOrderDetail,
  138. getOrderProcessCount
  139. } from '@/api/yunyin/yunying'
  140. import PrintPage from './components/print.vue'
  141. import {ElMessage} from "element-plus";
  142. defineOptions({name: 'Company'})
  143. // =========== 获取左侧树侧形结构 ===========
  144. const treeData = ref({})
  145. const _department_code = ref(null)
  146. const getDepartmentdata = async () => {
  147. try {
  148. const response = await jcgetTab();
  149. console.log("左侧菜单列表↓");
  150. console.log(response);
  151. const formattedData = [];
  152. for (const category in response.data) {
  153. const categoryNode = {
  154. label: category, // 使用分类名称作为节点标签
  155. children: response.data[category].map(item => ({
  156. label: item, // 将客户信息格式化为节点标签
  157. }))
  158. };
  159. formattedData.push(categoryNode);
  160. }
  161. treeData.value = formattedData;
  162. } catch (error) {
  163. console.error(error)
  164. }
  165. }
  166. getDepartmentdata();
  167. //点击左侧树形 获取右侧table列表
  168. const tableData = reactive([]);
  169. const _code = ref(null); //左侧菜单编号
  170. const handleNodeClick = async (node) => {
  171. if(node.label === '印刷工单' || node.label === '糊盒工单'){return false;}
  172. console.log(node.label.substring(0, 5));
  173. _code.value = node.label.substring(0, 5);
  174. searchInfo.value = ''; // 清空搜索信息
  175. _workOrderDetailList(); // 执行获取员工列表的函数
  176. };
  177. //全局调用工单编号
  178. const _Gd_gdbh = ref(null)
  179. //全局调用印件代号
  180. const _Gd_cpdh = ref(null)
  181. const tableRowClick = async (row) => {
  182. console.log(row.工单编号)
  183. _Gd_gdbh.value = row.工单编号;
  184. _Gd_yjdh.value = row.印件代号;
  185. };
  186. //===========工单状态设置按钮=======
  187. const onstatuslist = ref(false);
  188. const statusformData = reactive({gdbh: '',});
  189. const status = ref('计划中'); // 默认选择
  190. const onStatusClick = () => {
  191. if(_Gd_gdbh.value === null || _Gd_gdbh.value === ''){
  192. onstatuslist.value = false;
  193. ElMessage({
  194. type: 'warning',
  195. message: '请选择树形后,再操作此功能'
  196. })
  197. }else{
  198. statusformData['gdbh'] = _Gd_gdbh.value;
  199. onstatuslist.value = true;
  200. }
  201. };
  202. //工单状态设置【放弃按钮】
  203. const handleCancel = () => {
  204. onstatuslist.value = false;
  205. };
  206. //工单状态设置【执行按钮】
  207. const handleConfirm = async () => {
  208. //工单编号
  209. let workOrder = statusformData['gdbh'];
  210. //状态
  211. let statusCode;
  212. if (status.value === '计划中') {
  213. statusCode = "3-计划中";
  214. } else if (status.value === '生产中') {
  215. statusCode = "2-生产中";
  216. }else if (status.value === '已完工') {
  217. statusCode = "1-已完工";
  218. }
  219. const StatusEditdata = await StatusEdit({workOrder:workOrder,status:statusCode});
  220. if (StatusEditdata.code === 0) {
  221. ElMessage({type: 'success',message: '更新成功'})
  222. } else {
  223. ElMessage({type: 'error',message: '更新失败'})
  224. }
  225. onstatuslist.value = false;
  226. };
  227. //=========工单打印===========
  228. const printPageRef = ref()
  229. const cp_gdprintonClick = () => {
  230. printPageRef.value.open(_Gd_gdbh.value)
  231. }
  232. //=========工序产量核查===========
  233. const gd_gxclhclist = ref(false);
  234. const gxclhc_Data = ref([]);
  235. const gxclhc_Columns = ref(
  236. [
  237. { label: '印件及工序名称', prop: 'concatenatedData', width: '380' },
  238. // { label: '印件', prop: 'Gy0_yjno', width: '130' },
  239. // { label: '工序', prop: 'Gy0_gxh', width: '130' },
  240. // { label: '名称', prop: 'Gy0_gxmc', width: '130' },
  241. { label: '工序计划产量', prop: 'Gy0_计划接货数', width: '120' },
  242. { label: '联数', prop: 'Gy0_ls', width: '70' },
  243. { label: '折算车头产量', prop: '折算车头产量', width: '120' },
  244. { label: '实际上报产量', prop: 'sczl_cl', width: '120' },
  245. { label: '制程废品', prop: 'sczl_zcfp', width: '120' },
  246. { label: '制程废品率', prop: '制程废品率', width: '120' },
  247. { label: '来料异常', prop: '来料异常', width: '90' },
  248. { label: '流程单数', prop: 'process_num', width: '90' },
  249. { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
  250. { label: '工序状态', prop: 'PD_WG', width: '90'},
  251. { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
  252. ]
  253. )
  254. const gxclhcformData = reactive({
  255. gdbh: '',
  256. gdmc: '',
  257. });
  258. // 工序产量核查按钮
  259. const gd_gxclhconClick = async () => {
  260. if(_Gd_gdbh.value === '' || _Gd_gdbh.value === null){
  261. ElMessage({type: 'warning',message: '请选择具体的工单,在进行操作'})
  262. return false;
  263. }
  264. gxclhcformData['gdbh'] = _Gd_gdbh.value;
  265. gd_gxclhclist.value = true;
  266. _getOrderProcessCount();
  267. };
  268. //工序产量核查回车
  269. const gxclhcProductValue = async () => {
  270. console.log("工序产量核查回车")
  271. _getOrderProcessCount();
  272. }
  273. //工序产量核查退出
  274. const gxclhcCancel = async () => {
  275. gd_gxclhclist.value = false;
  276. };
  277. //工序产量核查方法接口
  278. const _getOrderProcessCount = async () => {
  279. const order = gxclhcformData['gdbh'];
  280. const getOrderProcessCount_list = await getOrderProcessCount({order:order});
  281. const concatenatedData = getOrderProcessCount_list.data.map(item => {
  282. // 优化后的代码,使用模板字符串连接字段值并在单个数字前添加零
  283. const formattedYjno = item.Gy0_yjno.length === 1 ? `0${item.Gy0_yjno}` : item.Gy0_yjno;
  284. const formattedGxh = item.Gy0_gxh.length === 1 ? `0${item.Gy0_gxh}` : item.Gy0_gxh;
  285. const concatenatedValue = `${formattedYjno}-${formattedGxh} ${item.Gy0_gxmc} 【${item.Add_gxmc} 】`;
  286. return {
  287. ...item,
  288. concatenatedData: concatenatedValue, // 使用新属性名
  289. };
  290. });
  291. gxclhc_Data.value = concatenatedData;
  292. };
  293. //工序产量核查
  294. const gxclhcCellClass = ({row, column, rowIndex, columnIndex}) =>{
  295. if (column.label === '实际上报产量' ||column.label === '制程废品' || column.label === '制程废品率' ||
  296. column.label === '来料异常' || column.label === '流程单数' || column.label === '当前设备') {
  297. return 'lan-plan-usage-lows';
  298. }
  299. if (column.label === '折算车头产量') {
  300. return 'gxclhc—color-column-red';
  301. }
  302. // 如果不是 'PD_WG' 列,返回空字符串或其他样式类
  303. if (column.label === '工序状态'){
  304. if(row['PD_WG'] === '完工'){
  305. return 'lan-plan-usage-lowshui';
  306. }else{
  307. return 'pczccolor-column-lan';
  308. }
  309. }
  310. }
  311. // 表格数据
  312. const gxbgCellClass = ({row, column, rowIndex, columnIndex}) =>{
  313. // console.log(row)
  314. for (let i = 1; i <= 17; i++) {
  315. const key = `工序${i}`;
  316. if (row[key] && row[key].includes('完工') && columnIndex === i + 5) {
  317. return 'hui-plan-usage-lows';
  318. }
  319. }
  320. return 'lan-plan-usage-lows';
  321. }
  322. // 搜索默认为空
  323. const searchInfo = ref('')
  324. //点击【查询】按钮
  325. const onSubmit = () => {
  326. _department_code.value = '';
  327. if(searchInfo.value === ''){
  328. tableData.length = 0;
  329. }else{
  330. _code.value = '';
  331. _workOrderDetailList();
  332. }
  333. };
  334. //获取员工信息列表
  335. const _workOrderDetailList = async ()=>{
  336. let params = {}
  337. params.search = searchInfo.value;
  338. params.order = _code.value;
  339. // params.limit = 200;
  340. // params.page = 1;
  341. try {
  342. const workOrderDetaildata = await workOrderDetail(params);
  343. console.log(workOrderDetaildata)
  344. tableData.splice(0,tableData.length,...workOrderDetaildata.data);
  345. total.value = WorkListdata.data.total;
  346. } catch (error) {
  347. console.error(error);
  348. }
  349. }
  350. // 分页相关的响应式变量
  351. const page = ref(1)
  352. const total = ref(0)
  353. const pageSize = ref(10)
  354. // 分页
  355. const handleCurrentChange = (val) => {
  356. page.value = val;
  357. _getStaffList();
  358. };
  359. // 修改页面容量 点击多少条/页
  360. const handleSizeChange = (val) => {
  361. page.value = 10;//默认显示
  362. pageSize.value = val;
  363. _getStaffList();
  364. };
  365. // 弹窗控制标记
  366. const dialogFormVisible = ref(false)
  367. //修改
  368. const formDataTest = ref({})
  369. </script>
  370. <style scoped>
  371. .form-container {
  372. display: flex;
  373. flex-wrap: wrap;
  374. }
  375. .form-column {
  376. /*flex: 1;*/
  377. margin-right: 15px; /* 调整列之间的间距 */
  378. }
  379. /* 左侧输入框宽度调整 */
  380. .form-column .el-form-item .el-input {
  381. width: 150px; /* 调整左侧输入框的宽度 */
  382. }
  383. :deep(.hui-plan-usage-lows div) {
  384. color: #8c939d !important;
  385. }
  386. :deep(.lan-plan-usage-lows div) {
  387. color: blue !important;
  388. font-weight: bold;
  389. }
  390. /* :deep(.hui-plan-usage-lows.column-0 div) {
  391. color: #8c939d !important;
  392. }
  393. :deep(.hui-plan-usage-lows.column-1 div) {
  394. color: #8c939d !important;
  395. }
  396. :deep(.hui-plan-usage-lows.column-2 div) {
  397. color: #8c939d !important;
  398. }
  399. :deep(.hui-plan-usage-lows.column-3 div) {
  400. color: #8c939d !important;
  401. }
  402. :deep(.hui-plan-usage-lows.column-4 div) {
  403. color: #8c939d !important;
  404. }
  405. :deep(.hui-plan-usage-lows.column-5 div) {
  406. color: #8c939d !important;
  407. }
  408. :deep(.hui-plan-usage-lows.column-6 div) {
  409. color: #8c939d !important;
  410. }
  411. :deep(.hui-plan-usage-lows.column-7 div) {
  412. color: #8c939d !important;
  413. }
  414. :deep(.hui-plan-usage-lows.column-8 div) {
  415. color: #8c939d !important;
  416. }
  417. :deep(.hui-plan-usage-lows.column-9 div) {
  418. color: #8c939d !important;
  419. }
  420. :deep(.hui-plan-usage-lows.column-10 div) {
  421. color: #8c939d !important;
  422. }
  423. :deep(.hui-plan-usage-lows.column-11 div) {
  424. color: #8c939d !important;
  425. }
  426. :deep(.hui-plan-usage-lows.column-12 div) {
  427. color: #8c939d !important;
  428. }
  429. :deep(.hui-plan-usage-lows.column-13 div) {
  430. color: #8c939d !important;
  431. }
  432. :deep(.hui-plan-usage-lows.column-14 div) {
  433. color: #8c939d !important;
  434. }
  435. :deep(.hui-plan-usage-lows.column-15 div) {
  436. color: #8c939d !important;
  437. }
  438. :deep(.hui-plan-usage-lows.column-16 div) {
  439. color: #8c939d !important;
  440. }
  441. :deep(.hui-plan-usage-lows.column-17 div) {
  442. color: #8c939d !important;
  443. }
  444. :deep(.lan-plan-usage-lows.column-0 div) {
  445. color: blue !important;
  446. font-weight: bold;
  447. }
  448. :deep(.lan-plan-usage-lows.column-1 div) {
  449. color: blue !important;
  450. font-weight: bold;
  451. }
  452. :deep(.lan-plan-usage-lows.column-2 div) {
  453. color: blue !important;
  454. font-weight: bold;
  455. }
  456. :deep(.lan-plan-usage-lows.column-3 div) {
  457. color: blue !important;
  458. font-weight: bold;
  459. }
  460. :deep(.lan-plan-usage-lows.column-4 div) {
  461. color: blue !important;
  462. font-weight: bold;
  463. }
  464. :deep(.lan-plan-usage-lows.column-5 div) {
  465. color: blue !important;
  466. font-weight: bold;
  467. }
  468. :deep(.lan-plan-usage-lows.column-6 div) {
  469. color: blue !important;
  470. font-weight: bold;
  471. }
  472. :deep(.lan-plan-usage-lows.column-7 div) {
  473. color: blue !important;
  474. font-weight: bold;
  475. }
  476. :deep(.lan-plan-usage-lows.column-8 div) {
  477. color: blue !important;
  478. font-weight: bold;
  479. }
  480. :deep(.lan-plan-usage-lows.column-9 div) {
  481. color: blue !important;
  482. font-weight: bold;
  483. }
  484. :deep(.lan-plan-usage-lows.column-10 div) {
  485. color: blue !important;
  486. font-weight: bold;
  487. }
  488. :deep(.lan-plan-usage-lows.column-11 div) {
  489. color: blue !important;
  490. font-weight: bold;
  491. }
  492. :deep(.lan-plan-usage-lows.column-12 div) {
  493. color: blue !important;
  494. font-weight: bold;
  495. }
  496. :deep(.lan-plan-usage-lows.column-13 div) {
  497. color: blue !important;
  498. font-weight: bold;
  499. }
  500. :deep(.lan-plan-usage-lows.column-14 div) {
  501. color: blue !important;
  502. font-weight: bold;
  503. }
  504. :deep(.lan-plan-usage-lows.column-15 div) {
  505. color: blue !important;
  506. font-weight: bold;
  507. }
  508. :deep(.lan-plan-usage-lows.column-16 div) {
  509. color: blue !important;
  510. font-weight: bold;
  511. }
  512. :deep(.lan-plan-usage-lows.column-17 div) {
  513. color: blue !important;
  514. font-weight: bold;
  515. } */
  516. /* 媒体查询,根据需要调整断点 */
  517. @media screen and (max-width: 768px) {
  518. .form-column {
  519. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  520. margin-right: 0;
  521. }
  522. }
  523. /*:deep(.el-table td .cell) {*/
  524. /* line-height: 30px !important;*/
  525. /*}*/
  526. .JKWTree-container {
  527. display: flex;
  528. }
  529. .JKWTree-tree {
  530. /*width: 300px;*/
  531. background-color: #fff;
  532. padding: 10px;
  533. margin-right: 20px;
  534. }
  535. .JKWTree-tree h3 {
  536. font-size: 15px;
  537. font-weight: 700;
  538. margin: 10px 0;
  539. }
  540. .JKWTree-content {
  541. flex: 1;
  542. }
  543. /* 图片上传 */
  544. .upload-box {
  545. width: 200px;
  546. height: 200px;
  547. border: 2px dashed #e2e2e2;
  548. display: flex;
  549. justify-content: center;
  550. align-items: center;
  551. position: relative;
  552. cursor: pointer;
  553. }
  554. .uploaded-image {
  555. width: 100%;
  556. height: 100%;
  557. object-fit: cover;
  558. }
  559. .upload-icon {
  560. font-size: 40px;
  561. color: #c0c4cc;
  562. }
  563. .file-input {
  564. display: none;
  565. }
  566. .el-table .warning-row {
  567. background: oldlace;
  568. }
  569. /* 选中某行时的背景色 */
  570. :deep(.el-table__body tr.current-row) > td {
  571. background: #ff80ff !important;
  572. }
  573. </style>
  574. <style scoped>
  575. :deep(.el-table td .cell) {
  576. line-height: 20px !important;
  577. }
  578. :deep(.el-tabs__header){
  579. margin-bottom: 0;
  580. }
  581. .search{
  582. margin-left: 0px !important;
  583. margin-right: 10px !important;
  584. }
  585. .bt{
  586. margin-left: 2px !important;
  587. padding: 3px !important;
  588. font-size: 12px;
  589. }
  590. .el-tabs__header{
  591. margin: 0px !important;
  592. }
  593. .gva-table-box{
  594. padding: 0px !important;
  595. }
  596. .mab{
  597. margin-bottom: 5px;
  598. }
  599. </style>