edit.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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="{border:setColor.borderColor,backgroundColor:setColor.bgColor,color:setColor.fontColor}">缺</view>
  64. <view class="sign1" v-if="detailData&&detailData.payOnlineFlag==1&&item.promoProductType=='GIFT_PRODUCT'" :style="{border:setColor.borderColor1,backgroundColor:setColor.bgColor1,color:setColor.fontColor1}">赠</view>
  65. <view class="sign1" v-if="detailData&&detailData.payOnlineFlag==1&&item.promoProductType=='TICKET_PRODUCT'" :style="{border:setColor.borderColor2,backgroundColor:setColor.bgColor2,color:setColor.fontColor2}">券</view>
  66. <view class="sign1" v-if="detailData&&detailData.payOnlineFlag==1&&item.promoProductType=='SPECIAL_PRODUCT'" :style="{border:setColor.borderColor3,backgroundColor:setColor.bgColor3,color:setColor.fontColor3}">特</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. setColor:{
  156. borderColor:'1upx solid #E70012',
  157. fontColor:'#E70012',
  158. bgColor:'rgba(236,0,18,.2)',
  159. borderColor1:'1upx solid #13C442',
  160. fontColor1:'#13C442',
  161. bgColor1:'rgba(19,196,66,.2)',
  162. borderColor2:'1upx solid #FF5500',
  163. fontColor2:'#FF5500',
  164. bgColor2:'rgba(255,85,0,.2)',
  165. borderColor3:'1upx solid #f3bb12',
  166. fontColor3:'#f3bb12',
  167. bgColor3:'rgba(243,187,18,.2)'
  168. }
  169. }
  170. },
  171. onLoad(opt) {
  172. this.theme = getApp({ allowDefault: true }).globalData.theme
  173. if(opt){
  174. this.pageData = {
  175. type: opt.pageType || 'edit',
  176. data: opt.data ? JSON.parse(opt.data) : null
  177. }
  178. }
  179. this.init()
  180. // 监听整改完成后刷新事件
  181. uni.$on('refreshEditBL', this.init)
  182. },
  183. onUnload() {
  184. uni.$off('refreshEditBL')
  185. },
  186. computed: {
  187. // 是否自建单据
  188. isOwerEdit () {
  189. return this.detailData && this.detailData.sourceType == 'SALES'
  190. },
  191. // 是否审核通过
  192. isAudit () {
  193. return this.detailData ? (this.detailData.billStatus == 'WAIT_OUT_WAREHOUSE' || this.detailData.billStatus == 'FINISH') : false
  194. },
  195. },
  196. methods: {
  197. init(){
  198. this.getList(1)
  199. this.getDetail()
  200. },
  201. // 列表
  202. getList(pageNo){
  203. const _this = this
  204. if (pageNo) {
  205. _this.pageNo = pageNo
  206. }
  207. let params = {
  208. pageNo: _this.pageNo,
  209. pageSize:_this.pageSize,
  210. salesBillSn: _this.pageData.data && _this.pageData.data.salesBillSn
  211. }
  212. _this.status = "loading"
  213. salesDetailList(params).then(res => {
  214. if (res.status == 200) {
  215. if(res.data && res.data.list){
  216. res.data.list.map(item => {
  217. item.productName = item.productEntity && item.productEntity.name || item.dealerProductEntity && item.dealerProductEntity.name
  218. item.productCode = item.productEntity && item.productEntity.code || item.dealerProductEntity && item.dealerProductEntity.code
  219. item.productUnit = item.productEntity && item.productEntity.unit || item.dealerProductEntity && item.dealerProductEntity.unit
  220. })
  221. if(_this.pageNo>1){
  222. _this.listData = _this.listData.concat(res.data && res.data.list || [])
  223. }else{
  224. _this.listData = res.data.list || []
  225. }
  226. }else{
  227. _this.listData = []
  228. }
  229. _this.totalNum = res.data && res.data.count || 0
  230. } else {
  231. _this.listData = []
  232. _this.totalNum = 0
  233. _this.noDataText = res.message
  234. }
  235. _this.status = "loadmore"
  236. })
  237. },
  238. // scroll-view到底部加载更多
  239. onreachBottom() {
  240. if(this.listData.length < this.totalNum){
  241. this.pageNo += 1
  242. this.getList()
  243. }
  244. },
  245. // 折扣金额
  246. discountConfirm(amount){
  247. let params = {
  248. discountAmount: amount,
  249. salesBillSn: this.detailData.salesBillSn,
  250. id: this.detailData.id
  251. }
  252. salesDiscount(params).then(res => {
  253. if(res.status == 200){
  254. this.init()
  255. this.discountModal = false
  256. }
  257. })
  258. },
  259. // 提交
  260. handleSubmit(){
  261. salesSubmit({ id: this.detailData.id }).then(res => {
  262. if(res.status == 200){
  263. this.toashMsg(res.message)
  264. uni.$emit('refreshSalesBL')
  265. uni.navigateBack()
  266. }
  267. })
  268. },
  269. // 编辑
  270. handleEdit(data){
  271. this.productInfo = {
  272. productName: data.productName,
  273. productMainImage: data.productMainImage,
  274. productCode: data.productCode,
  275. productOrigCode: data.productOrigCode,
  276. warehouseName: data.warehouseEntity && data.warehouseEntity.name,
  277. warehouseLocationName: data.warehouseLocationEntity && data.warehouseLocationEntity.name,
  278. price: data.price,
  279. qty: data.qty
  280. }
  281. this.openProductModal = true
  282. this.productData = data
  283. },
  284. // 确认产品信息
  285. productConfirm(data){
  286. this.editInfo = data
  287. this.validateStock() //验证 库存是否不足
  288. },
  289. // 库存不足
  290. validateStock(){
  291. // 校验库存
  292. stockByProductSn({ productSn: this.productData.productSn }).then(res => {
  293. if (res.status == 200) {
  294. if (res.data && (!res.data.currentStockQty || this.editInfo.qty <= res.data.currentStockQty)) {
  295. this.editProduct()
  296. } else { // 库存不足
  297. this.commonType = 3
  298. this.modalText = '库存不足,将产生急件,确认修改吗?'
  299. this.commonModal = true
  300. }
  301. }
  302. })
  303. },
  304. // 编辑产品
  305. editProduct(){
  306. let params = {
  307. id: this.productData.id,
  308. qty: this.editInfo.qty,
  309. price: this.editInfo.price,
  310. productSn: this.productData.productSn,
  311. salesBillSn: this.detailData.salesBillSn,
  312. }
  313. salesDetailUpdate(params).then(res => {
  314. if(res.status == 200){
  315. this.toashMsg(res.message)
  316. this.init()
  317. this.commonModal = false
  318. this.openProductModal = false
  319. }
  320. })
  321. },
  322. // 删除
  323. handleDel(item){
  324. if(item){ // 删除产品
  325. this.commonType = 1
  326. this.productData = item
  327. this.modalText = '确认要删除吗?'
  328. this.commonModal = true
  329. }else{ // 整单删除
  330. this.commonType = 2
  331. this.productData = null
  332. this.modalText = '确认删除该销售单吗?'
  333. this.commonModal = true
  334. }
  335. },
  336. // 公共弹框 确定
  337. handleCommon(){
  338. if(this.commonType == 1){ // 删除产品
  339. this.delFun()
  340. }else if(this.commonType == 2){ // 整单删除
  341. this.delFun()
  342. }else if(this.commonType == 3){ // 编辑产品时库存不足
  343. this.editProduct()
  344. }
  345. },
  346. // 公共弹框 取消
  347. handleCancel(){
  348. this.openProductModal = false
  349. },
  350. // 删除
  351. delFun(){
  352. let url = salesDetailDel
  353. let params = {}
  354. console.log(this.commonType)
  355. if(this.commonType == 1){ // 删除产品
  356. url = salesDetailDel
  357. params = { id: this.productData.id }
  358. }else if(this.commonType == 2){ // 整单删除
  359. console.log('整单删除', this.detailData)
  360. url = salesDel
  361. params = { id: this.detailData && this.detailData.id }
  362. }
  363. url(params).then(res => {
  364. if (res.status == 200) {
  365. if(this.productData){ // 删除产品
  366. this.toashMsg(res.message)
  367. this.init()
  368. }else{ // 整单删除
  369. this.toashMsg(res.message)
  370. uni.$emit('refreshSalesBL')
  371. uni.navigateBack()
  372. }
  373. this.commonModal = false
  374. } else {
  375. this.commonModal = false
  376. }
  377. })
  378. },
  379. // 选择产品
  380. handleProduct(){
  381. uni.navigateTo({ url: '/pages/sales/chooseProduct?data='+JSON.stringify(this.detailData) })
  382. },
  383. // 编辑
  384. goPage(){
  385. uni.redirectTo({ url: '/pages/sales/edit?pageType=edit&data='+JSON.stringify(this.detailData) })
  386. },
  387. // 销售单详情
  388. getDetail(){
  389. salesDetailBySn({ salesBillSn: this.pageData.data.salesBillSn }).then(res => {
  390. console.log(res.data)
  391. if(res.status == 200){
  392. this.detailData = res.data
  393. }else{
  394. this.detailData = null
  395. }
  396. this.toggle = false
  397. })
  398. },
  399. changeScrollH(){
  400. const _this = this
  401. uni.getSystemInfo({
  402. success: function (res) {
  403. const winH = res.windowHeight * 2
  404. let totalH = _this.$refs.salesTotal && _this.$refs.salesTotal.$el && _this.$refs.salesTotal.$el.offsetHeight || 0
  405. if(_this.toggle){
  406. _this.scrollH = winH - 605 - totalH
  407. }else{
  408. _this.scrollH = winH - 468 - totalH
  409. }
  410. // if(_this.detailData&&_this.detailData.billStatus=='FINISH'){
  411. _this.scrollH = _this.scrollH + 100
  412. // }
  413. }
  414. })
  415. }
  416. },
  417. watch: {
  418. toggle (newValue, oldValue) {
  419. this.changeScrollH()
  420. }
  421. }
  422. }
  423. </script>
  424. <style lang="scss">
  425. .sales-edit-wrap{
  426. width: 100%;
  427. .color_6{
  428. color: #666;
  429. }
  430. .font_13{
  431. font-size: 26upx;
  432. }
  433. .border-b{
  434. border-bottom: 1px solid #e4e7ed;
  435. }
  436. .sales-info-con{
  437. background-color: #fff;
  438. margin-bottom: 6upx;
  439. padding: 0 20upx;
  440. >view{
  441. padding: 14upx 0;
  442. border-bottom: 1px solid #e4e7ed;
  443. }
  444. >view:last-child{
  445. border-bottom: none;
  446. }
  447. .info-item-box{
  448. .info-item-tit{
  449. display: inline-block;
  450. width: 20%;
  451. }
  452. }
  453. }
  454. .sales-product-con{
  455. background-color: #fff;
  456. padding: 0 20upx;
  457. flex-grow: 1;
  458. .sales-product-header{
  459. padding: 14upx 0;
  460. height: 80upx;
  461. .sales-product-operation{
  462. button{
  463. margin: 0 0 0 10upx;
  464. }
  465. }
  466. }
  467. .sales-total-box{
  468. align-items: flex-end;
  469. padding: 16upx 0;
  470. .sales-total-con{
  471. color: #666;
  472. overflow: hidden;
  473. view{
  474. padding: 4upx 0;
  475. .sales-total-num{
  476. font-size: 24upx;
  477. color: rgb(48, 49, 51);
  478. }
  479. }
  480. }
  481. .sales-total-btn{
  482. display: inline-block;
  483. margin-bottom: 6upx;
  484. }
  485. }
  486. .sales-list-box{
  487. flex-grow: 1;
  488. .sales-list-con{
  489. .sales-list-item{
  490. padding: 20upx 0;
  491. .pimgs{
  492. margin-right: 20upx;
  493. }
  494. .sales-item-main{
  495. .sales-item-name{
  496. display:flex;
  497. .sign{
  498. border-radius: 15%;
  499. width: 40upx;
  500. height:34upx;
  501. line-height: 34upx;
  502. text-align: center;
  503. font-size: 22upx;
  504. }
  505. .sign1{
  506. border-radius: 15%;
  507. width: 40upx;
  508. height: 34upx;
  509. line-height: 34upx;
  510. text-align: center;
  511. margin:0 5px;
  512. font-size: 22upx;
  513. }
  514. .nameInfo{
  515. max-width: 80%;
  516. font-size: 28upx;
  517. color: rgb(48, 49, 51);
  518. font-weight: bold;
  519. overflow: hidden;
  520. text-overflow: ellipsis;
  521. display: -webkit-box;
  522. -webkit-box-orient: vertical;
  523. -webkit-line-clamp: 1;
  524. }
  525. }
  526. .sales-item-txt{
  527. margin: 8upx 0;
  528. }
  529. .sales-item-price{
  530. text-align: right;
  531. }
  532. }
  533. .btn-box{
  534. padding: 30upx 30upx;
  535. }
  536. }
  537. .sales-list-item:last-child{
  538. border: none;
  539. }
  540. }
  541. }
  542. }
  543. .sales-btn-box{
  544. background-color: #fff;
  545. padding: 12upx 50upx;
  546. .handle-btn{
  547. width: 47%;
  548. }
  549. .edit-btn{
  550. width: 100%;
  551. }
  552. }
  553. }
  554. </style>