edit.vue 21 KB

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