index.vue 21 KB

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