index.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583
  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. >
  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. clientEnvironmentId != 3
  80. "
  81. :item="objData"
  82. ref="jobRef"
  83. :notFormed="objData.notFormedList"
  84. :currentTask="objData.currentTaskDiagram"
  85. @penalize="penalize"
  86. @modeNum="modeNum"
  87. ></batchJobBom>
  88. <!-- <batchJobBom
  89. v-if="
  90. objData.currentTaskDiagram &&
  91. objData.currentTaskDiagram.type &&
  92. objData.singleReport == 0
  93. "
  94. :item="objData"
  95. ref="jobRef"
  96. :notFormed="objData.notFormedList"
  97. :currentTask="objData.currentTaskDiagram"
  98. @penalize="penalize"
  99. @modeNum="modeNum"
  100. ></batchJobBom> -->
  101. <palletBom
  102. v-if="objData.palletList.length != 0"
  103. :palletList="objData.palletList"
  104. ></palletBom>
  105. <revolvingDiskBom
  106. v-if="isLoad && objData.revolvingDiskList.length > 0"
  107. pattern="job"
  108. :revolvingDiskList="objData.revolvingDiskList"
  109. ></revolvingDiskBom>
  110. <!-- <oneJobBom
  111. v-if='objData.instanceList && objData.instanceList.length != 0 && taskType != 4 && taskType != 6'
  112. :item='objData' :list='objData.instanceList'>
  113. </oneJobBom> -->
  114. <!-- -->
  115. <!-- 报工信息 列表 -->
  116. <view v-if="clientEnvironmentId != 3 && objData.singleReport == 1">
  117. <semiProductJobBom
  118. v-if="
  119. objData.semiProductList &&
  120. objData.semiProductList.length != 0 &&
  121. taskType != 4 &&
  122. taskType != 6 &&
  123. objData.singleReport == 1
  124. "
  125. :item="objData"
  126. :list="objData.semiProductList"
  127. :equipmentList="objData.equipmentList"
  128. @weightEmit="weightEmit"
  129. >
  130. </semiProductJobBom>
  131. </view>
  132. <!-- <view v-if="this.objData.singleReport">
  133. </view> -->
  134. <semiProductJobBomPL
  135. v-if="
  136. objData.semiProductList &&
  137. objData.semiProductList.length != 0 &&
  138. taskType != 4 &&
  139. taskType != 6 &&
  140. objData.singleReport == 0 &&
  141. clientEnvironmentId == 3
  142. "
  143. :item="objData"
  144. :list="objData.semiProductList"
  145. ref="jobReftg"
  146. :equipmentList="objData.equipmentList"
  147. @countNumPl="countNumPl"
  148. >
  149. </semiProductJobBomPL>
  150. <!-- <oneJobQualityBom
  151. v-if="
  152. objData.semiProductList &&
  153. objData.semiProductList.length != 0 &&
  154. taskType == 6 &&
  155. clientEnvironmentId == 3 &&
  156. objData.singleReport == 1
  157. "
  158. :item="objData"
  159. :list="objData.semiProductList"
  160. @weightEmit="weightEmit"
  161. ></oneJobQualityBom> -->
  162. <oneJobQualityBomPL
  163. v-if="
  164. objData.semiProductList &&
  165. objData.semiProductList.length != 0 &&
  166. taskType == 6 &&
  167. clientEnvironmentId == 3 &&
  168. objData.singleReport == 0
  169. "
  170. :item="objData"
  171. :list="objData.semiProductList"
  172. ></oneJobQualityBomPL>
  173. <!-- 副产品 -->
  174. <byProductBom
  175. v-if="objData.productRecycleList.length != 0"
  176. :list="objData.productRecycleList"
  177. @penalize="penalize"
  178. >
  179. </byProductBom>
  180. <!-- 周转车 -->
  181. <turnoverBom
  182. v-if="objData.turnover.length != 0"
  183. :list="objData.turnover"
  184. :itemValue="objData"
  185. :wordItem="objData"
  186. pattern="job"
  187. @handleScan="handleScan"
  188. @formedNumFn="formedNumFn"
  189. >
  190. </turnoverBom>
  191. <!-- // 区域扫码 -->
  192. <aridRegion
  193. v-if="objData.aridRegionList.length != 0"
  194. :list="objData.aridRegionList"
  195. :remainingTime="remainingTime"
  196. @handleScan="handleScan"
  197. :isType="true"
  198. ></aridRegion>
  199. <!-- //包装扫码 -->
  200. <!-- <view v-if="clientEnvironmentId != 2 && objData.singleReport !== 1">
  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. <view v-if="clientEnvironmentId != 3">
  213. <packingBom
  214. :taskId="taskId"
  215. :workOrderId="id"
  216. :objData="objData"
  217. ref="packRef"
  218. v-if="taskType == 4 && clientEnvironmentId != 3 && objData"
  219. :categoryId="categoryId"
  220. >
  221. </packingBom>
  222. </view>
  223. <div
  224. v-if="
  225. objData &&
  226. taskType == 4 &&
  227. clientEnvironmentId == 3 &&
  228. objData.singleReport == 0
  229. "
  230. >
  231. <packingBom
  232. :taskId="taskId"
  233. :workOrderId="id"
  234. :objData="objData"
  235. ref="packRef"
  236. v-if="taskType == 4 && objData"
  237. :categoryId="categoryId"
  238. >
  239. </packingBom>
  240. </div>
  241. <!-- 碳谷 包装扫码 -->
  242. <!-- <packingTgBom
  243. v-if="
  244. objData.pickOutInList &&
  245. objData.pickOutInList.length != 0 &&
  246. taskType == 4 &&
  247. clientEnvironmentId == 3
  248. "
  249. :list="objData.pickOutInList"
  250. :objData="objData"
  251. :item="objData"
  252. ></packingTgBom> -->
  253. <view class="operate_box rx-sc">
  254. <u-button
  255. size="small"
  256. class="u-reset-button"
  257. type="success"
  258. @click="handAdd"
  259. >手动添加</u-button
  260. >
  261. </view>
  262. <view style="height: 100rpx"></view>
  263. </view>
  264. </u-list>
  265. </view>
  266. <view :class="[operateBtn ? 'flex_btn' : 'flex_btn2']">
  267. <image
  268. v-if="operateBtn"
  269. class="jiantou"
  270. src="../../../../static/rightJt.png"
  271. @click="operateBtn = false"
  272. >
  273. </image>
  274. <view class="close_box" @click="operateBtn = true">
  275. <image
  276. v-if="!operateBtn"
  277. class="close"
  278. src="../../../../static/close.png"
  279. ></image>
  280. </view>
  281. <view v-if="!operateBtn" @click="removeCacheFn()">清空缓存</view>
  282. <view v-if="!operateBtn" @click="switchOrder = true">切换工单</view>
  283. </view>
  284. <view class="bottom-wrapper">
  285. <view class="btn_box" @click="save(1)">缓存</view>
  286. <view class="btn_box" @click="save(2)">一键报工</view>
  287. </view>
  288. <SearchPopup mode="bottom" v-if="searchShow">
  289. <template v-slot:list>
  290. <view class="search_list">
  291. <u-form
  292. labelPosition="left"
  293. :model="formData"
  294. labelWidth="180"
  295. labelAlign="left"
  296. class="baseForm"
  297. >
  298. <u-form-item
  299. label="仓库:"
  300. class="required-form"
  301. borderBottom
  302. prop="warehouseId"
  303. >
  304. <zxz-uni-data-select
  305. :localdata="warehouseList"
  306. v-model="formData.warehouseId"
  307. dataValue="id"
  308. dataKey="name"
  309. filterable
  310. format="{name}"
  311. ></zxz-uni-data-select>
  312. </u-form-item>
  313. </u-form>
  314. </view>
  315. </template>
  316. <template v-slot:operate>
  317. <view class="operate_box rx-bc">
  318. <u-button size="small" class="u-reset-button" @click="searchCancel">
  319. 取消
  320. </u-button>
  321. <u-button
  322. type="success"
  323. size="small"
  324. class="u-reset-button"
  325. @click="popupOk"
  326. >
  327. 确定
  328. </u-button>
  329. </view>
  330. </template>
  331. </SearchPopup>
  332. <SearchPopup mode="center" v-if="switchOrder">
  333. <template v-slot:list>
  334. <view class="search_list2">
  335. <u-form
  336. labelPosition="left"
  337. :model="formData"
  338. labelWidth="180"
  339. labelAlign="left"
  340. class="baseForm"
  341. >
  342. <u-form-item
  343. label="工单:"
  344. class="required-form"
  345. borderBottom
  346. prop="warehouseId"
  347. >
  348. <zxz-uni-data-select
  349. :localdata="warehouseList"
  350. v-model="formData.warehouseId"
  351. dataValue="id"
  352. dataKey="name"
  353. filterable
  354. format="{name}"
  355. ></zxz-uni-data-select>
  356. </u-form-item>
  357. </u-form>
  358. </view>
  359. </template>
  360. <template v-slot:operate>
  361. <view class="operate_box rx-bc">
  362. <u-button
  363. size="small"
  364. class="u-reset-button"
  365. @click="switchOrder = false"
  366. >
  367. 取消
  368. </u-button>
  369. <u-button type="success" size="small" class="u-reset-button">
  370. 确定
  371. </u-button>
  372. </view>
  373. </template>
  374. </SearchPopup>
  375. </view>
  376. </template>
  377. <script>
  378. import {
  379. getByIdReport,
  380. outSourceGetByIdReport,
  381. getByCodeReport,
  382. jobSave,
  383. } from "@/api/pda/jobBooking.js";
  384. import {
  385. scanLedger,
  386. getWarehouseList,
  387. saveCache,
  388. getCache,
  389. removeCache,
  390. } from "@/api/pda/workOrder.js";
  391. import workOrderBom from "../../feeding/components/workOrderBom.vue";
  392. import deviceBom from "../../feeding/components/deviceBom.vue";
  393. import modelBom from "../../feeding/components/modelBom.vue";
  394. import jobBom from "../components/jobBom.vue";
  395. import singleJobBom from "../components/singleJobBom.vue";
  396. import palletBom from "../components/palletBom.vue";
  397. import oneJobBom from "../components/oneJobBom.vue";
  398. import semiProductJobBom from "../components/semiProductJobBom.vue";
  399. import semiProductJobBomPL from "../components/semiProductJobBomPL.vue";
  400. import byProductBom from "../components/byProductBom";
  401. import turnoverBom from "../components/turnoverBom.vue";
  402. import aridRegion from "../../feeding/components/aridRegion.vue";
  403. import paramBom from "../../feeding/components/paramBom.vue";
  404. import packingBom from "../components/packingBom.vue";
  405. import packingTgBom from "../components/packingTgBom";
  406. import revolvingDiskBom from "../../feeding/components/revolvingDiskBom.vue";
  407. import SearchPopup from "../../components/searchPopup.vue";
  408. import oneJobQualityBom from "../components/oneJobQualityBom.vue";
  409. import oneJobQualityBomPL from "../components/oneJobQualityBomPL.vue";
  410. import batchJobBom from "../components/batchJobBom.vue";
  411. import workInProgressList from "../components/workInProgressList.vue";
  412. export default {
  413. components: {
  414. workOrderBom,
  415. deviceBom,
  416. modelBom,
  417. jobBom,
  418. singleJobBom,
  419. palletBom,
  420. oneJobBom,
  421. semiProductJobBom,
  422. semiProductJobBomPL,
  423. byProductBom,
  424. turnoverBom,
  425. aridRegion,
  426. paramBom,
  427. packingBom,
  428. packingTgBom,
  429. revolvingDiskBom,
  430. SearchPopup,
  431. oneJobQualityBom,
  432. oneJobQualityBomPL,
  433. batchJobBom,
  434. workInProgressList,
  435. },
  436. data() {
  437. return {
  438. title: "",
  439. taskType: 1,
  440. isLoad: true,
  441. categoryId: "",
  442. objData: {
  443. formedNumLast: 0,
  444. product: [],
  445. equipmentList: [],
  446. modelList: [],
  447. turnover: [],
  448. productRecycleList: [],
  449. aridRegionList: [],
  450. palletList: [],
  451. workReportInfo: {},
  452. executorTime: "",
  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. async getList() {
  616. this.isLoad = false;
  617. let URL = this.isOutsource == 0 ? getByIdReport : outSourceGetByIdReport;
  618. console.log(URL, "URLURLURL");
  619. await 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>