index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  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. }
  314. function iconClick() {
  315. checkLotCode(inpValue.value);
  316. }
  317. function checkLotCode(lotCode) {
  318. //var lotCode = lotList.value[0].map(obj =>obj.lotCode)
  319. console.log(lotList.value)
  320. console.log(lotList.value.map(obj =>obj.lotCode))
  321. if (lotCode.includes(lotCode)) {
  322. for (let i = 0; i < lotList.value.length; i++) {
  323. if (lotList.value[i].lotCode == lotCode) {
  324. batchNoList.value = [lotList.value[i]];
  325. dayWork.value.lotId = lotList.value[i].id;
  326. dayWork.value.lotCode = lotList.value[i].lotCode;
  327. if (batchNoList.value.isWasteRecycling == 1) {
  328. isWasteRecyclingFlag.value = false
  329. uni.showToast({
  330. icon: "none",
  331. title: "该批次号可用,该批是废品回用",
  332. duration: 2000
  333. })
  334. } else if (batchNoList.value[0].isAmend == 1) {
  335. uni.showToast({
  336. icon: "none",
  337. title: "该批次号可用,该批是单批单改",
  338. duration: 2000
  339. })
  340. } else {
  341. uni.showToast({
  342. icon: "none",
  343. title: "该批次号可用",
  344. duration: 2000
  345. })
  346. }
  347. return true;
  348. }
  349. }
  350. } else {
  351. uni.showToast({
  352. icon: "none",
  353. title: "该批次号已被使用或不属于该产品",
  354. duration: 2000
  355. })
  356. return false;
  357. }
  358. }
  359. function getProcessInfo(data) {
  360. getProcessList({
  361. deptId: store.curDeptDetails.deptId,
  362. }).then(res => {
  363. if (res.code == 200) {
  364. //过滤出工序交集
  365. //因为废品回用对工序进行单独的修改。所以重新查产品的工艺,如果该批不是废品回用,则查产品工序,如果是,则到
  366. //对应表查
  367. //通过批次号查
  368. getProcessListByLot(data).then(response => {
  369. let lotProcessList = response.data
  370. let filteredData = lotProcessList.filter((item1) =>
  371. res.data.some((item2) => item2.processCode === item1.processCode)
  372. );
  373. processList.value = filteredData.map((v, index) => ({
  374. text: v.processAlias,
  375. value: v.technologicalProcessDetailId ? v
  376. .technologicalProcessDetailId : v.id,
  377. processId: v.processId,
  378. processStepNumber: v.processStepNumber,
  379. index: index
  380. }))
  381. console.log(processList.value)
  382. selectedProcess.value = processList.value[0].value;
  383. dayWork.value.processId = processList.value[0].processId;
  384. dayWork.value.technologicalProcessDetailId = selectedProcess.value
  385. dayWork.value.processStepNumber = processList.value.findIndex(v => v.value === selectedProcess.value) >= 0 ?
  386. processList.value.find(v => v.value === selectedProcess.value).processStepNumber : null
  387. })
  388. }
  389. })
  390. }
  391. function handleDoLastLot() {
  392. uni.showModal({
  393. title: '提示',
  394. content: '确认是否加工尾批?',
  395. success: function(res) {
  396. if (res.confirm) {
  397. if (lotList.value.some(item => item.isLast == 1)) {
  398. for (let i = 0; i < lotList.value.length; i++) {
  399. if (lotList.value[i].isLast == 1) {
  400. batchNoList.value = [lotList.value[i]];
  401. dayWork.value.lotId = lotList.value[i].id;
  402. dayWork.value.lotCode = lotList.value[i].lotCode;
  403. dayWork.value.isLast = '1';
  404. return;
  405. }
  406. }
  407. } else {
  408. uni.showToast({
  409. icon: 'none',
  410. title: '当前计划尾批已被加工',
  411. duration: 2500
  412. })
  413. }
  414. } else if (res.cancel) {}
  415. }
  416. });
  417. }
  418. function handleConfirmLotCode() {
  419. // 引入原生插件
  420. const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
  421. // 调用插件的 mpaasScan 方法
  422. mpaasScanModule.mpaasScan({
  423. // 扫码识别类型,参数可多选,qrCode、barCode,
  424. // 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
  425. scanType: ["qrCode", "barCode"],
  426. // 是否隐藏相册,默认false不隐藏
  427. hideAlbum: false,
  428. },
  429. (ret) => {
  430. console.log(ret);
  431. // uni.showModal({
  432. // title: "扫码结果",
  433. // // 返回值中,有三个参数 resp_code、resp_message、resp_result
  434. // // resp_code 表示返回结果值,10:用户取消,11:其他错误,1000:成功
  435. // // resp_message 表示返回结果信息
  436. // // resp_result 表示扫码结果,只有成功才会有返回
  437. // content: JSON.stringify(ret),
  438. // showCancel: false,
  439. // confirmText: "确定",
  440. // });
  441. if (ret.resp_result) {
  442. checkLotCode(ret.resp_result);
  443. }
  444. }
  445. );
  446. }
  447. function handleFurnaceNumberChange() {
  448. dayWork.value.furnaceNoInfo = basicInfo.value;
  449. }
  450. function handleProcessChange() {
  451. dayWork.value.technologicalProcessDetailId = selectedProcess.value;
  452. dayWork.value.processId = processList.value.findIndex(v => v.value === selectedProcess.value) >= 0 ? processList
  453. .value.find(v => v.value === selectedProcess.value).processId : null
  454. dayWork.value.processStepNumber = processList.value.findIndex(v => v.value === selectedProcess.value) >= 0 ?
  455. processList.value.find(v => v.value === selectedProcess.value).processStepNumber : null
  456. dayWork.value.technologicalProcessId = batchNoList.value[0].technologicalProcessId;
  457. }
  458. // function handleScanCode() {
  459. // uni.scanCode({
  460. // scanType: ['qrCode'],
  461. // onlyFromCamera: true, // 只允许相机扫码
  462. // autoZoom: false,
  463. // success: function(res) {
  464. // let vehicleObj = JSON.parse(res.result);
  465. // if (!vehicleObj.carrierId || vehicleObj.carrierId == "") {
  466. // uni.showToast({
  467. // icon: "error",
  468. // title: "请扫载具码",
  469. // duration: 1000
  470. // })
  471. // return;
  472. // }
  473. // for (let i = 0; i < vehicleList.value.length; i++) {
  474. // if (vehicleList.value[i].carrierId == vehicleObj.carrierId) {
  475. // uni.showToast({
  476. // icon: "error",
  477. // title: "载具已存在",
  478. // duration: 1000
  479. // })
  480. // return;
  481. // }
  482. // }
  483. // checkCarrier(vehicleObj.carrierId).then(response => {
  484. // if (response.code == 200) {
  485. // vehicleList.value.push(vehicleObj);
  486. // } else {
  487. // uni.showToast({
  488. // icon: 'none',
  489. // title: response.msg
  490. // })
  491. // return;
  492. // }
  493. // })
  494. // }
  495. // });
  496. // }
  497. function handleAdd() {
  498. console.log(dayWork.value)
  499. if (selectedProcess.value == null) {
  500. uni.showToast({
  501. icon: 'none',
  502. title: '请选择工序后再开始批次'
  503. })
  504. return;
  505. }
  506. if(basicInfo.value ==null) {
  507. uni.showToast({
  508. icon: 'none',
  509. title: '请选择炉号再开始批次'
  510. })
  511. return;
  512. }
  513. dayWork.value.isWasteRecycling = batchNoList.value[0].isWasteRecycling
  514. dayWork.value.isAmend = batchNoList.value[0].isAmend
  515. store.furnaceNumberInfo = basicInfo.value;
  516. if (checkLotCode(dayWork.value.lotCode)) {
  517. saveDayWork(dayWork.value).then(res => {
  518. console.log(res)
  519. if (res.code === 200) {
  520. uni.showToast({
  521. icon: 'success',
  522. title: '添加成功',
  523. duration: 2000
  524. });
  525. // uni.$emit('batchReporting-addBatch');
  526. // uni.$emit('dayworkItemUpdate');
  527. uni.navigateBack({
  528. url: '/pages/batchReporting/index'
  529. })
  530. } else {
  531. uni.showToast({
  532. icon: 'none',
  533. title: res.msg,
  534. duration: 2000
  535. });
  536. }
  537. })
  538. } else {
  539. uni.showToast({
  540. icon: "none",
  541. title: "该批次号已被使用或不属于该产品",
  542. duration: 2000
  543. })
  544. }
  545. }
  546. </script>
  547. <style lang="scss">
  548. .container {
  549. height: 90%;
  550. background-color: #f5f5f5;
  551. padding-bottom: 112rpx;
  552. }
  553. .bottom {
  554. background-color: white;
  555. width: 100%;
  556. position: fixed;
  557. bottom: 0;
  558. align-items: center;
  559. background-color: #ffffff;
  560. padding: 16rpx 0;
  561. .add {
  562. margin: 0 auto;
  563. width: 80%;
  564. height: 80rpx;
  565. }
  566. }
  567. .content {
  568. position: relative;
  569. width: auto;
  570. background-color: rgba(255, 255, 255, 1);
  571. margin: 32rpx;
  572. padding-bottom: 50rpx;
  573. padding-top: 20rpx;
  574. border-radius: 12rpx;
  575. height: 100%;
  576. overflow: auto;
  577. .title {
  578. width: auto;
  579. font-size: 36rpx;
  580. font-weight: bold;
  581. text-align: center;
  582. }
  583. }
  584. .inpAndScan {
  585. justify-content: space-between;
  586. width: calc(88% + 20rpx);
  587. margin: 0 auto;
  588. .inp {
  589. width: calc(100% - 16rpx);
  590. margin: 10rpx auto;
  591. height: 74rpx;
  592. }
  593. .scanLotCode {
  594. border-radius: 6rpx;
  595. border: 1rpx solid rgba(22, 132, 252, 1);
  596. height: 60rpx;
  597. margin: 10rpx;
  598. height: 72rpx;
  599. width: 46%;
  600. text-align: center;
  601. line-height: 72rpx;
  602. background-color: rgba(22, 132, 252, 1);
  603. color: white;
  604. }
  605. }
  606. .batchNo {
  607. // justify-content: flex-start;
  608. // flex-wrap: wrap;
  609. // width: auto;
  610. // height: 320rpx;
  611. // overflow: auto;
  612. // padding-left: calc(100% - 88% - 4rpx - 40rpx);
  613. // margin-bottom: 40rpx;
  614. // border-radius: 6rpx;
  615. justify-content: center;
  616. .batchNo-item {
  617. justify-content: center;
  618. align-items: center;
  619. width: 88%;
  620. margin: 10rpx;
  621. height: 72rpx;
  622. border: 1px solid rgba(213, 213, 213, 1);
  623. border-radius: 6rpx;
  624. }
  625. .batchNoCheck {
  626. color: #FFF;
  627. border: 1rpx solid rgba(22, 132, 252, 1);
  628. background-color: rgba(22, 132, 252, 1);
  629. }
  630. }
  631. .vehicleList {
  632. justify-content: flex-start;
  633. flex-wrap: wrap;
  634. width: auto;
  635. height: 120rpx;
  636. overflow: auto;
  637. padding: 0 80rpx;
  638. .vehicleNo {
  639. padding: 0 10rpx;
  640. margin: 10rpx;
  641. justify-content: space-between;
  642. align-items: center;
  643. width: 230rpx;
  644. height: 60rpx;
  645. border: 1px solid rgba(213, 213, 213, 1);
  646. border-radius: 6rpx;
  647. }
  648. }
  649. .middle {
  650. display: flex;
  651. flex-direction: row;
  652. align-items: center;
  653. justify-content: center
  654. }
  655. .segment {
  656. width: 280rpx;
  657. background-color: rgba(213, 213, 213, 1);
  658. border: 1rpx solid rgba(213, 213, 213, 1);
  659. }
  660. .info {
  661. width: 94%;
  662. justify-content: space-around;
  663. padding: 10rpx;
  664. margin: 0 auto;
  665. label {
  666. flex: 1;
  667. text-combine-upright: all;
  668. margin: 0 30rpx 0 20rpx;
  669. }
  670. text {
  671. flex: 3;
  672. // width: 80%;
  673. }
  674. .data-select {
  675. flex: 3;
  676. width: 80%;
  677. height: 60rpx;
  678. margin-right: 40rpx;
  679. border-radius: 18rpx;
  680. background-color: #FFF;
  681. .data-select-options {
  682. width: 200rpx;
  683. }
  684. }
  685. }
  686. .material {
  687. height: auto;
  688. width: 60%;
  689. }
  690. .selectedProcess {
  691. width: 88%;
  692. margin: 20rpx auto 40rpx;
  693. }
  694. </style>