shelfSet.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. <template>
  2. <view class="content">
  3. <u-navbar back-text="货架设置" :border-bottom="false" :background="{backgroundColor: $config('primaryColor')}"
  4. back-icon-color="#fff" :back-text-style="{ color: '#fff' }">
  5. <view slot='right' style="padding: 0 30upx;color: #ffffff;" @click="toPlRacking" v-if="shelfPlaceList">
  6. <u-icon name="piliangshangjia" custom-prefix="iscm-icon"></u-icon>
  7. <text style="margin-left: 6rpx;">批量上架</text>
  8. <u-badge v-if="showDot" :is-dot="true" size="mini" type="error"></u-badge>
  9. </view>
  10. </u-navbar>
  11. <view class="body-content flex flex_column">
  12. <view class="card-box" v-if="detailData">
  13. <view class="card-row flex align_center justify_between">
  14. <view class="label">货架名称:</view>
  15. <view class="text flex align_center justify_end"@click="editShelf">
  16. <text>{{detailData.shelfName}}</text>
  17. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  18. </view>
  19. </view>
  20. <view class="card-row flex align_center justify_between">
  21. <view class="label">关联客户:</view>
  22. <view class="text flex align_center justify_end" @click="customeSet">
  23. <text>{{ (detailData&&detailData.customerEntity&&detailData.customerEntity.customerName) || '--' }}</text>
  24. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  25. </view>
  26. </view>
  27. <view class="card-row align_center flex justify_between">
  28. <view class="label" @click="showTip(0)">价格权限设置 <u-icon color="#ffaa00"
  29. name="question-circle"></u-icon>:</view>
  30. <view class="text flex align_center justify_end" @click="openSetPriceShow">
  31. <view style="flex-grow: 1;">
  32. <view>货架产品:<text style="width: 80%;flex: 1;">{{showPriceStr.length ? showPriceStr.join("/") : '--'}}</text></view>
  33. <view>非货架产品:<text style="width: 80%;flex: 1;">{{showNonPriceStr.length ? showNonPriceStr.join("/") : '--'}}</text></view>
  34. </view>
  35. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  36. </view>
  37. </view>
  38. <view class="card-row align_center flex justify_between" v-if="showMore">
  39. <view class="label">货架状态:</view>
  40. <view class="text flex align_center justify_end" @click="showEnableShelf=true">
  41. <text v-if="detailData">{{detailData.state == 'ENABLE'?'启用':'停用'}}</text>
  42. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  43. </view>
  44. </view>
  45. <view class="card-row align_center flex justify_between" v-if="showMore">
  46. <view class="label">货架注销:</view>
  47. <view class="text">
  48. <u-button type="primary" size="mini" @click="showCancelShelf=true">注销</u-button>
  49. </view>
  50. </view>
  51. <view class="card-row align_center flex justify_between" v-if="showMore">
  52. <view class="label" @click="showTip(1)">是否设置完成<u-icon color="#ffaa00"
  53. name="question-circle"></u-icon>: </view>
  54. <view class="text"><u-switch :size="40" v-model="switchVal"
  55. @change="switchChange"></u-switch></view>
  56. </view>
  57. <view class="moreSeting" @click="showMore=!showMore">
  58. <text>{{!showMore?'更多设置':'收起'}}</text> <u-icon :name="showMore?'arrow-up':'arrow-down'"></u-icon>
  59. </view>
  60. </view>
  61. <!-- 货位信息 -->
  62. <view class="shelfPlace" :style="{height: scrollH+'px'}" v-if="shelfPlaceList">
  63. <view class="flex align_center shelfPlaceHead">
  64. <view class="lt"><text>□</text>表示没有绑定产品</view>
  65. <view class="search-btn flex align_center" @click="toSearchHw">
  66. <view><u-icon name="search"></u-icon><text>按产品搜索</text></view>
  67. <u-icon name="scan"></u-icon>
  68. </view>
  69. </view>
  70. <view class="flex shelfTabs">
  71. <view class="leftTabs">
  72. <view v-for="item in placeTab" :key="item" :class="curTab==item?'active':''"
  73. @click="tabChange(item)">{{item}}层</view>
  74. </view>
  75. <view class="rightCons flex flex_column">
  76. <view class="hwList flex_1">
  77. <text @click="editHw(item)" v-for="item in shelfPlaceList[curTab]"
  78. :key="item.shelfPlaceCode"
  79. :class="item.shelfProductApiEntity && item.shelfProductApiEntity.productSn?'':'red'">
  80. {{item.shelfPlaceCode}}
  81. </text>
  82. <text class="add" @click="addHw('add',1)"><u-icon name="plus"></u-icon></text>
  83. </view>
  84. <view class="hwAction flex justify_between">
  85. <u-button shape="circle" @click="tapPopup(1)" size="medium">打印贴签</u-button>
  86. <u-button class="newbtn" @click="tapPopup(2)" type='primary' shape="circle"
  87. size="medium">快速补货</u-button>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <view style="width: 100%;" v-else>
  93. <view class="nodata" v-if="!loading">
  94. <view>
  95. <u-image :src="`../../static/${$config('themePath')}/def_no_data@3x.png`" width="180"
  96. height="180" border-radius="10"></u-image>
  97. </view>
  98. <view class="flex">
  99. 暂无货位信息,请点击
  100. <view>
  101. <text @click="toPlRacking">批量上架</text>
  102. <u-badge :offset="[-6,-10]" v-if="showDot" :is-dot="true" size="mini"
  103. type="error"></u-badge>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="nodata" v-else>
  108. <u-loadmore :load-text="$config('loadText')" status="loading" />
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 设置价格显示弹框 -->
  113. <u-modal v-model="updateShowPrice" :show-cancel-button="true" title="价格权限设置" @confirm="savePriceSet">
  114. <view class="slot-content" style="padding: 1rem 1rem 1.5rem;text-align: center;">
  115. <view style="color: #999;font-size: 0.8rem;margin: 0.5rem;">提示:不勾选则不显示价格</view>
  116. <view style="text-align: left;font-size: 0.9rem;padding-left: 1rem;">货架产品:</view>
  117. <u-checkbox-group @change="priceSetChange">
  118. <u-checkbox v-for="item in showPrice" :key="item.paramCode" v-model="item.checked"
  119. :name="item.paramCode">{{item.text}}</u-checkbox>
  120. </u-checkbox-group>
  121. <view style="text-align: left;font-size: 0.9rem;padding-left: 1rem;margin-top: 0.5rem;">非货架产品:</view>
  122. <u-checkbox-group @change="nonPriceSetChange">
  123. <u-checkbox v-for="item in showNonPrice" :key="item.paramCode" v-model="item.checked"
  124. :name="item.paramCode">{{item.text}}</u-checkbox>
  125. </u-checkbox-group>
  126. </view>
  127. </u-modal>
  128. <!-- 启用禁用货架 -->
  129. <u-modal v-model="showEnableShelf" :show-cancel-button="true" title="货架状态" @confirm="enbaleShelf">
  130. <view class="slot-content" style="padding: 1rem 1rem 1.5rem;text-align: center;">
  131. <u-radio-group v-model="shelfStatus">
  132. <u-radio name="ENABLE">启用</u-radio>
  133. <u-radio name="DISABLED">停用</u-radio>
  134. </u-radio-group>
  135. </view>
  136. </u-modal>
  137. <!-- 注销货架 -->
  138. <u-modal v-model="showCancelShelf" :show-cancel-button="true" title="是否注销该数字货架?" @confirm="cancelShelf">
  139. <view class="slot-content" style="padding: 1rem 1rem 1.5rem;text-align: center;">
  140. 点击确定,该数字货架就不可做任何操作,用户不可登陆。
  141. </view>
  142. </u-modal>
  143. </view>
  144. </template>
  145. <script>
  146. import {
  147. shelfDetail,
  148. shelfSave,
  149. modifFinishFlag,
  150. getProductPlace,
  151. getShelfPriceShow,
  152. updateShelfPriceShow,
  153. shelfModifState
  154. } from '@/api/shelf'
  155. import {
  156. shelfCartNotEmpty
  157. } from '@/api/shelfCart'
  158. import {
  159. createShelfReplenishBill
  160. } from '@/api/shelfReplenish'
  161. export default {
  162. components: {},
  163. data() {
  164. return {
  165. loading: false,
  166. shelfSn: null,
  167. detailData: null,
  168. switchVal: false,
  169. showMenus: false,
  170. scrollH: 400,
  171. popData: [{
  172. title: '快速补货',
  173. val: '0'
  174. }, {
  175. title: '打印贴签',
  176. val: '1'
  177. }],
  178. pleft: 0,
  179. ptop: 0,
  180. shelfPlaceList: null,
  181. placeTab: [],
  182. curTab: '',
  183. isLoad: false,
  184. webView: null,
  185. showDot: false,
  186. showPrice: [],
  187. showNonPrice:[],
  188. showPriceStr: [],
  189. showNonPriceStr:[],
  190. updateShowPrice: false,
  191. showPriceBak: [],
  192. showMore: false,
  193. showEnableShelf: false,
  194. shelfStatus: undefined,
  195. showCancelShelf: false
  196. }
  197. },
  198. watch: {
  199. showMore(a, b) {
  200. this.getScrollHeight(a)
  201. },
  202. },
  203. onLoad(option) {
  204. this.shelfSn = option.shelfSn
  205. // 获取货架详情
  206. this.getShelfDetal()
  207. // 获取货物
  208. this.getShelfPlace()
  209. this.isLoad = true
  210. // this.webView = this.$mp.page.$getAppWebview();
  211. uni.$on("editCustome", (data) => {
  212. this.isLoad = true
  213. this.saveShelf(data, 0)
  214. })
  215. uni.$on("editShelfName", (data) => {
  216. this.isLoad = true
  217. this.saveShelf(data, 1)
  218. })
  219. // const win = uni.getWindowInfo()
  220. // this.pleft = Math.floor(win.windowWidth * 0.3)
  221. // this.ptop = Math.floor(win.windowHeight - 70)
  222. this.getScrollHeight(this.showMore)
  223. console.log(this.shelfSn)
  224. },
  225. onUnload() {
  226. uni.$off("editCustome")
  227. uni.$off("editShelfName")
  228. },
  229. onShow() {
  230. if (!this.isLoad) {
  231. this.updateHw()
  232. }
  233. },
  234. methods: {
  235. getScrollHeight(a) {
  236. const sys = uni.getSystemInfoSync()
  237. const h = a ? 290 : 250
  238. if (sys.platform == 'android') {
  239. this.scrollH = sys.windowHeight - h
  240. } else {
  241. if (sys.safeArea.top) {
  242. this.scrollH = sys.windowHeight - h + sys.statusBarHeight - 34
  243. } else {
  244. this.scrollH = sys.windowHeight - h - 14
  245. }
  246. }
  247. },
  248. // 刷新货位
  249. updateHw() {
  250. this.placeTab = []
  251. this.shelfPlaceList = null
  252. this.getShelfPlace(true)
  253. },
  254. // 批量上架
  255. toPlRacking() {
  256. const url = this.showDot ? '/pages/batchShelves/cartList' : '/pages/batchShelves/index'
  257. uni.navigateTo({
  258. url: url + "?shelfSn=" + this.shelfSn + '&shelfName=' + this.detailData.shelfName +
  259. '&customerSn=' + this.detailData.customerSn
  260. })
  261. },
  262. // 更多操作
  263. tapPopup(e) {
  264. // 打印贴签
  265. if (e == 1) {
  266. if (this.hasNoBindPro()) {
  267. uni.navigateTo({
  268. url: "/pages/latePlay/chooseProduct?shelfSn=" + this.shelfSn + '&shelfName=' + this
  269. .detailData.shelfName
  270. })
  271. } else {
  272. uni.showModal({
  273. showCancel: false,
  274. confirmText: "好的",
  275. title: "提示",
  276. content: "所有货位都没有绑定产品,无法打印贴签!"
  277. })
  278. }
  279. }
  280. // 快速补货
  281. if (e == 2) {
  282. createShelfReplenishBill({
  283. shelfSn: this.shelfSn,
  284. enableFlag: 1
  285. }).then(res => {
  286. console.log(res.data)
  287. if (res.data && res.data.length) {
  288. const params = Object.assign(this.detailData, {
  289. list: res.data
  290. })
  291. this.$store.state.vuex_tempData = params
  292. uni.navigateTo({
  293. url: "/pages/shelfSetting/quickReplenish"
  294. })
  295. } else {
  296. uni.showModal({
  297. showCancel: false,
  298. confirmText: "好的",
  299. title: "提示",
  300. content: "没有需要补货的产品"
  301. })
  302. }
  303. })
  304. }
  305. },
  306. showTip(type) {
  307. uni.showModal({
  308. showCancel: false,
  309. confirmText: "好的",
  310. title: "提示",
  311. content: type ? "只有当数字货架的“是否设置完成”为“是”,系统才会自动对该货架生成补货单,修理厂才能正常下单。" :
  312. "不勾选则不显示价格,结算价:即易码通进货价"
  313. })
  314. },
  315. // 注销货架
  316. cancelShelf(){
  317. const params = {
  318. shelfSn: this.shelfSn,
  319. state: 'WRITE_OFF'
  320. }
  321. shelfModifState(params).then(res => {
  322. if(res.status == 200){
  323. this.toashMsg(res.message)
  324. this.showCancelShelf = false
  325. if(res.status == 200){
  326. uni.navigateBack()
  327. }
  328. }
  329. })
  330. },
  331. // 启用禁用货架
  332. enbaleShelf(){
  333. const params = {
  334. shelfSn: this.shelfSn,
  335. state: this.shelfStatus
  336. }
  337. shelfModifState(params).then(res => {
  338. this.toashMsg(res.message)
  339. this.showEnableShelf = false
  340. if(res.status == 200){
  341. this.getShelfDetal()
  342. }
  343. })
  344. },
  345. // 设置完成是否
  346. switchChange(v) {
  347. const params = {
  348. shelfSn: this.shelfSn,
  349. finishFlag: v ? '1' : '0'
  350. }
  351. modifFinishFlag(params).then(res => {
  352. if (res.status == 200) {
  353. uni.showToast({
  354. icon: 'none',
  355. title: res.message
  356. })
  357. }
  358. })
  359. },
  360. // 关联客户
  361. customeSet() {
  362. uni.navigateTo({
  363. url: "/pages/sales/chooseCustomer?backPage=shelfEdit&shelfName=" + this.detailData.shelfName
  364. })
  365. },
  366. // 修改货架名称
  367. editShelf() {
  368. uni.navigateTo({
  369. url: "/pages/shelfSetting/editShelf?shelfName=" + this.detailData.shelfName
  370. })
  371. },
  372. // 是否没有绑定任何产品
  373. hasNoBindPro() {
  374. let noBindPro = null;
  375. for (let i = 0; i < this.placeTab.length; i++) {
  376. noBindPro = this.shelfPlaceList[this.placeTab[i]].find(item => item.shelfProductApiEntity && item
  377. .shelfProductApiEntity.productSn);
  378. if (!!noBindPro) {
  379. break
  380. }
  381. }
  382. return !!noBindPro
  383. },
  384. // 按照产品搜索货位
  385. toSearchHw() {
  386. if (this.hasNoBindPro()) {
  387. uni.navigateTo({
  388. url: "/pages/shelfSetting/searchShelfHw?shelfName=" + this.detailData.shelfName +
  389. "&shelfSn=" + this.shelfSn
  390. })
  391. } else {
  392. uni.showModal({
  393. showCancel: false,
  394. confirmText: "好的",
  395. title: "提示",
  396. content: "所有货位都没有绑定产品,无法搜索!"
  397. })
  398. }
  399. },
  400. // 编辑货位
  401. editHw(item) {
  402. const hasProduct = item.shelfProductApiEntity && item.shelfProductApiEntity.productSn
  403. const type = hasProduct ? 'edit' : 'bind'
  404. const params = Object.assign(this.detailData, item)
  405. this.$store.state.vuex_tempData = params
  406. uni.navigateTo({
  407. url: "/pages/shelfSetting/editShelfHw?type=" + type
  408. })
  409. },
  410. // 新增货位
  411. addHw(type, flag) {
  412. let shelfPlaceCode = ''
  413. if (type == 'edit') {
  414. shelfPlaceCode = flag
  415. }
  416. if (type == 'add' && flag == 1) {
  417. const row = this.shelfPlaceList[this.curTab]
  418. const num = row[row.length - 1].shelfPlaceCode.replace(this.curTab, '')
  419. const nextNum = Number(num) + 1
  420. shelfPlaceCode = this.curTab + (nextNum < 10 ? '0' : '') + nextNum
  421. }
  422. const params = {
  423. customerSn: this.detailData.customerSn,
  424. shelfSn: this.detailData.shelfSn,
  425. id: this.detailData.id
  426. }
  427. uni.navigateTo({
  428. url: "/pages/shelfSetting/addShelfHw?detailData=" + encodeURIComponent(JSON.stringify(
  429. params)) + "&type=" + type + "&shelfPlaceCode=" + shelfPlaceCode
  430. })
  431. },
  432. // 保存数字货架基本信息
  433. saveShelf(data, type) {
  434. const params = {
  435. shelfSn: this.shelfSn
  436. }
  437. if (type == 1) {
  438. params.customerSn = this.detailData.customerSn
  439. params.shelfName = data.shelfName
  440. } else {
  441. params.customerSn = data.customerSn
  442. }
  443. shelfSave(params).then(res => {
  444. if (res.status == 200) {
  445. this.toashMsg(res.message)
  446. this.getShelfDetal()
  447. }
  448. })
  449. },
  450. // 获取价格显示设置
  451. getShelfPriceShow() {
  452. getShelfPriceShow({
  453. shelfSn: this.shelfSn
  454. }).then(res => {
  455. if (res.status == 200) {
  456. const ret = res.data && res.data
  457. this.showPriceBak = ret
  458. console.log(ret)
  459. this.formatPriceShow()
  460. }
  461. })
  462. },
  463. // 格式化价格显示
  464. checkPrice(item){
  465. if(item.paramCode.indexOf("non_")>=0){
  466. this.showNonPrice.push({
  467. paramCode: item.paramCode,
  468. paramValue: item.paramValue,
  469. text: item.paramCode == 'non_shelf_price_show' ? '车主价' : '结算价',
  470. checked: item.paramValue == 1
  471. })
  472. }else{
  473. this.showPrice.push({
  474. paramCode: item.paramCode,
  475. paramValue: item.paramValue,
  476. text: item.paramCode == 'shelf_price_show' ? '车主价' : '结算价',
  477. checked: item.paramValue == 1
  478. })
  479. }
  480. },
  481. formatPriceShow(){
  482. this.showPrice = []
  483. this.showPriceStr = []
  484. this.showNonPrice = []
  485. this.showNonPriceStr = []
  486. const a = this.showPriceBak.filter(item => item.paramCode.indexOf('shelf_price_show')>=0)
  487. const b = this.showPriceBak.filter(item => item.paramCode.indexOf('shelf_cost_show')>=0)
  488. a.map(item => {
  489. if (item.paramCode == 'shelf_price_show' && item.paramValue == 1) {
  490. this.showPriceStr.push("车主价")
  491. }
  492. if (item.paramCode == 'non_shelf_price_show' && item.paramValue == 1) {
  493. this.showNonPriceStr.push("车主价")
  494. }
  495. this.checkPrice(item)
  496. })
  497. b.map(item => {
  498. if (item.paramCode == 'shelf_cost_show' && item.paramValue == 1) {
  499. this.showPriceStr.push("结算价")
  500. }
  501. if (item.paramCode == 'non_shelf_cost_show' && item.paramValue == 1) {
  502. this.showNonPriceStr.push("结算价")
  503. }
  504. this.checkPrice(item)
  505. })
  506. },
  507. openSetPriceShow(){
  508. this.formatPriceShow()
  509. this.updateShowPrice = true
  510. },
  511. // 选择价格显示
  512. priceSetChange(e) {
  513. console.log(e)
  514. this.showPrice.map(item => {
  515. item.paramValue = e.includes(item.paramCode) ? 1 : 0
  516. })
  517. },
  518. nonPriceSetChange(e){
  519. this.showNonPrice.map(item => {
  520. item.paramValue = e.includes(item.paramCode) ? 1 : 0
  521. })
  522. },
  523. // 价格显示保存
  524. savePriceSet() {
  525. uni.showLoading({
  526. mask: true,
  527. title: '正在保存价格设置...'
  528. })
  529. // 更新价格显示
  530. updateShelfPriceShow({
  531. shelfSn: this.shelfSn,
  532. paramValue: [...this.showPrice,...this.showNonPrice]
  533. }).then(res => {
  534. if (res.status == 200) {
  535. this.getShelfPriceShow()
  536. this.toashMsg(res.message)
  537. }
  538. uni.hideLoading()
  539. })
  540. },
  541. getShelfDetal() {
  542. shelfDetail({
  543. sn: this.shelfSn
  544. }).then(res => {
  545. if (res.status == 200) {
  546. this.detailData = res.data
  547. this.switchVal = res.data.finishFlag == 1
  548. this.shelfStatus = res.data.state
  549. // 价格设置
  550. this.getShelfPriceShow()
  551. } else {
  552. this.detailData = null
  553. }
  554. })
  555. },
  556. getShelfPlace(flag) {
  557. this.loading = true
  558. getProductPlace({
  559. shelfSn: this.shelfSn
  560. }).then(res => {
  561. if (res.status == 200 && res.data) {
  562. this.shelfPlaceList = res.data
  563. // 获取层
  564. for (let a in res.data) {
  565. this.placeTab.push(a)
  566. }
  567. // 排序
  568. this.placeTab.sort(function(a, b) {
  569. return (a + '').localeCompare(b + '');
  570. });
  571. console.log(this.placeTab)
  572. if (!flag || !this.curTab) {
  573. this.curTab = this.placeTab[0]
  574. }
  575. if (this.placeTab.length == 0) {
  576. this.shelfPlaceList = null
  577. }
  578. } else {
  579. this.shelfPlaceList = null
  580. this.placeTab = []
  581. }
  582. // 是否有已录入的产品
  583. this.getHasCartNotEmpty()
  584. this.isLoad = false
  585. this.loading = false
  586. })
  587. },
  588. tabChange(item) {
  589. this.curTab = item
  590. },
  591. getHasCartNotEmpty() {
  592. shelfCartNotEmpty({
  593. shelfSn: this.shelfSn
  594. }).then(res => {
  595. this.showDot = res.data == 1
  596. })
  597. }
  598. }
  599. }
  600. </script>
  601. <style lang="less">
  602. .content {
  603. width: 100%;
  604. .nodata {
  605. padding: 100rpx 50rpx;
  606. text-align: center;
  607. display: flex;
  608. flex-direction: column;
  609. justify-content: center;
  610. align-items: center;
  611. >view {
  612. position: relative;
  613. padding: 10upx 0;
  614. text {
  615. color: #00aaff;
  616. margin-left: 10rpx;
  617. }
  618. }
  619. }
  620. .body-content {
  621. width: 100%;
  622. }
  623. .card-box {
  624. background-color: #fff;
  625. border-radius: 0.5rem;
  626. box-shadow: 0.1rem 0.2rem 0.3rem #eee;
  627. padding: 0 1rem;
  628. margin: 0.5rem;
  629. .card-row {
  630. border-bottom: 1rpx solid #eee;
  631. padding: 10rpx 0;
  632. min-height: 80rpx;
  633. &:last-child {
  634. border-bottom: 0;
  635. }
  636. .label{
  637. min-width: 30%;
  638. }
  639. .text {
  640. color: #666;
  641. flex-grow: 1;
  642. text-align: right;
  643. }
  644. }
  645. .moreSeting {
  646. text-align: center;
  647. color: #999;
  648. padding: 20upx;
  649. >text {
  650. margin-right: 10rpx;
  651. }
  652. }
  653. }
  654. .shelfPlace {
  655. height: calc(100% - 300rpx);
  656. .shelfPlaceHead {
  657. padding: 0.2rem 0.5rem 0.5rem;
  658. justify-content: space-between;
  659. .lt {
  660. font-size: 0.9rem;
  661. color: #999;
  662. text {
  663. color: #ff5500;
  664. font-size: 1rem;
  665. }
  666. }
  667. .search-btn {
  668. border: 1rpx solid #eee;
  669. border-radius: 50rpx;
  670. width: 50%;
  671. justify-content: space-between;
  672. padding: 0.3rem 0.5rem;
  673. color: #999;
  674. background-color: #fff;
  675. font-size: 0.9rem;
  676. &:active {
  677. opacity: 0.6;
  678. }
  679. }
  680. }
  681. .shelfTabs {
  682. height: calc(100% - 85rpx);
  683. .leftTabs {
  684. width: 20%;
  685. overflow: auto;
  686. >view {
  687. padding: 0.8rem 0.5rem;
  688. border-left: 0.2rem solid #f8f8f8;
  689. text-align: center;
  690. }
  691. .active {
  692. border-color: rgb(47, 126, 209);
  693. background-color: #fff;
  694. }
  695. }
  696. .rightCons {
  697. width: 80%;
  698. background-color: #fff;
  699. position: relative;
  700. .hwList {
  701. overflow: auto;
  702. padding: 0.5rem;
  703. padding-bottom: 105rpx;
  704. >text {
  705. border: 1rpx solid #eee;
  706. padding: 0.2rem 0.8rem;
  707. border-radius: 0.3rem;
  708. margin: 0.5rem 2%;
  709. float: left;
  710. width: 20%;
  711. text-align: center;
  712. }
  713. .red {
  714. border-color: #ff5500;
  715. }
  716. .add {
  717. border-style: dashed;
  718. border-color: #999;
  719. color: #999;
  720. }
  721. }
  722. .hwAction {
  723. padding: 0.5rem;
  724. position: fixed;
  725. bottom: 0;
  726. right: 0;
  727. width: 80%;
  728. background-color: #fff;
  729. button {
  730. width: 240rpx;
  731. }
  732. .newbtn {
  733. background-color: rgb(51, 95, 182);
  734. color: #fff;
  735. }
  736. }
  737. }
  738. }
  739. }
  740. }
  741. </style>