index.vue 21 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" background-color="#F7F9FA"
  4. color="#000" @clickLeft="back" right-icon="scan" @clickRight="HandlScanCode">
  5. </uni-nav-bar>
  6. <view class="list_box">
  7. <u-list @scrolltolower="scrolltolower">
  8. <view class="card_box">
  9. <workOrderBom :item='objData' v-if='objData' @handleScan='handleScan'></workOrderBom>
  10. <paramBom v-if='paramDetailList.length != 0' :list='paramDetailList'></paramBom>
  11. <deviceBom v-if='objData.equipmentList.length != 0' :list='objData.equipmentList'></deviceBom>
  12. <modelBom v-if='objData.modelList.length != 0' :list='objData.modelList' pattern='job'
  13. ref='modelRef'>
  14. </modelBom>
  15. <jobBom v-if='isLoad' :item='objData' ref='jobRef' :notFormed='objData.notFormedList'
  16. @penalize='penalize' @modeNum='modeNum'></jobBom>
  17. <palletBom v-if="objData.palletList.length != 0" :palletList='objData.palletList'></palletBom>
  18. <revolvingDiskBom v-if="isLoad && objData.revolvingDiskList.length > 0" pattern='job'
  19. :revolvingDiskList="objData.revolvingDiskList"></revolvingDiskBom>
  20. <!-- <oneJobBom
  21. v-if='objData.instanceList && objData.instanceList.length != 0 && taskType != 4 && taskType != 6'
  22. :item='objData' :list='objData.instanceList'>
  23. </oneJobBom> -->
  24. <semiProductJobBom
  25. v-if='objData.semiProductList && objData.semiProductList.length != 0 && taskType != 4 && taskType != 6'
  26. :item='objData' :list='objData.semiProductList' :equipmentList="objData.equipmentList">
  27. </semiProductJobBom>
  28. <oneJobQualityBom
  29. v-if='objData.semiProductList && objData.semiProductList.length != 0 && taskType == 6 && clientEnvironmentId == 3'
  30. :item='objData' :list='objData.semiProductList'></oneJobQualityBom>
  31. <byProductBom v-if='objData.productRecycleList.length != 0' :list='objData.productRecycleList'
  32. @penalize='penalize'>
  33. </byProductBom>
  34. <turnoverBom v-if='objData.turnover.length != 0' :list='objData.turnover' :wordItem='objData'
  35. pattern='job' @handleScan='handleScan' @formedNumFn='formedNumFn'>
  36. </turnoverBom>
  37. <aridRegion v-if='objData.aridRegionList.length != 0' :list='objData.aridRegionList'
  38. :remainingTime='remainingTime' @handleScan='handleScan' :isType='true'></aridRegion>
  39. <packingBom :taskId='taskId' :workOrderId='id' :objData='objData' ref="packRef"
  40. v-if='taskType == 4 && clientEnvironmentId != 3 && objData'></packingBom>
  41. <packingTgBom
  42. v-if='objData.pickOutInList && objData.pickOutInList.length != 0 && taskType == 4 && clientEnvironmentId == 3'
  43. :list='objData.pickOutInList' :item='objData'></packingTgBom>
  44. <view class="operate_box rx-sc">
  45. <u-button size="small" class="u-reset-button" type="success" @click="handAdd">手动添加</u-button>
  46. </view>
  47. <view style="height: 100rpx;"></view>
  48. </view>
  49. </u-list>
  50. </view>
  51. <view :class="[operateBtn ? 'flex_btn': 'flex_btn2']">
  52. <image v-if="operateBtn" class="jiantou" src="../../../../static/rightJt.png" @click="operateBtn = false">
  53. </image>
  54. <view class="close_box" @click="operateBtn = true">
  55. <image v-if="!operateBtn" class="close" src="../../../../static/close.png"></image>
  56. </view>
  57. <view v-if="!operateBtn" @click="removeCacheFn()">清空缓存</view>
  58. </view>
  59. <view class="bottom-wrapper">
  60. <view class="btn_box" @click="save(1)">缓存</view>
  61. <view class="btn_box" @click="save(2)">一键报工</view>
  62. </view>
  63. <SearchPopup mode="bottom" v-if='searchShow'>
  64. <template v-slot:list>
  65. <view class="search_list">
  66. <u-form labelPosition="left" :model="formData" labelWidth="180" labelAlign="left" class="baseForm">
  67. <u-form-item label="仓库:" class="required-form" borderBottom prop="warehouseId">
  68. <zxz-uni-data-select :localdata="warehouseList" v-model="formData.warehouseId"
  69. dataValue='id' dataKey="name" filterable format='{name}'></zxz-uni-data-select>
  70. </u-form-item>
  71. </u-form>
  72. </view>
  73. </template>
  74. <template v-slot:operate>
  75. <view class="operate_box rx-bc">
  76. <u-button size="small" class="u-reset-button" @click="searchCancel">
  77. 取消
  78. </u-button>
  79. <u-button type="success" size="small" class="u-reset-button" @click="popupOk">
  80. 确定
  81. </u-button>
  82. </view>
  83. </template>
  84. </SearchPopup>
  85. </view>
  86. </template>
  87. <script>
  88. import {
  89. getByIdReport,
  90. getByCodeReport,
  91. jobSave
  92. } from '@/api/pda/jobBooking.js'
  93. import {
  94. scanLedger,
  95. getWarehouseList,
  96. saveCache,
  97. getCache,
  98. removeCache
  99. } from '@/api/pda/workOrder.js'
  100. import workOrderBom from '../../feeding/components/workOrderBom.vue'
  101. import deviceBom from '../../feeding/components/deviceBom.vue'
  102. import modelBom from '../../feeding/components/modelBom.vue'
  103. import jobBom from '../components/jobBom.vue'
  104. import palletBom from '../components/palletBom.vue'
  105. import oneJobBom from '../components/oneJobBom.vue'
  106. import semiProductJobBom from '../components/semiProductJobBom.vue'
  107. import byProductBom from '../components/byProductBom'
  108. import turnoverBom from '../components/turnoverBom.vue'
  109. import aridRegion from '../../feeding/components/aridRegion.vue'
  110. import paramBom from '../../feeding/components/paramBom.vue'
  111. import packingBom from '../components/packingBom.vue'
  112. import packingTgBom from '../components/packingTgBom'
  113. import revolvingDiskBom from '../../feeding/components/revolvingDiskBom.vue'
  114. import SearchPopup from '../../components/searchPopup.vue'
  115. import oneJobQualityBom from '../components/oneJobQualityBom.vue'
  116. export default {
  117. components: {
  118. workOrderBom,
  119. deviceBom,
  120. modelBom,
  121. jobBom,
  122. palletBom,
  123. oneJobBom,
  124. semiProductJobBom,
  125. byProductBom,
  126. turnoverBom,
  127. aridRegion,
  128. paramBom,
  129. packingBom,
  130. packingTgBom,
  131. revolvingDiskBom,
  132. SearchPopup,
  133. oneJobQualityBom
  134. },
  135. data() {
  136. return {
  137. title: '',
  138. taskType: 1,
  139. isLoad: true,
  140. objData: {
  141. equipmentList: [],
  142. modelList: [],
  143. turnover: [],
  144. productRecycleList: [],
  145. aridRegionList: [],
  146. palletList: [],
  147. workReportInfo: {
  148. },
  149. notFormedList: [], // 报工-不合格
  150. },
  151. searchShow: false,
  152. warehouseList: [],
  153. formData: {
  154. warehouseId: ''
  155. },
  156. penalizeIndex: null,
  157. paramDetailList: [],
  158. remainingTime: 0,
  159. id: null,
  160. taskId: null,
  161. clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo")
  162. .clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  163. operateBtn: true
  164. }
  165. },
  166. onLoad(options) {
  167. this.title = options.taskName ? options.taskName + '-报工' : '报工'
  168. this.taskType = options.taskType
  169. this.id = options.id
  170. this.taskId = options.taskId
  171. this.getList()
  172. },
  173. onShow() {
  174. uni.$off("setSelectList");
  175. uni.$on("setSelectList", (selectList, id) => {
  176. let turnover = []
  177. let equipmentList = [] // 生产设备
  178. let isEquipment = this.objData.equipmentList.length > 0 ? true : false // 判断是否有设置
  179. selectList.forEach(f => {
  180. if (f.rootCategoryLevelId == 4) { // 生产设备
  181. if (isEquipment) {
  182. equipmentList = this.objData.equipmentList
  183. } else {
  184. equipmentList = equipmentList.concat(f)
  185. }
  186. }
  187. if (f.rootCategoryLevelId == 7) { // 周转车
  188. turnover = turnover.concat(f)
  189. }
  190. })
  191. this.$set(this.objData, 'equipmentList', equipmentList)
  192. this.$set(this.objData, 'turnover', turnover)
  193. this.$forceUpdate()
  194. });
  195. },
  196. methods: {
  197. // 相机扫码
  198. HandlScanCode() {
  199. uni.scanCode({
  200. success: (res) => {
  201. this.scanItAllData(res.result)
  202. }
  203. })
  204. },
  205. scanItAllData(result) {
  206. scanLedger(result).then(res => {
  207. if (res[0].rootCategoryLevelId == 4) { // 设备
  208. let isFals = this.objData.equipmentList.some(m => m.code == result)
  209. if (isFals) {
  210. uni.showToast({
  211. title: '设备已存在',
  212. icon: 'none'
  213. })
  214. return false
  215. }
  216. this.objData.equipmentList.push(res[0])
  217. this.$forceUpdate()
  218. }
  219. if (res.length >= 1 && res[0].rootCategoryLevelId == 5) { // 磨具
  220. if (this.objData.modelList.length == 0) {
  221. this.objData.modelList = res
  222. this.$forceUpdate()
  223. } else {
  224. if (this.objData.modelList[0].instanceId != res[0].instanceId) {
  225. uni.showToast({
  226. title: '模具不匹配',
  227. icon: 'none'
  228. })
  229. } else {
  230. uni.showToast({
  231. title: '设备匹配成功',
  232. icon: 'none'
  233. })
  234. }
  235. }
  236. } else if (res.length == 1 && res[0].rootCategoryLevelId == 7) { // 周转车
  237. let isFals = this.objData.turnover.some(m => m.code == result)
  238. if (isFals) {
  239. uni.showToast({
  240. title: '周转车已存在',
  241. icon: 'none'
  242. })
  243. return false
  244. }
  245. this.objData.turnover.push(res[0])
  246. this.$forceUpdate()
  247. }
  248. })
  249. },
  250. handleScan(id, type) {
  251. uni.scanCode({
  252. success: (res) => {
  253. this.scanData(res.result, type, id)
  254. }
  255. })
  256. },
  257. scanData(result, type, id) {
  258. if (type == 'wordOrder') {
  259. getByCodeReport(result, this.taskId).then(res => {
  260. this.objData = res
  261. if (!this.objData.hasOwnProperty('turnover')) {
  262. this.objData['turnover'] = []
  263. }
  264. if (!this.objData.hasOwnProperty('aridRegionList')) {
  265. this.objData['aridRegionList'] = []
  266. }
  267. })
  268. } else if (type == 'turnover') {
  269. let isFals = this.objData.turnover.some(m => m.code == result)
  270. if (isFals) {
  271. uni.showToast({
  272. title: '周转车已存在',
  273. icon: 'none'
  274. })
  275. return false
  276. }
  277. getByCodeReport(result, this.taskId).then(res => {
  278. this.objData.turnover[id] = res
  279. })
  280. }
  281. },
  282. formedNumFn(num) {
  283. this.$refs.jobRef.setFormedNum(num)
  284. },
  285. getList() {
  286. this.isLoad = false
  287. getByIdReport(this.id, this.taskId).then(res => {
  288. this.objData = res
  289. if (!this.objData.hasOwnProperty('turnover')) {
  290. this.objData['turnover'] = []
  291. }
  292. if (!this.objData.hasOwnProperty('aridRegionList')) {
  293. this.objData['aridRegionList'] = []
  294. }
  295. if (!this.objData.hasOwnProperty('instanceList')) {
  296. this.objData['instanceList'] = []
  297. }
  298. if (!this.objData.hasOwnProperty('palletList')) {
  299. this.objData['palletList'] = []
  300. }
  301. if (!this.objData.hasOwnProperty('revolvingDiskList')) {
  302. this.objData['revolvingDiskList'] = []
  303. }
  304. // this.taskType = res.currentTaskDiagram.type
  305. if (this.objData.palletList.length > 0) {
  306. this.objData.palletList = this.objData.palletList.map(m => {
  307. return {
  308. hideKc: true, // 不显示库存
  309. quantity: m.feedQuantity,
  310. ...m
  311. }
  312. })
  313. } else {
  314. // this.objData.palletList = [{
  315. // categoryLevelId: '',
  316. // categoryLevelName: '',
  317. // categoryId: '',
  318. // rootCategoryLevelId: '',
  319. // code: '',
  320. // name: '',
  321. // specification: '',
  322. // brandNum: '',
  323. // modelType: '',
  324. // quantity: '',
  325. // unit: '',
  326. // }]
  327. }
  328. if (this.taskType == 6 && this.clientEnvironmentId == 3) {
  329. this.objData.semiProductList = this.objData.pickOutInList
  330. }
  331. this.objData.workReportInfo = {
  332. formingNum: null,
  333. formingWeight: null,
  334. formedNum: null,
  335. formedWeight: null,
  336. taskId: this.taskId
  337. }
  338. this.objData.notFormedList = [{
  339. notFormedNum: null,
  340. notFormedWeight: null,
  341. weightUnit: res.weightUnit,
  342. unit: res.unit,
  343. warehouseId: null, // 处置 仓库id
  344. }]
  345. if (this.objData.semiProductList.length > 0) { // 预制体报工
  346. this.objData.workReportInfo.formedNum = this.objData.semiProductList.length
  347. }
  348. this.objData.workReportInfo.formingNum = res.formingNum
  349. this.objData.workReportInfo.formingWeight = res.formingWeight
  350. this.objData.workReportInfo.unit = res.unit
  351. this.objData.workReportInfo.weightUnit = res.weightUnit
  352. this.objData.workReportInfo.workOrderId = res.workOrderId
  353. this.paramDetailList = []
  354. this.paramDetailList = res.paramDetailList.map(m => {
  355. if (m.extInfo.textType == 5) {
  356. this.remainingTime = m.extInfo.remainingTime
  357. }
  358. return {
  359. ...m.extInfo
  360. }
  361. })
  362. }).finally(() => {
  363. this.isLoad = true
  364. if (this.taskType == 1) {
  365. this.getCacheFn()
  366. }
  367. })
  368. },
  369. scrolltolower() {},
  370. handAdd() {
  371. const storageKey = Date.now() + "";
  372. uni.setStorageSync(storageKey, this.objData || {});
  373. uni.navigateTo({
  374. url: `/pages/pda/workOrder/search/index?storageKey=${storageKey}&isType=job&taskId=${this.taskId}`
  375. })
  376. },
  377. penalize(index) {
  378. if (index || index == 0) {
  379. this.penalizeIndex = index
  380. this.formData.warehouseId = this.objData.productRecycleList[this.penalizeIndex].warehouseId || ''
  381. } else {
  382. this.penalizeIndex = null
  383. this.formData.warehouseId = this.objData.notFormedList[0].warehouseId || ''
  384. }
  385. this.$forceUpdate()
  386. if (this.warehouseList.length == 0) {
  387. getWarehouseList().then(res => {
  388. this.warehouseList = res
  389. this.searchShow = true
  390. })
  391. } else {
  392. this.searchShow = true
  393. }
  394. },
  395. inputChange(e) {
  396. console.log(e)
  397. },
  398. searchCancel() {
  399. this.searchShow = false
  400. },
  401. popupOk() {
  402. if (this.penalizeIndex == null) {
  403. this.$set(this.objData.notFormedList[0], 'warehouseId', this.formData.warehouseId || null)
  404. } else {
  405. this.objData.productRecycleList[this.penalizeIndex].warehouseId = this.formData.warehouseId
  406. }
  407. this.$forceUpdate()
  408. this.searchShow = false
  409. },
  410. modeNum(num) {
  411. if (this.objData.modelList.length == 0) {
  412. return false
  413. }
  414. this.$refs.modelRef.setNum(num)
  415. },
  416. async save(type) {
  417. uni.showLoading({
  418. title: '加载中'
  419. });
  420. if (!this.objData.workReportInfo['formedNum'] && this.objData.workReportInfo['formedNum'] != 0) {
  421. uni.showToast({
  422. title: '请输入合格品数量',
  423. icon: 'none'
  424. })
  425. return false
  426. }
  427. // 预制体
  428. if (this.objData.instanceList.length > 0 && this.taskType != 4) {
  429. let bol
  430. let _i
  431. bol = this.objData.instanceList.every((e, i) => {
  432. _i = i + 1
  433. if (this.taskType == 6) {
  434. return e.extInfo.hasOwnProperty('taskId') && e.extInfo.taskId
  435. } else {
  436. return e.extInfo.hasOwnProperty('taskId') && e.extInfo.taskId && e.extInfo
  437. .reportWeight
  438. }
  439. })
  440. if (!bol) {
  441. uni.showToast({
  442. title: `请完善第${_i}处置方式`,
  443. icon: 'none'
  444. })
  445. return false
  446. }
  447. }
  448. if (this.objData.productRecycleList.length > 0 && this.clientEnvironmentId != 2) {
  449. const isRecycle = await this.checkRecycle()
  450. if (!isRecycle) {
  451. return false
  452. }
  453. }
  454. if (this.taskType == 4 && this.clientEnvironmentId != 3) {
  455. const isPack = await this.checkPack()
  456. if (!isPack) {
  457. return false
  458. }
  459. }
  460. if (this.objData.currentTaskDiagram.isFirstTask == 0) { // isFirstTask 1是 判断是否首工序
  461. const isFirstTask = await this.checkFirstTask()
  462. if (!isFirstTask) {
  463. return false
  464. }
  465. }
  466. if (this.taskType == 1) {
  467. const isCache = await this.checkCache(type)
  468. if (!isCache) {
  469. return false
  470. }
  471. }
  472. jobSave(this.objData).then(res => {
  473. uni.hideLoading();
  474. if (this.taskType == 4) {
  475. uni.showModal({
  476. title: '提示',
  477. content: '打包完成是否去入库!',
  478. confirmText: '确认', //这块是确定按钮的文字
  479. success: rr => {
  480. if (rr.confirm) {
  481. uni.redirectTo({
  482. url: `/pages/pda/warehousing/index?workOrderId=${this.id}&taskId=-1&workReportId=${res}&delta=-2`
  483. })
  484. } else {
  485. uni.navigateBack()
  486. }
  487. }
  488. })
  489. } else {
  490. uni.navigateBack()
  491. }
  492. }).finally(() => {
  493. setTimeout(function() {
  494. uni.hideLoading();
  495. }, 3000);
  496. })
  497. },
  498. checkRecycle() {
  499. uni.hideLoading();
  500. return new Promise((resolve) => {
  501. uni.showModal({
  502. title: '提示',
  503. content: '是否跳过副产品回收处置!',
  504. confirmText: '确认', //这块是确定按钮的文字
  505. success: function(res) {
  506. if (res.confirm) {
  507. resolve(true)
  508. } else {
  509. resolve(false)
  510. }
  511. }
  512. })
  513. })
  514. },
  515. checkPack() {
  516. uni.hideLoading();
  517. return new Promise((resolve) => {
  518. let packInfo = this.$refs.packRef.getData()
  519. this.objData.packInfo = packInfo
  520. this.objData.taskType = this.taskType
  521. if (packInfo.formedNumLast != Number(this.objData.workReportInfo['formedNum']) + Number(this
  522. .objData
  523. .notFormedList[0].notFormedNum)) {
  524. uni.hideLoading();
  525. uni.showModal({
  526. title: '提示',
  527. content: '合格品数量加不合格品数量不等于包装总数!',
  528. confirmText: '确认', //这块是确定按钮的文字
  529. success: function(res) {
  530. if (res.confirm) {
  531. resolve(true)
  532. } else {
  533. resolve(false)
  534. }
  535. }
  536. })
  537. } else {
  538. resolve(true)
  539. }
  540. })
  541. },
  542. checkFirstTask() {
  543. uni.hideLoading();
  544. return new Promise((resolve) => {
  545. if (this.objData.formedNumLast != Number(this.objData.workReportInfo['formedNum']) + Number(
  546. this.objData.notFormedList[0].notFormedNum)) {
  547. uni.showModal({
  548. title: '提示',
  549. content: '合格品数量加不合格品数量不等于上道工序数量!',
  550. confirmText: '确认', //这块是确定按钮的文字
  551. success: function(res) {
  552. if (res.confirm) {
  553. resolve(true)
  554. } else {
  555. resolve(false)
  556. }
  557. }
  558. })
  559. } else {
  560. resolve(true)
  561. }
  562. })
  563. },
  564. checkCache(type) {
  565. uni.hideLoading();
  566. return new Promise((resolve) => {
  567. if (type == 1) {
  568. saveCache(this.objData).then(rr => {
  569. uni.showToast({
  570. title: `已经缓存`,
  571. icon: 'none'
  572. })
  573. })
  574. resolve(false)
  575. } else if (type == 2) {
  576. resolve(true)
  577. }
  578. })
  579. },
  580. removeCacheFn() {
  581. uni.showModal({
  582. title: '缓存',
  583. content: '是否清空缓存!',
  584. confirmText: '确认', //这块是确定按钮的文字
  585. success: rr => {
  586. if (rr.confirm) {
  587. let parma = {
  588. workOrderIds:[ this.id],
  589. taskId: this.taskId,
  590. type: 1
  591. }
  592. removeCache(parma).then(res => {
  593. this.getList()
  594. })
  595. }
  596. }
  597. })
  598. },
  599. getCacheFn() {
  600. let parma = {
  601. workOrderId: this.id,
  602. taskId: this.taskId
  603. }
  604. getCache(parma).then(res => {
  605. if (!res) {
  606. return false;
  607. }
  608. this.objData['product'] = res.extInfo.product
  609. this.objData['workReportInfo'] = res.extInfo.workReportInfo
  610. this.objData['notFormedList'] = res.extInfo.notFormedList
  611. this.objData['turnover'] = res.extInfo.turnover
  612. this.objData['productRecycleList'] = res.extInfo.productRecycleList
  613. this.objData['semiProductList'] = res.extInfo.semiProductList
  614. this.objData['modelList'] = res.extInfo.modelList
  615. })
  616. },
  617. }
  618. }
  619. </script>
  620. <style lang="scss" scoped>
  621. .content-box {
  622. height: 100vh;
  623. overflow: hidden;
  624. display: flex;
  625. flex-direction: column;
  626. }
  627. .list_box {
  628. flex: 1;
  629. overflow: hidden;
  630. padding: 4rpx 0;
  631. .u-list {
  632. height: 100% !important;
  633. }
  634. .card_box {
  635. padding: 16rpx 20rpx;
  636. }
  637. }
  638. .bottom-wrapper {
  639. width: 100%;
  640. display: flex;
  641. align-items: center;
  642. justify-content: space-around;
  643. .btn_box {
  644. width: 50%;
  645. height: 88rpx;
  646. line-height: 88rpx;
  647. background: $theme-color;
  648. text-align: center;
  649. font-size: 36rpx;
  650. font-style: normal;
  651. font-weight: 400;
  652. color: #fff;
  653. &:first-child {
  654. border-right: 2rpx solid #fff;
  655. }
  656. }
  657. }
  658. .operate_box {
  659. padding: 10rpx 160rpx;
  660. /deep/ .u-button {
  661. width: 160rpx;
  662. }
  663. }
  664. .search_list {
  665. min-height: 500rpx;
  666. padding: 0 32rpx;
  667. }
  668. .flex_btn {
  669. position: fixed;
  670. right: 0;
  671. bottom: 160rpx;
  672. width: 40rpx;
  673. height: 50rpx;
  674. line-height: 66rpx;
  675. border-radius: 22rpx 0 0 22rpx;
  676. background: $theme-color;
  677. text-align: center;
  678. font-size: 22rpx;
  679. font-style: normal;
  680. font-weight: 400;
  681. color: #fff;
  682. opacity: 0.6;
  683. .jiantou {
  684. width: 30rpx;
  685. height: 30rpx;
  686. }
  687. }
  688. .flex_btn2 {
  689. position: fixed;
  690. right: 0;
  691. bottom: 160rpx;
  692. width: 126rpx;
  693. min-height: 140rpx;
  694. line-height: 62rpx;
  695. border-radius: 22rpx 0 0 22rpx;
  696. background: $theme-color;
  697. text-align: center;
  698. font-size: 22rpx;
  699. font-style: normal;
  700. font-weight: 400;
  701. color: #fff;
  702. opacity: 0.7;
  703. .close_box {
  704. height: 50rpx;
  705. line-height: 50rpx;
  706. width: 126rpx;
  707. text-align: left;
  708. .close {
  709. width: 40rpx;
  710. height: 40rpx;
  711. padding: 6rpx 10rpx;
  712. }
  713. }
  714. }
  715. </style>