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