caiqiebaogong.vue 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158
  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;">{{_code}}完工报工</h1>
  8. </div>
  9. <el-row :gutter="10" style="align-items: center; margin-bottom: 20px;">
  10. <!-- 子订单编号输入框 -->
  11. <el-col :span="4" style="padding: 0px;margin: 0px;">
  12. <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号条码"@keyup.enter="add_onSubmit" id="searchInput" style="width: 100%; height: 50px;"/>
  13. </el-col>
  14. <!-- 查询按钮 -->
  15. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  16. <el-button type="primary" icon="search" @click="add_onSubmit"style="height: 50px;width: 80px;">查询</el-button>
  17. </el-col>
  18. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  19. <el-text style="font-size: 30px;">机台号</el-text>
  20. </el-col>
  21. <!-- 机台号输入框 -->
  22. <el-col :span="2"><el-input v-model="add_formData['机台号']" readonly style="width: 100%; height: 40px;"/></el-col>
  23. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  24. <el-text style="font-size: 30px;">工序</el-text>
  25. </el-col>
  26. <!-- 工序输入框 -->
  27. <el-col :span="2"><el-input v-model="add_formData['工序']" readonly style="width: 100%; height: 40px;" /></el-col>
  28. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  29. <el-text style="font-size: 30px;">组别</el-text>
  30. </el-col>
  31. <!-- 组别输入框 -->
  32. <el-col :span="2"><el-input v-model="add_formData['组别']" readonly style="width: 100%; height: 40px;" /></el-col>
  33. <el-col :span="1.5" style="padding: 0px;margin: 0px;">
  34. <el-text style="font-size: 30px;">人员</el-text>
  35. </el-col>
  36. <!-- 人员输入框 -->
  37. <el-col :span="2"><el-input v-model="add_formData['人员']" readonly style="width: 100%; height: 40px;"/></el-col>
  38. </el-row>
  39. <el-row :gutter="0">
  40. <el-col :span="2.5">
  41. <el-text style="font-size: 24px; margin-left: 70px;">尺 码&nbsp;</el-text>
  42. </el-col>
  43. <el-col v-for="(item, index) in 10" :key="index" :span="1" style="padding: 0; margin: 0;">
  44. <el-input v-model="cmformdata[`cm${index + 1}`]" :id="`cm${index + 1}`" readonly style="width: 70px; height: 40px;"/>
  45. </el-col>
  46. <el-col :span="1"><el-input v-model="cmformdata.cmtotal" id="cmtotal" readonly style="width: 80px;height: 40px;" /></el-col>
  47. </el-row>
  48. <el-row :gutter="0">
  49. <el-col :span="2.5">
  50. <el-text style="font-size: 24px; margin-left: 53px;">制单数&nbsp;</el-text>
  51. </el-col>
  52. <el-col v-for="(item, index) in 10" :key="index" :span="1" style="padding: 0; margin: 0;">
  53. <el-input v-model="cmslformdata[`cmsl${index + 1}`]" :id="`cmsl${index + 1}`" readonly style="width: 70px; height: 40px;"/>
  54. </el-col>
  55. <el-col :span="1"><el-input v-model="cmslformdata.zdtotal" id="zdtotal" readonly style="width: 80px;height: 40px;" /></el-col>
  56. </el-row>
  57. <el-row :gutter="0">
  58. <el-col :span="2.5">
  59. <el-text style="font-size: 24px; margin-left: 10px;">新增实裁数</el-text>
  60. </el-col>
  61. <el-col v-for="(item, index) in 10" :key="index" :span="1" style="padding: 0; margin: 0;">
  62. <el-input v-model="scsformdata[`scs${index + 1}`]" :id="`scs${index + 1}`" @input="updateTotal" style="width: 70px; height: 40px;"/>
  63. </el-col>
  64. <el-col :span="1"><el-input v-model="scsformdata.sctotal" id="sctotal" readonly style="width: 80px;height: 40px;" /></el-col>
  65. </el-row>
  66. <el-main>
  67. <!-- 表格数据 -->
  68. <el-tabs v-model="activeName">
  69. <el-tab-pane label="报工历史记录" @click="showTable('报工历史记录')" name="first">
  70. <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
  71. :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
  72. :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
  73. :data="bgjdhz_tableData" border row-key="ID"
  74. size="small"
  75. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  76. @row-click="tableRowClick" :show-overflow-tooltip="true"
  77. @selection-change="selectionChange">
  78. <el-table-column type="selection" width="60" />
  79. <el-table-column align="left" label="报工时间" prop="sys_rq" width="150"/>
  80. <el-table-column align="left" label="子订单编号" prop="子订单编号" width="130"/>
  81. <el-table-column align="left" label="生产款号" prop="款号" width="120"/>
  82. <el-table-column align="left" label="款式" prop="款式" width="100"/>
  83. <el-table-column align="left" label="组别" prop="sczl_jtbh" width="80"/>
  84. <el-table-column align="left" label="尺码" prop="尺码" width="70"/>
  85. <el-table-column align="left" label="实裁数量" prop="数量" width="100"/>
  86. </el-table>
  87. </el-tab-pane>
  88. <el-tab-pane label="产量进度汇总记录" @click="showTable('产量进度汇总记录')" name="two">
  89. <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
  90. :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
  91. :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
  92. :data="jdhz_tableData" border row-key="ID"
  93. size="small"
  94. show-summary :summary-method="getSummaries"
  95. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  96. @row-click="tableRowClick" :show-overflow-tooltip="true"
  97. @selection-change="handleSelectionChange">
  98. <el-table-column align="left" label="订单子编号" prop="子订单编号" width="130"/>
  99. <el-table-column align="left" label="款号" prop="款号" width="140" />
  100. <el-table-column align="left" label="色系名称" prop="颜色" width="100" />
  101. <el-table-column v-for="item in sizeDatas" :key="item" align="left" :label="item" :prop="item" width="60" :cell-style="cellStyle">
  102. <template v-slot="scope">
  103. <div style="width: 80px;" @click="handleSizeClick(scope.$index, item, scope.row)">
  104. {{ scope.row[item] }}
  105. </div>
  106. </template>
  107. </el-table-column>
  108. <el-table-column align="left" label="实裁总数" prop="裁剪数" width="90" />
  109. <!-- <el-table-column align="left" label="上报时间" prop="上报时间" width="160" /> -->
  110. </el-table>
  111. </el-tab-pane>
  112. <el-tab-pane label="订单资料附件" name="third">
  113. <el-table ref="multipleTable"
  114. :row-style="{ height: '30px' }"
  115. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '30px' }"
  116. :header-cell-style="{ padding: '0px' }"
  117. :show-overflow-tooltip="true"
  118. :cell-class-name="planUsageCellClass"
  119. highlight-current-row="true"
  120. @row-dblclick="gdbomupdateCompanyFunc"
  121. style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="ddtableData" row-key="ID"
  122. @selection-change="fjSelectionChange">
  123. <el-table-column align="left" label="关联编号" prop="关联编号" width="115"/>
  124. <el-table-column align="left" label="备注" prop="附件备注" width="110"/>
  125. <el-table-column align="left" label="文件类型" prop="附件类型" width="100"/>
  126. <el-table-column align="left" label="建档时间" prop="sys_rq" width="160"/>
  127. <el-table-column align="left" label="建档用户" prop="sys_id" width="200"/>
  128. <el-table-column align="left" label="操作"width="100"fixed="right">
  129. <template #default="scope">
  130. <el-button type="success" size="small" :data="ddtableData" @click="showPdf(scope.row)" >PDF预览</el-button>
  131. </template>
  132. </el-table-column>
  133. </el-table>
  134. </el-tab-pane>
  135. <el-tab-pane label="技术附件" @click="showTable('技术附件')" name="fourth">
  136. <el-table ref="multipleTable"
  137. :row-style="{ height: '30px' }"
  138. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '30px' }"
  139. :header-cell-style="{ padding: '0px' }"
  140. :show-overflow-tooltip="true"
  141. :cell-class-name="planUsageCellClass"
  142. highlight-current-row="true"
  143. @row-dblclick="ExcelShow"
  144. style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="jstableData" row-key="ID" @selection-change="fjSelectionChange">
  145. <el-table-column align="left" label="关联编号" prop="关联编号" width="115"/>
  146. <el-table-column align="left" label="备注" prop="附件备注" width="110"/>
  147. <el-table-column align="left" label="文件类型" prop="附件类型" width="100"/>
  148. <el-table-column align="left" label="建档时间" prop="sys_rq" width="160"/>
  149. <el-table-column align="left" label="建档用户" prop="sys_id" width="200"/>
  150. <el-table-column align="left" label="操作"width="100"fixed="right">
  151. <template #default="scope">
  152. <el-button type="success" size="small" :data="ddtableData" @click="showPdf(scope.row)" >PDF预览</el-button>
  153. </template>
  154. </el-table-column>
  155. </el-table>
  156. </el-tab-pane>
  157. </el-tabs>
  158. <el-button type="danger" icon="delete" @click="del_delclick"
  159. v-if="delall === true" :disabled="Selection === ''"
  160. :style="{
  161. backgroundColor: Selection === '' ? '' : 'red',
  162. borderColor: Selection === '' ? '' : 'red',
  163. color: Selection === '' ? '' : '#fff'
  164. }"
  165. style="width: 150px; height: 40px; font-size: 20px; margin-left: 10px;">删除报工</el-button>
  166. <el-button type="primary" @click="cp_gdprintonClick" style="width: 150px; height: 40px; font-size: 20px; margin-left: 10px;" > 子订单详情页 </el-button>
  167. <el-button type="primary" @click="add_Dialog" style="width: 100px; height: 40px; font-size: 20px; margin-left: 10px;" >报工</el-button>
  168. <el-button type="primary" @click="return_Dialog" style="width: 100px; height: 40px; font-size: 20px; margin-left: 10px;" >退还</el-button>
  169. </el-main>
  170. </div>
  171. <!-- 是否订单尾包确认弹窗 -->
  172. <el-dialog v-model="DialogVisible" title="是否订单尾包" destroy-on-close width="30%" style="top: 20%;">
  173. <h3>请再次确认是否该订单产品已全部报工,该批为订单尾包?</h3>
  174. <div class="dialog-footer" style="text-align: right;">
  175. <el-button @click="confirmDialogVisible">取消</el-button>
  176. <el-button type="primary" @click="handleConfirm">确认</el-button>
  177. </div>
  178. </el-dialog>
  179. <!-- 退还 -->
  180. <el-dialog v-model="res_bomdialogFormVisible" :before-close="res_bomcloseDialog" title="报工领用" width="100%" top="2%" destroy-on-close>
  181. <div class="dialog-footer">
  182. <el-button @click="res_bomcloseDialog">取消</el-button>
  183. <el-button type="primary" @click="res_bomenterDialog">确定</el-button>
  184. </div>
  185. <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; display: flex; align-items: center;">
  186. <el-form-item label="订单编号 :" prop="currentProcess" style="margin-right: 20px; padding: 0px">
  187. <el-input v-model="ddhformData['ddh']" disabled style="width: 200px;"/>
  188. </el-form-item>
  189. <el-form-item label="生产款号 :" prop="currentProcess" style="margin-right: 20px; padding: 0px">
  190. <el-input v-model="ddhformData['kh']" disabled style="width: 200px;"/>
  191. </el-form-item>
  192. </div>
  193. <div>
  194. <el-table ref="paichengRef"
  195. :show-overflow-tooltip="true"
  196. highlight-current-row="true"
  197. :row-style="{ height: '0px' }"
  198. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
  199. :header-cell-style="{ padding: '0px' }"
  200. style="width: 100%;height: 60vh" border tooltip-effect="dark"
  201. :data="resbomtableData" row-key="ID"
  202. :cell-class-name="scfjfpxsCellClass">
  203. <template v-for="(item, idx) in resbom_tableColumns">
  204. <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
  205. <div v-if="['退还'].includes(item.prop)">
  206. <el-input v-model="row[item.prop]" :clearable="false"
  207. :id="`input${idx}${$index}`" @keyup="resbom_handleKeyDown($event, idx, $index, item.prop)"/>
  208. </div>
  209. <div v-else>{{ row[item.prop] }}</div>
  210. </el-table-column>
  211. </template>
  212. </el-table>
  213. </div>
  214. </el-dialog>
  215. </layout-content>
  216. </layout>
  217. <SubOrderPage ref="SubOrderPageRef" />
  218. <PrintPage ref="printPageRef" />
  219. <!-- 子订单详情页 -->
  220. <luckyexcelPage ref="luckyexcelPageRef" />
  221. </div>
  222. </template>
  223. <script>
  224. export default {
  225. data() {
  226. return {
  227. currentTable: '', // 当前展示的表格
  228. activeName: 'first',
  229. dialogFormVisible: false,
  230. formDataTest: {
  231. imageUrl: '' // 添加一个字段来保存上传的图片路径
  232. },
  233. rule: {} // 初始化rule对象
  234. };
  235. },
  236. methods: {
  237. handleKeyDown(event, prevId, currentId, nextId) {
  238. const currentElement = document.getElementById(currentId);
  239. const isEmpty = currentElement.value === '';
  240. const atStart = currentElement.selectionStart === 0;
  241. const atEnd = currentElement.selectionStart === currentElement.value.length;
  242. switch (event.keyCode) {
  243. case 13: // Enter
  244. case 40: // 向下箭头
  245. if (nextId) {
  246. document.getElementById(nextId).focus();
  247. }
  248. break;
  249. case 38: // 向上箭头
  250. if (prevId) {
  251. document.getElementById(prevId).focus();
  252. }
  253. break;
  254. case 8: // 删除键
  255. if (prevId && (isEmpty || atStart)) {
  256. document.getElementById(prevId).focus();
  257. }
  258. break;
  259. case 37: // 向左箭头
  260. if (prevId && atStart) {
  261. document.getElementById(prevId).focus();
  262. }
  263. break;
  264. case 39: // 向右箭头
  265. if (nextId && atEnd) {
  266. document.getElementById(nextId).focus();
  267. }
  268. break;
  269. default:
  270. break;
  271. }
  272. },
  273. },
  274. };
  275. </script>
  276. <script setup>
  277. // 全量引入格式化工具 请按需保留
  278. import $script from 'scriptjs'
  279. import $ from 'jquery';
  280. import LuckyExcel from 'luckyexcel';
  281. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  282. import {ref, reactive} from 'vue';
  283. import {getSpotList,getInfo,OrderAttachments,getTabByGdbh,search,spotcheckdel,SubWorkOrderStatusList,Mabaolist,orderBomList,orderSearch,outReport} from '@/api/mes/job';
  284. import {getMachineMac} from '@/api/jixiaoguanli/jitairibaobiao'
  285. import {getMac} from '@/api/jixiaoguanli/baogong'
  286. import {ElMessage} from "element-plus";
  287. import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
  288. import luckyexcelPage from '../yunyin/shengchanguanli/components/luckyexcel.vue';
  289. import SubOrderPage from '../yunyin/shengchanguanli/components/SubOrder.vue';
  290. import { useUserStore } from '@/pinia/modules/user';
  291. defineOptions({name: 'Company'})
  292. const path = `${import.meta.env.VITE_BASE_PATH}:${import.meta.env.VITE_UPLOADS_PORT}`
  293. console.log(path)
  294. //定义跳转页面
  295. const SubOrderPageRef = ref()//子订单详情页
  296. const printPageRef = ref()//打印预览
  297. const luckyexcelPageRef = ref()//pdf预览
  298. //获取登录用户信息
  299. const userStore = useUserStore()
  300. const _username = ref('')
  301. _username.value = userStore.userInfo.userName + '/' + userStore.userInfo.nickName
  302. console.log('获取用户名称',_username.value)
  303. //全局获取当前日期
  304. const today = new Date();
  305. const year = today.getFullYear();
  306. const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要补零
  307. const day = String(today.getDate()).padStart(2, '0');
  308. const hours = String(today.getHours()).padStart(2, '0');
  309. const minutes = String(today.getMinutes()).padStart(2, '0');
  310. const seconds = String(today.getSeconds()).padStart(2, '0');
  311. const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  312. const currentDates = `${year}-${month}-${day}`;
  313. const add_searchInfo = ref('')
  314. //全局获取code,接口接收code
  315. const _code = '裁剪'
  316. //全局接口接受的物理地址
  317. const Machine = ref('')
  318. //全局获取UniqId
  319. const UniqId = ref('')
  320. //物理地址获取机台编号
  321. const getMachineMacdata = async () => {
  322. try {
  323. const data = await getMachineMac({sys_sbID:Machine.value});
  324. if (data.data === null) {
  325. // ElMessage({
  326. // type: 'error',
  327. // message: '未获取到机台编号请确认MAC地址或与管理员联系'
  328. // })
  329. add_formData['机台号'] = '测试机台'
  330. add_formData['工序'] = _code
  331. add_formData['组别'] = "测试"
  332. add_formData['人员'] = "测试"
  333. return;
  334. }
  335. add_formData['机台号'] = data.data['机台号']
  336. add_formData['工序'] = data.data['生产工序']
  337. add_formData['组别'] = data.data['组别']
  338. add_formData['人员'] = data.data['组长']
  339. setTimeout(() => {
  340. const inputElement = document.getElementById('searchInput');
  341. if (inputElement) {
  342. inputElement.focus();
  343. }
  344. }, 100); // 延迟100毫秒
  345. } catch (error) {
  346. console.error(error)
  347. }
  348. }
  349. //自动获取物理地址
  350. const GetAddr = () => {
  351. var xmlhttp = null;
  352. var res;
  353. if (window.XMLHttpRequest) {
  354. xmlhttp = new XMLHttpRequest();
  355. } else if (window.ActiveXObject) {
  356. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  357. }
  358. // 2. 设置回调函数
  359. xmlhttp.onreadystatechange = function() {
  360. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  361. res = eval('('+xmlhttp.response+')');
  362. let result = ''
  363. for (let i = 0; i < res.macAddress.length; i++) {
  364. if (i % 2 === 0 && i !== 0) {
  365. result += '-' // 根据实际需求修改分隔符
  366. }
  367. result += res.macAddress[i]
  368. }
  369. Machine.value = result
  370. getMachineMacdata(Machine.value)
  371. }
  372. }
  373. // 3. 打开一个连接
  374. xmlhttp.open("get", "http://127.0.0.1:8090/init")
  375. // 5. 发送
  376. xmlhttp.send();
  377. }
  378. // getMachineMacdata();
  379. GetAddr()
  380. // PDF预览
  381. const showPdf = async (row) => {
  382. luckyexcelPageRef.value.open(row)
  383. }
  384. const add_formData = reactive({
  385. 机台号: '',
  386. 工序: '',
  387. 组别: '',
  388. 人员: '',
  389. 尺码: '',
  390. 数量: '',
  391. 是否订单尾包: '',
  392. });
  393. //清空对象的属性值
  394. const gd_clearFormData = () => {
  395. Object.keys(add_formData).forEach(key => {
  396. add_formData[key] = '';
  397. });
  398. };
  399. // 尺码
  400. const cmformdata = reactive({
  401. cm1:'',
  402. cm2:'',
  403. cm3:'',
  404. cm4:'',
  405. cm5:'',
  406. cm6:'',
  407. cm7:'',
  408. cm8:'',
  409. cm9:'',
  410. cm10:'',
  411. cm11:'',
  412. cm12:'',
  413. cmtotal:'合计',
  414. });
  415. // 制单数
  416. const cmslformdata = reactive({
  417. cmsl1: '',
  418. cmsl2: '',
  419. cmsl3: '',
  420. cmsl4: '',
  421. cmsl5: '',
  422. cmsl6: '',
  423. cmsl7: '',
  424. cmsl8: '',
  425. cmsl9: '',
  426. cmsl10: '',
  427. zdtotal: ''
  428. });
  429. // 实裁数
  430. const scsformdata = reactive({
  431. scs1:'',
  432. scs2:'',
  433. scs3:'',
  434. scs4:'',
  435. scs5:'',
  436. scs6:'',
  437. scs7:'',
  438. scs8:'',
  439. scs9:'',
  440. scs10:'',
  441. sctotal:'',
  442. });
  443. //实裁相加
  444. function updateTotal() {
  445. // 直接指定要累加的属性名
  446. const relevantKeys = ['scs1', 'scs2', 'scs3', 'scs4', 'scs5', 'scs6', 'scs7', 'scs8', 'scs9', 'scs10'];
  447. const values = relevantKeys.map(key => parseInt(scsformdata[key], 10) || 0);
  448. scsformdata.sctotal = values.reduce((sum, value) => sum + value, 0);
  449. }
  450. //进度汇总表格数据
  451. const add_tableData = reactive([]);
  452. const jdhz_tableData = reactive([]);
  453. const bgjdhz_tableData = reactive([]);
  454. const _order = ref('');
  455. const _UniqId = ref('');
  456. //尺寸列表
  457. const sizeDatas = reactive([])
  458. //技术附件
  459. const jstableData = reactive([])
  460. const ddtableData = reactive([])
  461. const _list = ref('');
  462. //查询
  463. const add_onSubmit = async ()=>{
  464. if(add_searchInfo.value === '' || add_searchInfo.value === undefined){
  465. const WorkListdata = [];
  466. // add_tableData.splice(0,add_tableData.length,...WorkListdata);
  467. jdhz_tableData.splice(0,jdhz_tableData.length,...WorkListdata);
  468. ElMessage({type: 'warning',message: '搜索内容不能为空' })
  469. return;
  470. }
  471. // 如果没有以"DC"开头,自动补充添加DC
  472. if (!add_searchInfo.value.startsWith('DC')) {
  473. add_searchInfo.value = 'DC' + add_searchInfo.value;
  474. }
  475. sizeDatas.length = 0;
  476. _order.value = add_searchInfo.value;
  477. //进度汇总表格数据
  478. const getSpotLists = await getSpotList({order:_order.value,code:_code});
  479. if(add_searchInfo.value === ''){
  480. //光标跳转搜索框
  481. _searchInput()
  482. }else{
  483. setTimeout(() => {
  484. const inputElement = document.getElementById('scs1');
  485. if (inputElement) {
  486. inputElement.focus();
  487. }
  488. }, 100);//100毫秒
  489. }
  490. sizeDatas.splice(0, getSpotLists.data.headers.length, ...getSpotLists.data.headers);
  491. jdhz_tableData.splice(0, jdhz_tableData.length, ...getSpotLists.data.table);
  492. bgjdhz_tableData.splice(0, bgjdhz_tableData.length, ...getSpotLists.data.bgtable);
  493. //xlsx附件
  494. const searchValue = add_searchInfo.value.split('-')[0];
  495. const jsOrderAttachments = await OrderAttachments({order:searchValue,desc:'技术附件'})
  496. const ddOrderAttachments = await OrderAttachments({order:searchValue,desc:'订单资料附件'})
  497. jstableData.splice(0,jsOrderAttachments.data.length,...jsOrderAttachments.data);
  498. ddtableData.splice(0,ddOrderAttachments.data.length,...ddOrderAttachments.data);
  499. _list.value = getSpotLists.data.list
  500. _UniqId.value = getSpotLists.data.list.UniqId
  501. const keys1 = ['cm1', 'cm2', 'cm3', 'cm4','cm5','cm6','cm7','cm8','cm9','cm10',];
  502. const keys2 = ['cmsl1', 'cmsl2', 'cmsl3', 'cmsl4','cmsl5','cmsl6','cmsl7','cmsl8','cmsl9','cmsl10','zdtotal',];
  503. if(_order.value.includes('-')){
  504. for (let key of keys1) {
  505. if (getSpotLists.data.list.hasOwnProperty(key)) { // 确保键存在于对象中
  506. cmformdata[key] = getSpotLists.data.list[key];
  507. }
  508. }
  509. for (let key of keys2) {
  510. if (getSpotLists.data.list.hasOwnProperty(key)) { // 确保键存在于对象中
  511. cmslformdata[key] = getSpotLists.data.list[key];
  512. }
  513. }
  514. }else{
  515. for (let key of keys1) {
  516. cmformdata[key] = '';
  517. }
  518. for (let key of keys2) {
  519. cmslformdata[key] = '';
  520. }
  521. }
  522. };
  523. //总数量合计
  524. const getSummaries = (param) => {
  525. const { columns, data } = param;
  526. const sums = {};
  527. const summableLabels = [...sizeDatas, "实裁总数"];
  528. columns.forEach((column, index) => {
  529. if (index === 1) {
  530. sums[index] = '总数量合计';
  531. return;
  532. }
  533. if (summableLabels.includes(column.label)) {
  534. const values = data.map(item => Number(item[column.property]));
  535. // 检查数组中是否所有值都是 NaN
  536. if (!values.every(value => isNaN(value))) {
  537. sums[index] = values.reduce((prev, curr) => {
  538. const value = Number(curr);
  539. if (!isNaN(value)) {
  540. return prev + value;
  541. }
  542. return prev;
  543. }, 0);
  544. // 如果需要,可以在这里添加单位
  545. // sums[index] += ' 件';
  546. } else {
  547. sums[index] = '';
  548. }
  549. }
  550. });
  551. return sums;
  552. };
  553. //表格行点击
  554. const tableRowClick = async (row)=>{
  555. add_searchInfo.value = row.子订单编号
  556. _order.value = row.子订单编号
  557. }
  558. //复选框选择
  559. const ckSelection = ref('')
  560. const handleSelectionChange = (selection, type) => {
  561. const ids = selection.map(item => {
  562. return item.子订单编号
  563. })
  564. ckSelection.value = ids.join(',')
  565. console.log(ckSelection.value)
  566. }
  567. const _searchInput = async ()=>{
  568. setTimeout(() => {
  569. const inputElement = document.getElementById('searchInput');
  570. if (inputElement) {
  571. inputElement.focus();
  572. }
  573. }, 100);
  574. }
  575. //子订单详情页
  576. const cp_gdprintonClick = async () => {
  577. if(add_searchInfo.value === '' || add_searchInfo.value === null){
  578. ElMessage({ type: 'warning', message: '请扫描子订单(条码)后再查看' });
  579. return false;
  580. }
  581. SubOrderPageRef.value.open(add_searchInfo.value,add_formData['工序'])
  582. }
  583. //报工
  584. const add_Dialog = async ()=>{
  585. if(add_formData['机台号'] === '测试机台'){
  586. ElMessage({ type: 'warning', message: '测试机台禁止报工' });
  587. return;
  588. }
  589. if (!add_formData['机台号']) {
  590. ElMessage({ type: 'warning', message: '未获取到机台' });
  591. return false;
  592. }
  593. if (!_order.value) {
  594. ElMessage({ type: 'warning', message: '请扫描子订单(条码)后,在进行报工' });
  595. return;
  596. }
  597. if (!add_searchInfo.value) {
  598. ElMessage({ type: 'warning', message: '请扫描子订单(条码)后,在进行报工' });
  599. return;
  600. }
  601. // 检查新增实裁数是否都为空
  602. const isAllEmpty = Array.from({ length: 10 }, (_, i) => scsformdata[`scs${i + 1}`]).every(value => !value);
  603. if (isAllEmpty) {
  604. ElMessage({ type: 'warning', message: '请至少填写一个报工数据' });
  605. return;
  606. }
  607. //尺码
  608. let cmArray = [cmformdata.cm1, cmformdata.cm2, cmformdata.cm3, cmformdata.cm4, cmformdata.cm5, cmformdata
  609. .cm6, cmformdata.cm7, cmformdata.cm8, cmformdata.cm9, cmformdata.cm10
  610. ];
  611. //制单数
  612. let zdsl1Array = [cmslformdata.cmsl1, cmslformdata.cmsl2, cmslformdata.cmsl3, cmslformdata.cmsl4,
  613. cmslformdata.cmsl5, cmslformdata.cmsl6, cmslformdata.cmsl7, cmslformdata.cmsl8, cmslformdata
  614. .cmsl9, cmslformdata.cmsl10
  615. ];
  616. //上报数量
  617. let scArray = [scsformdata.scs1, scsformdata.scs2, scsformdata.scs3, scsformdata.scs4, scsformdata.scs5, scsformdata.scs6, scsformdata.scs7, scsformdata.scs8, scsformdata.scs9, scsformdata.scs10
  618. ];
  619. let resultArrays = [];
  620. for (let i = 0; i < scArray.length; i++) {
  621. // 创建一个新数组来存储当前索引下的所有值
  622. let currentValues = [add_formData['机台号'], cmArray[i], zdsl1Array[i], scArray[i]];
  623. // 添加到结果数组中
  624. resultArrays.push(currentValues);
  625. }
  626. let paramsList = [];
  627. for (let i = 0; i < resultArrays.length; i++) {
  628. if (scArray[i]) {
  629. let params = {};
  630. params.order_id = add_searchInfo.value;
  631. params.sczl_jtbh = add_formData['机台号'];
  632. params.gxmc = add_formData['工序'];
  633. params.sys_id = add_formData['人员'];
  634. params.sczl_bh = add_formData['组别'];
  635. params.cm = resultArrays[i][1];
  636. params.sl = resultArrays[i][3];
  637. params.sys_rq = currentDates;
  638. params.code = _code;
  639. paramsList.push(params);
  640. }
  641. }
  642. if (paramsList.length === 0) {
  643. ElMessage({type: 'info',message: '请填写实裁数'});
  644. return;
  645. }
  646. let allSuccess = true;
  647. for (let i = 0; i < paramsList.length; i++) {
  648. const cf_gettab = await search(paramsList[i]);
  649. console.log('新增产量计酬返回信息',cf_gettab)
  650. if (cf_gettab.code !== 0) {
  651. allSuccess = false;
  652. break;
  653. }
  654. }
  655. //报工修改印件资料一条数据
  656. if (_order.value.indexOf('-') !== -1) {
  657. let params = {}
  658. params.scsl1 = scsformdata.scs1
  659. params.scsl2 = scsformdata.scs2
  660. params.scsl3 = scsformdata.scs3
  661. params.scsl4 = scsformdata.scs4
  662. params.scsl5 = scsformdata.scs5
  663. params.scsl6 = scsformdata.scs6
  664. params.scsl7 = scsformdata.scs7
  665. params.scsl8 = scsformdata.scs8
  666. params.scsl9 = scsformdata.scs9
  667. params.scsl10 = scsformdata.scs10
  668. params.sctotal = scsformdata['sctotal']
  669. params.order_id = add_searchInfo.value;//子订单编号
  670. params.rq = currentDates;//时间
  671. params.UniqId = _UniqId.value
  672. console.log(params)
  673. const baogong_getInfo = await getInfo(params);
  674. if (baogong_getInfo.code === 0) {
  675. ElMessage({ type: 'success', message: '报工成功' });
  676. //查询更新数据
  677. add_onSubmit()
  678. //光标跳转input
  679. _searchInput()
  680. // // 清空搜索信息
  681. // add_searchInfo.value = '';
  682. // 批量清空新增实裁数input数据
  683. if (scsformdata) {
  684. for (let i = 1; i <= 10; i++) {
  685. scsformdata[`scs${i}`] = '';
  686. }
  687. scsformdata.sctotal = '';
  688. } else {
  689. console.error('scsformdata 未定义');
  690. }
  691. } else {
  692. ElMessage({ type: 'error', message: '报工失败' });
  693. }
  694. }
  695. }
  696. const gd_yulan = () => {
  697. if(add_searchInfo.value === '' || add_searchInfo.value === null){
  698. ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
  699. return false;
  700. }else{
  701. const order = add_searchInfo.value.split('-')[0]
  702. printPageRef.value.open(order)
  703. }
  704. }
  705. //报工删除
  706. const delall = ref(true)
  707. const Selection = ref('')
  708. const selectionChange = (selection, type) => {
  709. const ids = selection.map(item => {
  710. return item.UniqId
  711. })
  712. Selection.value = ids.join(',')
  713. console.log(Selection.value)
  714. }
  715. const del_delclick = async () => {
  716. console.log(Selection.value)
  717. console.log(add_formData['组别'])
  718. const res1 = await spotcheckdel({UniqId:Selection.value,sys_id:add_formData['组别']})
  719. res1.code === 0 && ElMessage.success('删除成功')
  720. add_onSubmit()
  721. }
  722. const _orderid = ref('')//订单子编号
  723. const _kh = ref('')//生产款号
  724. //===========报工==========
  725. const res_bomdialogFormVisible = ref(false)
  726. const resbomtableData = ref([]);
  727. const ddhformData = reactive({
  728. ddh: '',
  729. kh:''
  730. });
  731. const resbom_tableColumns = ref(
  732. [
  733. { label: '物料名称', prop: '物料名称', width: '200' },
  734. { label: '计划用料', prop: '计划用料', width: '110' },
  735. { label: '定额用料', prop: '定额用料', width: '90' },
  736. { label: '裁床实际用料', prop: '裁床实际用料', width: '120' },
  737. { label: '裁床领用面料', prop: '裁床领用面料', width: '120' },
  738. { label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '160' },
  739. { label: '退还', prop: '退还', width: '110' },
  740. // { label: '备注', prop: '备注', width: '120' },
  741. { label: '投料单位', prop: '投料单位', width: '100' },
  742. // { label: 'UNIQID', prop: 'UNIQID', width: '80' },
  743. ]
  744. )
  745. //退还按钮
  746. const return_Dialog = async ()=>{
  747. _orderid.value = add_searchInfo.value.split('-')[0]
  748. if(_orderid.value === '' || _orderid.value === null){
  749. ElMessage({type: 'warning',message: '请扫描订单后,再操作此功能'})
  750. }else{
  751. const orderSearchdata = await orderSearch({search:_orderid.value});
  752. console.log(orderSearchdata)
  753. _kh.value = orderSearchdata.data[0].生产款号
  754. res_bomdialogFormVisible.value = true
  755. ddhformData.ddh = _orderid.value
  756. ddhformData.kh = _kh.value
  757. const orderBomListlsit = await orderBomList({order:_orderid.value});
  758. console.log(orderBomListlsit)
  759. _TestCoefficient();
  760. }
  761. }
  762. //bom数据获取
  763. const _TestCoefficient = async ()=>{
  764. try {
  765. const orderBomListdata = await orderBomList({order:_orderid.value});
  766. console.log(orderBomListdata)
  767. resbomtableData.value = orderBomListdata.data;
  768. const formattedData = orderBomListdata.data.map(item=>{
  769. item.物料名称 = item.物料名称;
  770. item.计划用料 = item.计划用料;
  771. item.定额用料 = item.定额用料;
  772. item.裁床实际用料 = item.裁床实际用料;
  773. item.裁床领用面料 = item.裁床领用面料;
  774. item.裁床退回仓库面料 = item.裁床退回仓库面料;
  775. item.备注 = item.备注;
  776. item.UNIQID = item.UNIQID;
  777. item.领用 = '';
  778. return item
  779. });
  780. } catch (error) {
  781. console.error(error);
  782. }
  783. }
  784. const resbom_handleKeyDown = (event, x, y, prop) => {
  785. const currentElement = document.getElementById(`input${x}${y}`);
  786. if (currentElement === null && currentElement === undefined) return
  787. let move = 0
  788. switch (event.keyCode) {
  789. case 13: // Enter
  790. case 40: // 向下箭头
  791. if (y < resbomtableData.value.length )
  792. document.getElementById(`input${x}${y + 1}`).focus();
  793. break;
  794. case 38: // 向上箭头
  795. if ( y > 0) {
  796. document.getElementById(`input${x}${y - 1}`).focus();
  797. }
  798. break;
  799. case 39: // 向左箭头
  800. if (x >= 0 && x <=6) {
  801. move = x + 1
  802. }
  803. document.getElementById(`input${move}${y}`).focus();
  804. break;
  805. case 37: // 向右箭头
  806. if (x = 0 && x <=6) {
  807. move = x - 1
  808. }
  809. document.getElementById(`input${move}${y}`).focus();
  810. break;
  811. default:
  812. break;
  813. }
  814. }
  815. //质检废品系数颜色
  816. const scfjfpxsCellClass = ({row, column, rowIndex, columnIndex}) =>{
  817. if (column.label === '退还') {
  818. return 'background-plan-usage-low';
  819. }
  820. }
  821. // 确定
  822. const res_bomenterDialog = async() => {
  823. const rawValueArray = resbomtableData._rawValue;
  824. const formattedData = rawValueArray.map(item => {
  825. return {
  826. order_id: ddhformData.ddh,
  827. 款号: ddhformData.kh,
  828. 物料名称: item.物料名称 !== null ? item.物料名称 : "",
  829. number: item.退还 !== null ? item.退还 : "",
  830. rq: currentDate,
  831. name: "退还",
  832. sys_id: _username.value
  833. }
  834. });
  835. console.log(formattedData);
  836. const add_outReport = await outReport(formattedData);
  837. if (add_outReport.code === 0) {
  838. res_bomdialogFormVisible.value = false;
  839. ElMessage({type: 'success',message: '退还成功'})
  840. } else {
  841. ElMessage({ type: 'error',message: '退还失败'})
  842. }
  843. }
  844. // 取消
  845. const res_bomcloseDialog = () => {
  846. res_bomdialogFormVisible.value = false;
  847. }
  848. // =========== 分页 ===========
  849. // 分页相关的响应式变量
  850. const page = ref(1)
  851. const total = ref(0)
  852. const pageSize = ref(10)
  853. // 分页
  854. const handleCurrentChange = (val) => {
  855. page.value = val;
  856. _getStaffList();
  857. };
  858. // 修改页面容量 点击多少条/页
  859. const handleSizeChange = (val) => {
  860. page.value = 10;//默认显示
  861. pageSize.value = val;
  862. _getStaffList();
  863. };
  864. </script>
  865. <style scoped>
  866. .form-container {
  867. display: flex;
  868. flex-wrap: wrap;
  869. }
  870. .form-column {
  871. /*flex: 1;*/
  872. margin-right: 15px; /* 调整列之间的间距 */
  873. }
  874. /* 左侧输入框宽度调整 */
  875. .form-column .el-form-item .el-input {
  876. width: 150px; /* 调整左侧输入框的宽度 */
  877. }
  878. /* 媒体查询,根据需要调整断点 */
  879. @media screen and (max-width: 768px) {
  880. .form-column {
  881. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  882. margin-right: 0;
  883. }
  884. }
  885. /*:deep(.el-table td .cell) {*/
  886. /* line-height: 30px !important;*/
  887. /*}*/
  888. .JKWTree-container {
  889. display: flex;
  890. }
  891. .JKWTree-tree {
  892. /*width: 300px;*/
  893. background-color: #fff;
  894. padding: 10px;
  895. margin-right: 20px;
  896. }
  897. .JKWTree-tree h3 {
  898. font-size: 15px;
  899. font-weight: 700;
  900. margin: 10px 0;
  901. }
  902. .JKWTree-content {
  903. flex: 1;
  904. }
  905. /* 图片上传 */
  906. .upload-box {
  907. width: 200px;
  908. height: 200px;
  909. border: 2px dashed #e2e2e2;
  910. display: flex;
  911. justify-content: center;
  912. align-items: center;
  913. position: relative;
  914. cursor: pointer;
  915. }
  916. .uploaded-image {
  917. width: 100%;
  918. height: 100%;
  919. object-fit: cover;
  920. }
  921. .upload-icon {
  922. font-size: 40px;
  923. color: #c0c4cc;
  924. }
  925. .file-input {
  926. display: none;
  927. }
  928. .el-table .warning-row {
  929. background: oldlace;
  930. }
  931. /*bom参数背景*/
  932. :deep(.el-table__body .background-plan-usage-low div div div) {
  933. background: #80FA80 !important;
  934. }
  935. /* 选中某行时的背景色 */
  936. :deep(.el-table__body tr.current-row) > td {
  937. background: #ff80ff !important;
  938. }
  939. </style>
  940. <style scoped>
  941. :deep(.el-table td .cell) {
  942. line-height: 20px !important;
  943. }
  944. :deep(.el-tabs__header){
  945. margin-bottom: 0;
  946. }
  947. .search{
  948. margin-left: 0px !important;
  949. margin-right: 10px !important;
  950. }
  951. .bt{
  952. margin-left: 2px !important;
  953. padding: 3px !important;
  954. font-size: 12px;
  955. }
  956. .el-tabs__header{
  957. margin: 0px !important;
  958. }
  959. .gva-table-box{
  960. padding: 0px !important;
  961. margin-left: -10px !important;
  962. }
  963. .mab{
  964. margin-bottom: 5px;
  965. }
  966. /* 搜索样式 */
  967. ::v-deep .el-input__wrapper #searchInput {
  968. font-size: 16px;
  969. }
  970. ::v-deep .el-input__wrapper #jitaihao {
  971. font-size: 18px;
  972. }
  973. ::v-deep .el-input__wrapper #gongxu {
  974. font-size: 18px;
  975. }
  976. ::v-deep .el-input__wrapper #zubie {
  977. font-size: 18px;
  978. }
  979. ::v-deep .el-input__wrapper #renyuan {
  980. font-size: 18px;
  981. }
  982. ::v-deep .el-input__wrapper #shuliang {
  983. font-size: 18px;
  984. color: red;
  985. }
  986. ::v-deep .el-input__wrapper #chima {
  987. font-size: 18px;
  988. }
  989. /* 尺码/制单数合计样式 */
  990. ::v-deep .el-input__wrapper #cm1{
  991. font-size: 20px;
  992. }
  993. ::v-deep .el-input__wrapper #cm2{
  994. font-size: 20px;
  995. }
  996. ::v-deep .el-input__wrapper #cm3{
  997. font-size: 20px;
  998. }
  999. ::v-deep .el-input__wrapper #cm4{
  1000. font-size: 20px;
  1001. }
  1002. ::v-deep .el-input__wrapper #cm5{
  1003. font-size: 20px;
  1004. }
  1005. ::v-deep .el-input__wrapper #cm6{
  1006. font-size: 20px;
  1007. }
  1008. ::v-deep .el-input__wrapper #cm7{
  1009. font-size: 20px;
  1010. }
  1011. ::v-deep .el-input__wrapper #cm8{
  1012. font-size: 20px;
  1013. }
  1014. ::v-deep .el-input__wrapper #cm9{
  1015. font-size: 20px;
  1016. }
  1017. ::v-deep .el-input__wrapper #cm10{
  1018. font-size: 20px;
  1019. }
  1020. ::v-deep .el-input__wrapper #cm11{
  1021. font-size: 20px;
  1022. }
  1023. ::v-deep .el-input__wrapper #cm12{
  1024. font-size: 20px;
  1025. }
  1026. ::v-deep .el-input__wrapper #cmtotal{
  1027. font-size: 20px;
  1028. }
  1029. /* 本次实裁新增样式 */
  1030. ::v-deep .el-input__wrapper #cmsl1{
  1031. font-size: 20px;
  1032. color: red !important;
  1033. }
  1034. ::v-deep .el-input__wrapper #cmsl2{
  1035. font-size: 20px;
  1036. color: red !important;
  1037. }
  1038. ::v-deep .el-input__wrapper #cmsl3{
  1039. font-size: 20px;
  1040. color: red !important;
  1041. }
  1042. ::v-deep .el-input__wrapper #cmsl4{
  1043. font-size: 20px;
  1044. color: red !important;
  1045. }
  1046. ::v-deep .el-input__wrapper #cmsl5{
  1047. font-size: 20px;
  1048. color: red !important;
  1049. }
  1050. ::v-deep .el-input__wrapper #cmsl6{
  1051. font-size: 20px;
  1052. color: red !important;
  1053. }
  1054. ::v-deep .el-input__wrapper #cmsl7{
  1055. font-size: 20px;
  1056. color: red !important;
  1057. }
  1058. ::v-deep .el-input__wrapper #cmsl8{
  1059. font-size: 20px;
  1060. color: red !important;
  1061. }
  1062. ::v-deep .el-input__wrapper #cmsl9{
  1063. font-size: 20px;
  1064. color: red !important;
  1065. }
  1066. ::v-deep .el-input__wrapper #cmsl10{
  1067. font-size: 20px;
  1068. color: red !important;
  1069. }
  1070. ::v-deep .el-input__wrapper #cmsl11{
  1071. font-size: 20px;
  1072. color: red !important;
  1073. }
  1074. ::v-deep .el-input__wrapper #cmsl12{
  1075. font-size: 20px;
  1076. color: red !important;
  1077. }
  1078. ::v-deep .el-input__wrapper #zdtotal{
  1079. font-size: 20px;
  1080. color: red !important;
  1081. }
  1082. /* 表格复选框大小调整 */
  1083. :deep(.el-checkbox.el-checkbox--small .el-checkbox__inner) {
  1084. width: 30px;
  1085. /* 复选框宽度 */
  1086. height: 20px;
  1087. /* 复选框高度 */
  1088. }
  1089. :deep(.el-checkbox.el-checkbox--small.is-checked .el-checkbox__inner::after) {
  1090. transform: scale(1.2) rotate(45deg);
  1091. /* 调整选中后的对勾大小 */
  1092. top: 5%;
  1093. /* 调整对勾位置 */
  1094. left: 40%;
  1095. /* 调整对勾位置 */
  1096. width: 5px;
  1097. /* 调整对勾宽度 */
  1098. height: 9px;
  1099. /* 调整对勾高度 */
  1100. }
  1101. </style>