index.vue 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584
  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="Object.keys(objData.workReportInfo).length != 0"
  23. pType="job"
  24. :taskType="taskType"
  25. @handleScan="handleScan"
  26. :isReportWork="true"
  27. >
  28. </workOrderBom>
  29. <paramBom
  30. v-if="paramDetailList.length != 0"
  31. :list="paramDetailList"
  32. ></paramBom>
  33. <!-- 设备信息 -->
  34. <deviceBom
  35. v-if="objData.equipmentList.length != 0"
  36. :list="objData.equipmentList"
  37. :ishuoWei="false"
  38. :wordItem="objData"
  39. :isDetails="true"
  40. >
  41. </deviceBom>
  42. <modelBom
  43. v-if="objData.modelList.length != 0"
  44. :list="objData.modelList"
  45. pattern="job"
  46. ref="modelRef"
  47. >
  48. </modelBom>
  49. <!-- 1报工信息 -->
  50. <!-- <view v-if="clientEnvironmentId == 3">
  51. <view v-if="objData.singleReport !== 1">
  52. <jobBom
  53. v-if="isLoad"
  54. :item="objData"
  55. ref="jobReftg"
  56. :notFormed="objData.notFormedList"
  57. @penalize="penalize"
  58. @modeNum="modeNum"
  59. ></jobBom>
  60. </view>
  61. </view> -->
  62. <!-- <view>3333</view> -->
  63. <!-- <view v-if=""></view> -->
  64. <!-- 单独报工报工信息 -->
  65. <!-- single -->
  66. <singleJobBom
  67. v-if="objData.singleReport == 1"
  68. :item="objData"
  69. ref="jobRef"
  70. :notFormed="objData.notFormedList"
  71. @penalize="penalize"
  72. @modeNum="modeNum"
  73. ></singleJobBom>
  74. <!-- 批量报工 -->
  75. <batchJobBom
  76. v-else-if="
  77. objData.currentTaskDiagram &&
  78. objData.currentTaskDiagram.type &&
  79. objData.singleReport == 0 &&
  80. clientEnvironmentId != 3
  81. "
  82. :item="objData"
  83. ref="jobRef"
  84. :notFormed="objData.notFormedList"
  85. :currentTask="objData.currentTaskDiagram"
  86. @penalize="penalize"
  87. @modeNum="modeNum"
  88. ></batchJobBom>
  89. <!-- <batchJobBom
  90. v-if="
  91. objData.currentTaskDiagram &&
  92. objData.currentTaskDiagram.type &&
  93. objData.singleReport == 0
  94. "
  95. :item="objData"
  96. ref="jobRef"
  97. :notFormed="objData.notFormedList"
  98. :currentTask="objData.currentTaskDiagram"
  99. @penalize="penalize"
  100. @modeNum="modeNum"
  101. ></batchJobBom> -->
  102. <palletBom
  103. v-if="objData.palletList.length != 0"
  104. :palletList="objData.palletList"
  105. ></palletBom>
  106. <revolvingDiskBom
  107. v-if="isLoad && objData.revolvingDiskList.length > 0"
  108. pattern="job"
  109. :revolvingDiskList="objData.revolvingDiskList"
  110. ></revolvingDiskBom>
  111. <!-- <oneJobBom
  112. v-if='objData.instanceList && objData.instanceList.length != 0 && taskType != 4 && taskType != 6'
  113. :item='objData' :list='objData.instanceList'>
  114. </oneJobBom> -->
  115. <!-- -->
  116. <!-- 报工信息 列表 -->
  117. <view v-if="clientEnvironmentId != 3 && objData.singleReport == 1">
  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. executorTime: "",
  454. notFormedList: [], // 报工-不合格
  455. },
  456. searchShow: false,
  457. switchOrder: false,
  458. warehouseList: [],
  459. formData: {
  460. warehouseId: "",
  461. },
  462. penalizeIndex: null,
  463. paramDetailList: [],
  464. remainingTime: 0,
  465. id: null,
  466. taskId: null,
  467. clientEnvironmentId:
  468. uni.getStorageSync("userInfo") &&
  469. uni.getStorageSync("userInfo").clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  470. operateBtn: true,
  471. isOutsource: 0,
  472. };
  473. },
  474. onLoad(options) {
  475. console.log(options, "optionsoptions");
  476. this.info = options.info;
  477. this.title = options.taskName ? options.taskName + "-报工" : "报工";
  478. this.taskType = options.taskType;
  479. this.id = options.id;
  480. this.taskId = options.taskId;
  481. this.isOutsource = options.isOutsource;
  482. this.categoryId = options.categoryId;
  483. this.singleReport = options.singleReport; // 单个报工 1是单 2多
  484. this.getList();
  485. },
  486. onShow() {
  487. uni.$off("setSelectList");
  488. uni.$on("setSelectList", (selectList, id) => {
  489. let turnover = [];
  490. let equipmentList = []; // 生产设备
  491. let isEquipment = this.objData.equipmentList.length > 0 ? true : false; // 判断是否有设置
  492. selectList.forEach((f) => {
  493. if (f.rootCategoryLevelId == 4) {
  494. // 生产设备
  495. if (isEquipment) {
  496. equipmentList = this.objData.equipmentList;
  497. } else {
  498. equipmentList = equipmentList.concat(f);
  499. }
  500. }
  501. if (f.rootCategoryLevelId == 7) {
  502. // 周转车
  503. turnover = turnover.concat(f);
  504. }
  505. });
  506. this.$set(this.objData, "equipmentList", equipmentList);
  507. this.$set(this.objData, "turnover", turnover);
  508. this.$forceUpdate();
  509. });
  510. },
  511. methods: {
  512. weightEmit(formedWeight, notFormedWeight) {
  513. this.$refs.jobReftg.fWeightInput(formedWeight, notFormedWeight);
  514. this.$nextTick(() => {
  515. this.$set(this.objData.workReportInfo, "formedWeight", formedWeight);
  516. this.$set(
  517. this.objData.workReportInfo,
  518. "notFormedWeight",
  519. notFormedWeight
  520. );
  521. });
  522. this.$forceUpdate();
  523. },
  524. // 相机扫码
  525. HandlScanCode() {
  526. uni.scanCode({
  527. success: (res) => {
  528. this.scanItAllData(res.result);
  529. },
  530. });
  531. },
  532. scanItAllData(result) {
  533. scanLedger(result).then((res) => {
  534. if (res[0].rootCategoryLevelId == 4) {
  535. // 设备
  536. let isFals = this.objData.equipmentList.some((m) => m.code == result);
  537. if (isFals) {
  538. uni.showToast({
  539. title: "设备已存在",
  540. icon: "none",
  541. });
  542. return false;
  543. }
  544. this.objData.equipmentList.push(res[0]);
  545. this.$forceUpdate();
  546. }
  547. if (res.length >= 1 && res[0].rootCategoryLevelId == 5) {
  548. // 磨具
  549. if (this.objData.modelList.length == 0) {
  550. this.objData.modelList = res;
  551. this.$forceUpdate();
  552. } else {
  553. if (this.objData.modelList[0].instanceId != res[0].instanceId) {
  554. uni.showToast({
  555. title: "模具不匹配",
  556. icon: "none",
  557. });
  558. } else {
  559. uni.showToast({
  560. title: "设备匹配成功",
  561. icon: "none",
  562. });
  563. }
  564. }
  565. } else if (res.length == 1 && res[0].rootCategoryLevelId == 7) {
  566. // 周转车
  567. let isFals = this.objData.turnover.some((m) => m.code == result);
  568. if (isFals) {
  569. uni.showToast({
  570. title: "周转车已存在",
  571. icon: "none",
  572. });
  573. return false;
  574. }
  575. this.objData.turnover.push(res[0]);
  576. this.$forceUpdate();
  577. }
  578. });
  579. },
  580. handleScan(id, type) {
  581. uni.scanCode({
  582. success: (res) => {
  583. this.scanData(res.result, type, id);
  584. },
  585. });
  586. },
  587. scanData(result, type, id) {
  588. if (type == "wordOrder") {
  589. getByCodeReport(result, this.taskId).then((res) => {
  590. this.objData = res;
  591. if (!this.objData.hasOwnProperty("turnover")) {
  592. this.objData["turnover"] = [];
  593. }
  594. if (!this.objData.hasOwnProperty("aridRegionList")) {
  595. this.objData["aridRegionList"] = [];
  596. }
  597. });
  598. } else if (type == "turnover") {
  599. let isFals = this.objData.turnover.some((m) => m.code == result);
  600. if (isFals) {
  601. uni.showToast({
  602. title: "周转车已存在",
  603. icon: "none",
  604. });
  605. return false;
  606. }
  607. getByCodeReport(result, this.taskId).then((res) => {
  608. this.objData.turnover[id] = res;
  609. });
  610. }
  611. },
  612. formedNumFn(num) {
  613. console.log(999, num);
  614. this.$refs.jobRef.setFormedNum(num);
  615. },
  616. async getList() {
  617. this.isLoad = false;
  618. let URL = this.isOutsource == 0 ? getByIdReport : outSourceGetByIdReport;
  619. console.log(URL, "URLURLURL");
  620. await URL(this.id, this.taskId)
  621. .then((res) => {
  622. // currentTaskDiagram 有是否可以报工
  623. this.objData = res;
  624. console.log(22, res);
  625. if (!this.objData.hasOwnProperty("turnover")) {
  626. this.objData["turnover"] = [];
  627. }
  628. if (!this.objData.hasOwnProperty("aridRegionList")) {
  629. this.objData["aridRegionList"] = [];
  630. }
  631. if (!this.objData.hasOwnProperty("instanceList")) {
  632. this.objData["instanceList"] = [];
  633. }
  634. if (!this.objData.hasOwnProperty("palletList")) {
  635. this.objData["palletList"] = [];
  636. }
  637. if (!this.objData.hasOwnProperty("revolvingDiskList")) {
  638. this.objData["revolvingDiskList"] = [];
  639. }
  640. // this.taskType = res.currentTaskDiagram.type
  641. if (this.objData.palletList.length > 0) {
  642. this.objData.palletList = this.objData.palletList.map((m) => {
  643. return {
  644. hideKc: true, // 不显示库存
  645. quantity: m.feedQuantity,
  646. ...m,
  647. };
  648. });
  649. } else {
  650. // this.objData.palletList = [{
  651. // categoryLevelId: '',
  652. // categoryLevelName: '',
  653. // categoryId: '',
  654. // rootCategoryLevelId: '',
  655. // code: '',
  656. // name: '',
  657. // specification: '',
  658. // brandNum: '',
  659. // modelType: '',
  660. // quantity: '',
  661. // unit: '',
  662. // }]
  663. }
  664. if (
  665. (this.taskType == 6 || this.isOutsource == 1) &&
  666. this.clientEnvironmentId == 3
  667. ) {
  668. this.objData.semiProductList = this.objData.pickOutInList;
  669. }
  670. if (this.taskType == 4 && this.clientEnvironmentId == 3) {
  671. this.objData.semiProductList = this.objData.pickOutInList;
  672. }
  673. // if (this.taskId == 6 || this.isOutsource == 1) {
  674. // this.objData.product = this.objData.pickOutInList;
  675. // }
  676. if (
  677. (this.taskType == 6 || this.taskType == 4) &&
  678. this.objData.singleReport == 1 &&
  679. this.clientEnvironmentId != 3
  680. ) {
  681. if (
  682. this.objData.pickOutInList &&
  683. this.objData.pickOutInList.length != 0
  684. ) {
  685. this.objData.semiProductList = this.objData.pickOutInList;
  686. this.objData.pickOutInList = [];
  687. }
  688. }
  689. if (
  690. (this.taskType == 6 || this.taskType == 4) &&
  691. this.objData.singleReport == 0 &&
  692. this.clientEnvironmentId != 3
  693. ) {
  694. if (
  695. this.objData.pickOutInList &&
  696. this.objData.pickOutInList.length != 0
  697. ) {
  698. this.objData.product = this.objData.pickOutInList;
  699. this.objData.pickOutInList = [];
  700. }
  701. }
  702. if (
  703. this.objData.singleReport == 1 &&
  704. this.objData.currentTaskDiagram.type != 2 &&
  705. this.objData.currentTaskDiagram.type != 3 &&
  706. this.objData.currentTaskDiagram.type != 6
  707. ) {
  708. this.objData.semiProductList.map((item) => {
  709. item.extInfo.taskId = "";
  710. item.extInfo.taskName = "";
  711. });
  712. }
  713. if (
  714. this.objData.singleReport == 0 &&
  715. this.objData.currentTaskDiagram.type != 2 &&
  716. this.objData.currentTaskDiagram.type != 3 &&
  717. this.objData.currentTaskDiagram.type != 6
  718. ) {
  719. this.objData.product.map((item) => {
  720. item.extInfo.taskId = "";
  721. item.extInfo.taskName = "";
  722. });
  723. }
  724. if (
  725. this.clientEnvironmentId == 3 &&
  726. this.objData.singleReport == 0 &&
  727. this.taskType != 6
  728. ) {
  729. this.objData.semiProductList.map((a) => {
  730. a.extInfo.batchReportInfo = [
  731. {
  732. allFeedQuantity: "",
  733. allReportWeight: "",
  734. taskId: "",
  735. taskName: "",
  736. },
  737. ];
  738. a.extInfo.notBatchReportInfo = [
  739. {
  740. allFeedQuantity: "",
  741. allReportWeight: "",
  742. notType: "",
  743. taskId: "",
  744. taskName: "",
  745. notReason: "",
  746. },
  747. ];
  748. return {
  749. a,
  750. };
  751. });
  752. this.objData.semiProductList = this.objData.semiProductList;
  753. }
  754. this.objData.workReportInfo = {
  755. formingNum: null,
  756. formingWeight: null,
  757. formedNum: null,
  758. formedWeight: null,
  759. taskId: this.taskId,
  760. executorTime: "",
  761. lossNum: null,
  762. lossWeight: null,
  763. };
  764. this.objData.notFormedList = [
  765. {
  766. notFormedNum: null,
  767. notFormedWeight: null,
  768. weightUnit: res.weightUnit,
  769. unit: res.unit,
  770. warehouseId: null, // 处置 仓库id
  771. },
  772. ];
  773. this.objData.semiProductList = this.objData.semiProductList.map(
  774. (item) => {
  775. if (this.taskType != 6) {
  776. if (item["extInfo"]?.reportWeight) {
  777. item["extInfo"].reportWeight = "";
  778. }
  779. }
  780. item.confirm = 0;
  781. console.log(item, "item");
  782. return item;
  783. }
  784. );
  785. this.objData.product = this.objData.product.map((item) => {
  786. if (this.taskType != 6) {
  787. if (item["extInfo"]?.reportWeight) {
  788. item["extInfo"].reportWeight = "";
  789. }
  790. }
  791. item.confirm = 0;
  792. console.log(item, "item");
  793. return item;
  794. });
  795. if (this.objData.semiProductList.length > 0) {
  796. // 预制体报工
  797. this.objData.workReportInfo.formedNum =
  798. this.objData.semiProductList.length;
  799. let numCot = 0;
  800. if (this.objData.semiProductList.length > 0) {
  801. this.objData.semiProductList.map((fitem) => {
  802. numCot = numCot + fitem.feedQuantity || 1;
  803. });
  804. this.objData.workReportInfo.formedNum = numCot;
  805. }
  806. } else if (this.objData.product.length > 0) {
  807. const number = this.objData.product.reduce((acc, pro) => {
  808. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  809. }, 0);
  810. this.objData.workReportInfo.formedNum = number;
  811. }
  812. this.objData.workReportInfo.formingNum = res.formingNum;
  813. this.objData.workReportInfo.formingWeight = res.formingWeight;
  814. this.objData.workReportInfo.unit = res.unit;
  815. this.objData.workReportInfo.weightUnit = res.weightUnit;
  816. this.objData.workReportInfo.workOrderId = res.workOrderId;
  817. this.paramDetailList = res.paramDetailList;
  818. console.log(this.objData, "this.objDatathis.objDatathis.objData");
  819. // this.paramDetailList = res.paramDetailList.map((m) => {
  820. // if (m.extInfo.textType == 5) {
  821. // this.remainingTime = m.extInfo.remainingTime;
  822. // }
  823. // return {
  824. // ...m.extInfo,
  825. // };
  826. // });
  827. })
  828. .finally(() => {
  829. this.isLoad = true;
  830. if (this.taskType == 1) {
  831. this.getCacheFn();
  832. }
  833. });
  834. },
  835. scrolltolower() {},
  836. handAdd() {
  837. const storageKey = Date.now() + "";
  838. uni.setStorageSync(storageKey, this.objData || {});
  839. uni.navigateTo({
  840. url: `/pages/pda/workOrder/search/index?storageKey=${storageKey}&isType=job&taskId=${this.taskId}`,
  841. });
  842. },
  843. penalize(index) {
  844. if (index || index == 0) {
  845. console.log(index, "----");
  846. this.penalizeIndex = index;
  847. this.formData.warehouseId =
  848. this.objData.productRecycleList[this.penalizeIndex].warehouseId || "";
  849. } else {
  850. this.penalizeIndex = null;
  851. this.formData.warehouseId =
  852. this.objData.notFormedList[0].warehouseId || "";
  853. console.log(this.formData.warehouseId, "+++++");
  854. }
  855. this.$forceUpdate();
  856. if (this.warehouseList.length == 0) {
  857. getWarehouseList().then((res) => {
  858. this.warehouseList = res;
  859. this.searchShow = true;
  860. });
  861. } else {
  862. this.searchShow = true;
  863. }
  864. },
  865. inputChange(e) {
  866. console.log(e);
  867. },
  868. searchCancel() {
  869. this.searchShow = false;
  870. },
  871. popupOk() {
  872. if (this.penalizeIndex == null) {
  873. this.$set(
  874. this.objData.notFormedList[0],
  875. "warehouseId",
  876. this.formData.warehouseId || null
  877. );
  878. } else {
  879. this.objData.productRecycleList[this.penalizeIndex].warehouseId =
  880. this.formData.warehouseId;
  881. }
  882. this.$forceUpdate();
  883. this.searchShow = false;
  884. },
  885. modeNum(num) {
  886. console.log(num, "------------", this.objData.modelList.length);
  887. if (this.objData.modelList.length == 0) {
  888. return false;
  889. }
  890. console.log(num);
  891. this.$refs.modelRef.setNum(num);
  892. },
  893. async save(type) {
  894. // 验证判断条件
  895. this.$isJobExls(1, this.objData);
  896. console.log(this.objData, "this.objData");
  897. // return;
  898. // for (let i = 0; i < this.List.length; i++) {
  899. // if (
  900. // !this.List[i].executorTime &&
  901. // this.List[i].executorTime == undefined
  902. // ) {
  903. // uni.showToast({
  904. // title: `请先选择报工时间`,
  905. // icon: "none",
  906. // });
  907. // return;
  908. // }
  909. // }
  910. if (!(this.clientEnvironmentId == 3 || this.objData.singleReport !== 1)) {
  911. if (this.objData.semiProductList.length) {
  912. let arr = this.objData.semiProductList.filter(
  913. (v) => v.selected == true
  914. );
  915. this.objData.semiProductList = arr;
  916. if (!arr.length) {
  917. return uni.showToast({
  918. title: "请选择报工数量",
  919. icon: "none",
  920. });
  921. }
  922. // else{
  923. // let engraveList = arr.filter(v=> v.extInfo.engrave ==null);
  924. // if(engraveList.length){
  925. // return uni.showToast({
  926. // title: '请输入刻码',
  927. // icon: 'none'
  928. // })
  929. // }
  930. // }
  931. }
  932. }
  933. uni.showLoading({
  934. title: "加载中",
  935. });
  936. if (
  937. !this.objData.workReportInfo["formedNum"] &&
  938. this.objData.workReportInfo["formedNum"] != 0
  939. ) {
  940. uni.showToast({
  941. title: "请输入合格品数量",
  942. icon: "none",
  943. });
  944. return false;
  945. }
  946. // 预制体
  947. if (this.clientEnvironmentId == 3 || this.objData.singleReport !== 1) {
  948. if (
  949. this.objData.semiProductList.length > 0 &&
  950. this.taskType != 4 &&
  951. this.objData.singleReport == 1 &&
  952. type == 2
  953. ) {
  954. let bol;
  955. let _i;
  956. bol = this.objData.semiProductList.every((e, i) => {
  957. _i = i + 1;
  958. if (this.taskType == 6) {
  959. return e.extInfo.hasOwnProperty("taskId") && e.extInfo.taskId;
  960. } else {
  961. // if (e.extInfo.isQualified == 1 || e.extInfo.notType == 5) {
  962. // return e.extInfo.hasOwnProperty('taskId') && e.extInfo.taskId && e.extInfo
  963. // .reportWeight
  964. // } else {
  965. // return e.extInfo.hasOwnProperty('notType') && e.extInfo.notType
  966. // }
  967. return (
  968. e.extInfo.hasOwnProperty("taskId") &&
  969. e.extInfo.taskId &&
  970. e.extInfo.reportWeight
  971. );
  972. }
  973. });
  974. if (!bol) {
  975. uni.showToast({
  976. title: `请完善第${_i}处置方式`,
  977. icon: "none",
  978. });
  979. return false;
  980. }
  981. }
  982. }
  983. if (
  984. this.objData.productRecycleList.length > 0 &&
  985. this.clientEnvironmentId != 2
  986. ) {
  987. const isRecycle = await this.checkRecycle();
  988. if (!isRecycle) {
  989. return false;
  990. }
  991. }
  992. if (this.taskType == 4 && this.clientEnvironmentId != 3) {
  993. const isPack = await this.checkPack();
  994. if (!isPack) {
  995. return false;
  996. }
  997. }
  998. //
  999. // console.log(this.objData.currentTaskDiagram.isFirstTask,'22222');
  1000. // if (this.objData.currentTaskDiagram.isFirstTask == 0) { // isFirstTask 1是 判断是否首工序
  1001. // const isFirstTask = await this.checkFirstTask()
  1002. // if (!isFirstTask) {
  1003. // return false
  1004. // }
  1005. // }
  1006. if (this.taskType == 1) {
  1007. const isCache = await this.checkCache(type);
  1008. if (!isCache) {
  1009. return false;
  1010. }
  1011. }
  1012. if (
  1013. this.clientEnvironmentId == 3 &&
  1014. type == 2 &&
  1015. this.taskType == 6 &&
  1016. this.objData.singleReport == 0
  1017. ) {
  1018. this.objData.semiProductList = [];
  1019. }
  1020. if (this.clientEnvironmentId == 3 && this.taskType == 1) {
  1021. if (
  1022. this.objData &&
  1023. this.objData.executorTime &&
  1024. this.objData.executorTime != undefined
  1025. ) {
  1026. // 正则表达式1:匹配 yyyy-MM-dd 格式
  1027. const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
  1028. if (dateRegex.test(this.objData.executorTime.trimRight())) {
  1029. this.objData.workReportInfo["executorTime"] =
  1030. this.objData.executorTime + " 00:00:00";
  1031. } else {
  1032. this.objData.workReportInfo["executorTime"] =
  1033. this.objData.executorTime;
  1034. }
  1035. } else {
  1036. uni.showToast({
  1037. title: `请先选择实际报工时间`,
  1038. icon: "none",
  1039. });
  1040. return false;
  1041. }
  1042. }
  1043. if (this.objData.semiProductList.length > 0) {
  1044. this.objData.semiProductList.map((ditem) => {
  1045. let wdid = ditem.deviceId ? ditem.deviceId.split("/") : "";
  1046. ditem.deviceId = wdid ? wdid[0] : "";
  1047. if (ditem.extInfo.batchReportInfo) {
  1048. ditem.extInfo.batchReportInfo.map((baItem) => {
  1049. let idvalue = baItem.deviceId ? baItem.deviceId.split("/") : "";
  1050. baItem.deviceId = idvalue ? idvalue[0] : "";
  1051. });
  1052. }
  1053. if (ditem.extInfo.notBatchReportInfo) {
  1054. ditem.extInfo.notBatchReportInfo.map((noItem) => {
  1055. let idvalue = noItem.deviceId ? noItem.deviceId.split("/") : "";
  1056. noItem.deviceId = idvalue ? idvalue[0] : "";
  1057. });
  1058. }
  1059. });
  1060. }
  1061. console.log(this.objData, "this.objData");
  1062. console.log(this.objData.equipmentList);
  1063. if (
  1064. this.objData.product.length != 0 &&
  1065. this.objData.equipmentList.length != 0
  1066. ) {
  1067. this.objData.product.forEach((item) => {
  1068. if (item.deviceId) {
  1069. this.objData.equipmentList.forEach((el) => {
  1070. if (item.deviceId == el.instanceId) {
  1071. item.deviceName = el.name;
  1072. }
  1073. });
  1074. }
  1075. });
  1076. }
  1077. jobSave(this.objData)
  1078. .then((res) => {
  1079. uni.hideLoading();
  1080. if (this.taskType == 4) {
  1081. uni.showModal({
  1082. title: "提示",
  1083. content: "打包完成是否去入库!",
  1084. confirmText: "确认", //这块是确定按钮的文字
  1085. success: (rr) => {
  1086. if (rr.confirm) {
  1087. uni.redirectTo({
  1088. url: `/pages/pda/warehousing/index?workOrderId=${this.id}&taskId=-1&workReportId=${res}&delta=-2`,
  1089. });
  1090. } else {
  1091. uni.navigateBack();
  1092. }
  1093. },
  1094. });
  1095. } else {
  1096. uni.navigateBack();
  1097. }
  1098. })
  1099. .finally(() => {
  1100. setTimeout(function () {
  1101. uni.hideLoading();
  1102. }, 3000);
  1103. });
  1104. },
  1105. checkRecycle() {
  1106. uni.hideLoading();
  1107. return new Promise((resolve) => {
  1108. uni.showModal({
  1109. title: "提示",
  1110. content: "是否跳过副产品回收处置!",
  1111. confirmText: "确认", //这块是确定按钮的文字
  1112. success: function (res) {
  1113. if (res.confirm) {
  1114. resolve(true);
  1115. } else {
  1116. resolve(false);
  1117. }
  1118. },
  1119. });
  1120. });
  1121. },
  1122. checkPack() {
  1123. uni.hideLoading();
  1124. return new Promise((resolve) => {
  1125. let packInfo = this.$refs.packRef.getData();
  1126. this.objData.packInfo = packInfo;
  1127. this.objData.taskType = this.taskType;
  1128. let formedNumLast = 0;
  1129. if (this.objData.singleReport == 1) {
  1130. formedNumLast = this.objData.semiProductList.reduce((acc, pro) => {
  1131. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  1132. }, 0);
  1133. } else if (this.objData.singleReport == 0) {
  1134. formedNumLast = this.objData.product.reduce((acc, pro) => {
  1135. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  1136. }, 0);
  1137. }
  1138. if (
  1139. formedNumLast !=
  1140. Number(this.objData.workReportInfo["formedNum"]) +
  1141. Number(this.objData.workReportInfo.notFormedNum)
  1142. ) {
  1143. uni.hideLoading();
  1144. uni.showModal({
  1145. title: "提示",
  1146. content: "合格品数量加不合格品数量不等于包装总数!",
  1147. confirmText: "确认", //这块是确定按钮的文字
  1148. success: function (res) {
  1149. if (res.confirm) {
  1150. resolve(true);
  1151. } else {
  1152. resolve(false);
  1153. }
  1154. },
  1155. });
  1156. } else {
  1157. resolve(true);
  1158. }
  1159. });
  1160. },
  1161. checkFirstTask() {
  1162. uni.hideLoading();
  1163. return new Promise((resolve) => {
  1164. if (
  1165. this.objData.formedNumLast !=
  1166. Number(this.objData.workReportInfo["formedNum"]) +
  1167. Number(this.objData.workReportInfo.notFormedNum)
  1168. ) {
  1169. uni.showModal({
  1170. title: "提示",
  1171. content: "合格品数量加不合格品数量不等于上道工序数量!",
  1172. confirmText: "确认", //这块是确定按钮的文字
  1173. success: function (res) {
  1174. if (res.confirm) {
  1175. resolve(true);
  1176. } else {
  1177. resolve(false);
  1178. }
  1179. },
  1180. });
  1181. } else {
  1182. resolve(true);
  1183. }
  1184. });
  1185. },
  1186. checkCache(type) {
  1187. uni.hideLoading();
  1188. return new Promise((resolve) => {
  1189. if (type == 1) {
  1190. saveCache(this.objData).then((rr) => {
  1191. uni.showToast({
  1192. title: `已经缓存`,
  1193. icon: "none",
  1194. });
  1195. });
  1196. resolve(false);
  1197. } else if (type == 2) {
  1198. resolve(true);
  1199. }
  1200. });
  1201. },
  1202. removeCacheFn() {
  1203. uni.showModal({
  1204. title: "缓存",
  1205. content: "是否清空缓存!",
  1206. confirmText: "确认", //这块是确定按钮的文字
  1207. success: (rr) => {
  1208. if (rr.confirm) {
  1209. let parma = {
  1210. workOrderIds: [this.id],
  1211. taskId: this.taskId,
  1212. type: 1,
  1213. };
  1214. removeCache(parma).then((res) => {
  1215. this.getList();
  1216. });
  1217. }
  1218. },
  1219. });
  1220. },
  1221. getCacheFn() {
  1222. let parma = {
  1223. workOrderId: this.id,
  1224. taskId: this.taskId,
  1225. type: 1,
  1226. };
  1227. getCache(parma).then((res) => {
  1228. if (
  1229. !res ||
  1230. res.length < 0 ||
  1231. Object.getOwnPropertyNames(res).length === 0
  1232. ) {
  1233. return false;
  1234. }
  1235. this.objData["product"] = res.extInfo.product;
  1236. this.objData["workReportInfo"] = res.extInfo.workReportInfo;
  1237. this.objData["notFormedList"] = res.extInfo.notFormedList;
  1238. this.objData["turnover"] = res.extInfo.turnover;
  1239. this.objData["productRecycleList"] = res.extInfo.productRecycleList;
  1240. this.objData["semiProductList"] = res.extInfo.semiProductList;
  1241. this.objData["modelList"] = res.extInfo.modelList;
  1242. });
  1243. },
  1244. //批量报工合格不合格重量统计
  1245. countNumPl(list, index) {
  1246. //合格总数
  1247. let formedNumCount = 0;
  1248. //合格总重量
  1249. let formedWeightCount = 0;
  1250. //不合格总数
  1251. let notFormedNumCount = 0;
  1252. //不合格总重量
  1253. let notFormedWeightCount = 0;
  1254. list.map((item) => {
  1255. //合格总数
  1256. item.extInfo.batchReportInfo.forEach((m) => {
  1257. formedNumCount = formedNumCount + Number(m.allFeedQuantity || 0);
  1258. });
  1259. //合格总重量
  1260. item.extInfo.batchReportInfo.forEach((w) => {
  1261. formedWeightCount =
  1262. formedWeightCount + Number(w.allReportWeight || 0);
  1263. });
  1264. //不合格总数
  1265. item.extInfo.notBatchReportInfo.forEach((nf) => {
  1266. notFormedNumCount =
  1267. notFormedNumCount + Number(nf.allFeedQuantity || 0);
  1268. });
  1269. //不合格总重量
  1270. item.extInfo.notBatchReportInfo.forEach((nw) => {
  1271. notFormedWeightCount =
  1272. notFormedWeightCount + Number(nw.allReportWeight || 0);
  1273. });
  1274. });
  1275. this.$set(this.objData.workReportInfo, "formedNum", formedNumCount); //合格总数
  1276. this.$set(this.objData.workReportInfo, "formedWeight", formedWeightCount); //合格总重量
  1277. this.$set(this.objData.workReportInfo, "notFormedNum", notFormedNumCount); //不合格总数
  1278. this.$set(
  1279. this.objData.workReportInfo,
  1280. "notFormedWeight",
  1281. notFormedWeightCount
  1282. ); //不合格总重量
  1283. // this.$refs.jobReftg.formedTotal(
  1284. // formedNumCount,
  1285. // formedWeightCount,
  1286. // notFormedNumCount,
  1287. // notFormedWeightCount
  1288. // );
  1289. // console.log("777777777777777", this.objData);
  1290. this.objData = this.deepCopy(this.objData);
  1291. this.$forceUpdate();
  1292. },
  1293. deepCopy(obj, hash = new WeakMap()) {
  1294. if (obj === null) return null;
  1295. if (obj instanceof Date) return new Date(obj);
  1296. if (obj instanceof RegExp) return new RegExp(obj);
  1297. if (typeof obj !== "object" && typeof obj !== "function") return obj;
  1298. if (hash.has(obj)) return hash.get(obj);
  1299. const result = Array.isArray(obj) ? [] : {};
  1300. hash.set(obj, result);
  1301. return Object.keys(obj).reduce((acc, key) => {
  1302. acc[key] = this.deepCopy(obj[key], hash);
  1303. return acc;
  1304. }, result);
  1305. },
  1306. },
  1307. beforeDestroy() {
  1308. uni.hideLoading();
  1309. },
  1310. };
  1311. </script>
  1312. <style lang="scss" scoped>
  1313. .content-box {
  1314. height: 100vh;
  1315. overflow: hidden;
  1316. display: flex;
  1317. flex-direction: column;
  1318. }
  1319. .list_box {
  1320. flex: 1;
  1321. overflow: hidden;
  1322. padding: 4rpx 0;
  1323. .u-list {
  1324. height: 100% !important;
  1325. }
  1326. .card_box {
  1327. padding: 16rpx 20rpx;
  1328. }
  1329. }
  1330. .bottom-wrapper {
  1331. width: 100%;
  1332. display: flex;
  1333. align-items: center;
  1334. justify-content: space-around;
  1335. .btn_box {
  1336. width: 50%;
  1337. height: 88rpx;
  1338. line-height: 88rpx;
  1339. background: $theme-color;
  1340. text-align: center;
  1341. font-size: 36rpx;
  1342. font-style: normal;
  1343. font-weight: 400;
  1344. color: #fff;
  1345. &:first-child {
  1346. border-right: 2rpx solid #fff;
  1347. }
  1348. }
  1349. }
  1350. .operate_box {
  1351. padding: 10rpx 160rpx;
  1352. /deep/ .u-button {
  1353. width: 160rpx;
  1354. }
  1355. }
  1356. .search_list {
  1357. min-height: 500rpx;
  1358. padding: 0 32rpx;
  1359. }
  1360. .search_list2 {
  1361. min-height: 120rpx;
  1362. padding: 0 32rpx;
  1363. }
  1364. .flex_btn {
  1365. position: fixed;
  1366. right: 0;
  1367. bottom: 160rpx;
  1368. width: 40rpx;
  1369. height: 50rpx;
  1370. line-height: 66rpx;
  1371. border-radius: 22rpx 0 0 22rpx;
  1372. background: $theme-color;
  1373. text-align: center;
  1374. font-size: 22rpx;
  1375. font-style: normal;
  1376. font-weight: 400;
  1377. color: #fff;
  1378. opacity: 0.6;
  1379. .jiantou {
  1380. width: 30rpx;
  1381. height: 30rpx;
  1382. }
  1383. }
  1384. .flex_btn2 {
  1385. position: fixed;
  1386. right: 0;
  1387. bottom: 160rpx;
  1388. width: 126rpx;
  1389. min-height: 140rpx;
  1390. line-height: 62rpx;
  1391. border-radius: 22rpx 0 0 22rpx;
  1392. background: $theme-color;
  1393. text-align: center;
  1394. font-size: 22rpx;
  1395. font-style: normal;
  1396. font-weight: 400;
  1397. color: #fff;
  1398. opacity: 0.7;
  1399. .close_box {
  1400. height: 50rpx;
  1401. line-height: 50rpx;
  1402. width: 126rpx;
  1403. text-align: left;
  1404. .close {
  1405. width: 40rpx;
  1406. height: 40rpx;
  1407. padding: 6rpx 10rpx;
  1408. }
  1409. }
  1410. }
  1411. </style>