caiqiebaogong.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. <template>
  2. <div>
  3. <layout>
  4. <layout-content >
  5. <div class="gva-table-box">
  6. <div style="display: flex; align-items: baseline; margin-bottom: 10px;">
  7. <h1 style="margin: 0;">裁切完工报工</h1>
  8. </div>
  9. <el-row :gutter="24">
  10. <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit"id="searchInput"
  11. style="width: 220px;height: 50px;margin-left: 10px;"></el-input>
  12. <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 80px;">查询</el-button>
  13. <el-form-item label="机台号" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
  14. <el-input v-model="add_formData['机台号']" readonly style="width: 90px; height: 40px;" id="jitaihao" />
  15. </el-form-item>
  16. <el-form-item label="工序" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="73px">
  17. <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
  18. </el-form-item>
  19. <el-form-item label="组别" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="73px">
  20. <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
  21. </el-form-item>
  22. <el-form-item label="人员" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="73px">
  23. <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
  24. </el-form-item>
  25. </el-row>
  26. <el-row :gutter="24">
  27. <el-form-item label="尺码" class="mab" prop="keyOrder" label-width="200" style="font-size: 28px;">
  28. <el-input v-model="cmformdata.cm1" id="cm1" readonly style="width: 70px;height: 40px;"/>
  29. <el-input v-model="cmformdata.cm2" id="cm2" readonly style="width: 70px;height: 40px;"/>
  30. <el-input v-model="cmformdata.cm3" id="cm3" readonly style="width: 70px;height: 40px;"/>
  31. <el-input v-model="cmformdata.cm4" id="cm4" readonly style="width: 70px;height: 40px;"/>
  32. <el-input v-model="cmformdata.cm5" id="cm5" readonly style="width: 70px;height: 40px;"/>
  33. <el-input v-model="cmformdata.cm6" id="cm6" readonly style="width: 70px;height: 40px;"/>
  34. <el-input v-model="cmformdata.cm7" id="cm7" readonly style="width: 70px;height: 40px;"/>
  35. <el-input v-model="cmformdata.cm8" id="cm8" readonly style="width: 70px;height: 40px;"/>
  36. <el-input v-model="cmformdata.cm9" id="cm9" readonly style="width: 70px;height: 40px;"/>
  37. <el-input v-model="cmformdata.cm10" id="cm10" readonly style="width: 70px;height: 40px;"/>
  38. <el-input v-model="cmformdata.cm11" id="cm11" readonly style="width: 70px;height: 40px;"/>
  39. </el-form-item>
  40. </el-row>
  41. <el-row :gutter="24">
  42. <el-form-item label="制单数" class="mab" prop="keyOrder" label-width="200" style="font-size: 28px;">
  43. <el-input v-model="cmslformdata.cmsl1" id="cmsl1" readonly style="width: 70px;height: 40px;"/>
  44. <el-input v-model="cmslformdata.cmsl2" id="cmsl2" readonly style="width: 70px;height: 40px;"/>
  45. <el-input v-model="cmslformdata.cmsl3" id="cmsl3" readonly style="width: 70px;height: 40px;"/>
  46. <el-input v-model="cmslformdata.cmsl4" id="cmsl4" readonly style="width: 70px;height: 40px;"/>
  47. <el-input v-model="cmslformdata.cmsl5" id="cmsl5" readonly style="width: 70px;height: 40px;"/>
  48. <el-input v-model="cmslformdata.cmsl6" id="cmsl6" readonly style="width: 70px;height: 40px;"/>
  49. <el-input v-model="cmslformdata.cmsl7" id="cmsl7" readonly style="width: 70px;height: 40px;"/>
  50. <el-input v-model="cmslformdata.cmsl8" id="cmsl8" readonly style="width: 70px;height: 40px;"/>
  51. <el-input v-model="cmslformdata.cmsl9" id="cmsl9" readonly style="width: 70px;height: 40px;"/>
  52. <el-input v-model="cmslformdata.cmsl10" id="cmsl10" readonly style="width: 70px;height: 40px;"/>
  53. <el-input v-model="cmslformdata.zdtotal" id="zdtotal" readonly style="width: 70px;height: 40px;"/>
  54. </el-form-item>
  55. </el-row>
  56. <el-row :gutter="24" >
  57. <el-form-item label="新增实裁数" class="mab" prop="keyOrder" label-width="200" style="font-size: 28px;">
  58. <el-input v-model="scsformdata.scs1" id="scs1" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs10', 'scs1', 'scs2')"/>
  59. <el-input v-model="scsformdata.scs2" id="scs2" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs1', 'scs2', 'scs3')"/>
  60. <el-input v-model="scsformdata.scs3" id="scs3" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs2', 'scs3', 'scs4')"/>
  61. <el-input v-model="scsformdata.scs4" id="scs4" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs3', 'scs4', 'scs5')"/>
  62. <el-input v-model="scsformdata.scs5" id="scs5" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs4', 'scs5', 'scs6')"/>
  63. <el-input v-model="scsformdata.scs6" id="scs6" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs5', 'scs6', 'scs7')"/>
  64. <el-input v-model="scsformdata.scs7" id="scs7" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs6', 'scs7', 'scs8')"/>
  65. <el-input v-model="scsformdata.scs8" id="scs8" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs7', 'scs8', 'scs9')"/>
  66. <el-input v-model="scsformdata.scs9" id="scs9" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs8', 'scs9', 'scs10')"/>
  67. <el-input v-model="scsformdata.scs10" id="scs10" @input="updateTotal" style="width: 70px;height: 40px;" @keydown="handleKeyDown($event, 'scs9', 'scs10', 'scs1')"/>
  68. <el-input v-model="scsformdata.sctotal" readonly style="width: 70px;height: 40px;" id="sctotal"/>
  69. <el-button type="primary" @click="add_Dialog" style="width: 100px;height: 60px;font-size: 20px;margin-left: 10px">确认</el-button>
  70. <el-button type="primary" @click="gd_yulan" style="width: 100px;height: 60px;font-size: 20px;">工单预览</el-button>
  71. </el-form-item>
  72. </el-row>
  73. <el-row :gutter="24" style="margin-bottom: 15px;">
  74. <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
  75. :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
  76. :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
  77. :data="add_tableData" border row-key="ID"
  78. size="small"
  79. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  80. @row-click="tableRowClick" :show-overflow-tooltip="true"
  81. @selection-change="handleSelectionChange">
  82. <!-- <el-table-column type="selection" width="55" /> -->
  83. <el-table-column sortable align="center" label="订单编号" prop="订单编号" width="120"/>
  84. <el-table-column sortable align="left" label="订单子编号" prop="子订单编号" width="130"/>
  85. <el-table-column sortable align="left" label="生产款号" prop="生产款号" width="120" />
  86. <el-table-column sortable align="left" label="款式" prop="款式" width="110" />
  87. <el-table-column sortable align="left" label="色系名称" prop="颜色" width="110" />
  88. <el-table-column sortable align="left" label="制单总数" prop="zdtotal" width="110" />
  89. <el-table-column sortable align="left" label="实裁总数" prop="sctotal" width="110" />
  90. <el-table-column sortable align="left" label="单位" prop="单位" width="80" />
  91. <!-- <el-table-column sortable align="left" label="工序" prop="工序" width="80" /> -->
  92. <el-table-column sortable align="left" label="验片人" prop="Sys_id" width="100" />
  93. <el-table-column sortable align="left" label="日期" prop="Sys_rq" width="160" />
  94. </el-table>
  95. </el-row>
  96. </div>
  97. <!-- 是否订单尾包确认弹窗 -->
  98. <el-dialog v-model="DialogVisible" title="是否订单尾包" destroy-on-close width="30%" style="top: 20%;">
  99. <h3>请再次确认是否该订单产品已全部报工,该批为订单尾包?</h3>
  100. <div class="dialog-footer" style="text-align: right;">
  101. <el-button @click="confirmDialogVisible">取消</el-button>
  102. <el-button type="primary" @click="handleConfirm">确认</el-button>
  103. </div>
  104. </el-dialog>
  105. <el-dialog v-model="luckyexcelVisible" :before-close="luckyexcelCloseDialog" width="100%" top="0vh">
  106. <div id="luckyexcel" style="width: 100%;height: 100vh;"></div>
  107. </el-dialog>
  108. </layout-content>
  109. </layout>
  110. <PrintPage ref="printPageRef" />
  111. <!-- </el-main> -->
  112. </div>
  113. </template>
  114. <script>
  115. export default {
  116. data() {
  117. return {
  118. dialogFormVisible: false,
  119. formDataTest: {
  120. imageUrl: '' // 添加一个字段来保存上传的图片路径
  121. },
  122. rule: {} // 初始化rule对象
  123. };
  124. },
  125. methods: {
  126. handleKeyDown(event, prevId, currentId, nextId) {
  127. const currentElement = document.getElementById(currentId);
  128. const isEmpty = currentElement.value === '';
  129. const atStart = currentElement.selectionStart === 0;
  130. const atEnd = currentElement.selectionStart === currentElement.value.length;
  131. switch (event.keyCode) {
  132. case 13: // Enter
  133. case 40: // 向下箭头
  134. if (nextId) {
  135. document.getElementById(nextId).focus();
  136. }
  137. break;
  138. case 38: // 向上箭头
  139. if (prevId) {
  140. document.getElementById(prevId).focus();
  141. }
  142. break;
  143. case 8: // 删除键
  144. if (prevId && (isEmpty || atStart)) {
  145. document.getElementById(prevId).focus();
  146. }
  147. break;
  148. case 37: // 向左箭头
  149. if (prevId && atStart) {
  150. document.getElementById(prevId).focus();
  151. }
  152. break;
  153. case 39: // 向右箭头
  154. if (nextId && atEnd) {
  155. document.getElementById(nextId).focus();
  156. }
  157. break;
  158. default:
  159. break;
  160. }
  161. },
  162. },
  163. };
  164. </script>
  165. <script setup>
  166. // 全量引入格式化工具 请按需保留
  167. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  168. import {ref, reactive} from 'vue';
  169. import {getSpotList,getInfo,} from '@/api/mes/job';
  170. import {getMachineMac} from '@/api/jixiaoguanli/jitairibaobiao'
  171. import {getMac} from '@/api/jixiaoguanli/baogong'
  172. import {ElMessage} from "element-plus";
  173. import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
  174. defineOptions({name: 'Company'})
  175. const printPageRef = ref()
  176. const add_searchInfo = ref('')
  177. //全局获取code,接口接收code
  178. const _code = '裁切'
  179. //全局接口接受的物理地址
  180. const Machine = ref('')
  181. //全局获取UniqId
  182. const UniqId = ref('')
  183. //物理地址获取机台编号
  184. const getMachineMacdata = async () => {
  185. console.log("裁切页面获取物理地址",Machine.value)
  186. try {
  187. const data = await getMachineMac({sys_sbID:Machine.value});
  188. // console.log(data)
  189. add_formData['机台号'] = data.data['机台号']
  190. add_formData['工序'] = data.data['生产工序']
  191. add_formData['组别'] = data.data['组别']
  192. add_formData['人员'] = data.data['组长']
  193. setTimeout(() => {
  194. const inputElement = document.getElementById('searchInput');
  195. if (inputElement) {
  196. inputElement.focus();
  197. }
  198. }, 100); // 延迟100毫秒
  199. } catch (error) {
  200. console.error(error)
  201. }
  202. }
  203. //自动获取物理地址
  204. const GetAddr = () => {
  205. var xmlhttp = null;
  206. var res;
  207. if (window.XMLHttpRequest) {
  208. xmlhttp = new XMLHttpRequest();
  209. } else if (window.ActiveXObject) {
  210. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  211. }
  212. // 2. 设置回调函数
  213. xmlhttp.onreadystatechange = function() {
  214. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  215. res = eval('('+xmlhttp.response+')');
  216. let result = ''
  217. for (let i = 0; i < res.macAddress.length; i++) {
  218. if (i % 2 === 0 && i !== 0) {
  219. result += '-' // 根据实际需求修改分隔符
  220. }
  221. result += res.macAddress[i]
  222. }
  223. Machine.value = result
  224. getMachineMacdata(Machine.value)
  225. }
  226. }
  227. // 3. 打开一个连接
  228. xmlhttp.open("get", "http://127.0.0.1:8090/init")
  229. // 5. 发送
  230. xmlhttp.send();
  231. }
  232. // getMachineMacdata();
  233. GetAddr()
  234. //全局调用获取当前日期
  235. const today = new Date();
  236. const year = today.getFullYear();
  237. const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要补零
  238. const day = String(today.getDate()).padStart(2, '0');
  239. const hours = String(today.getHours()).padStart(2, '0');
  240. const minutes = String(today.getMinutes()).padStart(2, '0');
  241. const seconds = String(today.getSeconds()).padStart(2, '0');
  242. const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  243. const currentDates = `${year}-${month}-${day}`;
  244. const add_formData = reactive({
  245. 机台号: '',
  246. 工序: '',
  247. 组别: '',
  248. 人员: '',
  249. 尺码: '',
  250. 数量: '',
  251. 是否订单尾包: '',
  252. });
  253. //清空对象的属性值
  254. const gd_clearFormData = () => {
  255. Object.keys(add_formData).forEach(key => {
  256. add_formData[key] = '';
  257. });
  258. };
  259. // 尺码
  260. const cmformdata = reactive({
  261. cm1:'',
  262. cm2:'',
  263. cm3:'',
  264. cm4:'',
  265. cm5:'',
  266. cm6:'',
  267. cm7:'',
  268. cm8:'',
  269. cm9:'',
  270. cm10:'',
  271. cm11:'合计',
  272. });
  273. // 制单数
  274. const cmslformdata = reactive({
  275. cmsl1: '',
  276. cmsl2: '',
  277. cmsl3: '',
  278. cmsl4: '',
  279. cmsl5: '',
  280. cmsl6: '',
  281. cmsl7: '',
  282. cmsl8: '',
  283. cmsl9: '',
  284. cmsl10: '',
  285. zdtotal: ''
  286. });
  287. // 实裁数
  288. const scsformdata = reactive({
  289. scs1:'',
  290. scs2:'',
  291. scs3:'',
  292. scs4:'',
  293. scs5:'',
  294. scs6:'',
  295. scs7:'',
  296. scs8:'',
  297. scs9:'',
  298. scs10:'',
  299. sctotal:'',
  300. });
  301. //实裁相加
  302. function updateTotal() {
  303. // 直接指定要累加的属性名
  304. const relevantKeys = ['scs1', 'scs2', 'scs3', 'scs4', 'scs5', 'scs6', 'scs7', 'scs8', 'scs9', 'scs10'];
  305. const values = relevantKeys.map(key => parseInt(scsformdata[key], 10) || 0); // 使用 || 0 来处理可能的 NaN 或 undefined/null
  306. scsformdata.sctotal = values.reduce((sum, value) => sum + value, 0);
  307. }
  308. const add_tableData = ref([]);
  309. const _order = ref('');
  310. const _UniqId = ref('');
  311. //点击【查询】按钮
  312. const add_onSubmit = async ()=>{
  313. if (!add_searchInfo.value.startsWith('DC')) {
  314. // 如果没有以"DC"开头,则添加前缀
  315. add_searchInfo.value = 'DC' + add_searchInfo.value;
  316. }
  317. if(add_searchInfo.value === '' || add_searchInfo.value === undefined){
  318. const WorkListdata = [];
  319. add_tableData.splice(0,add_tableData.length,...WorkListdata);
  320. ElMessage({type: 'warning',message: '搜索内容不能为空' })
  321. }else{
  322. const order =add_searchInfo.value;
  323. _order.value =add_searchInfo.value;
  324. const getSpotLists = await getSpotList({order:order,code:'裁切'});
  325. if(getSpotLists.data.total === 0){
  326. ElMessage({type: 'warning',message: '请先出库此订单再使用裁切报工' })
  327. return false
  328. }
  329. console.log(getSpotLists)
  330. add_tableData.value = getSpotLists.data.data;
  331. _UniqId.value = getSpotLists.data.list[0].UniqId
  332. const keys1 = ['cm1', 'cm2', 'cm3', 'cm4','cm5','cm6','cm7','cm8','cm9','cm10',];
  333. const keys2 = ['cmsl1', 'cmsl2', 'cmsl3', 'cmsl4','cmsl5','cmsl6','cmsl7','cmsl8','cmsl9','cmsl10','zdtotal',];
  334. if(order.includes('-')){
  335. for (let key of keys1) {
  336. if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中
  337. cmformdata[key] = getSpotLists.data.list[0][key];
  338. }
  339. }
  340. for (let key of keys2) {
  341. if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中
  342. cmslformdata[key] = getSpotLists.data.list[0][key];
  343. }
  344. }
  345. setTimeout(() => {
  346. const inputElement = document.getElementById('scs1');
  347. if (inputElement) {
  348. inputElement.focus();
  349. }
  350. }, 100); // 延迟100毫秒
  351. }else{
  352. for (let key of keys1) {
  353. cmformdata[key] = '';
  354. }
  355. for (let key of keys2) {
  356. cmslformdata[key] = '';
  357. }
  358. }
  359. setTimeout(() => {
  360. const inputElement = document.querySelector('#searchInput');
  361. if (inputElement) {
  362. inputElement.focus();
  363. }
  364. }, 100); // 延迟100毫秒
  365. }
  366. };
  367. //表格行点击
  368. const tableRowClick = async (row)=>{
  369. add_searchInfo.value = row.子订单编号
  370. console.log(row)
  371. _order.value = row.子订单编号
  372. add_onSubmit();
  373. }
  374. //复选框选择
  375. const ckSelection = ref('')
  376. const handleSelectionChange = (selection, type) => {
  377. const ids = selection.map(item => {
  378. return item.子订单编号
  379. })
  380. ckSelection.value = ids.join(',')
  381. console.log(ckSelection.value)
  382. }
  383. //确认出库按钮
  384. const add_Dialog = async ()=>{
  385. if(_order.value === ''){
  386. ElMessage({type: 'warning',message: '请扫描子订单后,再操作此功能'})
  387. }else{
  388. if (_order.value.indexOf('-') !== -1) {
  389. let params = {}
  390. params.scsl1 = scsformdata.scs1
  391. params.scsl2 = scsformdata.scs2
  392. params.scsl3 = scsformdata.scs3
  393. params.scsl4 = scsformdata.scs4
  394. params.scsl5 = scsformdata.scs5
  395. params.scsl6 = scsformdata.scs6
  396. params.scsl7 = scsformdata.scs7
  397. params.scsl8 = scsformdata.scs8
  398. params.scsl9 = scsformdata.scs9
  399. params.scsl10 = scsformdata.scs10
  400. params.sctotal = scsformdata['sctotal'];
  401. params.order_id = _order.value;//子订单编号
  402. params.rq = currentDates;//时间
  403. params.UniqId = _UniqId.value
  404. console.log(params)
  405. //裁切完工报工接口
  406. const baogong_getInfo = await getInfo(params);
  407. if (baogong_getInfo.code === 0) {
  408. ElMessage({type: 'success',message: '报工成功'});
  409. const getSpotToLists = await getSpotList({order:_order.value,code:_code});
  410. add_tableData.value = getSpotToLists.data.data;
  411. add_searchInfo.value = ''
  412. } else {
  413. ElMessage({ type: 'error',message: '出库失败'})
  414. }
  415. } else {
  416. ElMessage({type: 'warning',message: '请扫描子订单后,再操作此功能'})
  417. }
  418. }
  419. }
  420. const gd_yulan = () => {
  421. if(add_searchInfo.value === '' || add_searchInfo.value === null){
  422. ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
  423. return false;
  424. }else{
  425. const order = add_searchInfo.value.split('-')[0]
  426. printPageRef.value.open(order)
  427. }
  428. }
  429. // =========== 分页 ===========
  430. // 分页相关的响应式变量
  431. const page = ref(1)
  432. const total = ref(0)
  433. const pageSize = ref(10)
  434. // 分页
  435. const handleCurrentChange = (val) => {
  436. page.value = val;
  437. _getStaffList();
  438. };
  439. // 修改页面容量 点击多少条/页
  440. const handleSizeChange = (val) => {
  441. page.value = 10;//默认显示
  442. pageSize.value = val;
  443. _getStaffList();
  444. };
  445. </script>
  446. <style scoped>
  447. .form-container {
  448. display: flex;
  449. flex-wrap: wrap;
  450. }
  451. .form-column {
  452. /*flex: 1;*/
  453. margin-right: 15px; /* 调整列之间的间距 */
  454. }
  455. /* 左侧输入框宽度调整 */
  456. .form-column .el-form-item .el-input {
  457. width: 150px; /* 调整左侧输入框的宽度 */
  458. }
  459. /* 媒体查询,根据需要调整断点 */
  460. @media screen and (max-width: 768px) {
  461. .form-column {
  462. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  463. margin-right: 0;
  464. }
  465. }
  466. /*:deep(.el-table td .cell) {*/
  467. /* line-height: 30px !important;*/
  468. /*}*/
  469. .JKWTree-container {
  470. display: flex;
  471. }
  472. .JKWTree-tree {
  473. /*width: 300px;*/
  474. background-color: #fff;
  475. padding: 10px;
  476. margin-right: 20px;
  477. }
  478. .JKWTree-tree h3 {
  479. font-size: 15px;
  480. font-weight: 700;
  481. margin: 10px 0;
  482. }
  483. .JKWTree-content {
  484. flex: 1;
  485. }
  486. /* 图片上传 */
  487. .upload-box {
  488. width: 200px;
  489. height: 200px;
  490. border: 2px dashed #e2e2e2;
  491. display: flex;
  492. justify-content: center;
  493. align-items: center;
  494. position: relative;
  495. cursor: pointer;
  496. }
  497. .uploaded-image {
  498. width: 100%;
  499. height: 100%;
  500. object-fit: cover;
  501. }
  502. .upload-icon {
  503. font-size: 40px;
  504. color: #c0c4cc;
  505. }
  506. .file-input {
  507. display: none;
  508. }
  509. .el-table .warning-row {
  510. background: oldlace;
  511. }
  512. /* 选中某行时的背景色 */
  513. :deep(.el-table__body tr.current-row) > td {
  514. background: #ff80ff !important;
  515. }
  516. </style>
  517. <style scoped>
  518. :deep(.el-table td .cell) {
  519. line-height: 20px !important;
  520. }
  521. :deep(.el-tabs__header){
  522. margin-bottom: 0;
  523. }
  524. .search{
  525. margin-left: 0px !important;
  526. margin-right: 10px !important;
  527. }
  528. .bt{
  529. margin-left: 2px !important;
  530. padding: 3px !important;
  531. font-size: 12px;
  532. }
  533. .el-tabs__header{
  534. margin: 0px !important;
  535. }
  536. .gva-table-box{
  537. padding: 0px !important;
  538. margin-left: -10px !important;
  539. }
  540. .mab{
  541. margin-bottom: 5px;
  542. }
  543. /* 搜索样式 */
  544. ::v-deep .el-input__wrapper #searchInput {
  545. font-size: 16px;
  546. }
  547. ::v-deep .el-input__wrapper #jitaihao {
  548. font-size: 18px;
  549. }
  550. ::v-deep .el-input__wrapper #gongxu {
  551. font-size: 18px;
  552. }
  553. ::v-deep .el-input__wrapper #zubie {
  554. font-size: 18px;
  555. }
  556. ::v-deep .el-input__wrapper #renyuan {
  557. font-size: 18px;
  558. }
  559. ::v-deep .el-input__wrapper #shuliang {
  560. font-size: 18px;
  561. color: red;
  562. }
  563. ::v-deep .el-input__wrapper #chima {
  564. font-size: 18px;
  565. }
  566. /* 尺码/制单数合计样式 */
  567. ::v-deep .el-input__wrapper #cm1{
  568. font-size: 20px;
  569. }
  570. ::v-deep .el-input__wrapper #cm2{
  571. font-size: 20px;
  572. }
  573. ::v-deep .el-input__wrapper #cm3{
  574. font-size: 20px;
  575. }
  576. ::v-deep .el-input__wrapper #cm4{
  577. font-size: 20px;
  578. }
  579. ::v-deep .el-input__wrapper #cm5{
  580. font-size: 20px;
  581. }
  582. ::v-deep .el-input__wrapper #cm6{
  583. font-size: 20px;
  584. }
  585. ::v-deep .el-input__wrapper #cm7{
  586. font-size: 20px;
  587. }
  588. ::v-deep .el-input__wrapper #cm8{
  589. font-size: 20px;
  590. }
  591. ::v-deep .el-input__wrapper #cm9{
  592. font-size: 20px;
  593. }
  594. ::v-deep .el-input__wrapper #cm10{
  595. font-size: 20px;
  596. }
  597. ::v-deep .el-input__wrapper #cm11{
  598. font-size: 20px;
  599. }
  600. /* 本次实裁新增样式 */
  601. ::v-deep .el-input__wrapper #cmsl1{
  602. font-size: 20px;
  603. color: red !important;
  604. }
  605. ::v-deep .el-input__wrapper #cmsl2{
  606. font-size: 20px;
  607. color: red !important;
  608. }
  609. ::v-deep .el-input__wrapper #cmsl3{
  610. font-size: 20px;
  611. color: red !important;
  612. }
  613. ::v-deep .el-input__wrapper #cmsl4{
  614. font-size: 20px;
  615. color: red !important;
  616. }
  617. ::v-deep .el-input__wrapper #cmsl5{
  618. font-size: 20px;
  619. color: red !important;
  620. }
  621. ::v-deep .el-input__wrapper #cmsl6{
  622. font-size: 20px;
  623. color: red !important;
  624. }
  625. ::v-deep .el-input__wrapper #cmsl7{
  626. font-size: 20px;
  627. color: red !important;
  628. }
  629. ::v-deep .el-input__wrapper #cmsl8{
  630. font-size: 20px;
  631. color: red !important;
  632. }
  633. ::v-deep .el-input__wrapper #cmsl9{
  634. font-size: 20px;
  635. color: red !important;
  636. }
  637. ::v-deep .el-input__wrapper #cmsl10{
  638. font-size: 20px;
  639. color: red !important;
  640. }
  641. ::v-deep .el-input__wrapper #zdtotal{
  642. font-size: 20px;
  643. color: red !important;
  644. }
  645. </style>