caiqiebaogong.vue 39 KB

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