stay.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. <template>
  2. <el-card v-loading.fullscreen="loadingOne" element-loading-background="rgba(0, 0, 0, 0.3)" :element-loading-text="loadingText">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true">
  4. <el-form-item label="订单号" prop="contractCode">
  5. <el-input placeholder="请输入" v-model="queryParams.contractCode" clearable size="small" @keyup.enter.native="handleQuery" />
  6. </el-form-item>
  7. <el-form-item label="万里牛单号" prop="tradeNo">
  8. <el-input placeholder="请输入" v-model="queryParams.tradeNo" clearable size="small" @keyup.enter.native="handleQuery" />
  9. </el-form-item>
  10. <el-form-item label="BOM品号" prop="specCode">
  11. <el-input placeholder="请输入" v-model="queryParams.specCode" clearable size="small" @keyup.enter.native="handleQuery" />
  12. </el-form-item>
  13. <el-form-item label="BOM品名" prop="nameChinese">
  14. <el-input placeholder="请输入" v-model="queryParams.nameChinese" clearable size="small" @keyup.enter.native="handleQuery" />
  15. </el-form-item>
  16. <el-form-item label="事业部" prop="subsidiaryId">
  17. <el-select v-model="queryParams.subsidiaryId" placeholder="请选择事业部" size="small" style="width: 100%" @change="handleQuery">
  18. <el-option v-for="item in companyList" :key="item.id" :label="item.name" :value="item.id" />
  19. </el-select>
  20. </el-form-item>
  21. <el-form-item label="投产时间">
  22. <el-col :span="11">
  23. <el-date-picker
  24. v-model="queryParams.beginTime"
  25. type="datetime"
  26. value-format="yyyy-MM-dd HH:mm:ss"
  27. placeholder="开始日期"
  28. size="small"
  29. style="width: 100%"
  30. >
  31. </el-date-picker>
  32. </el-col>
  33. <el-col :span="2" style="text-align: center">-</el-col>
  34. <el-col :span="11">
  35. <el-date-picker
  36. v-model="queryParams.endTime"
  37. type="datetime"
  38. value-format="yyyy-MM-dd HH:mm:ss"
  39. placeholder="结束日期"
  40. size="small"
  41. style="width: 100%"
  42. >
  43. </el-date-picker>
  44. </el-col>
  45. </el-form-item>
  46. <el-form-item>
  47. <el-button size="small" @click="handleQuery" class="searchBtn">搜索</el-button>
  48. <el-button size="small" @click="resetQuery">重置</el-button>
  49. </el-form-item>
  50. </el-form>
  51. <el-row :gutter="10" style="margin-bottom: 15px">
  52. <el-button size="mini" @click="clickSetLabel">标签</el-button>
  53. <el-button size="mini" @click="outExcel">1. 打印备料单</el-button>
  54. <el-button size="mini" @click="handlePrint1">2. 打印生产面单</el-button>
  55. <el-button size="mini" @click="clickQuickDelivery">3. 快捷出库</el-button>
  56. <el-button size="mini" @click="handleComplete">4. 完成备料</el-button>
  57. </el-row>
  58. <el-row :gutter="10" style="margin-bottom: 10px">
  59. <el-col :span="24">
  60. <span>
  61. 订单数量:
  62. <span style="margin-left: 4px" v-if="statisticsData && statisticsData.contractCount">{{ Number(statisticsData.contractCount) }}</span>
  63. <span style="margin-left: 4px" v-else>0</span>
  64. </span>
  65. <span style="margin-left: 16px">
  66. 主材数量:
  67. <span style="margin-left: 4px" v-if="statisticsData && statisticsData.quantity">{{ Number(statisticsData.quantity) }}</span>
  68. <span style="margin-left: 4px" v-else>0</span>
  69. </span>
  70. </el-col>
  71. </el-row>
  72. <el-table
  73. :data="tableList"
  74. size="small"
  75. :row-style="{ height: '35px' }"
  76. :cell-style="{ padding: '0' }"
  77. v-loading="loading"
  78. header-row-class-name="tableHeader"
  79. :row-class-name="tableRowClass"
  80. @selection-change="handleSelectionChange"
  81. :cell-class-name="cellClassName"
  82. >
  83. <el-table-column type="selection" width="50" />
  84. <el-table-column label="设计图" prop="workCode" align="left" width="60">
  85. <template slot-scope="scope">
  86. <div v-if="scope.row.imgPath && scope.row.dataResource === 1">
  87. <img
  88. v-if="!scope.row.imgPath.includes('https')"
  89. class="img"
  90. v-lazy="pathPrefix + scope.row.imgPath"
  91. @click="openFile(pathPrefix + scope.row.imgPath)"
  92. />
  93. <img v-else class="img" v-lazy="scope.row.imgPath" @click="openFile(scope.row.imgPath)" />
  94. </div>
  95. </template>
  96. </el-table-column>
  97. <el-table-column label="事业部" prop="subsidiaryName" align="left" width="120" />
  98. <el-table-column label="BOM品号" prop="specCode" align="left" width="180">
  99. <template slot-scope="scope">
  100. <div>
  101. <el-tag type="warning" size="mini" v-if="scope.row.bookSign">{{ getName(scope.row) }}</el-tag>
  102. <span
  103. style="border-radius: 50%; height: 20px; width: 20px; display: inline-block; background: #f30303; vertical-align: top"
  104. v-if="scope.row.type === 1"
  105. >
  106. <span style="display: block; color: #ffffff; height: 20px; line-height: 20px; text-align: center">补</span>
  107. </span>
  108. <span style="cursor: pointer; padding-left: 8px" :style="{ color: scope.row.type === 1 ? 'red' : '#409eff' }">{{ scope.row.specCode }}</span>
  109. </div>
  110. </template>
  111. </el-table-column>
  112. <el-table-column label="BOM品名" prop="nameChinese" align="left" min-width="200" />
  113. <el-table-column label="件数" width="80">
  114. <template slot-scope="scope">
  115. <span>{{ Number(scope.row.quantity) }}</span>
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="投产时间" prop="putTime" align="center" width="140" />
  119. <el-table-column label="订单号" prop="contractCode" width="150" />
  120. <el-table-column label="万里牛单号" prop="tradeNo" width="140" />
  121. <el-table-column label="SKU品名" prop="productColorName" width="280" />
  122. </el-table>
  123. <div style="display: none">
  124. <div style="width: 250px" id="printMini">
  125. <div v-for="(item, index) in QRcodeList" :key="index">
  126. <div style="height: 442px; padding-top: 2px; overflow: hidden; position: relative">
  127. <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-if="item.tradeNo">
  128. <barcode :value="item.tradeNo" :height="50" :width="1.6" />
  129. </div>
  130. <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-else>
  131. <barcode :value="item.contractCode" :height="50" :width="1.6" />
  132. </div>
  133. <div style="display: flex; align-items: center; justify-content: center">
  134. <div style="width: 150px; height: 150px; margin-top: 8px" :id="'print' + index" :ref="'print' + index">
  135. <img src="" alt="" style="vertical-align: middle; height: 100%; width: 100%" />
  136. </div>
  137. </div>
  138. <div style="text-align: center; font-size: 20px; font-weight: 700; padding: 4px 0; border-bottom: 1px solid #000">{{ item.dataForTime }}</div>
  139. <div style="word-break: break-all; padding: 2px">SKU品号:{{ item.productColorCode }}</div>
  140. <div style="word-break: break-all; padding: 2px">SKU品名:{{ item.productColorName }}</div>
  141. <div style="word-break: break-all; padding: 2px">BOM品号:{{ item.specCode }}</div>
  142. <div style="word-break: break-all; padding: 2px">BOM品名:{{ item.nameChinese }}</div>
  143. <div v-if="item.contractDataResource === 1" class="one">
  144. <div class="two">
  145. <div class="three">万里牛</div>
  146. </div>
  147. </div>
  148. </div>
  149. <div style="page-break-after: always"></div>
  150. </div>
  151. </div>
  152. <el-button type="primary" size="mini" v-print="'#printMini'" id="printBtnMini"></el-button>
  153. </div>
  154. <div style="width: 0px; height: 0px; overflow: hidden">
  155. <div class="printBomList" id="printBomList">
  156. <div class="t">生产备料单</div>
  157. <div class="time" style="text-align: right">
  158. {{ printTime }}
  159. </div>
  160. <table border class="table">
  161. <thead>
  162. <tr>
  163. <td>编号</td>
  164. <td>物料品号</td>
  165. <td>物料品名</td>
  166. <td>数量</td>
  167. <td>备注</td>
  168. </tr>
  169. </thead>
  170. <tbody>
  171. <tr v-for="(item, index) in printBomList" :key="index">
  172. <td style="width: 8%">{{ index + 1 }}</td>
  173. <td style="width: 20%">{{ item.specCode }}</td>
  174. <td style="width: 35%">{{ item.nameChinese }}</td>
  175. <td style="width: 12%">{{ item.quantity }}</td>
  176. <td style="width: 25%"></td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </div>
  181. <el-button type="primary" size="mini" v-print="'#printBomList'" id="printBomListBtn"></el-button>
  182. </div>
  183. <!-- 设置标签 -->
  184. <el-dialog title="设置标签" v-if="openSetLabel" :visible.sync="openSetLabel" width="30%" append-to-body>
  185. <el-form ref="ruleForm" :model="form" :rules="formRules" label-width="100px">
  186. <el-form-item label="标签:" prop="bookSign">
  187. <el-radio-group v-model="form.bookSign">
  188. <el-radio v-for="(item, index) in bookSignAndNo" :key="index" :label="item.dictKey">{{ item.dictValue }}</el-radio>
  189. </el-radio-group>
  190. </el-form-item>
  191. <div style="width: 100%; text-align: center">
  192. <el-button type="primary" @click="clickSetLabelSubmit" size="small" v-db-click>确 认</el-button>
  193. <el-button size="small" @click="openSetLabel = false">取 消</el-button>
  194. </div>
  195. </el-form>
  196. </el-dialog>
  197. <!-- 快捷出库 -->
  198. <el-dialog title="快捷出库" v-if="openQuickDelivery" :visible.sync="openQuickDelivery" width="90%" append-to-body>
  199. <QuickDelivery :selectList="excelList" @clickCancel="clickCancel"></QuickDelivery>
  200. </el-dialog>
  201. </el-card>
  202. </template>
  203. <script>
  204. import QRCode from 'qrcodejs2'
  205. import Print from 'vue-print-nb'
  206. import Vue from 'vue'
  207. Vue.use(Print)
  208. import { dateFormat } from '@/util/date.js'
  209. import { getUid } from '@/util/saas.js'
  210. import * as API from '@/api/shengde/productionSystem/productionOperation/batching/index'
  211. import { mapGetters } from 'vuex'
  212. import QuickDelivery from '@/components/shengde/quickDelivery/index'
  213. import { getSubsidiaryList } from '@/api/shengde/subsidiary/bill/bill'
  214. export default {
  215. name: 'stay',
  216. components: { QuickDelivery },
  217. data() {
  218. return {
  219. pathPrefix: process.env.VUE_APP_IMG_URL,
  220. queryParams: {
  221. pageNum: 1,
  222. pageSize: 9999,
  223. contractCode: '',
  224. tradeNo: '',
  225. specCode: '',
  226. nameChinese: '',
  227. beginTime: '',
  228. endTime: '',
  229. status: '0',
  230. subsidiaryId: '',
  231. },
  232. loading: false,
  233. tableList: [],
  234. // tableHeight: '',
  235. total: null,
  236. printIdList: [], //要打印生产面单的id集合
  237. loadingOne: false,
  238. loadingText: '请稍后',
  239. QRcodeDialog: false,
  240. QRcodeList: [],
  241. excelList: [], //选中的完整数据
  242. showPrint: false,
  243. printBomList: [],
  244. printTime: '',
  245. uidList: [], //唯一uid集合
  246. bookSign: [],
  247. bookSignAndNo: [{ dictKey: '0', dictValue: '无' }],
  248. form: { bookSign: '' },
  249. formRules: {
  250. bookSign: [{ required: true, message: '请选择标签', trigger: 'change' }],
  251. },
  252. openSetLabel: false,
  253. openQuickDelivery: false,
  254. statisticsData: {
  255. quantity: 0,
  256. contractCount: 0,
  257. },
  258. companyList: [],
  259. }
  260. },
  261. created() {
  262. this.bookSign = this.dictData.filter((item) => item.code === 'book_sign')[0].children
  263. this.bookSignAndNo = this.bookSignAndNo.concat(this.bookSign)
  264. },
  265. mounted() {
  266. getSubsidiaryList({ pageNum: 1, pageSize: 9999 }).then((res) => {
  267. this.companyList = res.data.data.records
  268. })
  269. },
  270. computed: mapGetters(['dictData']),
  271. methods: {
  272. pageInit() {
  273. this.getList()
  274. },
  275. getList() {
  276. this.loading = true
  277. API.list(this.queryParams).then(
  278. (res) => {
  279. this.tableList = res.data.data.records
  280. this.total = res.data.data.total
  281. this.loading = false
  282. },
  283. (err) => {
  284. console.log('list:' + err)
  285. this.loading = false
  286. }
  287. )
  288. API.bladeStatistics(this.queryParams).then((res) => {
  289. this.statisticsData = res.data.data
  290. })
  291. },
  292. handleQuery() {
  293. this.queryParams.pageNum = 1
  294. this.getList()
  295. },
  296. resetQuery() {
  297. this.queryParams.beginTime = ''
  298. this.queryParams.endTime = ''
  299. this.resetForm('queryForm')
  300. this.handleQuery()
  301. },
  302. handleComplete() {
  303. if (!this.excelList.length > 0) return this.msgInfo('请选择要完成的备料单!')
  304. let arr = this.excelList.map((item) => item.id)
  305. this.$confirm('请先确认是否已经打印【备料单】与【生产面单】', '警告', {
  306. confirmButtonText: '确定',
  307. cancelButtonText: '取消',
  308. type: 'warning',
  309. }).then(() => {
  310. this.$confirm('确认完成备料吗?', '警告', {
  311. confirmButtonText: '确定',
  312. cancelButtonText: '取消',
  313. type: 'warning',
  314. }).then(() => {
  315. API.completeBatch(arr).then(() => {
  316. this.msgSuccess('操作成功!')
  317. this.handleQuery()
  318. })
  319. })
  320. })
  321. },
  322. outExcel() {
  323. if (!this.excelList.length > 0) return this.msgInfo('请选择要打印的备料单!')
  324. this.printTime = ''
  325. let arr = this.sortOut(this.excelList, 'bomColorId') //根据bom规格id进行数据归类
  326. //对相同的bom规格id的数据中的数量进行汇总
  327. arr.sort((a, b) => b.sort - a.sort)
  328. for (let i = 0; i < arr.length; i++) {
  329. const iele = arr[i]
  330. let sum = 0
  331. for (let j = 0; j < iele.children.length; j++) {
  332. const jele = iele.children[j]
  333. sum = sum + Number(jele.quantity)
  334. }
  335. iele.quantity = sum
  336. }
  337. this.printBomList = arr
  338. this.$nextTick(() => {
  339. this.$confirm('确认打印吗?', '警告', {
  340. confirmButtonText: '确定',
  341. cancelButtonText: '取消',
  342. type: 'warning',
  343. }).then(() => {
  344. this.printTime = dateFormat(new Date())
  345. const btn = document.getElementById('printBomListBtn')
  346. btn.click()
  347. })
  348. })
  349. },
  350. sortOut(arr, att) {
  351. let newArr = []
  352. arr.forEach((oldItem) => {
  353. let index = -1
  354. let bomColorId = oldItem[att]
  355. let alreadyExists = newArr.some((newItem, j) => {
  356. if (bomColorId === newItem[att]) {
  357. index = j
  358. return true
  359. }
  360. })
  361. if (!alreadyExists) {
  362. let bomColorId = oldItem[att]
  363. newArr.push({
  364. bomColorId,
  365. specCode: oldItem.specCode,
  366. nameChinese: oldItem.nameChinese,
  367. sort: oldItem.dataResource,
  368. quantity: 0,
  369. children: [
  370. {
  371. ...oldItem,
  372. },
  373. ],
  374. })
  375. } else {
  376. newArr[index].children.push({
  377. ...oldItem,
  378. })
  379. }
  380. })
  381. return newArr
  382. },
  383. handlePrint1() {
  384. if (this.excelList.length > 0) {
  385. if (!this.printIdList.length > 0) return this.msgInfo('选择的数据没有主材!')
  386. } else {
  387. return this.msgInfo('请选择要打印的主材!')
  388. }
  389. let num = 0
  390. for (let i = 0; i < this.excelList.length; i++) {
  391. if (this.excelList[i].dataResource === 1) {
  392. num = Number(num) + Number(this.excelList[i].quantity)
  393. }
  394. }
  395. if (num > 100) {
  396. this.msgInfo('一次性打印件数超过100件')
  397. } else {
  398. API.getQRcode(this.printIdList).then((res) => {
  399. const list = res.data.data.list
  400. for (let i = 0; i < list.length; i++) {
  401. const ele = list[i]
  402. let uid = getUid()
  403. ele.uid = uid
  404. }
  405. this.QRcodeList = list
  406. this.$nextTick(() => {
  407. for (let i = 0; i < this.QRcodeList.length; i++) {
  408. let element = this.QRcodeList[i]
  409. this.$refs['print' + i][0].innerHTML = '' //清除二维码方法一
  410. let text = element.contractProductId + '-' + element.uid
  411. new QRCode(this.$refs['print' + i][0], {
  412. text: text, //页面地址 ,如果页面需要参数传递请注意哈希模式#
  413. width: 150,
  414. height: 150,
  415. colorDark: '#000000',
  416. colorLight: '#ffffff',
  417. correctLevel: QRCode.CorrectLevel.H,
  418. })
  419. }
  420. })
  421. this.$confirm('确认打印吗?', '警告', {
  422. confirmButtonText: '确定',
  423. cancelButtonText: '取消',
  424. type: 'warning',
  425. }).then(() => {
  426. const btn = document.getElementById('printBtnMini')
  427. btn.click()
  428. })
  429. })
  430. }
  431. },
  432. tableRowClass({ row }) {
  433. if (row.type === 1) {
  434. return 'red'
  435. } else return ''
  436. },
  437. handleSelectionChange(selection) {
  438. this.printIdList = selection.filter((item) => item.dataResource === 1).map((item) => item.id)
  439. this.excelList = selection
  440. },
  441. openFile(path) {
  442. window.open(path)
  443. },
  444. cellClassName(val) {
  445. if (val && val.row && val.row.dataResource === 0) {
  446. return 'colorDim'
  447. }
  448. },
  449. clickSetLabel() {
  450. if (!this.excelList.length > 0) return this.msgInfo('请选择要设置标签的列表数据!')
  451. this.form = { bookSign: '' }
  452. this.openSetLabel = true
  453. },
  454. clickSetLabelSubmit() {
  455. this.$refs.ruleForm.validate((valid) => {
  456. if (valid) {
  457. let data = []
  458. if (this.form.bookSign === '0') {
  459. data = this.excelList.map((item) => {
  460. return {
  461. id: item.id,
  462. bookSign: '',
  463. }
  464. })
  465. } else {
  466. data = this.excelList.map((item) => {
  467. return {
  468. id: item.id,
  469. bookSign: this.form.bookSign,
  470. }
  471. })
  472. }
  473. API.burdeningLabel(data).then(() => {
  474. this.msgSuccess('保存完成')
  475. this.openSetLabel = false
  476. this.getList()
  477. })
  478. }
  479. })
  480. },
  481. getName(row) {
  482. return this.selectConstantsLabel(this.bookSign, row.bookSign)
  483. },
  484. clickQuickDelivery() {
  485. if (!this.excelList.length > 0) return this.msgInfo('请选择要进行快捷出库的数据!')
  486. this.openQuickDelivery = true
  487. },
  488. clickCancel(status) {
  489. this.openQuickDelivery = false
  490. if (status) {
  491. this.getList()
  492. }
  493. },
  494. },
  495. }
  496. </script>
  497. <style>
  498. @media print {
  499. @page {
  500. size: auto;
  501. margin: 5mm;
  502. }
  503. body,
  504. html {
  505. height: auto !important;
  506. }
  507. }
  508. </style>
  509. <style lang="scss" scoped>
  510. ::v-deep {
  511. .vue-barcode-element {
  512. text {
  513. font-size: 20px !important;
  514. font-weight: 700;
  515. }
  516. }
  517. .el-button {
  518. border-radius: 0;
  519. }
  520. .miniBtn .el-button {
  521. padding: 0px !important;
  522. }
  523. .tableHeader th {
  524. background-color: #edf0f5;
  525. height: 35px;
  526. padding: 0;
  527. }
  528. .colorDim {
  529. color: #909399;
  530. }
  531. .el-dialog {
  532. margin: 0 auto;
  533. margin-top: 10px !important;
  534. }
  535. }
  536. .img {
  537. margin-top: 3px;
  538. width: 40px;
  539. height: 40px;
  540. cursor: pointer;
  541. object-fit: contain;
  542. vertical-align: middle;
  543. }
  544. .one {
  545. position: absolute;
  546. right: 10px;
  547. top: 320px;
  548. width: 70px;
  549. height: 70px;
  550. z-index: 99;
  551. line-height: 80px;
  552. text-align: center;
  553. border-radius: 50%;
  554. border: 1px solid #000;
  555. .two {
  556. position: absolute;
  557. top: 50%;
  558. left: 50%;
  559. transform: translate(-50%, -50%);
  560. width: 60px;
  561. height: 60px;
  562. line-height: 60px;
  563. text-align: center;
  564. border-radius: 50%;
  565. border: 1px dashed #000;
  566. .three {
  567. rotate: -45deg;
  568. font-size: 14px;
  569. }
  570. }
  571. }
  572. .searchBtn {
  573. background: #20b2aa;
  574. color: #fff;
  575. border: 1px solid #20b2aa;
  576. }
  577. .codeList {
  578. width: 340px;
  579. .item {
  580. margin-top: 15px;
  581. border: 1px solid #000;
  582. height: 510px;
  583. overflow: hidden;
  584. position: relative;
  585. .top {
  586. .QRbox {
  587. border-bottom: 1px solid #000;
  588. padding: 4px 8px;
  589. display: flex;
  590. height: 270px;
  591. .img {
  592. width: 200px;
  593. height: 200px;
  594. img {
  595. vertical-align: middle;
  596. width: 100%;
  597. height: 100%;
  598. }
  599. }
  600. }
  601. .productInfo {
  602. display: flex;
  603. flex-direction: column;
  604. padding: 5px 10px;
  605. .title1 {
  606. margin-bottom: 5px;
  607. font-size: 12px;
  608. .val {
  609. font-size: 12px;
  610. font-weight: 700;
  611. }
  612. }
  613. }
  614. .address {
  615. padding: 5px 10px;
  616. display: flex;
  617. align-items: center;
  618. border-top: 1px dashed #000;
  619. }
  620. }
  621. .seal {
  622. position: absolute;
  623. right: 10px;
  624. top: 320px;
  625. width: 70px;
  626. height: 70px;
  627. z-index: 99;
  628. line-height: 80px;
  629. text-align: center;
  630. border-radius: 50%;
  631. border: 1px solid #000;
  632. .wln {
  633. position: absolute;
  634. top: 50%;
  635. left: 50%;
  636. transform: translate(-50%, -50%);
  637. width: 60px;
  638. height: 60px;
  639. line-height: 60px;
  640. text-align: center;
  641. border-radius: 50%;
  642. border: 1px dashed #000;
  643. .aa {
  644. rotate: -45deg;
  645. font-size: 14px;
  646. }
  647. }
  648. }
  649. .two-sided {
  650. width: 40px;
  651. height: 40px;
  652. line-height: 40px;
  653. text-align: center;
  654. border: 1px solid #000;
  655. position: absolute;
  656. right: 20px;
  657. top: 400px;
  658. .wln {
  659. width: 30px;
  660. height: 30px;
  661. position: absolute;
  662. top: 50%;
  663. left: 50%;
  664. transform: translate(-50%, -50%);
  665. line-height: 30px;
  666. text-align: center;
  667. border: 1px dashed #000;
  668. }
  669. }
  670. }
  671. }
  672. .printBomList {
  673. width: 100vw;
  674. .t {
  675. text-align: center;
  676. font-size: 26px;
  677. font-weight: 700;
  678. margin: 10px 0px;
  679. }
  680. .time {
  681. // font-size: 16px;
  682. margin-bottom: 10px;
  683. // font-weight: 500;
  684. }
  685. .table {
  686. width: 100%;
  687. td {
  688. padding: 10px;
  689. }
  690. }
  691. }
  692. .red {
  693. color: red !important;
  694. }
  695. </style>