123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <template>
- <view class="sales-edit-wrap">
- <!-- 基础信息 -->
- <view class="sales-info-con">
- <view class="sales-info-header flex align_center justify_between">
- <view>
- <view class="u-line" :style="{backgroundColor: $config('primaryColor')}"></view>基础信息
- </view>
- <view class="sales-info-all" @click="getInfo">
- 查看全部<u-icon name="arrow-right" color="#666" size="28"></u-icon>
- </view>
- </view>
- <view class="info-item-box">
- <text class="info-item-tit color_6">销售单号</text>
- <text>XS321132312</text>
- </view>
- <view class="info-item-box">
- <text class="info-item-tit color_6">客户名称</text>
- <text>XS321132312</text>
- </view>
- </view>
- <!-- 产品列表 -->
- <view class="sales-product-con">
- <view class="sales-product-header flex align_center justify_between">
- <view>
- <view class="u-line" :style="{backgroundColor: $config('primaryColor')}"></view>产品列表
- </view>
- <view class="sales-product-operation">
- <u-button @click="" size="mini" :hair-line="false" plain type="primary" hover-class="none">打折</u-button>
- <u-button @click="" size="mini" :hair-line="false" plain type="primary" hover-class="none">选择产品</u-button>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- pageData: {
- type: 'edit',
- data: null
- }
- }
- },
- onLoad(opt) {
- console.log(opt)
- if(opt){
- this.pageData = {
- type: opt.pageType || 'edit',
- data: opt.data ? JSON.parse(opt.data) : null
- }
- }
- },
- methods: {
-
- }
- }
- </script>
- <style lang="scss">
- .sales-edit-wrap{
- width: 100%;
- .color_6{
- color: #666;
- }
- .font_13{
- font-size: 26upx;
- }
- .u-line{
- display: inline-block;
- width: 8upx;
- height: 40upx;
- background-color: red;
- vertical-align: bottom;
- margin: 0 20upx 0 0;
- }
- .sales-info-con{
- background-color: #fff;
- margin-bottom: 20upx;
- padding: 0 20upx;
- >view{
- padding: 14upx 0;
- border-bottom: 1px solid #e4e7ed;
- }
- >view:last-child{
- border-bottom: none;
- }
- .info-item-box{
- .info-item-tit{
- display: inline-block;
- width: 20%;
- }
- }
- }
- .sales-product-con{
- background-color: #fff;
- padding: 0 20upx;
- .sales-product-header{
- padding: 14upx 0;
- .sales-product-operation{
- button{
- margin: 0 0 0 10upx;
- }
- }
- }
- }
- }
- </style>
|