edit.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314
  1. <template>
  2. <view class="mainBox" :class="{ isOut: activeName === 'output' }">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="调拨明细" @clickLeft="back" v-if="navShow">
  4. <template slot="right"><text class="text-danger" @click="handleDelete" v-if="id">删除调拨</text></template>
  5. </uni-nav-bar>
  6. <view class="tool-wrapper">
  7. <u-form labelPosition="left" :model="formData" :rules="rules" ref="formRef" labelWidth="180"
  8. labelAlign="right" class="baseForm">
  9. <u-form-item label="调拨条数" prop="createUserName" borderBottom>
  10. <view class="flex-center" style="width: 100%;">
  11. <view>
  12. <text> {{ assetsList.length + preAssetsList.length }}</text>
  13. </view>
  14. <view class="btn required" @click="$refs.typeSettingRef.open(formData)">调拨类型设置</view>
  15. </view>
  16. </u-form-item>
  17. <u-form-item label="调拨编码" prop="code" borderBottom>
  18. <u-input disableColor="#ffffff" v-model="formData.code" disabled type="text" />
  19. </u-form-item>
  20. <u-form-item label="调拨单名称" prop="name" borderBottom class="required-form">
  21. <u-input disableColor="#ffffff" v-model="formData.name" placeholder="请输入" type="text" />
  22. </u-form-item>
  23. <u-form-item label="列表维度:" class="required-form" borderBottom prop="inventoryDimension">
  24. <zxz-uni-data-select :localdata="dimensionOp" v-model="formData.inventoryDimension" :clear="false" dataValue='type'
  25. dataKey="name" filterable format='{name}' @change="handleDimensionChange"></zxz-uni-data-select>
  26. </u-form-item>
  27. <u-form-item label="调拨类型" prop="dialType" borderBottom>
  28. <u-input disableColor="#ffffff" v-model="dialTypeOptions[formData.dialType]" disabled type="text" />
  29. </u-form-item>
  30. <u-form-item label="调出仓库" prop="warehouseName" borderBottom>
  31. <text style="padding-left: 20rpx;">{{ formData.warehouseName }}{{ formData.cargoSpace ? '(' + formData.cargoSpace + ')' : '' }}</text>
  32. </u-form-item>
  33. <u-form-item label="调入仓库" prop="inWarehouseName" borderBottom>
  34. <text style="padding-left: 20rpx;">{{ formData.inWarehouseName }}{{ formData.inCargoSpace ? '(' + formData.inCargoSpace + ')' : '' }}</text>
  35. </u-form-item>
  36. </u-form>
  37. <!-- <view class="tabs">
  38. <view class="tab-item" :class="{ active: activeName === 'output' }" @click="activeName = 'output'">待调出({{ assetsList.length }})</view>
  39. <view class="tab-item" :class="{ active: activeName === 'input' }" @click="activeName = 'input'">预调入({{ preAssetsList.length }})</view>
  40. </view> -->
  41. <view v-if="activeName === 'output'">
  42. <view class="operations flex-center">
  43. <text @click="goScanCode">扫码添加</text>
  44. <text @click="handleWarehouseChoose('output')">手动添加</text>
  45. <text @click="handleWarehouseChoose('input')">调入货位</text>
  46. <!-- <text @click="deleteMaterial">删除选中</text> -->
  47. </view>
  48. </view>
  49. <!-- <view class="wrapper">
  50. <u-list class="listContent">
  51. <view class="listBox" v-for="(item, index) in assetsList">
  52. <view class="listBox-con">
  53. <view class="listBox-top">
  54. <view class="listBox-name">
  55. {{ item.categoryName }}
  56. </view>
  57. <view class="listBox-code">
  58. {{ item.categoryCode }}
  59. </view>
  60. </view>
  61. <view class="listBox-bottom">
  62. <view>牌号:{{ item.brandNum }}</view>
  63. <view>型号:{{ item.modelType }}</view>
  64. <view>规格:{{ item.specification }}</view>
  65. <view>批次号:{{ item.batchNo }}</view>
  66. <view>计量数量:{{ item.measureQuantity }}({{ item.measureUnit }})</view>
  67. <view class="w100">包装编码:{{ item.packageNo }}</view>
  68. <view>包装数量:{{ item.packingQuantity }}({{ item.packingUnit }})</view>
  69. <view>重量:{{ item.weight }}({{ item.weightUnit }})</view>
  70. <view>发货条码:{{ item.barcodes }}</view>
  71. <view>物料代号:{{ item.materielDesignation }}</view>
  72. <view>客户代号:{{ item.clientCode }}</view>
  73. <view>刻码:{{ item.engrave }}</view>
  74. <view>仓库:{{ item.warehouseName }}</view>
  75. </view>
  76. </view>
  77. </view>
  78. <u-empty class="noDate" style="margin-top: 20vh" v-if="!assetsList.length"></u-empty>
  79. </u-list>
  80. </view> -->
  81. <!-- <view class="search-box">
  82. <uni-easyinput prefixIcon="search" v-model="outputFilter" placeholder="编码、名称、货位"></uni-easyinput>
  83. </view> -->
  84. <!-- <view class="select-box flex-center">
  85. <text
  86. >已选{{ assetsList.filter(i => i.checked).length }}/{{
  87. assetsList.length
  88. }}</text
  89. >
  90. <text class="btn" @click="assetsSelectAll = !assetsSelectAll"
  91. >全选</text
  92. >
  93. </view> -->
  94. <template v-else>
  95. <view class="operations">
  96. <text @click="removeOutput" style="margin-right: 20rpx">移除选中</text>
  97. <text @click="deleteOutput">删除选中</text>
  98. </view>
  99. <view class="search-box">
  100. <uni-easyinput prefixIcon="search" v-model="inputFilter" placeholder="编码、名称、货位"></uni-easyinput>
  101. </view>
  102. <view class="select-box flex-center">
  103. <text>已选 {{ preAssetsList.filter(i => i.inputChecked).length }}/{{ preAssetsList.length }}</text>
  104. <text class="btn" @click="preAssetsSelectAll = !preAssetsSelectAll">全选</text>
  105. </view>
  106. </template>
  107. </view>
  108. <view class="list-container" v-if="activeName === 'output'">
  109. <AssetsCard v-for="(item, index) in assetsList" :key="index" :item="item" :index="index+Number(1)"
  110. @deleteItem="deleteItem(item)" type="output"></AssetsCard>
  111. </view>
  112. <view class="list-container" v-if="activeName === 'input'">
  113. <AssetsCard v-for="(item, index) in preAssetsListRender" :key="index" :item="item" :index="index+Number(1)"
  114. type="input">
  115. </AssetsCard>
  116. </view>
  117. <!-- <u-button type="success" class="preview-box" :plain="true" @click="handlePreview">预览</u-button> -->
  118. <u-button type="" class="preview-box" :plain="true" @click="add">调入</u-button>
  119. <WarehouseChoose ref="warehouseChooseRef" :selfClose="selfClose" />
  120. <!-- <CargoSpaceInfoDialog ref="cargoSpaceInfoDialogRef" @cancel="navShow = true" @success="cargoSpaceInfoConfirm" :assetsList="assetsList" :preAssetsList="preAssetsList" /> -->
  121. <CargoSpaceInfoDialog ref="cargoSpaceInfoDialogRef" @cancel="navShow = true" @success="cargoSpaceInfoConfirm" />
  122. <TypeSetting ref="typeSettingRef" @getPopupInfo="getPopupInfo" />
  123. <PreInventory ref="preInventoryRef" />
  124. <!-- <ScanCode @scancodedate="scancodedate"></ScanCode> -->
  125. </view>
  126. </template>
  127. <script>
  128. import ScanCode from '@/components/ScanCode.vue'
  129. import PreInventory from './components/PreInventory'
  130. import AssetsCard from './components/AssetsCard'
  131. import TypeSetting from './components/TypeSetting'
  132. import WarehouseChoose from '@/components/WarehouseChoose'
  133. import CargoSpaceInfoDialog from './components/CargoSpaceInfoDialog'
  134. import {
  135. getCode,
  136. allotApplySave
  137. } from '@/api/warehouseManagement'
  138. export default {
  139. components: {
  140. TypeSetting,
  141. ScanCode,
  142. PreInventory,
  143. AssetsCard,
  144. WarehouseChoose,
  145. CargoSpaceInfoDialog
  146. },
  147. data() {
  148. return {
  149. transferOrderId: '', // 调拨单ID
  150. searchVal: '',
  151. activeName: 'output',
  152. selfClose: true,
  153. dialTypeOptions: {
  154. 1: '库内调拨',
  155. 2: '库外调拨'
  156. },
  157. dimensionOp: [{
  158. name: '物品维度',
  159. type: 1
  160. },
  161. {
  162. name: '批次维度',
  163. type: 2
  164. },
  165. {
  166. name: '包装维度',
  167. type: 3
  168. }
  169. ],
  170. formData: {
  171. // dialNumber: getRuleNo('ALLOT'),
  172. dialType: '',
  173. warehouseId: '',
  174. warehouseName: '',
  175. inWarehouseId: '',
  176. inWarehouseName: '',
  177. deptCode: '',
  178. deptName: '',
  179. verifyId: '',
  180. verifyName: '',
  181. warehouse: {},
  182. inWarehouse: {},
  183. inventoryDimension: 3,
  184. },
  185. assetsList: [], //已选资产列表
  186. preAssetsList: [], //预调入资产列表
  187. inputFilter: '',
  188. outputFilter: '',
  189. navShow: true,
  190. isCamera: false,
  191. id: '',
  192. rules: {
  193. name: {
  194. required: true,
  195. errorMessage: '请输入调拨名称',
  196. }
  197. }
  198. }
  199. },
  200. async onLoad(options) {
  201. if (options.id) {
  202. this.id = options.id
  203. this._getDetail(options.id)
  204. }
  205. const code = await getCode('transfer_no')
  206. console.log('code---', code)
  207. this.formData.code = code
  208. uni.$on('setSelectList', async data => {
  209. if (data?.length) {
  210. console.log('setSelectList--data------------', data)
  211. this.assetsList = data.map(item => {
  212. item.quantity = item.measureQuantity
  213. return item
  214. })
  215. }
  216. })
  217. this.$forceUpdate()
  218. console.log(this.formData.code)
  219. },
  220. onShow() {
  221. const _this = this
  222. uni.$off('inventoryAllocationScanView') // 每次进来先 移除全局自定义事件监听器
  223. uni.$on('inventoryAllocationScanView', function(data) {
  224. _this.setScanMaterial(data)
  225. })
  226. console.log('onShow')
  227. uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器
  228. uni.$on('scancodedate', function(data) {
  229. _this.scancodedate(data)
  230. })
  231. },
  232. onUnload() {
  233. uni.$off('scancodedate')
  234. },
  235. onHide() {
  236. uni.$off('scancodedate')
  237. },
  238. computed: {
  239. assetsSelectAll: {
  240. set(val) {
  241. this.assetsList.forEach(item => {
  242. item.checked = val
  243. })
  244. return val
  245. },
  246. get() {
  247. return !this.assetsList.some(item => !item.checked)
  248. }
  249. },
  250. preAssetsSelectAll: {
  251. set(val) {
  252. this.preAssetsList.forEach(item => {
  253. item.inputChecked = val
  254. })
  255. return val
  256. },
  257. get() {
  258. return !this.preAssetsList.some(item => !item.inputChecked)
  259. }
  260. },
  261. // 做前端过滤 编码areaName、名称assetCode、货位shelfCode、批次
  262. assetsListRender() {
  263. return this.assetsList.filter(({
  264. assetName = '',
  265. assetCode = '',
  266. outWarehouseAreaName = '',
  267. outWarehouseAreaGoodsCode = '',
  268. outGoodsAllocationCode = ''
  269. }) => {
  270. if (this.outputFilter) {
  271. if (
  272. assetName.indexOf(this.outputFilter) !== -1 ||
  273. assetCode.indexOf(this.outputFilter) !== -1 ||
  274. outWarehouseAreaName.indexOf(this.outputFilter) !== -1 ||
  275. outWarehouseAreaGoodsCode.indexOf(this.outputFilter) !== -1 ||
  276. outGoodsAllocationCode.indexOf(this.outputFilter) !== -1
  277. ) {
  278. return true
  279. }
  280. return false
  281. }
  282. return true
  283. })
  284. },
  285. // 做前端过滤 编码、名称、货位、批次
  286. preAssetsListRender() {
  287. return this.preAssetsList.filter(({
  288. areaName = '',
  289. assetCode = '',
  290. inWarehouseAreaName = '',
  291. inWarehouseAreaGoodsCode = '',
  292. inGoodsAllocationCode = ''
  293. }) => {
  294. if (this.inputFilter) {
  295. if (
  296. areaName.indexOf(this.inputFilter) !== -1 ||
  297. assetCode.indexOf(this.inputFilter) !== -1 ||
  298. inWarehouseAreaName.indexOf(this.inputFilter) !== -1 ||
  299. inWarehouseAreaGoodsCode.indexOf(this.inputFilter) !== -1 ||
  300. inGoodsAllocationCode.indexOf(this.inputFilter) !== -1
  301. ) {
  302. return true
  303. }
  304. return false
  305. }
  306. return true
  307. })
  308. }
  309. },
  310. beforeDestroy() {
  311. uni.$off('setSelectList')
  312. },
  313. methods: {
  314. goScanCode() {
  315. if (!this.formData.warehouseId) {
  316. uni.showToast({
  317. title: '请设置调拨类型!',
  318. icon: 'none'
  319. })
  320. return
  321. }
  322. let warehouse = {}
  323. warehouse.id = this.formData.warehouseId
  324. warehouse.name = this.formData.warehouseName
  325. this.$refs.warehouseChooseRef.open({
  326. ...warehouse,
  327. type: 'output'
  328. }, res => {
  329. if (this.formData.dialType === 1) {
  330. if (!res.areaId) {
  331. uni.showToast({
  332. title: '请选择库区',
  333. icon: 'none'
  334. })
  335. return
  336. }
  337. }
  338. this.formData.cargoSpace = this.getLocation(res)
  339. this.formData.warehouse = res
  340. this.$refs.warehouseChooseRef.cancel()
  341. this.$forceUpdate()
  342. uni.navigateTo({
  343. url: '/pages/warehouse/components/scanCodeList'
  344. })
  345. })
  346. },
  347. add() {
  348. if (!this.formData.name) {
  349. uni.showToast({
  350. title: '请填入调拨名称!',
  351. icon: 'none'
  352. })
  353. return
  354. }
  355. console.log('---------this.assetsList---------------')
  356. console.log(this.assetsList)
  357. console.log(this.formData)
  358. let isBoolen = true
  359. if (this.formData.warehouse.areaId && this.formData.warehouse.shelfId && this.formData.warehouse
  360. .cargoSpaceId) {
  361. isBoolen = this.assetsList.every(
  362. item =>
  363. item.warehouseId == this.formData.warehouseId &&
  364. item.areaId == this.formData.warehouse.areaId &&
  365. item.goodsShelfId == this.formData.warehouse.shelfId &&
  366. item.goodsAllocationId == this.formData.warehouse.cargoSpaceId
  367. )
  368. } else if (this.formData.warehouse.areaId && this.formData.warehouse.shelfId) {
  369. isBoolen = this.assetsList.every(
  370. item => item.warehouseId == this.formData.warehouseId && item.areaId == this.formData.warehouse
  371. .areaId && item.goodsShelfId == this.formData.warehouse.shelfId
  372. )
  373. } else if (this.formData.warehouse.areaId) {
  374. isBoolen = this.assetsList.every(item => item.warehouseId == this.formData.warehouseId && item
  375. .areaId == this.formData.warehouse.areaId)
  376. } else {
  377. isBoolen = this.assetsList.every(item => item.warehouseId == this.formData.warehouseId)
  378. }
  379. if (!isBoolen) {
  380. uni.showToast({
  381. title: '请检查调拨明细!',
  382. icon: 'none'
  383. })
  384. return
  385. }
  386. // 检查是否存在quantity小于等于0或无效的项
  387. if(this.assetsList.some((item) => !item.quantity || item.quantity <= 0 || item.quantity > item.measureQuantity)) {
  388. uni.showToast({
  389. title: '调拨数量不能为0或大于计量数量',
  390. icon: 'none'
  391. })
  392. return
  393. }
  394. if (this.assetsList.length > 0) {
  395. if (this.formData.dialType == 1) {
  396. // 库内
  397. this.submit(2)
  398. } else {
  399. // 库外
  400. this.submit(1)
  401. }
  402. } else {
  403. uni.showToast({
  404. title: '请选择调出物品!',
  405. icon: 'none'
  406. })
  407. }
  408. },
  409. submit(status) {
  410. if (this.assetsList.length > 0) {
  411. let params = {
  412. categoryCode: this.assetsList.map(item => item.categoryCode).join(','),
  413. categoryName: this.assetsList.map(item => item.categoryName).join(','),
  414. allotApplyAddPOBuilders: this.assetsList.map(item => {
  415. return {
  416. quantity: item.quantity,
  417. categoryId: item.categoryId,
  418. outInDetailRecordId: item.id,
  419. warehouseId: this.formData.warehouseId,
  420. warehouseName: this.formData.warehouseName,
  421. areaId: this.formData.warehouse.areaId,
  422. areaName: this.formData.warehouse.areaName,
  423. goodsAllocationId: this.formData.warehouse.cargoSpaceCode,
  424. goodsAllocationName: this.formData.warehouse.cargoSpaceId,
  425. goodsShelfId: this.formData.warehouse.shelfId,
  426. goodsShelfName: this.formData.warehouse.shelfCode,
  427. targetAreaId: this.formData.inWarehouse.areaId,
  428. targetAreaName: this.formData.inWarehouse.areaName,
  429. targetGoodsAllocationId: this.formData.inWarehouse.cargoSpaceId,
  430. targetGoodsAllocationName: this.formData.inWarehouse.cargoSpaceCode,
  431. targetGoodsShelfId: this.formData.inWarehouse.shelfId,
  432. targetGoodsShelfName: this.formData.inWarehouse.shelfCode,
  433. targetWarehouseId: this.formData.inWarehouseId,
  434. targetWarehouseName: this.formData.inWarehouseName,
  435. saleOrderNos: item.saleOrderNos || '',
  436. customerNames: item.customerNames || '',
  437. }
  438. }),
  439. allotCode: this.formData.code,
  440. name: this.formData.name,
  441. id: this.transferOrderId,
  442. inventoryDimension: this.formData.inventoryDimension,
  443. sourceWarehouse: this.formData.warehouseName,
  444. sourceWarehouseId: this.formData.warehouseId,
  445. targetWarehouse: this.formData.inWarehouseName,
  446. targetWarehouseId: this.formData.inWarehouseId,
  447. status: status,
  448. type: this.formData.dialType
  449. }
  450. console.log('params------------', params)
  451. uni.showLoading({
  452. title: '保存中...'
  453. })
  454. allotApplySave(params).then(() => {
  455. uni.hideLoading()
  456. uni.navigateTo({
  457. url: '/pages/warehouse/inventoryAllocation/index'
  458. })
  459. })
  460. }
  461. },
  462. scancodedate(data) {
  463. this.qrContent = data.code.trim()
  464. this.getData()
  465. },
  466. handleScan() {
  467. const _this = this
  468. uni.scanCode({
  469. onlyFromCamera: true,
  470. success: function(res) {
  471. console.log('条码类型:' + res.scanType)
  472. console.log('条码内容:' + res.result)
  473. _this.isCamera = true
  474. _this.qrContent = res.result.trim()
  475. _this.getData()
  476. }
  477. })
  478. },
  479. // 根据条码请求设备数据 @_@
  480. getData() {
  481. if (!this.formData.warehouseId) {
  482. uni.showToast({
  483. title: '请设置调拨类型!',
  484. icon: 'none'
  485. })
  486. return
  487. }
  488. let par = {
  489. barType: this.qrContent.split('@_@')[1] || 0,
  490. qrContent: this.qrContent
  491. }
  492. // uni.showLoading({
  493. // title: '加载中',
  494. // mask: true
  495. // })
  496. // postJ(this.apiUrl + '/scan/getAssetInfo', par)
  497. // .then(res => {
  498. // let data = res.data
  499. // console.log(data, 'qrContent')
  500. // if (data.assetType === undefined) {
  501. // uni.showToast({
  502. // title: '请扫码物品码',
  503. // icon: 'none'
  504. // })
  505. // return
  506. // } else if (data?.warehouseDetail?.bizStatus != 1) {
  507. // uni.showModal({
  508. // title: '提示',
  509. // content: `当前物品不在仓库内`,
  510. // success: async res => {}
  511. // })
  512. // return
  513. // } else if (data.underApproval) {
  514. // uni.showModal({
  515. // title: '提示',
  516. // content: `【${data.assetCode}】正在待审批单据中`,
  517. // success: async res => {}
  518. // })
  519. // return
  520. // } else if (data.information.takeStockPattern) {
  521. // uni.showModal({
  522. // title: '提示',
  523. // content:
  524. // '该物品为批量盘点模式,不可扫码。如需扫码,请将该物品类型在物品信息表中修改为逐个模式。',
  525. // success: async res => {}
  526. // })
  527. // return
  528. // } else if (
  529. // data.warehouseDetail?.warehouseId !== this.formData.warehouseId
  530. // ) {
  531. // uni.showToast({
  532. // title: `请选择${this.formData.warehouseName}仓库下的物品`,
  533. // icon: 'none'
  534. // })
  535. // return
  536. // }
  537. // uni.setStorageSync('inventoryAllocationScan', data)
  538. // uni.navigateTo({
  539. // url: '/pages/warehouse/inventoryAllocation/scanView?emitName=inventoryAllocationScanView&key=inventoryAllocationScan'
  540. // })
  541. // })
  542. // .finally(() => {
  543. // uni.hideLoading()
  544. // })
  545. },
  546. setScanMaterial(data) {
  547. console.log(data, '--------------------')
  548. const curMap = {
  549. assetId: 'id',
  550. assetCode: 'informationCode', //编码
  551. assetName: 'informationName', //名称
  552. materialId: 'id',
  553. materialName: 'informationName',
  554. batchNo: 'batchNum', //批次号
  555. unit: 'measuringUnit', //单位
  556. minPackUnit: 'packingUnit' //最小包装单位
  557. }
  558. let detail = {}
  559. for (const key in curMap) {
  560. detail[key] = (curMap[key] && data.information[curMap[key]]) || ''
  561. }
  562. const obj = {
  563. ...data.information,
  564. ...data.warehouseDetail,
  565. specification: data.information?.specification || data.warehouseDetail?.specification,
  566. detailReqList: [{
  567. ...data.warehouseDetail,
  568. ...detail,
  569. onlyCode: data.assetCode,
  570. batchNo: data.warehouseDetail?.batchNum
  571. }],
  572. amount: 1,
  573. curId: data.warehouseDetail?.cargoSpaceId + data.warehouseDetail?.assetCode
  574. }
  575. const item = this.assetsList.find(itm => itm.curId === obj.curId)
  576. const preItem = this.preAssetsList.find(itm => itm.curId === obj.curId)
  577. const detailReqList = item?.detailReqList || []
  578. const preDetailReqList = preItem?.detailReqList || []
  579. if (item && detailReqList.find(i => i.onlyCode === data.assetCode)) {
  580. uni.showModal({
  581. title: '提示',
  582. content: '该物品已添加至待调入,请勿重复添加',
  583. success: async res => {}
  584. })
  585. return
  586. }
  587. if (preItem && preDetailReqList.find(i => i.onlyCode === data.assetCode)) {
  588. uni.showModal({
  589. title: '提示',
  590. content: '该物品已添加至预调入,请勿重复添加',
  591. success: async res => {}
  592. })
  593. return
  594. }
  595. console.log('this.obj-----------', obj)
  596. // if (item) {
  597. // if (obj.takeStockPattern) {
  598. // obj.amount = 1
  599. // } else {
  600. // obj.detailReqList.push(...detailReqList)
  601. // obj.amount = 1
  602. // }
  603. // }
  604. this.cargoSpaceInfoConfirm([obj])
  605. },
  606. // 带调出删除
  607. deleteItem(item) {
  608. uni.showModal({
  609. title: '提示',
  610. content: '确定删除当前数据?',
  611. success: async res => {
  612. if (res.confirm) {
  613. const index = this.assetsList.findIndex(i => i.curId === item.curId)
  614. if (index > -1) {
  615. this.assetsList.splice(index, 1)
  616. }
  617. }
  618. }
  619. })
  620. },
  621. handleDelete() {
  622. // uni.showModal({
  623. // title: '提示',
  624. // content: '确定删除当前调拨?',
  625. // success: async res => {
  626. // if (res.confirm) {
  627. // const res = await get(
  628. // this.apiUrl + `/conventionalStockTransfer/delete/${this.id}`,
  629. // {},
  630. // true
  631. // )
  632. // if (res.success) {
  633. // uni.showToast({
  634. // title: '删除成功!',
  635. // mask: true
  636. // })
  637. // setTimeout(() => {
  638. // uni.navigateBack({
  639. // delta: 1
  640. // })
  641. // }, 1500)
  642. // }
  643. // }
  644. // }
  645. // })
  646. },
  647. async _getDetail(id) {
  648. // const res = await get(
  649. // this.apiUrl +
  650. // `/conventionalStockTransfer/details/conventionalStockTransfer/${id}`
  651. // )
  652. if (res?.success) {
  653. this.formData = res.data.conventionalStockTransfer
  654. const assetsList = [],
  655. preAssetsList = []
  656. res.data.stockTransferInfoList.forEach(item => {
  657. let obj = {
  658. batchNum: item.batchNo,
  659. curId: item.outGoodsAllocationId + item.assetCode,
  660. ...item
  661. }
  662. if (obj.inGoodsAllocationId) {
  663. obj.inputChecked = false
  664. preAssetsList.push(obj)
  665. } else {
  666. if (!obj.takeStockPattern) {
  667. obj.curDetailReqList = uni.$u.deepClone(obj.detailReqList)
  668. }
  669. assetsList.push(obj)
  670. }
  671. })
  672. this.assetsList = assetsList
  673. this.preAssetsList = preAssetsList
  674. }
  675. },
  676. handleDetail(item) {
  677. this.$refs.detailRef.open(item, this.cargoSpaceId, res => {
  678. if (this.type === 'output') {
  679. this.$set(item, 'curDetailReqList', res)
  680. } else {
  681. this.$set(
  682. item,
  683. 'detailReqList',
  684. res.filter(i => i.checked)
  685. )
  686. }
  687. })
  688. },
  689. //退回待调出
  690. removeOutput() {
  691. if (!this.preAssetsList.some(i => i.inputChecked)) {
  692. uni.showToast({
  693. title: '请选择数据',
  694. icon: 'none'
  695. })
  696. return
  697. }
  698. uni.showModal({
  699. title: '提示',
  700. content: '确定移除当前选中?',
  701. success: res => {
  702. if (res.confirm) {
  703. for (let i = 0; i < this.preAssetsList.length; i++) {
  704. console.log(this.preAssetsList[i])
  705. if (this.preAssetsList[i].inputChecked) {
  706. const index = this.assetsList.findIndex(itm => itm.curId == this
  707. .preAssetsList[i].curId)
  708. if (index > -1) {
  709. if (this.preAssetsList[i].takeStockPattern) {
  710. this.assetsList[index].amount += this.preAssetsList[i].amount
  711. } else {
  712. this.assetsList[index].detailReqList.push(
  713. ...this.preAssetsList[i].detailReqList.map(itm => {
  714. itm.checked = false
  715. return itm
  716. })
  717. )
  718. this.assetsList[index].curDetailReqList = uni.$u.deepClone(this
  719. .assetsList[index].detailReqList)
  720. this.assetsList[index].amount = this.assetsList[index]
  721. .detailReqList.length
  722. }
  723. } else {
  724. const obj = uni.$u.deepClone(this.preAssetsList[i])
  725. if (obj.takeStockPattern) {
  726. obj.curAmount = obj.amount
  727. } else {
  728. obj.curDetailReqList = obj.detailReqList
  729. obj.amount = obj.curDetailReqList.length
  730. }
  731. this.assetsList.push(obj)
  732. }
  733. this.preAssetsList.splice(i, 1)
  734. i--
  735. }
  736. }
  737. }
  738. }
  739. })
  740. },
  741. // 删除数据
  742. deleteOutput() {
  743. if (!this.preAssetsList.some(i => i.inputChecked)) {
  744. uni.showToast({
  745. title: '请选择数据',
  746. icon: 'none'
  747. })
  748. return
  749. }
  750. uni.showModal({
  751. title: '提示',
  752. content: '确定删除当前选中?',
  753. success: res => {
  754. if (res.confirm) {
  755. this.preAssetsList = this.preAssetsList.filter(i => !i.inputChecked)
  756. }
  757. }
  758. })
  759. },
  760. // 删除物料
  761. deleteMaterial() {
  762. this.assetsList = this.assetsList.filter(i => !i.checked)
  763. },
  764. // 预览
  765. handlePreview() {
  766. if (!this.preAssetsList.length) {
  767. uni.showToast({
  768. title: '请选择调拨资产',
  769. icon: 'none'
  770. })
  771. return
  772. }
  773. if (!this.formData.createUserName) {
  774. const userInfo = uni.getStorageSync('userInfo');
  775. (this.formData.createUserId = userInfo.id), (this.formData.createUserName = userInfo.name)
  776. }
  777. const params = {
  778. conventionalStockTransferReq: this.formData,
  779. infoReqList: this.preAssetsList.map(i => {
  780. delete i.curDetailReqList
  781. if (!i.takeStockPattern) {
  782. i.detailReqList = i.detailReqList.map(itm => {
  783. itm.dialType = this.formData.dialType
  784. let obj = {
  785. ...i,
  786. ...itm,
  787. produceId: itm.id
  788. }
  789. delete obj.detailReqList
  790. return obj
  791. })
  792. }
  793. return {
  794. batchNo: i.batchNum,
  795. ...i
  796. }
  797. })
  798. }
  799. delete params.conventionalStockTransferReq.createTime
  800. const storageKey = Date.now() + ''
  801. uni.removeStorageSync('inventoryAllocation_preview')
  802. uni.setStorageSync('inventoryAllocation_preview', {
  803. [storageKey]: {
  804. params,
  805. assetsList: this.assetsList
  806. }
  807. })
  808. if (!this.preAssetsList.length) {
  809. return this.$message.error('请选择调拨资产')
  810. }
  811. uni.navigateTo({
  812. url: '/pages/warehouse/inventoryAllocation/preview?id=' + storageKey
  813. })
  814. },
  815. // 获取当前调入调出信息
  816. getLocation(warehouse) {
  817. let cargoSpace = ''
  818. if (warehouse.areaName) {
  819. if (warehouse.shelfCode) {
  820. if (warehouse.cargoSpaceCode) {
  821. cargoSpace = warehouse.areaName + '-' + warehouse.shelfCode + '-' + warehouse.cargoSpaceCode
  822. } else {
  823. cargoSpace = warehouse.areaName + '-' + warehouse.shelfCode
  824. }
  825. } else {
  826. cargoSpace = warehouse.areaName
  827. }
  828. }
  829. return cargoSpace
  830. },
  831. //获取仓库信息
  832. handleWarehouseChoose(type) {
  833. if (!this.formData.warehouseId) {
  834. uni.showToast({
  835. title: '请设置调拨类型!',
  836. icon: 'none'
  837. })
  838. return
  839. }
  840. let warehouse = {}
  841. if (this.formData.dialType === 1) {
  842. warehouse.id = this.formData.warehouseId
  843. warehouse.name = this.formData.warehouseName
  844. this.$refs.warehouseChooseRef.open({
  845. ...warehouse,
  846. type
  847. }, res => {
  848. console.log('库内调拨好了~~~')
  849. console.log(res)
  850. if (type === 'output') {
  851. // 调出货位
  852. if (!res.areaId) {
  853. uni.showToast({
  854. title: '请选择库区',
  855. icon: 'none'
  856. })
  857. return
  858. }
  859. this.navShow = false
  860. this.formData.cargoSpace = this.getLocation(res)
  861. this.formData.warehouse = res
  862. this.$refs.cargoSpaceInfoDialogRef.open({
  863. ...res,
  864. inventoryDimension: this.formData.inventoryDimension
  865. })
  866. } else {
  867. // 调入货位
  868. if (this.formData.warehouse.areaId && this.formData.warehouse.shelfId && this.formData
  869. .warehouse.cargoSpaceId) {
  870. // 调出库区/货架/货位
  871. console.log(res)
  872. console.log(this.formData)
  873. if (res.areaId && res.shelfId && res.cargoSpaceId) {
  874. if (this.formData.warehouse.areaId == res.areaId && this.formData.warehouse
  875. .shelfId == res.shelfId && this.formData.warehouse.cargoSpaceId == res
  876. .cargoSpaceId) {
  877. uni.showToast({
  878. title: '库区/货架/货位重复',
  879. icon: 'none'
  880. })
  881. return
  882. }
  883. } else {
  884. uni.showToast({
  885. title: '库区/货架/货位不能为空',
  886. icon: 'none'
  887. })
  888. return
  889. }
  890. } else if (this.formData.warehouse.areaId && this.formData.warehouse.shelfId && !this
  891. .formData.warehouse.cargoSpaceId) {
  892. // 调出库区/货架
  893. if (res.areaId && res.shelfId) {
  894. if (this.formData.warehouse.areaId == res.areaId && this.formData.warehouse
  895. .shelfId == res.shelfId) {
  896. uni.showToast({
  897. title: '库区/货架重复',
  898. icon: 'none'
  899. })
  900. return
  901. }
  902. } else {
  903. uni.showToast({
  904. title: '库区/货架不能为空',
  905. icon: 'none'
  906. })
  907. return
  908. }
  909. } else if (this.formData.warehouse.areaId && !this.formData.warehouse.shelfId && !this
  910. .formData.warehouse.cargoSpaceId) {
  911. // 调出库区
  912. if (res.areaId) {
  913. if (this.formData.warehouse.areaId == res.areaId) {
  914. uni.showToast({
  915. title: '库区重复',
  916. icon: 'none'
  917. })
  918. return
  919. }
  920. } else {
  921. uni.showToast({
  922. title: '请选择库区',
  923. icon: 'none'
  924. })
  925. return
  926. }
  927. }
  928. this.formData.inCargoSpace = this.getLocation(res)
  929. this.formData.inWarehouse = res
  930. }
  931. this.$refs.warehouseChooseRef.cancel()
  932. this.$forceUpdate()
  933. console.log(this.formData)
  934. })
  935. } else if (this.formData.dialType === 2) {
  936. if (type == 'output') {
  937. warehouse.id = this.formData.warehouseId
  938. warehouse.name = this.formData.warehouseName
  939. } else {
  940. warehouse.id = this.formData.inWarehouseId
  941. warehouse.name = this.formData.inWarehouseName
  942. }
  943. this.$refs.warehouseChooseRef.open({
  944. ...warehouse,
  945. type
  946. }, res => {
  947. console.log('库外调拨好了~~~')
  948. console.log(res)
  949. if (type === 'output') {
  950. this.navShow = false
  951. this.formData.cargoSpace = this.getLocation(res)
  952. this.formData.warehouse = res
  953. this.$refs.cargoSpaceInfoDialogRef.open({
  954. ...res,
  955. inventoryDimension: this.formData.inventoryDimension
  956. })
  957. } else {
  958. this.formData.inCargoSpace = this.getLocation(res)
  959. this.formData.inWarehouse = res
  960. }
  961. this.$refs.warehouseChooseRef.cancel()
  962. this.$forceUpdate()
  963. console.log(this.formData)
  964. })
  965. }
  966. },
  967. // handleWarehouseChoose(type) {
  968. // if (!this.formData.warehouseId) {
  969. // uni.showToast({
  970. // title: '请设置调拨类型!',
  971. // icon: 'none'
  972. // })
  973. // return
  974. // }
  975. // if (
  976. // type == 'input' &&
  977. // !this.assetsList.filter(item => {
  978. // return (item.takeStockPattern && item.curAmount > 0) || (!item.takeStockPattern && item.curDetailReqList?.filter(p => p.checked).length > 0)
  979. // }).length
  980. // ) {
  981. // uni.showToast({
  982. // title: '请选择待调入资产!',
  983. // icon: 'none'
  984. // })
  985. // return
  986. // }
  987. // let warehouse = {}
  988. // if (this.formData.dialType === 1) {
  989. // warehouse.id = this.formData.warehouseId
  990. // warehouse.name = this.formData.warehouseName
  991. // this.$refs.warehouseChooseRef.open({ ...warehouse, type }, res => {
  992. // if (type === 'output') {
  993. // this.navShow = false
  994. // this.$refs.cargoSpaceInfoDialogRef.open(res)
  995. // } else {
  996. // this.inputConfirm(res)
  997. // }
  998. // })
  999. // } else if (this.formData.dialType === 2) {
  1000. // if (type == 'output') {
  1001. // warehouse.id = this.formData.warehouseId
  1002. // warehouse.name = this.formData.warehouseName
  1003. // } else {
  1004. // warehouse.id = this.formData.inWarehouseId
  1005. // warehouse.name = this.formData.inWarehouseName
  1006. // }
  1007. // this.$refs.warehouseChooseRef.open({ ...warehouse, type }, res => {
  1008. // if (type === 'output') {
  1009. // this.navShow = false
  1010. // this.$refs.cargoSpaceInfoDialogRef.open(res)
  1011. // } else {
  1012. // this.inputConfirm(res)
  1013. // }
  1014. // })
  1015. // }
  1016. // },
  1017. // 选中调入库区
  1018. inputConfirm(data) {
  1019. this.$refs.warehouseChooseRef.cancel()
  1020. this.navShow = false
  1021. this.$refs.preInventoryRef
  1022. .open(this.assetsList, data)
  1023. .then(() => {
  1024. for (let i = 0; i < this.assetsList.length; i++) {
  1025. const item = this.assetsList[i]
  1026. let obj = uni.$u.deepClone(item)
  1027. if (item.takeStockPattern && item.curAmount > 0) {
  1028. obj.amount = obj.curAmount
  1029. delete obj.curAmount
  1030. if (item.curAmount == item.amount) {
  1031. this.assetsList.splice(i, 1)
  1032. i--
  1033. } else {
  1034. item.amount -= item.curAmount
  1035. item.curAmount = 0
  1036. }
  1037. this.preAssetsList.push({
  1038. ...obj,
  1039. inGoodsAllocationCode: data.cargoSpaceCode,
  1040. inGoodsAllocationId: data.cargoSpaceId,
  1041. inWarehouseAreaGoodsCode: data.shelfCode,
  1042. inWarehouseAreaGoodsId: data.shelfId,
  1043. inWarehouseAreaId: data.areaId,
  1044. inWarehouseAreaName: data.areaName,
  1045. inWarehouseId: data.warehouseId,
  1046. inWarehouseName: data.warehouseName,
  1047. inputChecked: false
  1048. })
  1049. }
  1050. if (!item.takeStockPattern && item.curDetailReqList.filter(p => p.checked)?.length) {
  1051. obj.detailReqList = obj.curDetailReqList.filter(p => p.checked)
  1052. obj.amount = obj.detailReqList.length
  1053. if (obj.amount === item.detailReqList.length) {
  1054. this.assetsList.splice(i, 1)
  1055. i--
  1056. } else {
  1057. item.curDetailReqList = item.curDetailReqList.filter(p => !p.checked)
  1058. item.detailReqList = uni.$u.deepClone(item.curDetailReqList)
  1059. item.amount = item.detailReqList.length
  1060. }
  1061. this.preAssetsList.push({
  1062. ...obj,
  1063. inGoodsAllocationCode: data.cargoSpaceCode,
  1064. inGoodsAllocationId: data.cargoSpaceId,
  1065. inWarehouseAreaGoodsCode: data.shelfCode,
  1066. inWarehouseAreaGoodsId: data.shelfId,
  1067. inWarehouseAreaId: data.areaId,
  1068. inWarehouseAreaName: data.areaName,
  1069. inWarehouseId: data.warehouseId,
  1070. inWarehouseName: data.warehouseName,
  1071. inputChecked: false
  1072. })
  1073. }
  1074. }
  1075. this.activeName = 'input'
  1076. })
  1077. .finally(() => (this.navShow = true))
  1078. },
  1079. //调出资产
  1080. cargoSpaceInfoConfirm(assetsList) {
  1081. console.log('assetsList-------', assetsList)
  1082. this.$refs.warehouseChooseRef.cancel()
  1083. this.assetsList = assetsList.map(item => {
  1084. item.quantity = item.measureQuantity
  1085. return item
  1086. })
  1087. // // 已添加物品
  1088. // this.assetsList.forEach(item => {
  1089. // const index = assetsList.findIndex(i => i.curId === item.curId)
  1090. // if (index > -1) {
  1091. // let obj = assetsList.splice(index, 1)[0]
  1092. // item.amount += obj.amount
  1093. // if (obj.takeStockPattern) {
  1094. // item.curAmount += obj.amount
  1095. // } else {
  1096. // const list = obj.detailReqList.filter(i => item.detailReqList.find(itm => i.onlyCode !== itm.onlyCode))
  1097. // if (list.length > 0) {
  1098. // item.detailReqList.push(...list)
  1099. // item.curDetailReqList.push(...uni.$u.deepClone(list).map(i => ({ ...i, checked: true })))
  1100. // }
  1101. // }
  1102. // }
  1103. // })
  1104. // // 未添加
  1105. // this.assetsList.push(
  1106. // ...assetsList.map(i => {
  1107. // if (!i.takeStockPattern) {
  1108. // i.curDetailReqList = uni.$u.deepClone(i.detailReqList).map(i => ({ ...i, checked: true }))
  1109. // } else {
  1110. // i.curAmount = i.amount
  1111. // }
  1112. // return {
  1113. // ...i,
  1114. // outGoodsAllocationCode: i.cargoSpaceCode,
  1115. // outGoodsAllocationId: i.cargoSpaceId,
  1116. // outWarehouseAreaGoodsCode: i.shelfCode,
  1117. // outWarehouseAreaGoodsId: i.shelfId,
  1118. // outWarehouseAreaId: i.areaId,
  1119. // outWarehouseAreaName: i.areaName,
  1120. // outWarehouseId: i.warehouseId,
  1121. // outWarehouseName: i.warehouseName
  1122. // }
  1123. // })
  1124. // )
  1125. // console.log('this.assetsList-----------', this.assetsList)
  1126. },
  1127. getPopupInfo(warehouse) {
  1128. // if (warehouse.warehouseName !== this.formData.warehouseName) {
  1129. // this.assetsList = []
  1130. // this.preAssetsList = []
  1131. // }
  1132. this.assetsList = []
  1133. this.formData.cargoSpace = ''
  1134. this.formData.inCargoSpace = ''
  1135. this.formData.warehouse = {}
  1136. this.formData.inWarehouse = {}
  1137. Object.assign(this.formData, warehouse)
  1138. },
  1139. handleDimensionChange() {
  1140. this.assetsList = []
  1141. }
  1142. }
  1143. }
  1144. </script>
  1145. <style lang="scss" scoped>
  1146. $fixedHeight: 580rpx;
  1147. $fixedHeightOut: 480rpx;
  1148. .flex-center {
  1149. display: flex;
  1150. justify-content: space-between;
  1151. align-items: center;
  1152. // padding: 10rpx 20rpx;
  1153. // box-sizing: border-box;
  1154. .flex_input {
  1155. flex: 1;
  1156. display: flex;
  1157. align-items: center;
  1158. .u-input {
  1159. padding: 0 !important;
  1160. }
  1161. }
  1162. }
  1163. .btn {
  1164. color: $theme-color;
  1165. font-size: 32rpx;
  1166. }
  1167. .isOut .tool-wrapper {
  1168. // height: $fixedHeightOut;
  1169. }
  1170. .tool-wrapper {
  1171. position: fixed;
  1172. left: 0;
  1173. height: $fixedHeight;
  1174. width: 100vw;
  1175. font-size: 28rpx;
  1176. color: #333;
  1177. background-color: #fff;
  1178. z-index: 1;
  1179. .required::before {
  1180. content: '*';
  1181. color: red;
  1182. }
  1183. .info {
  1184. background-color: rgba(242, 242, 242, 0.792156862745098);
  1185. margin: 8rpx 0;
  1186. }
  1187. // .tabs {
  1188. // background-color: rgba(242, 242, 242, 0.792156862745098);
  1189. // padding-top: 20rpx;
  1190. // display: flex;
  1191. // justify-content: space-between;
  1192. // margin-bottom: 20rpx;
  1193. // .tab-item {
  1194. // padding-top: 20rpx;
  1195. // flex: 1;
  1196. // display: flex;
  1197. // justify-content: center;
  1198. // align-items: center;
  1199. // &.active {
  1200. // background: linear-gradient(180deg, rgba(75, 121, 2, 1) 0%, rgba(255, 255, 255, 1) 12%);
  1201. // }
  1202. // }
  1203. // }
  1204. .operations {
  1205. font-size: 32rpx;
  1206. padding: 10rpx 40rpx;
  1207. color: $theme-color;
  1208. }
  1209. .search-box {
  1210. padding: 10rpx;
  1211. }
  1212. .select-box {
  1213. border-bottom: 1rpx solid #d7d7d7;
  1214. white-space: nowrap;
  1215. }
  1216. }
  1217. /deep/.baseForm {
  1218. .u-form-item__body {
  1219. padding: 4px !important;
  1220. }
  1221. .assetType_box {
  1222. padding: 12rpx 18rpx;
  1223. width: 100%;
  1224. overflow: hidden;
  1225. white-space: nowrap;
  1226. text-overflow: ellipsis;
  1227. font-size: 30rpx;
  1228. }
  1229. }
  1230. /deep/.required-form .u-form-item__body__left__content__label::before {
  1231. content: '*';
  1232. color: red;
  1233. }
  1234. /deep/.u-form-item__body {
  1235. padding: 0 !important;
  1236. }
  1237. /deep/.u-input__content__field-wrapper__field,
  1238. /deep/.u-form-item {
  1239. font-size: 28rpx !important;
  1240. }
  1241. .isOut .list-container {
  1242. // padding-top: $fixedHeightOut;
  1243. margin-top: 10px;
  1244. }
  1245. .list-container {
  1246. padding-top: $fixedHeight;
  1247. padding-bottom: 80rpx;
  1248. }
  1249. .preview-box {
  1250. position: fixed;
  1251. bottom: 0;
  1252. width: 100vw !important;
  1253. border: 1px solid $theme-color;
  1254. color: $theme-color;
  1255. }
  1256. </style>