index.vue 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582
  1. <template>
  2. <!-- 报工页面 -->
  3. <view class="content-box">
  4. <uni-nav-bar
  5. fixed="true"
  6. statusBar="true"
  7. left-icon="back"
  8. :title="title"
  9. background-color="#F7F9FA"
  10. color="#000"
  11. @clickLeft="back"
  12. right-icon="scan"
  13. @clickRight="HandlScanCode"
  14. >
  15. </uni-nav-bar>
  16. <view class="list_box">
  17. <u-list @scrolltolower="scrolltolower">
  18. <view class="card_box">
  19. <!-- 工单信息 objData 报告信息-->
  20. <workOrderBom
  21. :item="objData"
  22. v-if="objData"
  23. pType="job"
  24. :taskType="taskType"
  25. @handleScan="handleScan"
  26. >
  27. </workOrderBom>
  28. <paramBom
  29. v-if="paramDetailList.length != 0"
  30. :list="paramDetailList"
  31. ></paramBom>
  32. <!-- 设备信息 -->
  33. <deviceBom
  34. v-if="objData.equipmentList.length != 0"
  35. :list="objData.equipmentList"
  36. :ishuoWei="false"
  37. :wordItem="objData"
  38. :isDetails="true"
  39. >
  40. </deviceBom>
  41. <modelBom
  42. v-if="objData.modelList.length != 0"
  43. :list="objData.modelList"
  44. pattern="job"
  45. ref="modelRef"
  46. >
  47. </modelBom>
  48. <!-- 1报工信息 -->
  49. <!-- <view v-if="clientEnvironmentId == 3">
  50. <view v-if="objData.singleReport !== 1">
  51. <jobBom
  52. v-if="isLoad"
  53. :item="objData"
  54. ref="jobReftg"
  55. :notFormed="objData.notFormedList"
  56. @penalize="penalize"
  57. @modeNum="modeNum"
  58. ></jobBom>
  59. </view>
  60. </view> -->
  61. <!-- <view>3333</view> -->
  62. <!-- <view v-if=""></view> -->
  63. <!-- 单独报工报工信息 -->
  64. <!-- single -->
  65. <singleJobBom
  66. v-if="objData.singleReport == 1"
  67. :item="objData"
  68. ref="jobRef"
  69. :notFormed="objData.notFormedList"
  70. @penalize="penalize"
  71. @modeNum="modeNum"
  72. ></singleJobBom>
  73. <!-- 批量报工 -->
  74. <batchJobBom
  75. v-else-if="
  76. objData.currentTaskDiagram &&
  77. objData.currentTaskDiagram.type &&
  78. objData.singleReport == 0
  79. "
  80. :item="objData"
  81. ref="jobRef"
  82. :notFormed="objData.notFormedList"
  83. :currentTask="objData.currentTaskDiagram"
  84. @penalize="penalize"
  85. @modeNum="modeNum"
  86. ></batchJobBom>
  87. <!-- <batchJobBom
  88. v-if="
  89. objData.currentTaskDiagram &&
  90. objData.currentTaskDiagram.type &&
  91. objData.singleReport == 0
  92. "
  93. :item="objData"
  94. ref="jobRef"
  95. :notFormed="objData.notFormedList"
  96. :currentTask="objData.currentTaskDiagram"
  97. @penalize="penalize"
  98. @modeNum="modeNum"
  99. ></batchJobBom> -->
  100. <palletBom
  101. v-if="objData.palletList.length != 0"
  102. :palletList="objData.palletList"
  103. ></palletBom>
  104. <revolvingDiskBom
  105. v-if="isLoad && objData.revolvingDiskList.length > 0"
  106. pattern="job"
  107. :revolvingDiskList="objData.revolvingDiskList"
  108. ></revolvingDiskBom>
  109. <!-- <oneJobBom
  110. v-if='objData.instanceList && objData.instanceList.length != 0 && taskType != 4 && taskType != 6'
  111. :item='objData' :list='objData.instanceList'>
  112. </oneJobBom> -->
  113. <!-- -->
  114. <!-- 报工信息 列表 -->
  115. <view
  116. v-if="clientEnvironmentId == 3 || this.objData.singleReport != 1"
  117. >
  118. <semiProductJobBom
  119. v-if="
  120. objData.semiProductList &&
  121. objData.semiProductList.length != 0 &&
  122. taskType != 4 &&
  123. taskType != 6 &&
  124. objData.singleReport == 1
  125. "
  126. :item="objData"
  127. :list="objData.semiProductList"
  128. :equipmentList="objData.equipmentList"
  129. @weightEmit="weightEmit"
  130. >
  131. </semiProductJobBom>
  132. </view>
  133. <!-- <view v-if="this.objData.singleReport">
  134. </view> -->
  135. <semiProductJobBomPL
  136. v-if="
  137. objData.semiProductList &&
  138. objData.semiProductList.length != 0 &&
  139. taskType != 4 &&
  140. taskType != 6 &&
  141. objData.singleReport == 0 &&
  142. clientEnvironmentId == 3
  143. "
  144. :item="objData"
  145. :list="objData.semiProductList"
  146. ref="jobReftg"
  147. :equipmentList="objData.equipmentList"
  148. @countNumPl="countNumPl"
  149. >
  150. </semiProductJobBomPL>
  151. <oneJobQualityBom
  152. v-if="
  153. objData.semiProductList &&
  154. objData.semiProductList.length != 0 &&
  155. taskType == 6 &&
  156. clientEnvironmentId == 3 &&
  157. objData.singleReport == 1
  158. "
  159. :item="objData"
  160. :list="objData.semiProductList"
  161. @weightEmit="weightEmit"
  162. ></oneJobQualityBom>
  163. <oneJobQualityBomPL
  164. v-if="
  165. objData.semiProductList &&
  166. objData.semiProductList.length != 0 &&
  167. taskType == 6 &&
  168. clientEnvironmentId == 3 &&
  169. objData.singleReport == 0
  170. "
  171. :item="objData"
  172. :list="objData.semiProductList"
  173. ></oneJobQualityBomPL>
  174. <!-- 副产品 -->
  175. <byProductBom
  176. v-if="objData.productRecycleList.length != 0"
  177. :list="objData.productRecycleList"
  178. @penalize="penalize"
  179. >
  180. </byProductBom>
  181. <!-- 周转车 -->
  182. <turnoverBom
  183. v-if="objData.turnover.length != 0"
  184. :list="objData.turnover"
  185. :itemValue="objData"
  186. :wordItem="objData"
  187. pattern="job"
  188. @handleScan="handleScan"
  189. @formedNumFn="formedNumFn"
  190. >
  191. </turnoverBom>
  192. <!-- // 区域扫码 -->
  193. <aridRegion
  194. v-if="objData.aridRegionList.length != 0"
  195. :list="objData.aridRegionList"
  196. :remainingTime="remainingTime"
  197. @handleScan="handleScan"
  198. :isType="true"
  199. ></aridRegion>
  200. <!-- //包装扫码 -->
  201. <!-- <view v-if="clientEnvironmentId != 2 && objData.singleReport !== 1">
  202. <packingBom
  203. :taskId="taskId"
  204. :workOrderId="id"
  205. :objData="objData"
  206. ref="packRef"
  207. v-if="taskType == 4 && clientEnvironmentId != 3 && objData"
  208. :categoryId="categoryId"
  209. >
  210. </packingBom>
  211. </view> -->
  212. <!-- 通用包装 -->
  213. <view v-if="clientEnvironmentId != 3">
  214. <packingBom
  215. :taskId="taskId"
  216. :workOrderId="id"
  217. :objData="objData"
  218. ref="packRef"
  219. v-if="taskType == 4 && clientEnvironmentId != 3 && objData"
  220. :categoryId="categoryId"
  221. >
  222. </packingBom>
  223. </view>
  224. <div
  225. v-if="
  226. objData &&
  227. taskType == 4 &&
  228. clientEnvironmentId == 3 &&
  229. objData.singleReport == 0
  230. "
  231. >
  232. <packingBom
  233. :taskId="taskId"
  234. :workOrderId="id"
  235. :objData="objData"
  236. ref="packRef"
  237. v-if="taskType == 4 && objData"
  238. :categoryId="categoryId"
  239. >
  240. </packingBom>
  241. </div>
  242. <!-- 碳谷 包装扫码 -->
  243. <!-- <packingTgBom
  244. v-if="
  245. objData.pickOutInList &&
  246. objData.pickOutInList.length != 0 &&
  247. taskType == 4 &&
  248. clientEnvironmentId == 3
  249. "
  250. :list="objData.pickOutInList"
  251. :objData="objData"
  252. :item="objData"
  253. ></packingTgBom> -->
  254. <view class="operate_box rx-sc">
  255. <u-button
  256. size="small"
  257. class="u-reset-button"
  258. type="success"
  259. @click="handAdd"
  260. >手动添加</u-button
  261. >
  262. </view>
  263. <view style="height: 100rpx"></view>
  264. </view>
  265. </u-list>
  266. </view>
  267. <view :class="[operateBtn ? 'flex_btn' : 'flex_btn2']">
  268. <image
  269. v-if="operateBtn"
  270. class="jiantou"
  271. src="../../../../static/rightJt.png"
  272. @click="operateBtn = false"
  273. >
  274. </image>
  275. <view class="close_box" @click="operateBtn = true">
  276. <image
  277. v-if="!operateBtn"
  278. class="close"
  279. src="../../../../static/close.png"
  280. ></image>
  281. </view>
  282. <view v-if="!operateBtn" @click="removeCacheFn()">清空缓存</view>
  283. <view v-if="!operateBtn" @click="switchOrder = true">切换工单</view>
  284. </view>
  285. <view class="bottom-wrapper">
  286. <view class="btn_box" @click="save(1)">缓存</view>
  287. <view class="btn_box" @click="save(2)">一键报工</view>
  288. </view>
  289. <SearchPopup mode="bottom" v-if="searchShow">
  290. <template v-slot:list>
  291. <view class="search_list">
  292. <u-form
  293. labelPosition="left"
  294. :model="formData"
  295. labelWidth="180"
  296. labelAlign="left"
  297. class="baseForm"
  298. >
  299. <u-form-item
  300. label="仓库:"
  301. class="required-form"
  302. borderBottom
  303. prop="warehouseId"
  304. >
  305. <zxz-uni-data-select
  306. :localdata="warehouseList"
  307. v-model="formData.warehouseId"
  308. dataValue="id"
  309. dataKey="name"
  310. filterable
  311. format="{name}"
  312. ></zxz-uni-data-select>
  313. </u-form-item>
  314. </u-form>
  315. </view>
  316. </template>
  317. <template v-slot:operate>
  318. <view class="operate_box rx-bc">
  319. <u-button size="small" class="u-reset-button" @click="searchCancel">
  320. 取消
  321. </u-button>
  322. <u-button
  323. type="success"
  324. size="small"
  325. class="u-reset-button"
  326. @click="popupOk"
  327. >
  328. 确定
  329. </u-button>
  330. </view>
  331. </template>
  332. </SearchPopup>
  333. <SearchPopup mode="center" v-if="switchOrder">
  334. <template v-slot:list>
  335. <view class="search_list2">
  336. <u-form
  337. labelPosition="left"
  338. :model="formData"
  339. labelWidth="180"
  340. labelAlign="left"
  341. class="baseForm"
  342. >
  343. <u-form-item
  344. label="工单:"
  345. class="required-form"
  346. borderBottom
  347. prop="warehouseId"
  348. >
  349. <zxz-uni-data-select
  350. :localdata="warehouseList"
  351. v-model="formData.warehouseId"
  352. dataValue="id"
  353. dataKey="name"
  354. filterable
  355. format="{name}"
  356. ></zxz-uni-data-select>
  357. </u-form-item>
  358. </u-form>
  359. </view>
  360. </template>
  361. <template v-slot:operate>
  362. <view class="operate_box rx-bc">
  363. <u-button
  364. size="small"
  365. class="u-reset-button"
  366. @click="switchOrder = false"
  367. >
  368. 取消
  369. </u-button>
  370. <u-button type="success" size="small" class="u-reset-button">
  371. 确定
  372. </u-button>
  373. </view>
  374. </template>
  375. </SearchPopup>
  376. </view>
  377. </template>
  378. <script>
  379. import {
  380. getByIdReport,
  381. outSourceGetByIdReport,
  382. getByCodeReport,
  383. jobSave,
  384. } from "@/api/pda/jobBooking.js";
  385. import {
  386. scanLedger,
  387. getWarehouseList,
  388. saveCache,
  389. getCache,
  390. removeCache,
  391. } from "@/api/pda/workOrder.js";
  392. import workOrderBom from "../../feeding/components/workOrderBom.vue";
  393. import deviceBom from "../../feeding/components/deviceBom.vue";
  394. import modelBom from "../../feeding/components/modelBom.vue";
  395. import jobBom from "../components/jobBom.vue";
  396. import singleJobBom from "../components/singleJobBom.vue";
  397. import palletBom from "../components/palletBom.vue";
  398. import oneJobBom from "../components/oneJobBom.vue";
  399. import semiProductJobBom from "../components/semiProductJobBom.vue";
  400. import semiProductJobBomPL from "../components/semiProductJobBomPL.vue";
  401. import byProductBom from "../components/byProductBom";
  402. import turnoverBom from "../components/turnoverBom.vue";
  403. import aridRegion from "../../feeding/components/aridRegion.vue";
  404. import paramBom from "../../feeding/components/paramBom.vue";
  405. import packingBom from "../components/packingBom.vue";
  406. import packingTgBom from "../components/packingTgBom";
  407. import revolvingDiskBom from "../../feeding/components/revolvingDiskBom.vue";
  408. import SearchPopup from "../../components/searchPopup.vue";
  409. import oneJobQualityBom from "../components/oneJobQualityBom.vue";
  410. import oneJobQualityBomPL from "../components/oneJobQualityBomPL.vue";
  411. import batchJobBom from "../components/batchJobBom.vue";
  412. import workInProgressList from "../components/workInProgressList.vue";
  413. export default {
  414. components: {
  415. workOrderBom,
  416. deviceBom,
  417. modelBom,
  418. jobBom,
  419. singleJobBom,
  420. palletBom,
  421. oneJobBom,
  422. semiProductJobBom,
  423. semiProductJobBomPL,
  424. byProductBom,
  425. turnoverBom,
  426. aridRegion,
  427. paramBom,
  428. packingBom,
  429. packingTgBom,
  430. revolvingDiskBom,
  431. SearchPopup,
  432. oneJobQualityBom,
  433. oneJobQualityBomPL,
  434. batchJobBom,
  435. workInProgressList,
  436. },
  437. data() {
  438. return {
  439. title: "",
  440. taskType: 1,
  441. isLoad: true,
  442. categoryId: "",
  443. objData: {
  444. formedNumLast: 0,
  445. product: [],
  446. equipmentList: [],
  447. modelList: [],
  448. turnover: [],
  449. productRecycleList: [],
  450. aridRegionList: [],
  451. palletList: [],
  452. workReportInfo: {},
  453. notFormedList: [], // 报工-不合格
  454. },
  455. searchShow: false,
  456. switchOrder: false,
  457. warehouseList: [],
  458. formData: {
  459. warehouseId: "",
  460. },
  461. penalizeIndex: null,
  462. paramDetailList: [],
  463. remainingTime: 0,
  464. id: null,
  465. taskId: null,
  466. clientEnvironmentId:
  467. uni.getStorageSync("userInfo") &&
  468. uni.getStorageSync("userInfo").clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  469. operateBtn: true,
  470. isOutsource: 0,
  471. };
  472. },
  473. onLoad(options) {
  474. console.log(options, "optionsoptions");
  475. this.info = options.info;
  476. this.title = options.taskName ? options.taskName + "-报工" : "报工";
  477. this.taskType = options.taskType;
  478. this.id = options.id;
  479. this.taskId = options.taskId;
  480. this.isOutsource = options.isOutsource;
  481. this.categoryId = options.categoryId;
  482. this.singleReport = options.singleReport; // 单个报工 1是单 2多
  483. this.getList();
  484. },
  485. onShow() {
  486. uni.$off("setSelectList");
  487. uni.$on("setSelectList", (selectList, id) => {
  488. let turnover = [];
  489. let equipmentList = []; // 生产设备
  490. let isEquipment = this.objData.equipmentList.length > 0 ? true : false; // 判断是否有设置
  491. selectList.forEach((f) => {
  492. if (f.rootCategoryLevelId == 4) {
  493. // 生产设备
  494. if (isEquipment) {
  495. equipmentList = this.objData.equipmentList;
  496. } else {
  497. equipmentList = equipmentList.concat(f);
  498. }
  499. }
  500. if (f.rootCategoryLevelId == 7) {
  501. // 周转车
  502. turnover = turnover.concat(f);
  503. }
  504. });
  505. this.$set(this.objData, "equipmentList", equipmentList);
  506. this.$set(this.objData, "turnover", turnover);
  507. this.$forceUpdate();
  508. });
  509. },
  510. methods: {
  511. weightEmit(formedWeight, notFormedWeight) {
  512. this.$refs.jobReftg.fWeightInput(formedWeight, notFormedWeight);
  513. this.$nextTick(() => {
  514. this.$set(this.objData.workReportInfo, "formedWeight", formedWeight);
  515. this.$set(
  516. this.objData.workReportInfo,
  517. "notFormedWeight",
  518. notFormedWeight
  519. );
  520. });
  521. this.$forceUpdate();
  522. },
  523. // 相机扫码
  524. HandlScanCode() {
  525. uni.scanCode({
  526. success: (res) => {
  527. this.scanItAllData(res.result);
  528. },
  529. });
  530. },
  531. scanItAllData(result) {
  532. scanLedger(result).then((res) => {
  533. if (res[0].rootCategoryLevelId == 4) {
  534. // 设备
  535. let isFals = this.objData.equipmentList.some((m) => m.code == result);
  536. if (isFals) {
  537. uni.showToast({
  538. title: "设备已存在",
  539. icon: "none",
  540. });
  541. return false;
  542. }
  543. this.objData.equipmentList.push(res[0]);
  544. this.$forceUpdate();
  545. }
  546. if (res.length >= 1 && res[0].rootCategoryLevelId == 5) {
  547. // 磨具
  548. if (this.objData.modelList.length == 0) {
  549. this.objData.modelList = res;
  550. this.$forceUpdate();
  551. } else {
  552. if (this.objData.modelList[0].instanceId != res[0].instanceId) {
  553. uni.showToast({
  554. title: "模具不匹配",
  555. icon: "none",
  556. });
  557. } else {
  558. uni.showToast({
  559. title: "设备匹配成功",
  560. icon: "none",
  561. });
  562. }
  563. }
  564. } else if (res.length == 1 && res[0].rootCategoryLevelId == 7) {
  565. // 周转车
  566. let isFals = this.objData.turnover.some((m) => m.code == result);
  567. if (isFals) {
  568. uni.showToast({
  569. title: "周转车已存在",
  570. icon: "none",
  571. });
  572. return false;
  573. }
  574. this.objData.turnover.push(res[0]);
  575. this.$forceUpdate();
  576. }
  577. });
  578. },
  579. handleScan(id, type) {
  580. uni.scanCode({
  581. success: (res) => {
  582. this.scanData(res.result, type, id);
  583. },
  584. });
  585. },
  586. scanData(result, type, id) {
  587. if (type == "wordOrder") {
  588. getByCodeReport(result, this.taskId).then((res) => {
  589. this.objData = res;
  590. if (!this.objData.hasOwnProperty("turnover")) {
  591. this.objData["turnover"] = [];
  592. }
  593. if (!this.objData.hasOwnProperty("aridRegionList")) {
  594. this.objData["aridRegionList"] = [];
  595. }
  596. });
  597. } else if (type == "turnover") {
  598. let isFals = this.objData.turnover.some((m) => m.code == result);
  599. if (isFals) {
  600. uni.showToast({
  601. title: "周转车已存在",
  602. icon: "none",
  603. });
  604. return false;
  605. }
  606. getByCodeReport(result, this.taskId).then((res) => {
  607. this.objData.turnover[id] = res;
  608. });
  609. }
  610. },
  611. formedNumFn(num) {
  612. console.log(999, num);
  613. this.$refs.jobRef.setFormedNum(num);
  614. },
  615. getList() {
  616. this.isLoad = false;
  617. let URL = this.isOutsource == 0 ? getByIdReport : outSourceGetByIdReport;
  618. console.log(URL, "URLURLURL");
  619. URL(this.id, this.taskId)
  620. .then((res) => {
  621. // currentTaskDiagram 有是否可以报工
  622. this.objData = res;
  623. console.log(22, res);
  624. if (!this.objData.hasOwnProperty("turnover")) {
  625. this.objData["turnover"] = [];
  626. }
  627. if (!this.objData.hasOwnProperty("aridRegionList")) {
  628. this.objData["aridRegionList"] = [];
  629. }
  630. if (!this.objData.hasOwnProperty("instanceList")) {
  631. this.objData["instanceList"] = [];
  632. }
  633. if (!this.objData.hasOwnProperty("palletList")) {
  634. this.objData["palletList"] = [];
  635. }
  636. if (!this.objData.hasOwnProperty("revolvingDiskList")) {
  637. this.objData["revolvingDiskList"] = [];
  638. }
  639. // this.taskType = res.currentTaskDiagram.type
  640. if (this.objData.palletList.length > 0) {
  641. this.objData.palletList = this.objData.palletList.map((m) => {
  642. return {
  643. hideKc: true, // 不显示库存
  644. quantity: m.feedQuantity,
  645. ...m,
  646. };
  647. });
  648. } else {
  649. // this.objData.palletList = [{
  650. // categoryLevelId: '',
  651. // categoryLevelName: '',
  652. // categoryId: '',
  653. // rootCategoryLevelId: '',
  654. // code: '',
  655. // name: '',
  656. // specification: '',
  657. // brandNum: '',
  658. // modelType: '',
  659. // quantity: '',
  660. // unit: '',
  661. // }]
  662. }
  663. if (
  664. (this.taskType == 6 || this.isOutsource == 1) &&
  665. this.clientEnvironmentId == 3
  666. ) {
  667. this.objData.semiProductList = this.objData.pickOutInList;
  668. }
  669. if (this.taskType == 4 && this.clientEnvironmentId == 3) {
  670. this.objData.semiProductList = this.objData.pickOutInList;
  671. }
  672. // if (this.taskId == 6 || this.isOutsource == 1) {
  673. // this.objData.product = this.objData.pickOutInList;
  674. // }
  675. if (
  676. (this.taskType == 6 || this.taskType == 4) &&
  677. this.objData.singleReport == 1 &&
  678. this.clientEnvironmentId != 3
  679. ) {
  680. if (
  681. this.objData.pickOutInList &&
  682. this.objData.pickOutInList.length != 0
  683. ) {
  684. this.objData.semiProductList = this.objData.pickOutInList;
  685. this.objData.pickOutInList = [];
  686. }
  687. }
  688. if (
  689. (this.taskType == 6 || this.taskType == 4) &&
  690. this.objData.singleReport == 0 &&
  691. this.clientEnvironmentId != 3
  692. ) {
  693. if (
  694. this.objData.pickOutInList &&
  695. this.objData.pickOutInList.length != 0
  696. ) {
  697. this.objData.product = this.objData.pickOutInList;
  698. this.objData.pickOutInList = [];
  699. }
  700. }
  701. if (
  702. this.objData.singleReport == 1 &&
  703. this.objData.currentTaskDiagram.type != 2 &&
  704. this.objData.currentTaskDiagram.type != 3 &&
  705. this.objData.currentTaskDiagram.type != 6
  706. ) {
  707. this.objData.semiProductList.map((item) => {
  708. item.extInfo.taskId = "";
  709. item.extInfo.taskName = "";
  710. });
  711. }
  712. if (
  713. this.objData.singleReport == 0 &&
  714. this.objData.currentTaskDiagram.type != 2 &&
  715. this.objData.currentTaskDiagram.type != 3 &&
  716. this.objData.currentTaskDiagram.type != 6
  717. ) {
  718. this.objData.product.map((item) => {
  719. item.extInfo.taskId = "";
  720. item.extInfo.taskName = "";
  721. });
  722. }
  723. if (
  724. this.clientEnvironmentId == 3 &&
  725. this.objData.singleReport == 0 &&
  726. this.taskType != 6
  727. ) {
  728. this.objData.semiProductList.map((a) => {
  729. a.extInfo.batchReportInfo = [
  730. {
  731. allFeedQuantity: "",
  732. allReportWeight: "",
  733. taskId: "",
  734. taskName: "",
  735. },
  736. ];
  737. a.extInfo.notBatchReportInfo = [
  738. {
  739. allFeedQuantity: "",
  740. allReportWeight: "",
  741. notType: "",
  742. taskId: "",
  743. taskName: "",
  744. notReason: "",
  745. },
  746. ];
  747. return {
  748. a,
  749. };
  750. });
  751. this.objData.semiProductList = this.objData.semiProductList;
  752. }
  753. this.objData.workReportInfo = {
  754. formingNum: null,
  755. formingWeight: null,
  756. formedNum: null,
  757. formedWeight: null,
  758. taskId: this.taskId,
  759. executorTime: "",
  760. };
  761. this.objData.notFormedList = [
  762. {
  763. notFormedNum: null,
  764. notFormedWeight: null,
  765. weightUnit: res.weightUnit,
  766. unit: res.unit,
  767. warehouseId: null, // 处置 仓库id
  768. },
  769. ];
  770. this.objData.semiProductList = this.objData.semiProductList.map(
  771. (item) => {
  772. if (this.taskType != 6) {
  773. if (item["extInfo"]?.reportWeight) {
  774. item["extInfo"].reportWeight = "";
  775. }
  776. }
  777. item.confirm = 0;
  778. console.log(item, "item");
  779. return item;
  780. }
  781. );
  782. this.objData.product = this.objData.product.map((item) => {
  783. if (this.taskType != 6) {
  784. if (item["extInfo"]?.reportWeight) {
  785. item["extInfo"].reportWeight = "";
  786. }
  787. }
  788. item.confirm = 0;
  789. console.log(item, "item");
  790. return item;
  791. });
  792. if (this.objData.semiProductList.length > 0) {
  793. // 预制体报工
  794. this.objData.workReportInfo.formedNum =
  795. this.objData.semiProductList.length;
  796. let numCot = 0;
  797. if (this.objData.semiProductList.length > 0) {
  798. this.objData.semiProductList.map((fitem) => {
  799. numCot = numCot + fitem.feedQuantity || 1;
  800. });
  801. this.objData.workReportInfo.formedNum = numCot;
  802. }
  803. } else if (this.objData.product.length > 0) {
  804. const number = this.objData.product.reduce((acc, pro) => {
  805. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  806. }, 0);
  807. this.objData.workReportInfo.formedNum = number;
  808. }
  809. this.objData.workReportInfo.formingNum = res.formingNum;
  810. this.objData.workReportInfo.formingWeight = res.formingWeight;
  811. this.objData.workReportInfo.unit = res.unit;
  812. this.objData.workReportInfo.weightUnit = res.weightUnit;
  813. this.objData.workReportInfo.workOrderId = res.workOrderId;
  814. this.paramDetailList = res.paramDetailList;
  815. console.log(this.objData, "this.objDatathis.objDatathis.objData");
  816. // this.paramDetailList = res.paramDetailList.map((m) => {
  817. // if (m.extInfo.textType == 5) {
  818. // this.remainingTime = m.extInfo.remainingTime;
  819. // }
  820. // return {
  821. // ...m.extInfo,
  822. // };
  823. // });
  824. })
  825. .finally(() => {
  826. this.isLoad = true;
  827. if (this.taskType == 1) {
  828. this.getCacheFn();
  829. }
  830. });
  831. },
  832. scrolltolower() {},
  833. handAdd() {
  834. const storageKey = Date.now() + "";
  835. uni.setStorageSync(storageKey, this.objData || {});
  836. uni.navigateTo({
  837. url: `/pages/pda/workOrder/search/index?storageKey=${storageKey}&isType=job&taskId=${this.taskId}`,
  838. });
  839. },
  840. penalize(index) {
  841. if (index || index == 0) {
  842. console.log(index, "----");
  843. this.penalizeIndex = index;
  844. this.formData.warehouseId =
  845. this.objData.productRecycleList[this.penalizeIndex].warehouseId || "";
  846. } else {
  847. this.penalizeIndex = null;
  848. this.formData.warehouseId =
  849. this.objData.notFormedList[0].warehouseId || "";
  850. console.log(this.formData.warehouseId, "+++++");
  851. }
  852. this.$forceUpdate();
  853. if (this.warehouseList.length == 0) {
  854. getWarehouseList().then((res) => {
  855. this.warehouseList = res;
  856. this.searchShow = true;
  857. });
  858. } else {
  859. this.searchShow = true;
  860. }
  861. },
  862. inputChange(e) {
  863. console.log(e);
  864. },
  865. searchCancel() {
  866. this.searchShow = false;
  867. },
  868. popupOk() {
  869. if (this.penalizeIndex == null) {
  870. this.$set(
  871. this.objData.notFormedList[0],
  872. "warehouseId",
  873. this.formData.warehouseId || null
  874. );
  875. } else {
  876. this.objData.productRecycleList[this.penalizeIndex].warehouseId =
  877. this.formData.warehouseId;
  878. }
  879. this.$forceUpdate();
  880. this.searchShow = false;
  881. },
  882. modeNum(num) {
  883. console.log(num, "------------", this.objData.modelList.length);
  884. if (this.objData.modelList.length == 0) {
  885. return false;
  886. }
  887. console.log(num);
  888. this.$refs.modelRef.setNum(num);
  889. },
  890. async save(type) {
  891. // 验证判断条件
  892. this.$isJobExls(1, this.objData);
  893. // console.log(this.objData, "this.objData");
  894. // return;
  895. // for (let i = 0; i < this.List.length; i++) {
  896. // if (
  897. // !this.List[i].executorTime &&
  898. // this.List[i].executorTime == undefined
  899. // ) {
  900. // uni.showToast({
  901. // title: `请先选择报工时间`,
  902. // icon: "none",
  903. // });
  904. // return;
  905. // }
  906. // }
  907. if (!(this.clientEnvironmentId == 3 || this.objData.singleReport !== 1)) {
  908. if (this.objData.semiProductList.length) {
  909. let arr = this.objData.semiProductList.filter(
  910. (v) => v.selected == true
  911. );
  912. this.objData.semiProductList = arr;
  913. if (!arr.length) {
  914. return uni.showToast({
  915. title: "请选择报工数量",
  916. icon: "none",
  917. });
  918. }
  919. // else{
  920. // let engraveList = arr.filter(v=> v.extInfo.engrave ==null);
  921. // if(engraveList.length){
  922. // return uni.showToast({
  923. // title: '请输入刻码',
  924. // icon: 'none'
  925. // })
  926. // }
  927. // }
  928. }
  929. }
  930. uni.showLoading({
  931. title: "加载中",
  932. });
  933. if (
  934. !this.objData.workReportInfo["formedNum"] &&
  935. this.objData.workReportInfo["formedNum"] != 0
  936. ) {
  937. uni.showToast({
  938. title: "请输入合格品数量",
  939. icon: "none",
  940. });
  941. return false;
  942. }
  943. // 预制体
  944. if (this.clientEnvironmentId == 3 || this.objData.singleReport !== 1) {
  945. if (
  946. this.objData.semiProductList.length > 0 &&
  947. this.taskType != 4 &&
  948. this.objData.singleReport == 1 &&
  949. type == 2
  950. ) {
  951. let bol;
  952. let _i;
  953. bol = this.objData.semiProductList.every((e, i) => {
  954. _i = i + 1;
  955. if (this.taskType == 6) {
  956. return e.extInfo.hasOwnProperty("taskId") && e.extInfo.taskId;
  957. } else {
  958. // if (e.extInfo.isQualified == 1 || e.extInfo.notType == 5) {
  959. // return e.extInfo.hasOwnProperty('taskId') && e.extInfo.taskId && e.extInfo
  960. // .reportWeight
  961. // } else {
  962. // return e.extInfo.hasOwnProperty('notType') && e.extInfo.notType
  963. // }
  964. return (
  965. e.extInfo.hasOwnProperty("taskId") &&
  966. e.extInfo.taskId &&
  967. e.extInfo.reportWeight
  968. );
  969. }
  970. });
  971. if (!bol) {
  972. uni.showToast({
  973. title: `请完善第${_i}处置方式`,
  974. icon: "none",
  975. });
  976. return false;
  977. }
  978. }
  979. }
  980. if (
  981. this.objData.productRecycleList.length > 0 &&
  982. this.clientEnvironmentId != 2
  983. ) {
  984. const isRecycle = await this.checkRecycle();
  985. if (!isRecycle) {
  986. return false;
  987. }
  988. }
  989. if (this.taskType == 4 && this.clientEnvironmentId != 3) {
  990. const isPack = await this.checkPack();
  991. if (!isPack) {
  992. return false;
  993. }
  994. }
  995. //
  996. // console.log(this.objData.currentTaskDiagram.isFirstTask,'22222');
  997. // if (this.objData.currentTaskDiagram.isFirstTask == 0) { // isFirstTask 1是 判断是否首工序
  998. // const isFirstTask = await this.checkFirstTask()
  999. // if (!isFirstTask) {
  1000. // return false
  1001. // }
  1002. // }
  1003. if (this.taskType == 1) {
  1004. const isCache = await this.checkCache(type);
  1005. if (!isCache) {
  1006. return false;
  1007. }
  1008. }
  1009. if (
  1010. this.clientEnvironmentId == 3 &&
  1011. type == 2 &&
  1012. this.taskType == 6 &&
  1013. this.objData.singleReport == 0
  1014. ) {
  1015. this.objData.semiProductList = [];
  1016. }
  1017. if (this.clientEnvironmentId == 3 && this.taskType == 1) {
  1018. if (
  1019. this.objData &&
  1020. this.objData.executorTime &&
  1021. this.objData.executorTime != undefined
  1022. ) {
  1023. // 正则表达式1:匹配 yyyy-MM-dd 格式
  1024. const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
  1025. if (dateRegex.test(this.objData.executorTime.trimRight())) {
  1026. this.objData.workReportInfo["executorTime"] =
  1027. this.objData.executorTime + " 00:00:00";
  1028. } else {
  1029. this.objData.workReportInfo["executorTime"] =
  1030. this.objData.executorTime;
  1031. }
  1032. } else {
  1033. uni.showToast({
  1034. title: `请先选择实际报工时间`,
  1035. icon: "none",
  1036. });
  1037. return false;
  1038. }
  1039. }
  1040. if (this.objData.semiProductList.length > 0) {
  1041. this.objData.semiProductList.map((ditem) => {
  1042. let wdid = ditem.deviceId ? ditem.deviceId.split("/") : "";
  1043. ditem.deviceId = wdid ? wdid[0] : "";
  1044. if (ditem.extInfo.batchReportInfo) {
  1045. ditem.extInfo.batchReportInfo.map((baItem) => {
  1046. let idvalue = baItem.deviceId ? baItem.deviceId.split("/") : "";
  1047. baItem.deviceId = idvalue ? idvalue[0] : "";
  1048. });
  1049. }
  1050. if (ditem.extInfo.notBatchReportInfo) {
  1051. ditem.extInfo.notBatchReportInfo.map((noItem) => {
  1052. let idvalue = noItem.deviceId ? noItem.deviceId.split("/") : "";
  1053. noItem.deviceId = idvalue ? idvalue[0] : "";
  1054. });
  1055. }
  1056. });
  1057. }
  1058. console.log(this.objData, "this.objData");
  1059. console.log(this.objData.equipmentList);
  1060. if (
  1061. this.objData.product.length != 0 &&
  1062. this.objData.equipmentList.length != 0
  1063. ) {
  1064. this.objData.product.forEach((item) => {
  1065. if (item.deviceId) {
  1066. this.objData.equipmentList.forEach((el) => {
  1067. if (item.deviceId == el.instanceId) {
  1068. item.deviceName = el.name;
  1069. }
  1070. });
  1071. }
  1072. });
  1073. }
  1074. jobSave(this.objData)
  1075. .then((res) => {
  1076. uni.hideLoading();
  1077. if (this.taskType == 4) {
  1078. uni.showModal({
  1079. title: "提示",
  1080. content: "打包完成是否去入库!",
  1081. confirmText: "确认", //这块是确定按钮的文字
  1082. success: (rr) => {
  1083. if (rr.confirm) {
  1084. uni.redirectTo({
  1085. url: `/pages/pda/warehousing/index?workOrderId=${this.id}&taskId=-1&workReportId=${res}&delta=-2`,
  1086. });
  1087. } else {
  1088. uni.navigateBack();
  1089. }
  1090. },
  1091. });
  1092. } else {
  1093. uni.navigateBack();
  1094. }
  1095. })
  1096. .finally(() => {
  1097. setTimeout(function () {
  1098. uni.hideLoading();
  1099. }, 3000);
  1100. });
  1101. },
  1102. checkRecycle() {
  1103. uni.hideLoading();
  1104. return new Promise((resolve) => {
  1105. uni.showModal({
  1106. title: "提示",
  1107. content: "是否跳过副产品回收处置!",
  1108. confirmText: "确认", //这块是确定按钮的文字
  1109. success: function (res) {
  1110. if (res.confirm) {
  1111. resolve(true);
  1112. } else {
  1113. resolve(false);
  1114. }
  1115. },
  1116. });
  1117. });
  1118. },
  1119. checkPack() {
  1120. uni.hideLoading();
  1121. return new Promise((resolve) => {
  1122. let packInfo = this.$refs.packRef.getData();
  1123. this.objData.packInfo = packInfo;
  1124. this.objData.taskType = this.taskType;
  1125. let formedNumLast = 0;
  1126. if (this.objData.singleReport == 1) {
  1127. formedNumLast = this.objData.semiProductList.reduce((acc, pro) => {
  1128. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  1129. }, 0);
  1130. } else if (this.objData.singleReport == 0) {
  1131. formedNumLast = this.objData.product.reduce((acc, pro) => {
  1132. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  1133. }, 0);
  1134. }
  1135. if (
  1136. formedNumLast !=
  1137. Number(this.objData.workReportInfo["formedNum"]) +
  1138. Number(this.objData.workReportInfo.notFormedNum)
  1139. ) {
  1140. uni.hideLoading();
  1141. uni.showModal({
  1142. title: "提示",
  1143. content: "合格品数量加不合格品数量不等于包装总数!",
  1144. confirmText: "确认", //这块是确定按钮的文字
  1145. success: function (res) {
  1146. if (res.confirm) {
  1147. resolve(true);
  1148. } else {
  1149. resolve(false);
  1150. }
  1151. },
  1152. });
  1153. } else {
  1154. resolve(true);
  1155. }
  1156. });
  1157. },
  1158. checkFirstTask() {
  1159. uni.hideLoading();
  1160. return new Promise((resolve) => {
  1161. if (
  1162. this.objData.formedNumLast !=
  1163. Number(this.objData.workReportInfo["formedNum"]) +
  1164. Number(this.objData.workReportInfo.notFormedNum)
  1165. ) {
  1166. uni.showModal({
  1167. title: "提示",
  1168. content: "合格品数量加不合格品数量不等于上道工序数量!",
  1169. confirmText: "确认", //这块是确定按钮的文字
  1170. success: function (res) {
  1171. if (res.confirm) {
  1172. resolve(true);
  1173. } else {
  1174. resolve(false);
  1175. }
  1176. },
  1177. });
  1178. } else {
  1179. resolve(true);
  1180. }
  1181. });
  1182. },
  1183. checkCache(type) {
  1184. uni.hideLoading();
  1185. return new Promise((resolve) => {
  1186. if (type == 1) {
  1187. saveCache(this.objData).then((rr) => {
  1188. uni.showToast({
  1189. title: `已经缓存`,
  1190. icon: "none",
  1191. });
  1192. });
  1193. resolve(false);
  1194. } else if (type == 2) {
  1195. resolve(true);
  1196. }
  1197. });
  1198. },
  1199. removeCacheFn() {
  1200. uni.showModal({
  1201. title: "缓存",
  1202. content: "是否清空缓存!",
  1203. confirmText: "确认", //这块是确定按钮的文字
  1204. success: (rr) => {
  1205. if (rr.confirm) {
  1206. let parma = {
  1207. workOrderIds: [this.id],
  1208. taskId: this.taskId,
  1209. type: 1,
  1210. };
  1211. removeCache(parma).then((res) => {
  1212. this.getList();
  1213. });
  1214. }
  1215. },
  1216. });
  1217. },
  1218. getCacheFn() {
  1219. let parma = {
  1220. workOrderId: this.id,
  1221. taskId: this.taskId,
  1222. type: 1,
  1223. };
  1224. getCache(parma).then((res) => {
  1225. if (
  1226. !res ||
  1227. res.length < 0 ||
  1228. Object.getOwnPropertyNames(res).length === 0
  1229. ) {
  1230. return false;
  1231. }
  1232. this.objData["product"] = res.extInfo.product;
  1233. this.objData["workReportInfo"] = res.extInfo.workReportInfo;
  1234. this.objData["notFormedList"] = res.extInfo.notFormedList;
  1235. this.objData["turnover"] = res.extInfo.turnover;
  1236. this.objData["productRecycleList"] = res.extInfo.productRecycleList;
  1237. this.objData["semiProductList"] = res.extInfo.semiProductList;
  1238. this.objData["modelList"] = res.extInfo.modelList;
  1239. });
  1240. },
  1241. //批量报工合格不合格重量统计
  1242. countNumPl(list, index) {
  1243. //合格总数
  1244. let formedNumCount = 0;
  1245. //合格总重量
  1246. let formedWeightCount = 0;
  1247. //不合格总数
  1248. let notFormedNumCount = 0;
  1249. //不合格总重量
  1250. let notFormedWeightCount = 0;
  1251. list.map((item) => {
  1252. //合格总数
  1253. item.extInfo.batchReportInfo.forEach((m) => {
  1254. formedNumCount = formedNumCount + Number(m.allFeedQuantity || 0);
  1255. });
  1256. //合格总重量
  1257. item.extInfo.batchReportInfo.forEach((w) => {
  1258. formedWeightCount =
  1259. formedWeightCount + Number(w.allReportWeight || 0);
  1260. });
  1261. //不合格总数
  1262. item.extInfo.notBatchReportInfo.forEach((nf) => {
  1263. notFormedNumCount =
  1264. notFormedNumCount + Number(nf.allFeedQuantity || 0);
  1265. });
  1266. //不合格总重量
  1267. item.extInfo.notBatchReportInfo.forEach((nw) => {
  1268. notFormedWeightCount =
  1269. notFormedWeightCount + Number(nw.allReportWeight || 0);
  1270. });
  1271. });
  1272. this.$set(this.objData.workReportInfo, "formedNum", formedNumCount); //合格总数
  1273. this.$set(this.objData.workReportInfo, "formedWeight", formedWeightCount); //合格总重量
  1274. this.$set(this.objData.workReportInfo, "notFormedNum", notFormedNumCount); //不合格总数
  1275. this.$set(
  1276. this.objData.workReportInfo,
  1277. "notFormedWeight",
  1278. notFormedWeightCount
  1279. ); //不合格总重量
  1280. // this.$refs.jobReftg.formedTotal(
  1281. // formedNumCount,
  1282. // formedWeightCount,
  1283. // notFormedNumCount,
  1284. // notFormedWeightCount
  1285. // );
  1286. // console.log("777777777777777", this.objData);
  1287. this.objData = this.deepCopy(this.objData);
  1288. this.$forceUpdate();
  1289. },
  1290. deepCopy(obj, hash = new WeakMap()) {
  1291. if (obj === null) return null;
  1292. if (obj instanceof Date) return new Date(obj);
  1293. if (obj instanceof RegExp) return new RegExp(obj);
  1294. if (typeof obj !== "object" && typeof obj !== "function") return obj;
  1295. if (hash.has(obj)) return hash.get(obj);
  1296. const result = Array.isArray(obj) ? [] : {};
  1297. hash.set(obj, result);
  1298. return Object.keys(obj).reduce((acc, key) => {
  1299. acc[key] = this.deepCopy(obj[key], hash);
  1300. return acc;
  1301. }, result);
  1302. },
  1303. },
  1304. beforeDestroy() {
  1305. uni.hideLoading();
  1306. },
  1307. };
  1308. </script>
  1309. <style lang="scss" scoped>
  1310. .content-box {
  1311. height: 100vh;
  1312. overflow: hidden;
  1313. display: flex;
  1314. flex-direction: column;
  1315. }
  1316. .list_box {
  1317. flex: 1;
  1318. overflow: hidden;
  1319. padding: 4rpx 0;
  1320. .u-list {
  1321. height: 100% !important;
  1322. }
  1323. .card_box {
  1324. padding: 16rpx 20rpx;
  1325. }
  1326. }
  1327. .bottom-wrapper {
  1328. width: 100%;
  1329. display: flex;
  1330. align-items: center;
  1331. justify-content: space-around;
  1332. .btn_box {
  1333. width: 50%;
  1334. height: 88rpx;
  1335. line-height: 88rpx;
  1336. background: $theme-color;
  1337. text-align: center;
  1338. font-size: 36rpx;
  1339. font-style: normal;
  1340. font-weight: 400;
  1341. color: #fff;
  1342. &:first-child {
  1343. border-right: 2rpx solid #fff;
  1344. }
  1345. }
  1346. }
  1347. .operate_box {
  1348. padding: 10rpx 160rpx;
  1349. /deep/ .u-button {
  1350. width: 160rpx;
  1351. }
  1352. }
  1353. .search_list {
  1354. min-height: 500rpx;
  1355. padding: 0 32rpx;
  1356. }
  1357. .search_list2 {
  1358. min-height: 120rpx;
  1359. padding: 0 32rpx;
  1360. }
  1361. .flex_btn {
  1362. position: fixed;
  1363. right: 0;
  1364. bottom: 160rpx;
  1365. width: 40rpx;
  1366. height: 50rpx;
  1367. line-height: 66rpx;
  1368. border-radius: 22rpx 0 0 22rpx;
  1369. background: $theme-color;
  1370. text-align: center;
  1371. font-size: 22rpx;
  1372. font-style: normal;
  1373. font-weight: 400;
  1374. color: #fff;
  1375. opacity: 0.6;
  1376. .jiantou {
  1377. width: 30rpx;
  1378. height: 30rpx;
  1379. }
  1380. }
  1381. .flex_btn2 {
  1382. position: fixed;
  1383. right: 0;
  1384. bottom: 160rpx;
  1385. width: 126rpx;
  1386. min-height: 140rpx;
  1387. line-height: 62rpx;
  1388. border-radius: 22rpx 0 0 22rpx;
  1389. background: $theme-color;
  1390. text-align: center;
  1391. font-size: 22rpx;
  1392. font-style: normal;
  1393. font-weight: 400;
  1394. color: #fff;
  1395. opacity: 0.7;
  1396. .close_box {
  1397. height: 50rpx;
  1398. line-height: 50rpx;
  1399. width: 126rpx;
  1400. text-align: left;
  1401. .close {
  1402. width: 40rpx;
  1403. height: 40rpx;
  1404. padding: 6rpx 10rpx;
  1405. }
  1406. }
  1407. }
  1408. </style>