edit.vue 21 KB

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