edit.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. <template>
  2. <view class="sales-edit-wrap flex flex_column">
  3. <!-- 基础信息 -->
  4. <view class="sales-info-con">
  5. <u-section @click="infoModal=true" title="基础信息" sub-title="查看更多" :line-color="$config('primaryColor')"></u-section>
  6. <view class="info-item-box">
  7. <text class="info-item-tit color_6">销售单号</text>
  8. <text>{{detailData && detailData.salesBillNo || '--'}}</text>
  9. </view>
  10. <view class="info-item-box">
  11. <text class="info-item-tit color_6">客户名称</text>
  12. <text>{{detailData&&detailData.buyerNameCurrent?detailData.buyerName?detailData.buyerName==detailData.buyerNameCurrent?detailData.buyerNameCurrent:detailData.buyerNameCurrent+'('+detailData.buyerName+')':detailData.buyerNameCurrent:'--' }}</text>
  13. </view>
  14. </view>
  15. <!-- 产品列表 -->
  16. <view class="sales-product-con flex flex_column">
  17. <view>
  18. <!-- 标题 -->
  19. <view class="sales-product-header border-b flex align_center justify_between">
  20. <u-section title="产品列表" :right="pageData.type=='edit'" :line-color="$config('primaryColor')">
  21. <template slot="right" v-if="pageData.type=='edit'">
  22. <view class="sales-product-operation">
  23. <u-button @click="discountModal=true" size="mini" :hair-line="false" shape="circle" plain type="primary" hover-class="none">
  24. 打折
  25. <text v-if="detailData&&detailData.discountAmount">:¥{{detailData.discountAmount}}</text>
  26. </u-button>
  27. <u-button @click="handleProduct" size="mini" :hair-line="false" shape="circle" :custom-style="customBtnStyle" type="primary" hover-class="none">选择产品</u-button>
  28. </view>
  29. </template>
  30. </u-section>
  31. </view>
  32. <!-- 合计 -->
  33. <view ref="salesTotal" class="sales-total-box border-b font_13 flex justify_between">
  34. <view class="sales-total-con flex_1" :style="{height: toggle ? 'auto' : '44upx'}">
  35. <view>
  36. 总款数:<text class="sales-total-num" :style="{color: $config('warringColor')}">{{detailData && (detailData.totalCategory || detailData.totalCategory==0) ? toThousands(detailData.totalCategory) : '--'}}</text>;总数量:<text class="sales-total-num" :style="{color: $config('warringColor')}">{{detailData && (detailData.totalQty || detailData.totalQty==0) ? toThousands(detailData.totalQty) : '--'}}</text>;总售价:<text class="sales-total-num" :style="{color: $config('warringColor')}">¥{{detailData && (detailData.totalAmount || detailData.totalAmount==0) ? toThousands(detailData.totalAmount, 2) : '--'}}</text>;
  37. </view>
  38. <view>
  39. 折扣金额:<text class="sales-total-num" :style="{color: $config('warringColor')}">¥{{detailData && (detailData.discountAmount || detailData.discountAmount==0) ? toThousands(detailData.discountAmount, 2) : '--'}}</text>;折扣:<text class="sales-total-num" :style="{color: $config('warringColor')}">{{detailData && (detailData.discountRate || detailData.discountRate==0) ? detailData.discountRate+'%' : '--'}}</text>;折后总售价:<text class="sales-total-num" :style="{color: $config('warringColor')}">¥{{detailData && (detailData.discountedAmount || detailData.discountedAmount==0) ? toThousands(detailData.discountedAmount, 2) : '--'}}</text>;
  40. </view>
  41. <view>
  42. 急件总款数:<text class="sales-total-num" :style="{color: $config('warringColor')}">{{detailData && (detailData.oosCategory || detailData.oosCategory==0) ? toThousands(detailData.oosCategory) : '--'}}</text>;急件总数量:<text class="sales-total-num" :style="{color: $config('warringColor')}">{{detailData && (detailData.oosQty || detailData.oosQty==0) ? toThousands(detailData.oosQty) : '--'}}</text>;赠品总数量:<text class="sales-total-num" :style="{color: $config('warringColor')}">{{detailData && (detailData.giftQty || detailData.giftQty==0) ? toThousands(detailData.giftQty) : '--'}}</text>;
  43. </view>
  44. <view v-if="$hasPermissions('M_showCostPrice_mobile')">
  45. 总成本:<text class="sales-total-num" :style="{color: $config('warringColor')}">¥{{detailData && (detailData.totalCost || detailData.totalCost==0) ? toThousands(detailData.totalCost, 2) : '--'}}</text>;总毛利:<text class="sales-total-num" :style="{color: $config('warringColor')}">¥{{detailData && (detailData.grossProfit || detailData.grossProfit==0) ? toThousands(detailData.grossProfit, 2) : '--'}}</text>;
  46. </view>
  47. </view>
  48. <text class="sales-total-btn" @click="toggle=!toggle" :style="{color: $config('primaryColor')}">{{ toggle ? '收起' : '展开' }}</text>
  49. </view>
  50. </view>
  51. <!-- 产品列表 -->
  52. <view class="sales-list-box">
  53. <scroll-view class="sales-list-con" :style="{height:scrollH+'upx'}" scroll-y @scrolltolower="onreachBottom">
  54. <view class="sales-list-item border-b flex align_center justify_between" v-for="(item, index) in listData" :key="item.id">
  55. <view class="font_13 flex_1 flex justify_between">
  56. <view class="pimgs">
  57. <u-image :src="item.productMainImage?item.productMainImage:`../../static/${$config('themePath')}/def_img@2x.png`" width="128" height="128" border-radius="10"></u-image>
  58. <view v-if="(isOwerEdit && item.oosFlag == 1) || (isOwerEdit && item.oosFlag == 1)" class="sign" :style="{backgroundColor: $config('errorColor')}">急</view>
  59. <view v-if="item.price < item.cost" class="sign" :style="{backgroundColor: $config('warringColor')}">亏</view>
  60. <view v-if="!isOwerEdit&&!isAudit&&(!item.currentStockQty || item.currentStockQty < item.qty)" class="sign" :style="{backgroundColor: $config('errorColor')}">缺</view>
  61. <view class="sign1" v-if="detailData&&detailData.payOnlineFlag==1&&item.promoProductType=='GIFT_PRODUCT'" :style="{backgroundColor: $config('successColor')}">赠</view>
  62. <view class="sign1" v-if="detailData&&detailData.payOnlineFlag==1&&item.promoProductType=='TICKET_PRODUCT'" :style="{backgroundColor: $config('orangeColor')}">券</view>
  63. <view class="sign1" v-if="detailData&&detailData.payOnlineFlag==1&&item.promoProductType=='SPECIAL_PRODUCT'" :style="{backgroundColor: $config('warringColor')}">特</view>
  64. </view>
  65. <view class="sales-item-main flex_1">
  66. <view class="sales-item-name">{{item.productName || '--'}}</view>
  67. <view class="sales-item-txt">{{item.productCode || '--'}}</view>
  68. <view class="sales-item-txt color_6" style="font-size: 24upx;" v-if="item.warehouseEntity&&item.warehouseEntity.name || item.warehouseLocationEntity&&item.warehouseLocationEntity.name">{{item.warehouseEntity&&item.warehouseEntity.name}} > {{item.warehouseLocationEntity&&item.warehouseLocationEntity.name}}</view>
  69. <view class="sales-item-txt flex align_center justify_between">
  70. <view class="sales-item-priceInfo">
  71. <view :style="{color: $config('errorColor'), display: 'inline-block'}">¥<text style="font-size: 30upx;">{{toThousands(item.price||0, 2)}}</text></view>
  72. <text style="display: inline-block;margin: 0 10upx;">X</text>
  73. <text style="font-size: 30upx;">{{toThousands(item.qty||0)}}</text>
  74. {{item.productUnit}}
  75. </view>
  76. <view class="sales-item-price">¥{{toThousands(item.totalAmount||0, 2)}}</view>
  77. </view>
  78. <view class="sales-item-price" v-if="detailData&&detailData.discountAmount">折后:¥{{toThousands(item.discountedAmount||0, 2)}}</view>
  79. </view>
  80. </view>
  81. <!-- <view class="btn-box" style="padding-right: 0;">
  82. <u-button v-if="pageData.type=='edit'" @click="handleDel(item)" size="mini" :hair-line="false" shape="circle" plain type="error" hover-class="none">删除</u-button>
  83. </view> -->
  84. </view>
  85. <view v-if="listData && listData.length == 0">
  86. <u-empty :src="`/static/${$config('themePath')}/def_no_data@3x.png`" icon-size="150" :text="noDataText" mode="list" :margin-top="50"></u-empty>
  87. </view>
  88. <view style="padding: 20upx;">
  89. <u-loadmore v-if="totalNum>listData.length || status=='loading'" :status="status" />
  90. </view>
  91. </scroll-view>
  92. </view>
  93. </view>
  94. <!-- 操作按钮 -->
  95. <!-- <view class="sales-btn-box" v-if="detailData&&detailData.billStatus!='FINISH'">
  96. <view v-if="pageData.type=='edit'" class="flex align_center justify_between">
  97. <u-button class="handle-btn" shape="circle" size="medium" hover-class="none" @click="handleDel()">整单删除</u-button>
  98. <u-button class="handle-btn search-btn" shape="circle" @click="handleSubmit" size="medium" hover-class="none" :custom-style="customBtnStyle">提交</u-button>
  99. </view>
  100. <u-button v-if="pageData.type=='detail' && (detailData&&detailData.billStatus !== 'CANCEL' && detailData.billStatus !== 'FINISH' && detailData.billStatus != 'WAIT_OUT_WAREHOUSE')" class="edit-btn" shape="circle" @click="goPage" size="medium" hover-class="none" :custom-style="customBtnStyle">编辑</u-button>
  101. </view> -->
  102. <!-- 基础信息 -->
  103. <orderInfoModal :openModal="infoModal" :infoData="detailData" @close="infoModal=false" />
  104. <!-- 折扣 -->
  105. <discountModal :openModal="discountModal" :infoData="detailData" :amount="detailData&&detailData.discountAmount" @confirm="discountConfirm" @close="discountModal=false" />
  106. <!-- 删除产品/整单删除弹框 -->
  107. <common-modal :openModal="commonModal" :content="modalText" @confirm="handleCommon" @cancel="handleCancel" @close="commonModal=false" />
  108. <!-- 添加/编辑产品 -->
  109. <productModal :openModal="openProductModal" :infoData="productInfo" @confirm="productConfirm" @close="openProductModal=false" />
  110. </view>
  111. </template>
  112. <script>
  113. import commonModal from '@/pages/common/commonModal.vue'
  114. import OrderInfoModal from './orderInfoModal.vue'
  115. import DiscountModal from './discountModal.vue'
  116. import ProductModal from './productModal.vue'
  117. import { toThousands } from '@/libs/tools'
  118. import { stockByProductSn } from '@/api/stock'
  119. import { salesDetailList, salesDetailDel, salesDel, salesDetailBySn, salesSubmit, salesDiscount, salesDetailUpdate } from '@/api/sales'
  120. export default{
  121. components: { OrderInfoModal, DiscountModal, commonModal, ProductModal },
  122. data(){
  123. return{
  124. pageData: {
  125. type: 'edit',
  126. data: null
  127. },
  128. toggle: true,
  129. toThousands,
  130. customBtnStyle: { // 自定义按钮样式
  131. borderColor: this.$config('primaryColor'),
  132. backgroundColor: this.$config('primaryColor'),
  133. color: '#fff'
  134. },
  135. listData: [],
  136. pageNo: 1,
  137. pageSize: 6,
  138. totalNum: 0,
  139. status: 'loadmore',
  140. noDataText: '暂无数据',
  141. theme: '',
  142. scrollH: 916,
  143. infoModal: false,
  144. discountModal: false,
  145. commonModal: false,
  146. modalText: '确认要删除吗?',
  147. detailData: null, // 销售单详情
  148. openProductModal: false, // 编辑产品信息弹框是否显示
  149. productData: null, // 当前操作的产品信息
  150. productInfo: null, // 编辑产品需要的参数
  151. editInfo: null, // 添加/编辑 提交的值
  152. commonType: 1, // 公共弹框类型 1删除产品,2删除销售单,3编辑产品时库存不足
  153. }
  154. },
  155. onLoad(opt) {
  156. this.theme = getApp({ allowDefault: true }).globalData.theme
  157. if(opt){
  158. this.pageData = {
  159. type: opt.pageType || 'edit',
  160. data: opt.data ? JSON.parse(opt.data) : null
  161. }
  162. }
  163. this.init()
  164. // 监听整改完成后刷新事件
  165. uni.$on('refreshEditBL', this.init)
  166. },
  167. onUnload() {
  168. uni.$off('refreshEditBL')
  169. },
  170. computed: {
  171. // 是否自建单据
  172. isOwerEdit () {
  173. return this.detailData && this.detailData.sourceType == 'SALES'
  174. },
  175. // 是否审核通过
  176. isAudit () {
  177. return this.detailData ? (this.detailData.billStatus == 'WAIT_OUT_WAREHOUSE' || this.detailData.billStatus == 'FINISH') : false
  178. },
  179. },
  180. methods: {
  181. init(){
  182. this.getList(1)
  183. this.getDetail()
  184. },
  185. // 列表
  186. getList(pageNo){
  187. const _this = this
  188. if (pageNo) {
  189. this.pageNo = pageNo
  190. }
  191. let params = {
  192. pageNo: this.pageNo,
  193. pageSize: this.pageSize,
  194. salesBillSn: this.pageData.data && this.pageData.data.salesBillSn
  195. }
  196. this.status = "loading"
  197. salesDetailList(params).then(res => {
  198. if (res.status == 200) {
  199. if(res.data && res.data.list){
  200. res.data.list.map(item => {
  201. item.productName = item.productEntity && item.productEntity.name || item.dealerProductEntity && item.dealerProductEntity.name
  202. item.productCode = item.productEntity && item.productEntity.code || item.dealerProductEntity && item.dealerProductEntity.code
  203. item.productUnit = item.productEntity && item.productEntity.unit || item.dealerProductEntity && item.dealerProductEntity.unit
  204. })
  205. if(this.pageNo>1){
  206. this.listData = this.listData.concat(res.data && res.data.list || [])
  207. }else{
  208. this.listData = res.data.list || []
  209. }
  210. }else{
  211. this.listData = []
  212. }
  213. this.totalNum = res.data && res.data.count || 0
  214. } else {
  215. this.listData = []
  216. this.totalNum = 0
  217. this.noDataText = res.message
  218. }
  219. this.status = "loadmore"
  220. })
  221. },
  222. // scroll-view到底部加载更多
  223. onreachBottom() {
  224. if(this.listData.length < this.totalNum){
  225. this.pageNo += 1
  226. this.getList()
  227. }
  228. },
  229. // 折扣金额
  230. discountConfirm(amount){
  231. let params = {
  232. discountAmount: amount,
  233. salesBillSn: this.detailData.salesBillSn,
  234. id: this.detailData.id
  235. }
  236. salesDiscount(params).then(res => {
  237. if(res.status == 200){
  238. this.init()
  239. this.discountModal = false
  240. }
  241. })
  242. },
  243. // 提交
  244. handleSubmit(){
  245. salesSubmit({ id: this.detailData.id }).then(res => {
  246. if(res.status == 200){
  247. this.toashMsg(res.message)
  248. uni.$emit('refreshSalesBL')
  249. uni.navigateBack()
  250. }
  251. })
  252. },
  253. // 编辑
  254. handleEdit(data){
  255. this.productInfo = {
  256. productName: data.productName,
  257. productMainImage: data.productMainImage,
  258. productCode: data.productCode,
  259. productOrigCode: data.productOrigCode,
  260. warehouseName: data.warehouseEntity && data.warehouseEntity.name,
  261. warehouseLocationName: data.warehouseLocationEntity && data.warehouseLocationEntity.name,
  262. price: data.price,
  263. qty: data.qty
  264. }
  265. this.openProductModal = true
  266. this.productData = data
  267. },
  268. // 确认产品信息
  269. productConfirm(data){
  270. this.editInfo = data
  271. this.validateStock() //验证 库存是否不足
  272. },
  273. // 库存不足
  274. validateStock(){
  275. // 校验库存
  276. stockByProductSn({ productSn: this.productData.productSn }).then(res => {
  277. if (res.status == 200) {
  278. if (res.data && (!res.data.currentStockQty || this.editInfo.qty <= res.data.currentStockQty)) {
  279. this.editProduct()
  280. } else { // 库存不足
  281. this.commonType = 3
  282. this.modalText = '库存不足,将产生急件,确认修改吗?'
  283. this.commonModal = true
  284. }
  285. }
  286. })
  287. },
  288. // 编辑产品
  289. editProduct(){
  290. let params = {
  291. id: this.productData.id,
  292. qty: this.editInfo.qty,
  293. price: this.editInfo.price,
  294. productSn: this.productData.productSn,
  295. salesBillSn: this.detailData.salesBillSn,
  296. }
  297. salesDetailUpdate(params).then(res => {
  298. if(res.status == 200){
  299. this.toashMsg(res.message)
  300. this.init()
  301. this.commonModal = false
  302. this.openProductModal = false
  303. }
  304. })
  305. },
  306. // 删除
  307. handleDel(item){
  308. if(item){ // 删除产品
  309. this.commonType = 1
  310. this.productData = item
  311. this.modalText = '确认要删除吗?'
  312. this.commonModal = true
  313. }else{ // 整单删除
  314. this.commonType = 2
  315. this.productData = null
  316. this.modalText = '确认删除该销售单吗?'
  317. this.commonModal = true
  318. }
  319. },
  320. // 公共弹框 确定
  321. handleCommon(){
  322. if(this.commonType == 1){ // 删除产品
  323. this.delFun()
  324. }else if(this.commonType == 2){ // 整单删除
  325. this.delFun()
  326. }else if(this.commonType == 3){ // 编辑产品时库存不足
  327. this.editProduct()
  328. }
  329. },
  330. // 公共弹框 取消
  331. handleCancel(){
  332. this.openProductModal = false
  333. },
  334. // 删除
  335. delFun(){
  336. let url = salesDetailDel
  337. let params = {}
  338. console.log(this.commonType)
  339. if(this.commonType == 1){ // 删除产品
  340. url = salesDetailDel
  341. params = { id: this.productData.id }
  342. }else if(this.commonType == 2){ // 整单删除
  343. console.log('整单删除', this.detailData)
  344. url = salesDel
  345. params = { id: this.detailData && this.detailData.id }
  346. }
  347. url(params).then(res => {
  348. if (res.status == 200) {
  349. if(this.productData){ // 删除产品
  350. this.toashMsg(res.message)
  351. this.init()
  352. }else{ // 整单删除
  353. this.toashMsg(res.message)
  354. uni.$emit('refreshSalesBL')
  355. uni.navigateBack()
  356. }
  357. this.commonModal = false
  358. } else {
  359. this.commonModal = false
  360. }
  361. })
  362. },
  363. // 选择产品
  364. handleProduct(){
  365. uni.navigateTo({ url: '/pages/sales/chooseProduct?data='+JSON.stringify(this.detailData) })
  366. },
  367. // 编辑
  368. goPage(){
  369. uni.redirectTo({ url: '/pages/sales/edit?pageType=edit&data='+JSON.stringify(this.detailData) })
  370. },
  371. // 销售单详情
  372. getDetail(){
  373. salesDetailBySn({ salesBillSn: this.pageData.data.salesBillSn }).then(res => {
  374. console.log(res.data)
  375. if(res.status == 200){
  376. this.detailData = res.data
  377. }else{
  378. this.detailData = null
  379. }
  380. this.toggle = false
  381. })
  382. },
  383. changeScrollH(){
  384. const _this = this
  385. uni.getSystemInfo({
  386. success: function (res) {
  387. const winH = res.windowHeight * 2
  388. let totalH = _this.$refs.salesTotal && _this.$refs.salesTotal.$el && _this.$refs.salesTotal.$el.offsetHeight || 0
  389. if(_this.toggle){
  390. _this.scrollH = winH - 605 - totalH
  391. }else{
  392. _this.scrollH = winH - 468 - totalH
  393. }
  394. // if(_this.detailData&&_this.detailData.billStatus=='FINISH'){
  395. _this.scrollH = _this.scrollH + 100
  396. // }
  397. }
  398. })
  399. }
  400. },
  401. watch: {
  402. toggle (newValue, oldValue) {
  403. this.changeScrollH()
  404. }
  405. }
  406. }
  407. </script>
  408. <style lang="scss">
  409. .sales-edit-wrap{
  410. width: 100%;
  411. .color_6{
  412. color: #666;
  413. }
  414. .font_13{
  415. font-size: 26upx;
  416. }
  417. .border-b{
  418. border-bottom: 1px solid #e4e7ed;
  419. }
  420. .sales-info-con{
  421. background-color: #fff;
  422. margin-bottom: 6upx;
  423. padding: 0 20upx;
  424. >view{
  425. padding: 14upx 0;
  426. border-bottom: 1px solid #e4e7ed;
  427. }
  428. >view:last-child{
  429. border-bottom: none;
  430. }
  431. .info-item-box{
  432. .info-item-tit{
  433. display: inline-block;
  434. width: 20%;
  435. }
  436. }
  437. }
  438. .sales-product-con{
  439. background-color: #fff;
  440. padding: 0 20upx;
  441. flex-grow: 1;
  442. .sales-product-header{
  443. padding: 14upx 0;
  444. height: 80upx;
  445. .sales-product-operation{
  446. button{
  447. margin: 0 0 0 10upx;
  448. }
  449. }
  450. }
  451. .sales-total-box{
  452. align-items: flex-end;
  453. padding: 16upx 0;
  454. .sales-total-con{
  455. color: #666;
  456. overflow: hidden;
  457. view{
  458. padding: 4upx 0;
  459. .sales-total-num{
  460. font-size: 24upx;
  461. color: rgb(48, 49, 51);
  462. }
  463. }
  464. }
  465. .sales-total-btn{
  466. display: inline-block;
  467. margin-bottom: 6upx;
  468. }
  469. }
  470. .sales-list-box{
  471. flex-grow: 1;
  472. .sales-list-con{
  473. .sales-list-item{
  474. padding: 20upx 0;
  475. .pimgs{
  476. margin-right: 20upx;
  477. position: relative;
  478. .sign{
  479. position: absolute;
  480. right: -2upx;
  481. top: -2upx;
  482. color: #fff;
  483. border-radius: 50%;
  484. width: 40upx;
  485. height: 40upx;
  486. text-align: center;
  487. }
  488. .sign1{
  489. position: absolute;
  490. right: 45upx;
  491. top: -2upx;
  492. color: #fff;
  493. border-radius: 50%;
  494. width: 40upx;
  495. height: 40upx;
  496. text-align: center;
  497. }
  498. }
  499. .sales-item-main{
  500. .sales-item-name{
  501. font-size: 28upx;
  502. color: rgb(48, 49, 51);
  503. font-weight: bold;
  504. overflow: hidden;
  505. text-overflow: ellipsis;
  506. display: -webkit-box;
  507. -webkit-box-orient: vertical;
  508. -webkit-line-clamp: 1;
  509. }
  510. .sales-item-txt{
  511. margin: 8upx 0;
  512. }
  513. .sales-item-price{
  514. text-align: right;
  515. }
  516. }
  517. .btn-box{
  518. padding: 30upx 30upx;
  519. }
  520. }
  521. .sales-list-item:last-child{
  522. border: none;
  523. }
  524. }
  525. }
  526. }
  527. .sales-btn-box{
  528. background-color: #fff;
  529. padding: 12upx 50upx;
  530. .handle-btn{
  531. width: 47%;
  532. }
  533. .edit-btn{
  534. width: 100%;
  535. }
  536. }
  537. }
  538. </style>