index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <template>
  2. <view class='container'>
  3. <view class="content">
  4. <view>
  5. <text class='title'>批次号</text>
  6. <view class="batchNo uni-row">
  7. <view :class="{'batchNo-item':true, 'uni-row': true}" v-for="(item,index) in batchNoList"
  8. :key='index'>
  9. <!-- ,'batchNoCheck':batchNoCheck === item -->
  10. <!-- @click="handleCheckBatchNo(item)" -->
  11. {{ item.lotCode }}{{ item.isLast == 1 ? ' (尾批)': '' }}
  12. </view>
  13. </view>
  14. <view class="inpAndScan ">
  15. <uni-easyinput v-if="batchNoList.length > 0" class="inp" suffixIcon="checkmarkempty"
  16. v-model="inpValue" placeholder="可手动修正批次" @iconClick="iconClick"></uni-easyinput>
  17. <view class="uni-row" style="justify-content: space-between;">
  18. <view v-if="batchNoList.length > 0 && curDept" class="scanLotCode" @click="handleDoLastLot">
  19. <text>是否加工尾批</text>
  20. </view>
  21. <view v-if="batchNoList.length > 0" class="scanLotCode" @click="handleConfirmLotCode">
  22. <text>扫码修正批次</text>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class='middle'>
  28. <view class='segment'></view>
  29. <uni-icons type="link" size="30" style="margin: 10rpx; transform: rotate(135deg);"></uni-icons>
  30. <view class='segment'></view>
  31. </view>
  32. <!-- <view>
  33. <text class='title'>扫码绑定载具</text>
  34. <view class="vehicleList uni-row">
  35. <view class="vehicleNo uni-row" v-for="(item,index) in vehicleList">
  36. <text>{{item.carrierCode}}</text>
  37. <text @click="handleDelVehicleNo(index)">×</text>
  38. </view>
  39. </view>
  40. <view>
  41. <button style='background-color: rgba(0, 226, 166,1);
  42. color: white;margin: 20rpx auto;
  43. width: 80%;' @click='handleScanCode'>扫码</button>
  44. </view>
  45. </view> -->
  46. <view class="selectedProcess">
  47. <uni-section title="请选择工序" type="square">
  48. <uni-data-select v-model="selectedProcess" :localdata="processList" :clear="false"
  49. @change="handleProcessChange">
  50. <template v-slot:option="{item }">
  51. <!-- 自定义下拉框每一项的显示内容 -->
  52. <span>{{ (item.index) + 1}}</span>
  53. <span>{{ item.text }}</span>
  54. </template></uni-data-select>
  55. </uni-section>
  56. </view>
  57. <view class='middle'>
  58. <view class='segment'></view>
  59. <uni-icons type="paperclip" size="30" style="margin: 10rpx;"></uni-icons>
  60. <view class='segment'></view>
  61. </view>
  62. <view>
  63. <text class='title' style="margin-bottom: 40rpx;">基础信息</text>
  64. <view class="uni-row info" style="align-items: center;">
  65. <label for="HeatNo">炉号:</label>
  66. <uni-data-select v-if="isWasteRecyclingFlag" id="incomingInfo" class="uni-input data-select" v-model="basicInfo"
  67. :localdata="furnaceNumberInfoList" :clear="false"
  68. @change="handleFurnaceNumberChange"></uni-data-select>
  69. <text id="incomingInfo" v-else
  70. class="uni-input">废品回用</text>
  71. </view>
  72. <!-- <view class='segment' style="width: 90%;margin: 20rpx auto;"></view> -->
  73. <view class="uni-row info">
  74. <label for="productionPlanNo">计划单号:</label>
  75. <text id="productionPlanNo"
  76. class="uni-input">{{ basicInfo.productionPlanNo ? basicInfo.productionPlanNo : '-'}}</text>
  77. </view>
  78. <!-- <view class='segment' style="width: 90%;margin: 20rpx auto;"></view> -->
  79. <view class="uni-row info">
  80. <label for="lineNumber">序号:</label>
  81. <text id="lineNumber"
  82. class="uni-input">{{ basicInfo.lineNumber ? basicInfo.lineNumber : '-'}}</text>
  83. </view>
  84. <!-- <view class='segment' style="width: 90%;margin: 20rpx auto;"></view> -->
  85. <view class="uni-row info">
  86. <label for="factory">厂家:</label>
  87. <text id="factory"
  88. class="material uni-input">{{ basicInfo.factory ? basicInfo.factory : '-'}}</text>
  89. </view>
  90. <view class="uni-row info">
  91. <label for="brandNumber">牌号:</label>
  92. <text id="brandNumber"
  93. class="material uni-input">{{ basicInfo.brandNumber ? basicInfo.brandNumber : '-' }}</text>
  94. </view>
  95. <view class="uni-row info">
  96. <label for="spec">规格:</label>
  97. <text id="spec" class="material uni-input">{{ basicInfo.spec ? basicInfo.spec : '-' }}</text>
  98. </view>
  99. <view class="uni-row info">
  100. <label for="shape">形状:</label>
  101. <text id="shape" class="material uni-input">{{ basicInfo.shape ? basicInfo.shape : '-'}}</text>
  102. </view>
  103. <view class="uni-row info">
  104. <label for="diameter">材料直径:</label>
  105. <text id="diameter"
  106. class="material uni-input">{{ basicInfo.diameter ? basicInfo.diameter : '-' }}</text>
  107. </view>
  108. <view class="uni-row info">
  109. <label for="rawMaterialCode">原料编码:</label>
  110. <text id="rawMaterialCode"
  111. class="material uni-input">{{ basicInfo.rawMaterialCode ? basicInfo.rawMaterialCode : '-' }}</text>
  112. </view>
  113. <view class="uni-row info">
  114. <label for="incomingDate">来料日期:</label>
  115. <text id="incomingDate"
  116. class="material uni-input">{{ basicInfo.incomingDate ? basicInfo.incomingDate : '-' }}</text>
  117. </view>
  118. <view class="uni-row info">
  119. <label for="firstTechnicalRequirement">材质1:</label>
  120. <text id="firstTechnicalRequirement"
  121. class="material uni-input">{{ basicInfo.firstTechnicalRequirement ? basicInfo.firstTechnicalRequirement : '-' }}</text>
  122. </view>
  123. <view class="uni-row info">
  124. <label for="SecondTechnicalRequirement">材质2:</label>
  125. <text id="SecondTechnicalRequirement"
  126. class="material uni-input">{{ basicInfo.SecondTechnicalRequirement ? basicInfo.SecondTechnicalRequirement : '-' }}</text>
  127. </view>
  128. </view>
  129. </view>
  130. <view class='bottom uni-row'>
  131. <button class='add' type=primary @click='handleAdd'>添加</button>
  132. </view>
  133. </view>
  134. </template>
  135. <script setup>
  136. import {
  137. ref
  138. } from 'vue'
  139. import {
  140. onLoad,
  141. onReady
  142. } from '@dcloudio/uni-app'
  143. import {
  144. getLotList,
  145. getAbnormalityLot,
  146. getProcessListByLot
  147. } from "@/api/business/lot.js"
  148. import {
  149. saveDayWork
  150. } from '@/api/business/dayWork.js'
  151. import {
  152. store
  153. } from '@/store/index.js'
  154. import {
  155. getCarrierById,
  156. checkCarrier
  157. } from '@/api/business/carrier.js'
  158. import {
  159. getFurnaceNoInfo
  160. } from '@/api/p2/furnaceNoInfo.js'
  161. import {
  162. getToken
  163. } from '@/utils/auth'
  164. import {
  165. getProcessList
  166. } from '@/api/business/deptProcess.js'
  167. import path from '@/api/base/path.js'
  168. const batchNoCheck = ref(null) // 批次号是否选中
  169. const batchNoList = ref([]) // 批次号列表
  170. const vehicleList = ref([])
  171. const basicInfo = ref({}) // 基础信息对象
  172. const dayWork = ref({})
  173. const furnaceInfo = ref({})
  174. const wasteRecyclingList = ref([]) //废品回用批次
  175. const curPlan = ref({})
  176. const furnaceNumberInfoList = ref([])
  177. const isWasteRecyclingFlag = ref(true)
  178. const emit = defineEmits(['batchReporting-addBatch']);
  179. const inpValue = ref('')
  180. const curDept = ref(false) //判断当前工段是否是该批次的领料部门
  181. const lotList = ref([])
  182. const selectedProcess = ref(null)
  183. const processList = ref([])
  184. onLoad(() => {
  185. // 处理特殊字符JSON解析失败报错
  186. curPlan.value = store.planDetails;
  187. dayWork.value = {
  188. productionPlanDetailId: curPlan.value.id,
  189. productionPlanId: curPlan.value.productionDetailId,
  190. technologicalProcessId: curPlan.value.technologicalProcessId,
  191. deptId: store.curDeptDetails.deptId
  192. }
  193. init();
  194. })
  195. function init() {
  196. let obj = {}
  197. obj.productionPlanDetailId = store.planDetails.id;
  198. //开始新批次,判断当前工段是否能开始这个批次(领料部门是当前工段的;批次的领料部门是当前工段的)
  199. //当前计划单的领料部门是当前工段
  200. if (store.normalStatus ) {
  201. curDept.value = true
  202. //只查不是废品回用的批次
  203. getLotList(obj).then(res => {
  204. lotList.value = res.rows;
  205. if (res.rows.length > 0) {
  206. batchNoList.value = [res.rows[0]];
  207. dayWork.value.lotId = batchNoList.value[0].id;
  208. dayWork.value.lotCode = batchNoList.value[0].lotCode;
  209. if (dayWork.value.technologicalProcessId != batchNoList.value[0].technologicalProcessId) {
  210. dayWork.value.technologicalProcessId = batchNoList.value[0].technologicalProcessId;
  211. store.planDetails.technologicalProcessId = batchNoList.value[0].technologicalProcessId;
  212. }
  213. getProcessInfo(batchNoList.value[0])
  214. getFurnaceInfo(batchNoList.value[0])
  215. } else {
  216. batchNoList.value = res.rows;
  217. }
  218. })
  219. } else {
  220. //废品回用的批次(领料部门是当前工段)
  221. getAbnormalityLot({
  222. productionPlanDetailId: store.planDetails.id,
  223. requisitionDepartmentId: store.curDeptDetails.deptId,
  224. flag: true
  225. }).then(res => {
  226. wasteRecyclingList.value = res.rows
  227. if (res.rows.length > 0) {
  228. //如果废品回用的批次领料部门是当前计划的领料部门,则加到lotList
  229. lotList.value = res.rows
  230. batchNoList.value = [res.rows[0]];
  231. isWasteRecyclingFlag.value = false
  232. dayWork.value.lotId = batchNoList.value[0].id;
  233. dayWork.value.lotCode = batchNoList.value[0].lotCode;
  234. if (dayWork.value.technologicalProcessId != batchNoList.value[0].technologicalProcessId) {
  235. dayWork.value.technologicalProcessId = batchNoList.value[0].technologicalProcessId;
  236. store.planDetails.technologicalProcessId = batchNoList.value[0].technologicalProcessId;
  237. }
  238. getProcessInfo(batchNoList.value[0])
  239. //提示当前批次是废品回用
  240. if (batchNoList.value[0].isAmend == 1) {
  241. uni.showToast({
  242. icon: "none",
  243. title: "该批是单批单改",
  244. duration: 2000
  245. })
  246. }
  247. else if (batchNoList.value[0].isWasteRecycling == 1) {
  248. uni.showToast({
  249. icon: "none",
  250. title: "该批是废品回用",
  251. duration: 2000
  252. })
  253. }
  254. getFurnaceInfo(batchNoList.value[0])
  255. } else {
  256. uni.showToast({
  257. icon: "none",
  258. title: "没有废品回用或单批单改批次",
  259. duration: 2000
  260. })
  261. }
  262. })
  263. }
  264. }
  265. // function handleCheckBatchNo(item) {
  266. // batchNoCheck.value = item;
  267. // dayWork.value.lotId = item.id;
  268. // }
  269. // function handleDelVehicleNo(index) {
  270. // vehicleList.value.splice(index, 1);
  271. // }
  272. // function handleValidate() {
  273. // if (batchNoCheck.value && vehicleList.value) {
  274. // return true;
  275. // } else {
  276. // return false;
  277. // }
  278. // }
  279. function getFurnaceInfo(data) {
  280. if(data.isWasteRecycling==0) {
  281. let token = 'Bearer ' + getToken();
  282. let header = {
  283. Authorization: token
  284. }
  285. uni.request({
  286. url: path.furnaceNoURL + '/business/furnaceNoInfo/getFurnaceNoInfo',
  287. data: {
  288. productionPlanNo: store.planDetails.productionPlanNo,
  289. lineNumber: store.planDetails.lineNumber
  290. },
  291. method: 'GET',
  292. header,
  293. sslVerify: false,
  294. success: (res) => {
  295. console.log(res.data);
  296. if (res.data.code == 200 && res.data.data.length > 0) {
  297. for (let i = 0; i < res.data.data.length; i++) {
  298. furnaceNumberInfoList.value[i] = {
  299. text: res.data.data[i].furnaceNumber,
  300. value: res.data.data[i]
  301. }
  302. }
  303. // basicInfo.value = res.data.data[0];
  304. // dayWork.value.furnaceNoInfo = basicInfo.value;
  305. }
  306. }
  307. })
  308. }else{
  309. furnaceInfo.value.furnaceNumber = "废品回用"
  310. dayWork.value.furnaceNoInfo = furnaceInfo.value
  311. basicInfo.value = dayWork.value.furnaceNoInfo
  312. }
  313. console.log(basicInfo.value)
  314. }
  315. function iconClick() {
  316. checkLotCode(inpValue.value);
  317. }
  318. function checkLotCode(lotCode) {
  319. //var lotCode = lotList.value[0].map(obj =>obj.lotCode)
  320. console.log(lotList.value)
  321. console.log(lotList.value.map(obj =>obj.lotCode))
  322. if (lotCode.includes(lotCode)) {
  323. for (let i = 0; i < lotList.value.length; i++) {
  324. if (lotList.value[i].lotCode == lotCode) {
  325. batchNoList.value = [lotList.value[i]];
  326. dayWork.value.lotId = lotList.value[i].id;
  327. dayWork.value.lotCode = lotList.value[i].lotCode;
  328. if (batchNoList.value.isWasteRecycling == 1) {
  329. isWasteRecyclingFlag.value = false
  330. uni.showToast({
  331. icon: "none",
  332. title: "该批次号可用,该批是废品回用",
  333. duration: 2000
  334. })
  335. } else if (batchNoList.value[0].isAmend == 1) {
  336. uni.showToast({
  337. icon: "none",
  338. title: "该批次号可用,该批是单批单改",
  339. duration: 2000
  340. })
  341. } else {
  342. uni.showToast({
  343. icon: "none",
  344. title: "该批次号可用",
  345. duration: 2000
  346. })
  347. }
  348. return true;
  349. }
  350. }
  351. } else {
  352. uni.showToast({
  353. icon: "none",
  354. title: "该批次号已被使用或不属于该产品",
  355. duration: 2000
  356. })
  357. return false;
  358. }
  359. }
  360. function getProcessInfo(data) {
  361. getProcessList({
  362. deptId: store.curDeptDetails.deptId,
  363. }).then(res => {
  364. if (res.code == 200) {
  365. //过滤出工序交集
  366. //因为废品回用对工序进行单独的修改。所以重新查产品的工艺,如果该批不是废品回用,则查产品工序,如果是,则到
  367. //对应表查
  368. //通过批次号查
  369. getProcessListByLot(data).then(response => {
  370. let lotProcessList = response.data
  371. let filteredData = lotProcessList.filter((item1) =>
  372. res.data.some((item2) => item2.processCode === item1.processCode)
  373. );
  374. processList.value = filteredData.map((v, index) => ({
  375. text: v.processAlias,
  376. value: v.technologicalProcessDetailId ? v
  377. .technologicalProcessDetailId : v.id,
  378. processId: v.processId,
  379. processStepNumber: v.processStepNumber,
  380. index: index
  381. }))
  382. console.log(processList.value)
  383. selectedProcess.value = processList.value[0].value;
  384. dayWork.value.processId = processList.value[0].processId;
  385. dayWork.value.technologicalProcessDetailId = selectedProcess.value
  386. dayWork.value.processStepNumber = processList.value.findIndex(v => v.value === selectedProcess.value) >= 0 ?
  387. processList.value.find(v => v.value === selectedProcess.value).processStepNumber : null
  388. })
  389. }
  390. })
  391. }
  392. function handleDoLastLot() {
  393. uni.showModal({
  394. title: '提示',
  395. content: '确认是否加工尾批?',
  396. success: function(res) {
  397. if (res.confirm) {
  398. if (lotList.value.some(item => item.isLast == 1)) {
  399. for (let i = 0; i < lotList.value.length; i++) {
  400. if (lotList.value[i].isLast == 1) {
  401. batchNoList.value = [lotList.value[i]];
  402. dayWork.value.lotId = lotList.value[i].id;
  403. dayWork.value.lotCode = lotList.value[i].lotCode;
  404. dayWork.value.isLast = '1';
  405. return;
  406. }
  407. }
  408. } else {
  409. uni.showToast({
  410. icon: 'none',
  411. title: '当前计划尾批已被加工',
  412. duration: 2500
  413. })
  414. }
  415. } else if (res.cancel) {}
  416. }
  417. });
  418. }
  419. function handleConfirmLotCode() {
  420. // 引入原生插件
  421. const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
  422. // 调用插件的 mpaasScan 方法
  423. mpaasScanModule.mpaasScan({
  424. // 扫码识别类型,参数可多选,qrCode、barCode,
  425. // 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
  426. scanType: ["qrCode", "barCode"],
  427. // 是否隐藏相册,默认false不隐藏
  428. hideAlbum: false,
  429. },
  430. (ret) => {
  431. console.log(ret);
  432. // uni.showModal({
  433. // title: "扫码结果",
  434. // // 返回值中,有三个参数 resp_code、resp_message、resp_result
  435. // // resp_code 表示返回结果值,10:用户取消,11:其他错误,1000:成功
  436. // // resp_message 表示返回结果信息
  437. // // resp_result 表示扫码结果,只有成功才会有返回
  438. // content: JSON.stringify(ret),
  439. // showCancel: false,
  440. // confirmText: "确定",
  441. // });
  442. if (ret.resp_result) {
  443. checkLotCode(ret.resp_result);
  444. }
  445. }
  446. );
  447. }
  448. function handleFurnaceNumberChange() {
  449. dayWork.value.furnaceNoInfo = basicInfo.value;
  450. }
  451. function handleProcessChange() {
  452. dayWork.value.technologicalProcessDetailId = selectedProcess.value;
  453. dayWork.value.processId = processList.value.findIndex(v => v.value === selectedProcess.value) >= 0 ? processList
  454. .value.find(v => v.value === selectedProcess.value).processId : null
  455. dayWork.value.processStepNumber = processList.value.findIndex(v => v.value === selectedProcess.value) >= 0 ?
  456. processList.value.find(v => v.value === selectedProcess.value).processStepNumber : null
  457. dayWork.value.technologicalProcessId = batchNoList.value[0].technologicalProcessId;
  458. }
  459. // function handleScanCode() {
  460. // uni.scanCode({
  461. // scanType: ['qrCode'],
  462. // onlyFromCamera: true, // 只允许相机扫码
  463. // autoZoom: false,
  464. // success: function(res) {
  465. // let vehicleObj = JSON.parse(res.result);
  466. // if (!vehicleObj.carrierId || vehicleObj.carrierId == "") {
  467. // uni.showToast({
  468. // icon: "error",
  469. // title: "请扫载具码",
  470. // duration: 1000
  471. // })
  472. // return;
  473. // }
  474. // for (let i = 0; i < vehicleList.value.length; i++) {
  475. // if (vehicleList.value[i].carrierId == vehicleObj.carrierId) {
  476. // uni.showToast({
  477. // icon: "error",
  478. // title: "载具已存在",
  479. // duration: 1000
  480. // })
  481. // return;
  482. // }
  483. // }
  484. // checkCarrier(vehicleObj.carrierId).then(response => {
  485. // if (response.code == 200) {
  486. // vehicleList.value.push(vehicleObj);
  487. // } else {
  488. // uni.showToast({
  489. // icon: 'none',
  490. // title: response.msg
  491. // })
  492. // return;
  493. // }
  494. // })
  495. // }
  496. // });
  497. // }
  498. function handleAdd() {
  499. console.log(dayWork.value)
  500. if (selectedProcess.value == null) {
  501. uni.showToast({
  502. icon: 'none',
  503. title: '请选择工序后再开始批次'
  504. })
  505. return;
  506. }
  507. if(basicInfo.value) {
  508. uni.showToast({
  509. icon: 'none',
  510. title: '请选择炉号再开始批次'
  511. })
  512. return;
  513. }
  514. dayWork.value.isWasteRecycling = batchNoList.value[0].isWasteRecycling
  515. dayWork.value.isAmend = batchNoList.value[0].isAmend
  516. store.furnaceNumberInfo = basicInfo.value;
  517. if (checkLotCode(dayWork.value.lotCode)) {
  518. saveDayWork(dayWork.value).then(res => {
  519. console.log(res)
  520. if (res.code === 200) {
  521. uni.showToast({
  522. icon: 'success',
  523. title: '添加成功',
  524. duration: 2000
  525. });
  526. // uni.$emit('batchReporting-addBatch');
  527. // uni.$emit('dayworkItemUpdate');
  528. uni.navigateBack({
  529. url: '/pages/batchReporting/index'
  530. })
  531. } else {
  532. uni.showToast({
  533. icon: 'none',
  534. title: res.msg,
  535. duration: 2000
  536. });
  537. }
  538. })
  539. } else {
  540. uni.showToast({
  541. icon: "none",
  542. title: "该批次号已被使用或不属于该产品",
  543. duration: 2000
  544. })
  545. }
  546. }
  547. </script>
  548. <style lang="scss">
  549. .container {
  550. height: 90%;
  551. background-color: #f5f5f5;
  552. padding-bottom: 112rpx;
  553. }
  554. .bottom {
  555. background-color: white;
  556. width: 100%;
  557. position: fixed;
  558. bottom: 0;
  559. align-items: center;
  560. background-color: #ffffff;
  561. padding: 16rpx 0;
  562. .add {
  563. margin: 0 auto;
  564. width: 80%;
  565. height: 80rpx;
  566. }
  567. }
  568. .content {
  569. position: relative;
  570. width: auto;
  571. background-color: rgba(255, 255, 255, 1);
  572. margin: 32rpx;
  573. padding-bottom: 50rpx;
  574. padding-top: 20rpx;
  575. border-radius: 12rpx;
  576. height: 100%;
  577. overflow: auto;
  578. .title {
  579. width: auto;
  580. font-size: 36rpx;
  581. font-weight: bold;
  582. text-align: center;
  583. }
  584. }
  585. .inpAndScan {
  586. justify-content: space-between;
  587. width: calc(88% + 20rpx);
  588. margin: 0 auto;
  589. .inp {
  590. width: calc(100% - 16rpx);
  591. margin: 10rpx auto;
  592. height: 74rpx;
  593. }
  594. .scanLotCode {
  595. border-radius: 6rpx;
  596. border: 1rpx solid rgba(22, 132, 252, 1);
  597. height: 60rpx;
  598. margin: 10rpx;
  599. height: 72rpx;
  600. width: 46%;
  601. text-align: center;
  602. line-height: 72rpx;
  603. background-color: rgba(22, 132, 252, 1);
  604. color: white;
  605. }
  606. }
  607. .batchNo {
  608. // justify-content: flex-start;
  609. // flex-wrap: wrap;
  610. // width: auto;
  611. // height: 320rpx;
  612. // overflow: auto;
  613. // padding-left: calc(100% - 88% - 4rpx - 40rpx);
  614. // margin-bottom: 40rpx;
  615. // border-radius: 6rpx;
  616. justify-content: center;
  617. .batchNo-item {
  618. justify-content: center;
  619. align-items: center;
  620. width: 88%;
  621. margin: 10rpx;
  622. height: 72rpx;
  623. border: 1px solid rgba(213, 213, 213, 1);
  624. border-radius: 6rpx;
  625. }
  626. .batchNoCheck {
  627. color: #FFF;
  628. border: 1rpx solid rgba(22, 132, 252, 1);
  629. background-color: rgba(22, 132, 252, 1);
  630. }
  631. }
  632. .vehicleList {
  633. justify-content: flex-start;
  634. flex-wrap: wrap;
  635. width: auto;
  636. height: 120rpx;
  637. overflow: auto;
  638. padding: 0 80rpx;
  639. .vehicleNo {
  640. padding: 0 10rpx;
  641. margin: 10rpx;
  642. justify-content: space-between;
  643. align-items: center;
  644. width: 230rpx;
  645. height: 60rpx;
  646. border: 1px solid rgba(213, 213, 213, 1);
  647. border-radius: 6rpx;
  648. }
  649. }
  650. .middle {
  651. display: flex;
  652. flex-direction: row;
  653. align-items: center;
  654. justify-content: center
  655. }
  656. .segment {
  657. width: 280rpx;
  658. background-color: rgba(213, 213, 213, 1);
  659. border: 1rpx solid rgba(213, 213, 213, 1);
  660. }
  661. .info {
  662. width: 94%;
  663. justify-content: space-around;
  664. padding: 10rpx;
  665. margin: 0 auto;
  666. label {
  667. flex: 1;
  668. text-combine-upright: all;
  669. margin: 0 30rpx 0 20rpx;
  670. }
  671. text {
  672. flex: 3;
  673. // width: 80%;
  674. }
  675. .data-select {
  676. flex: 3;
  677. width: 80%;
  678. height: 60rpx;
  679. margin-right: 40rpx;
  680. border-radius: 18rpx;
  681. background-color: #FFF;
  682. .data-select-options {
  683. width: 200rpx;
  684. }
  685. }
  686. }
  687. .material {
  688. height: auto;
  689. width: 60%;
  690. }
  691. .selectedProcess {
  692. width: 88%;
  693. margin: 20rpx auto 40rpx;
  694. }
  695. </style>