EquityItem.wxml 3.33 KB
<view class="item  {{data.status == 1?'':'padding-bottom'}}" bindtap="jumpDetail">
  <view class="status status-{{data.status}}">{{statusEnum[data.status]}}</view>
  <view class="top flex">
    <view class="icon">
      <gl-image webp src="/equity/{{data.customerInfo.customerSex == 2 ?'woman-default-avatar' : 'default-avatar'}}.png"></gl-image>
    </view>
    <view class="info">
      <view class="name flex">
        {{data.customerInfo.customerName}}
        <block wx:if="{{data.changeType > 0}}">
          <block wx:if="{{data.changeType == 1}}">
            <view class="tips new">New</view>
          </block>
          <block wx:else>
            <view class="tips">更新</view>
          </block>
        </block>
      </view>
      <view class="phone">{{data.customerInfo.customerPhone}}</view>
    </view>
  </view>
  <view class="info-box">
    <block wx:for="{{infoObject}}" wx:key="index">
      <block wx:if="{{data.customerInfo[item.key]}}">
        <view class="info-item flex">
          <view class="label">{{item.label}}</view>
          <view class="value">
            <block wx:if="{{item.key == 'carSeriesName'}}">
              {{data.customerInfo.carBrand}}-{{data.customerInfo.carChildsBrandName}}-{{data.customerInfo.carSeriesName}}
            </block>
            <block wx:else>
              {{data.customerInfo[item.key]}}
            </block>
          </view>
        </view>
      </block>
    </block>
    <block wx:for="{{sceneTypeStatusMap}}" wx:key="index">
      <view class="info-item flex">
        <view class="label">{{item.label}}</view>
        <view class="value">{{statusEnum[data.sceneTypeStatusMap[item.key]]}}</view>
      </view>
    </block>
  </view>
  <block wx:if="{{data.vqOrders.length}}">
    <block wx:for="{{data.vqOrders}}" wx:key="index">
      <view class="package-box">
        <view class="package-title flex">
          订单{{index + 1}}
          <view class="order-status order-status-{{item.orderStatus}}">{{orderStatusEnum[item.orderStatus]}}</view>
        </view>
        <goods-list list="{{item.vdQuotationGoodsList}}" goodsNameKey="goodsName" goodsPriceKey="goodsPrice"></goods-list>
        <view class="package-info">
          <block wx:for="{{orderObj}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
            <block wx:if="{{item[i.key]}}">
              <view class="package-item flex">
                <view class="label">{{i.label}}</view>
                <view class="value {{i.key == 'quotedPriceUpdate'?'price':''}}">
                  {{i.unit||''}}{{item[i.key] || ''}}
                </view>
              </view>
            </block>
          </block>
        </view>
      </view>
    </block>
  </block>
  <block wx:if="{{data.status == 1}}">
    <view class="bottom flex">
      <view class="btn flex" catchtap="jump">新增工单</view>
    </view>
  </block>
</view>
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
  <view class="modatcontent">
    <view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
      <gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
      新增工单
    </view>
    <view class="modalbox cancle {{ selectType == 2?'act': '' }}" bindtap="selectType" data-type="2">
      <gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
      战败下单
    </view>
  </view>
</modal>