edit.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="sales-edit-wrap">
  3. <!-- 基础信息 -->
  4. <view class="sales-info-con">
  5. <view class="sales-info-header flex align_center justify_between">
  6. <view>
  7. <view class="u-line" :style="{backgroundColor: $config('primaryColor')}"></view>基础信息
  8. </view>
  9. <view class="sales-info-all" @click="getInfo">
  10. 查看全部<u-icon name="arrow-right" color="#666" size="28"></u-icon>
  11. </view>
  12. </view>
  13. <view class="info-item-box">
  14. <text class="info-item-tit color_6">销售单号</text>
  15. <text>XS321132312</text>
  16. </view>
  17. <view class="info-item-box">
  18. <text class="info-item-tit color_6">客户名称</text>
  19. <text>XS321132312</text>
  20. </view>
  21. </view>
  22. <!-- 产品列表 -->
  23. <view class="sales-product-con">
  24. <view class="sales-product-header flex align_center justify_between">
  25. <view>
  26. <view class="u-line" :style="{backgroundColor: $config('primaryColor')}"></view>产品列表
  27. </view>
  28. <view class="sales-product-operation">
  29. <u-button @click="" size="mini" :hair-line="false" plain type="primary" hover-class="none">打折</u-button>
  30. <u-button @click="" size="mini" :hair-line="false" plain type="primary" hover-class="none">选择产品</u-button>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default{
  38. data(){
  39. return{
  40. pageData: {
  41. type: 'edit',
  42. data: null
  43. }
  44. }
  45. },
  46. onLoad(opt) {
  47. console.log(opt)
  48. if(opt){
  49. this.pageData = {
  50. type: opt.pageType || 'edit',
  51. data: opt.data ? JSON.parse(opt.data) : null
  52. }
  53. }
  54. },
  55. methods: {
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. .sales-edit-wrap{
  61. width: 100%;
  62. .color_6{
  63. color: #666;
  64. }
  65. .font_13{
  66. font-size: 26upx;
  67. }
  68. .u-line{
  69. display: inline-block;
  70. width: 8upx;
  71. height: 40upx;
  72. background-color: red;
  73. vertical-align: bottom;
  74. margin: 0 20upx 0 0;
  75. }
  76. .sales-info-con{
  77. background-color: #fff;
  78. margin-bottom: 20upx;
  79. padding: 0 20upx;
  80. >view{
  81. padding: 14upx 0;
  82. border-bottom: 1px solid #e4e7ed;
  83. }
  84. >view:last-child{
  85. border-bottom: none;
  86. }
  87. .info-item-box{
  88. .info-item-tit{
  89. display: inline-block;
  90. width: 20%;
  91. }
  92. }
  93. }
  94. .sales-product-con{
  95. background-color: #fff;
  96. padding: 0 20upx;
  97. .sales-product-header{
  98. padding: 14upx 0;
  99. .sales-product-operation{
  100. button{
  101. margin: 0 0 0 10upx;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. </style>