index.vue 42 KB

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