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="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. lossNum: null,
  761. lossWeight: null,
  762. };
  763. this.objData.notFormedList = [
  764. {
  765. notFormedNum: null,
  766. notFormedWeight: null,
  767. weightUnit: res.weightUnit,
  768. unit: res.unit,
  769. warehouseId: null, // 处置 仓库id
  770. },
  771. ];
  772. this.objData.semiProductList = this.objData.semiProductList.map(
  773. (item) => {
  774. if (this.taskType != 6) {
  775. if (item["extInfo"]?.reportWeight) {
  776. item["extInfo"].reportWeight = "";
  777. }
  778. }
  779. item.confirm = 0;
  780. console.log(item, "item");
  781. return item;
  782. }
  783. );
  784. this.objData.product = this.objData.product.map((item) => {
  785. if (this.taskType != 6) {
  786. if (item["extInfo"]?.reportWeight) {
  787. item["extInfo"].reportWeight = "";
  788. }
  789. }
  790. item.confirm = 0;
  791. console.log(item, "item");
  792. return item;
  793. });
  794. if (this.objData.semiProductList.length > 0) {
  795. // 预制体报工
  796. this.objData.workReportInfo.formedNum =
  797. this.objData.semiProductList.length;
  798. let numCot = 0;
  799. if (this.objData.semiProductList.length > 0) {
  800. this.objData.semiProductList.map((fitem) => {
  801. numCot = numCot + fitem.feedQuantity || 1;
  802. });
  803. this.objData.workReportInfo.formedNum = numCot;
  804. }
  805. } else if (this.objData.product.length > 0) {
  806. const number = this.objData.product.reduce((acc, pro) => {
  807. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  808. }, 0);
  809. this.objData.workReportInfo.formedNum = number;
  810. }
  811. this.objData.workReportInfo.formingNum = res.formingNum;
  812. this.objData.workReportInfo.formingWeight = res.formingWeight;
  813. this.objData.workReportInfo.unit = res.unit;
  814. this.objData.workReportInfo.weightUnit = res.weightUnit;
  815. this.objData.workReportInfo.workOrderId = res.workOrderId;
  816. this.paramDetailList = res.paramDetailList;
  817. console.log(this.objData, "this.objDatathis.objDatathis.objData");
  818. // this.paramDetailList = res.paramDetailList.map((m) => {
  819. // if (m.extInfo.textType == 5) {
  820. // this.remainingTime = m.extInfo.remainingTime;
  821. // }
  822. // return {
  823. // ...m.extInfo,
  824. // };
  825. // });
  826. })
  827. .finally(() => {
  828. this.isLoad = true;
  829. if (this.taskType == 1) {
  830. this.getCacheFn();
  831. }
  832. });
  833. },
  834. scrolltolower() {},
  835. handAdd() {
  836. const storageKey = Date.now() + "";
  837. uni.setStorageSync(storageKey, this.objData || {});
  838. uni.navigateTo({
  839. url: `/pages/pda/workOrder/search/index?storageKey=${storageKey}&isType=job&taskId=${this.taskId}`,
  840. });
  841. },
  842. penalize(index) {
  843. if (index || index == 0) {
  844. console.log(index, "----");
  845. this.penalizeIndex = index;
  846. this.formData.warehouseId =
  847. this.objData.productRecycleList[this.penalizeIndex].warehouseId || "";
  848. } else {
  849. this.penalizeIndex = null;
  850. this.formData.warehouseId =
  851. this.objData.notFormedList[0].warehouseId || "";
  852. console.log(this.formData.warehouseId, "+++++");
  853. }
  854. this.$forceUpdate();
  855. if (this.warehouseList.length == 0) {
  856. getWarehouseList().then((res) => {
  857. this.warehouseList = res;
  858. this.searchShow = true;
  859. });
  860. } else {
  861. this.searchShow = true;
  862. }
  863. },
  864. inputChange(e) {
  865. console.log(e);
  866. },
  867. searchCancel() {
  868. this.searchShow = false;
  869. },
  870. popupOk() {
  871. if (this.penalizeIndex == null) {
  872. this.$set(
  873. this.objData.notFormedList[0],
  874. "warehouseId",
  875. this.formData.warehouseId || null
  876. );
  877. } else {
  878. this.objData.productRecycleList[this.penalizeIndex].warehouseId =
  879. this.formData.warehouseId;
  880. }
  881. this.$forceUpdate();
  882. this.searchShow = false;
  883. },
  884. modeNum(num) {
  885. console.log(num, "------------", this.objData.modelList.length);
  886. if (this.objData.modelList.length == 0) {
  887. return false;
  888. }
  889. console.log(num);
  890. this.$refs.modelRef.setNum(num);
  891. },
  892. async save(type) {
  893. // 验证判断条件
  894. this.$isJobExls(1, this.objData);
  895. // console.log(this.objData, "this.objData");
  896. // return;
  897. // for (let i = 0; i < this.List.length; i++) {
  898. // if (
  899. // !this.List[i].executorTime &&
  900. // this.List[i].executorTime == undefined
  901. // ) {
  902. // uni.showToast({
  903. // title: `请先选择报工时间`,
  904. // icon: "none",
  905. // });
  906. // return;
  907. // }
  908. // }
  909. if (!(this.clientEnvironmentId == 3 || this.objData.singleReport !== 1)) {
  910. if (this.objData.semiProductList.length) {
  911. let arr = this.objData.semiProductList.filter(
  912. (v) => v.selected == true
  913. );
  914. this.objData.semiProductList = arr;
  915. if (!arr.length) {
  916. return uni.showToast({
  917. title: "请选择报工数量",
  918. icon: "none",
  919. });
  920. }
  921. // else{
  922. // let engraveList = arr.filter(v=> v.extInfo.engrave ==null);
  923. // if(engraveList.length){
  924. // return uni.showToast({
  925. // title: '请输入刻码',
  926. // icon: 'none'
  927. // })
  928. // }
  929. // }
  930. }
  931. }
  932. uni.showLoading({
  933. title: "加载中",
  934. });
  935. if (
  936. !this.objData.workReportInfo["formedNum"] &&
  937. this.objData.workReportInfo["formedNum"] != 0
  938. ) {
  939. uni.showToast({
  940. title: "请输入合格品数量",
  941. icon: "none",
  942. });
  943. return false;
  944. }
  945. // 预制体
  946. if (this.clientEnvironmentId == 3 || this.objData.singleReport !== 1) {
  947. if (
  948. this.objData.semiProductList.length > 0 &&
  949. this.taskType != 4 &&
  950. this.objData.singleReport == 1 &&
  951. type == 2
  952. ) {
  953. let bol;
  954. let _i;
  955. bol = this.objData.semiProductList.every((e, i) => {
  956. _i = i + 1;
  957. if (this.taskType == 6) {
  958. return e.extInfo.hasOwnProperty("taskId") && e.extInfo.taskId;
  959. } else {
  960. // if (e.extInfo.isQualified == 1 || e.extInfo.notType == 5) {
  961. // return e.extInfo.hasOwnProperty('taskId') && e.extInfo.taskId && e.extInfo
  962. // .reportWeight
  963. // } else {
  964. // return e.extInfo.hasOwnProperty('notType') && e.extInfo.notType
  965. // }
  966. return (
  967. e.extInfo.hasOwnProperty("taskId") &&
  968. e.extInfo.taskId &&
  969. e.extInfo.reportWeight
  970. );
  971. }
  972. });
  973. if (!bol) {
  974. uni.showToast({
  975. title: `请完善第${_i}处置方式`,
  976. icon: "none",
  977. });
  978. return false;
  979. }
  980. }
  981. }
  982. if (
  983. this.objData.productRecycleList.length > 0 &&
  984. this.clientEnvironmentId != 2
  985. ) {
  986. const isRecycle = await this.checkRecycle();
  987. if (!isRecycle) {
  988. return false;
  989. }
  990. }
  991. if (this.taskType == 4 && this.clientEnvironmentId != 3) {
  992. const isPack = await this.checkPack();
  993. if (!isPack) {
  994. return false;
  995. }
  996. }
  997. //
  998. // console.log(this.objData.currentTaskDiagram.isFirstTask,'22222');
  999. // if (this.objData.currentTaskDiagram.isFirstTask == 0) { // isFirstTask 1是 判断是否首工序
  1000. // const isFirstTask = await this.checkFirstTask()
  1001. // if (!isFirstTask) {
  1002. // return false
  1003. // }
  1004. // }
  1005. if (this.taskType == 1) {
  1006. const isCache = await this.checkCache(type);
  1007. if (!isCache) {
  1008. return false;
  1009. }
  1010. }
  1011. if (
  1012. this.clientEnvironmentId == 3 &&
  1013. type == 2 &&
  1014. this.taskType == 6 &&
  1015. this.objData.singleReport == 0
  1016. ) {
  1017. this.objData.semiProductList = [];
  1018. }
  1019. if (this.clientEnvironmentId == 3 && this.taskType == 1) {
  1020. if (
  1021. this.objData &&
  1022. this.objData.executorTime &&
  1023. this.objData.executorTime != undefined
  1024. ) {
  1025. // 正则表达式1:匹配 yyyy-MM-dd 格式
  1026. const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
  1027. if (dateRegex.test(this.objData.executorTime.trimRight())) {
  1028. this.objData.workReportInfo["executorTime"] =
  1029. this.objData.executorTime + " 00:00:00";
  1030. } else {
  1031. this.objData.workReportInfo["executorTime"] =
  1032. this.objData.executorTime;
  1033. }
  1034. } else {
  1035. uni.showToast({
  1036. title: `请先选择实际报工时间`,
  1037. icon: "none",
  1038. });
  1039. return false;
  1040. }
  1041. }
  1042. if (this.objData.semiProductList.length > 0) {
  1043. this.objData.semiProductList.map((ditem) => {
  1044. let wdid = ditem.deviceId ? ditem.deviceId.split("/") : "";
  1045. ditem.deviceId = wdid ? wdid[0] : "";
  1046. if (ditem.extInfo.batchReportInfo) {
  1047. ditem.extInfo.batchReportInfo.map((baItem) => {
  1048. let idvalue = baItem.deviceId ? baItem.deviceId.split("/") : "";
  1049. baItem.deviceId = idvalue ? idvalue[0] : "";
  1050. });
  1051. }
  1052. if (ditem.extInfo.notBatchReportInfo) {
  1053. ditem.extInfo.notBatchReportInfo.map((noItem) => {
  1054. let idvalue = noItem.deviceId ? noItem.deviceId.split("/") : "";
  1055. noItem.deviceId = idvalue ? idvalue[0] : "";
  1056. });
  1057. }
  1058. });
  1059. }
  1060. console.log(this.objData, "this.objData");
  1061. console.log(this.objData.equipmentList);
  1062. if (
  1063. this.objData.product.length != 0 &&
  1064. this.objData.equipmentList.length != 0
  1065. ) {
  1066. this.objData.product.forEach((item) => {
  1067. if (item.deviceId) {
  1068. this.objData.equipmentList.forEach((el) => {
  1069. if (item.deviceId == el.instanceId) {
  1070. item.deviceName = el.name;
  1071. }
  1072. });
  1073. }
  1074. });
  1075. }
  1076. jobSave(this.objData)
  1077. .then((res) => {
  1078. uni.hideLoading();
  1079. if (this.taskType == 4) {
  1080. uni.showModal({
  1081. title: "提示",
  1082. content: "打包完成是否去入库!",
  1083. confirmText: "确认", //这块是确定按钮的文字
  1084. success: (rr) => {
  1085. if (rr.confirm) {
  1086. uni.redirectTo({
  1087. url: `/pages/pda/warehousing/index?workOrderId=${this.id}&taskId=-1&workReportId=${res}&delta=-2`,
  1088. });
  1089. } else {
  1090. uni.navigateBack();
  1091. }
  1092. },
  1093. });
  1094. } else {
  1095. uni.navigateBack();
  1096. }
  1097. })
  1098. .finally(() => {
  1099. setTimeout(function () {
  1100. uni.hideLoading();
  1101. }, 3000);
  1102. });
  1103. },
  1104. checkRecycle() {
  1105. uni.hideLoading();
  1106. return new Promise((resolve) => {
  1107. uni.showModal({
  1108. title: "提示",
  1109. content: "是否跳过副产品回收处置!",
  1110. confirmText: "确认", //这块是确定按钮的文字
  1111. success: function (res) {
  1112. if (res.confirm) {
  1113. resolve(true);
  1114. } else {
  1115. resolve(false);
  1116. }
  1117. },
  1118. });
  1119. });
  1120. },
  1121. checkPack() {
  1122. uni.hideLoading();
  1123. return new Promise((resolve) => {
  1124. let packInfo = this.$refs.packRef.getData();
  1125. this.objData.packInfo = packInfo;
  1126. this.objData.taskType = this.taskType;
  1127. let formedNumLast = 0;
  1128. if (this.objData.singleReport == 1) {
  1129. formedNumLast = this.objData.semiProductList.reduce((acc, pro) => {
  1130. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  1131. }, 0);
  1132. } else if (this.objData.singleReport == 0) {
  1133. formedNumLast = this.objData.product.reduce((acc, pro) => {
  1134. return pro.feedQuantity ? acc + Number(pro.feedQuantity) : acc;
  1135. }, 0);
  1136. }
  1137. if (
  1138. formedNumLast !=
  1139. Number(this.objData.workReportInfo["formedNum"]) +
  1140. Number(this.objData.workReportInfo.notFormedNum)
  1141. ) {
  1142. uni.hideLoading();
  1143. uni.showModal({
  1144. title: "提示",
  1145. content: "合格品数量加不合格品数量不等于包装总数!",
  1146. confirmText: "确认", //这块是确定按钮的文字
  1147. success: function (res) {
  1148. if (res.confirm) {
  1149. resolve(true);
  1150. } else {
  1151. resolve(false);
  1152. }
  1153. },
  1154. });
  1155. } else {
  1156. resolve(true);
  1157. }
  1158. });
  1159. },
  1160. checkFirstTask() {
  1161. uni.hideLoading();
  1162. return new Promise((resolve) => {
  1163. if (
  1164. this.objData.formedNumLast !=
  1165. Number(this.objData.workReportInfo["formedNum"]) +
  1166. Number(this.objData.workReportInfo.notFormedNum)
  1167. ) {
  1168. uni.showModal({
  1169. title: "提示",
  1170. content: "合格品数量加不合格品数量不等于上道工序数量!",
  1171. confirmText: "确认", //这块是确定按钮的文字
  1172. success: function (res) {
  1173. if (res.confirm) {
  1174. resolve(true);
  1175. } else {
  1176. resolve(false);
  1177. }
  1178. },
  1179. });
  1180. } else {
  1181. resolve(true);
  1182. }
  1183. });
  1184. },
  1185. checkCache(type) {
  1186. uni.hideLoading();
  1187. return new Promise((resolve) => {
  1188. if (type == 1) {
  1189. saveCache(this.objData).then((rr) => {
  1190. uni.showToast({
  1191. title: `已经缓存`,
  1192. icon: "none",
  1193. });
  1194. });
  1195. resolve(false);
  1196. } else if (type == 2) {
  1197. resolve(true);
  1198. }
  1199. });
  1200. },
  1201. removeCacheFn() {
  1202. uni.showModal({
  1203. title: "缓存",
  1204. content: "是否清空缓存!",
  1205. confirmText: "确认", //这块是确定按钮的文字
  1206. success: (rr) => {
  1207. if (rr.confirm) {
  1208. let parma = {
  1209. workOrderIds: [this.id],
  1210. taskId: this.taskId,
  1211. type: 1,
  1212. };
  1213. removeCache(parma).then((res) => {
  1214. this.getList();
  1215. });
  1216. }
  1217. },
  1218. });
  1219. },
  1220. getCacheFn() {
  1221. let parma = {
  1222. workOrderId: this.id,
  1223. taskId: this.taskId,
  1224. type: 1,
  1225. };
  1226. getCache(parma).then((res) => {
  1227. if (
  1228. !res ||
  1229. res.length < 0 ||
  1230. Object.getOwnPropertyNames(res).length === 0
  1231. ) {
  1232. return false;
  1233. }
  1234. this.objData["product"] = res.extInfo.product;
  1235. this.objData["workReportInfo"] = res.extInfo.workReportInfo;
  1236. this.objData["notFormedList"] = res.extInfo.notFormedList;
  1237. this.objData["turnover"] = res.extInfo.turnover;
  1238. this.objData["productRecycleList"] = res.extInfo.productRecycleList;
  1239. this.objData["semiProductList"] = res.extInfo.semiProductList;
  1240. this.objData["modelList"] = res.extInfo.modelList;
  1241. });
  1242. },
  1243. //批量报工合格不合格重量统计
  1244. countNumPl(list, index) {
  1245. //合格总数
  1246. let formedNumCount = 0;
  1247. //合格总重量
  1248. let formedWeightCount = 0;
  1249. //不合格总数
  1250. let notFormedNumCount = 0;
  1251. //不合格总重量
  1252. let notFormedWeightCount = 0;
  1253. list.map((item) => {
  1254. //合格总数
  1255. item.extInfo.batchReportInfo.forEach((m) => {
  1256. formedNumCount = formedNumCount + Number(m.allFeedQuantity || 0);
  1257. });
  1258. //合格总重量
  1259. item.extInfo.batchReportInfo.forEach((w) => {
  1260. formedWeightCount =
  1261. formedWeightCount + Number(w.allReportWeight || 0);
  1262. });
  1263. //不合格总数
  1264. item.extInfo.notBatchReportInfo.forEach((nf) => {
  1265. notFormedNumCount =
  1266. notFormedNumCount + Number(nf.allFeedQuantity || 0);
  1267. });
  1268. //不合格总重量
  1269. item.extInfo.notBatchReportInfo.forEach((nw) => {
  1270. notFormedWeightCount =
  1271. notFormedWeightCount + Number(nw.allReportWeight || 0);
  1272. });
  1273. });
  1274. this.$set(this.objData.workReportInfo, "formedNum", formedNumCount); //合格总数
  1275. this.$set(this.objData.workReportInfo, "formedWeight", formedWeightCount); //合格总重量
  1276. this.$set(this.objData.workReportInfo, "notFormedNum", notFormedNumCount); //不合格总数
  1277. this.$set(
  1278. this.objData.workReportInfo,
  1279. "notFormedWeight",
  1280. notFormedWeightCount
  1281. ); //不合格总重量
  1282. // this.$refs.jobReftg.formedTotal(
  1283. // formedNumCount,
  1284. // formedWeightCount,
  1285. // notFormedNumCount,
  1286. // notFormedWeightCount
  1287. // );
  1288. // console.log("777777777777777", this.objData);
  1289. this.objData = this.deepCopy(this.objData);
  1290. this.$forceUpdate();
  1291. },
  1292. deepCopy(obj, hash = new WeakMap()) {
  1293. if (obj === null) return null;
  1294. if (obj instanceof Date) return new Date(obj);
  1295. if (obj instanceof RegExp) return new RegExp(obj);
  1296. if (typeof obj !== "object" && typeof obj !== "function") return obj;
  1297. if (hash.has(obj)) return hash.get(obj);
  1298. const result = Array.isArray(obj) ? [] : {};
  1299. hash.set(obj, result);
  1300. return Object.keys(obj).reduce((acc, key) => {
  1301. acc[key] = this.deepCopy(obj[key], hash);
  1302. return acc;
  1303. }, result);
  1304. },
  1305. },
  1306. beforeDestroy() {
  1307. uni.hideLoading();
  1308. },
  1309. };
  1310. </script>
  1311. <style lang="scss" scoped>
  1312. .content-box {
  1313. height: 100vh;
  1314. overflow: hidden;
  1315. display: flex;
  1316. flex-direction: column;
  1317. }
  1318. .list_box {
  1319. flex: 1;
  1320. overflow: hidden;
  1321. padding: 4rpx 0;
  1322. .u-list {
  1323. height: 100% !important;
  1324. }
  1325. .card_box {
  1326. padding: 16rpx 20rpx;
  1327. }
  1328. }
  1329. .bottom-wrapper {
  1330. width: 100%;
  1331. display: flex;
  1332. align-items: center;
  1333. justify-content: space-around;
  1334. .btn_box {
  1335. width: 50%;
  1336. height: 88rpx;
  1337. line-height: 88rpx;
  1338. background: $theme-color;
  1339. text-align: center;
  1340. font-size: 36rpx;
  1341. font-style: normal;
  1342. font-weight: 400;
  1343. color: #fff;
  1344. &:first-child {
  1345. border-right: 2rpx solid #fff;
  1346. }
  1347. }
  1348. }
  1349. .operate_box {
  1350. padding: 10rpx 160rpx;
  1351. /deep/ .u-button {
  1352. width: 160rpx;
  1353. }
  1354. }
  1355. .search_list {
  1356. min-height: 500rpx;
  1357. padding: 0 32rpx;
  1358. }
  1359. .search_list2 {
  1360. min-height: 120rpx;
  1361. padding: 0 32rpx;
  1362. }
  1363. .flex_btn {
  1364. position: fixed;
  1365. right: 0;
  1366. bottom: 160rpx;
  1367. width: 40rpx;
  1368. height: 50rpx;
  1369. line-height: 66rpx;
  1370. border-radius: 22rpx 0 0 22rpx;
  1371. background: $theme-color;
  1372. text-align: center;
  1373. font-size: 22rpx;
  1374. font-style: normal;
  1375. font-weight: 400;
  1376. color: #fff;
  1377. opacity: 0.6;
  1378. .jiantou {
  1379. width: 30rpx;
  1380. height: 30rpx;
  1381. }
  1382. }
  1383. .flex_btn2 {
  1384. position: fixed;
  1385. right: 0;
  1386. bottom: 160rpx;
  1387. width: 126rpx;
  1388. min-height: 140rpx;
  1389. line-height: 62rpx;
  1390. border-radius: 22rpx 0 0 22rpx;
  1391. background: $theme-color;
  1392. text-align: center;
  1393. font-size: 22rpx;
  1394. font-style: normal;
  1395. font-weight: 400;
  1396. color: #fff;
  1397. opacity: 0.7;
  1398. .close_box {
  1399. height: 50rpx;
  1400. line-height: 50rpx;
  1401. width: 126rpx;
  1402. text-align: left;
  1403. .close {
  1404. width: 40rpx;
  1405. height: 40rpx;
  1406. padding: 6rpx 10rpx;
  1407. }
  1408. }
  1409. }
  1410. </style>