orderSignature.wxml 9.16 KB
<!-- 订单签名 -->
<wxs src="../../../utils/permission.wxs" module="perm" />
<wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}">
  <view class="status-box">
    <view class="tips">感谢您的配合,请在确认以下信息后,在下方的签字区内签字确认,谢谢!</view>
  </view>
  <view class="box">
    <view class="title invoice">信息确认
      <view style="display: flex;gap: var(--fontSize32);">
        <view wx:if="{{isStaff && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12)}}">
          <apply-refund-btn orderInfo="{{orderInfo}}"></apply-refund-btn>
        </view>
        <view wx:if="{{orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2}}" class="invoice-btn" bindtap="handleBtnInvoice">
          <gl-image class="icon" src="/icon-invoice.png"></gl-image>
          {{invoiceName}}
        </view>
      </view>
    </view>
    <view class="cell">
      <view class="label">客户姓名:</view>
      <view class="value">{{orderInfo.customerName || ''}}</view>
    </view>
    <view class="cell">
      <view class="label">手机号:</view>
      <view class="value">{{orderInfo.customerPhone || ''}}</view>
    </view>
    <view class="meal-box" wx:for="{{ orderInfo.packageGoodsList }}">
      <view class="meal-hd">
        <view>{{item.packageName}}</view>
        <view class="price">¥{{item.totalPrice}}</view>
      </view>
      <view class="meal-bd">
        <view class="meal-bd-box" wx:for="{{ item.packageGoodsOrderList }}" wx:for-item="g">
          <view class="meal-bd-head">
            <view class="dot"></view>
            <view class="name">{{g.upgradeGoodsAlias||g.upgradeGoodsName}}</view>
            <view class="price">¥{{g.price}}</view>
          </view>
          <view class="meal-bd-bottom">
            {{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
            <view class="count">x{{g.number}}</view>
            <view class="artificer" bindtap="selectArtificer" data-item="{{g}}">
              <text class="{{!g.technicianName ? 'grey_text' : ''}} 'text-hide'">{{g.technicianName || '选择技师'}}</text>
              <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode="" />
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="goods">
      <block wx:for="{{ orderInfo.subOrderList }}" wx:key="index">
        <view class="item" wx:if="{{!item.packageGoodsList}}">
          <view class="subItem_box goods_name">
            <view class="name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || ''}}</view>
            <view class="price">¥{{item.price}}</view>
          </view>
          <view class="subItem_box">
            <view style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}">
              <view class="position">
                {{item.positionStr || item.upgradeGoodsTypeName}}
                <text class="type">x{{item.number}}</text>
              </view>
            </view>
            <!-- 设置膜卷号 -->
            <view wx:if="{{ isUseFilmRoll && item.filmNumberData.length }}" class="film-roll disabled" bindtap="selectfilmRollNo" data-item="{{ item }}" data-index="{{ index }}">
              <text class="{{ !item.filmRollNo ? 'grey_text' : '' }} 'text-hide'">{{item.filmRollNo || '选择膜卷号'}}</text>
              <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode="" />
            </view>
            <!-- 太阳膜类且配置技师 && item.upgradeGoodsPosition -->
            <view wx:if="{{ orderInfo.isOpenArtificer  }}" class="artificer" bindtap="selectArtificer" data-item="{{ item }}">
              <text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
              <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode="" />
            </view>
          </view>
        </view>
      </block>
    </view>
    <view class="cell">
      <view class="label icon">
        <image src="../../images/voucher_icon.png" mode="" />
      </view>
      <view class="value" wx:if="{{ orderInfo.couponName || orderInfo.customerCoupon.customerCouponCode || orderInfo.customerCoupon.employeeName }}">
        {{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
      </view>
      <view class="value" wx:else>无</view>
    </view>
    <view class="line" />
    <view class="cell total">
      <view class="label">商品总金额:</view>
      <view class="price">¥{{orderInfo.total_price}}</view>
    </view>
  </view>
  <view class="box canvasBox">
    <view class="title">电子签名处</view>
    <view wx:if="{{ !signImage }}" hidden="{{ filmRollNoPopup || artificerSelectPopup }}" class="canvas_wrap">
      <canvas canvas-id="signature" class="modal-canvas" disable-scroll="{{ true }}" id="handWriting" bindtouchstart="scaleStart" bindtouchmove="scaleMove" bindtouchend="scaleEnd" />
      <view wx:if="{{ showPlaceHoder }}" class="placeholder">签字区</view>
      <cover-view bind:tap="toFullPage" class="full_icon flex_scb">
        <cover-image webp mode="widthFix" class="icon" src="{{ IMG_URL }}full_screen_icon.png" />
        <!-- <cover-view class="full_text">全屏</cover-view> -->
      </cover-view>
      <cover-view bind:tap="clearCanvas" class="delete_icon flex_scb">
        <cover-image webp mode="widthFix" class="icon deleteIcon" src="{{ IMG_URL }}delete_icon.png" />
      </cover-view>
    </view>
    <view wx:else class="canvas_wrap">
      <image class="full_icon icon" src="{{ IMG_URL }}images/fullScreen.png" bind:tap="toFullPage" />
      <image class="coverImage" src="{{ signImage }}" />
      <image class="delete_icon icon deleteIcon" src="{{ IMG_URL }}delete_icon.png" bind:tap="clearCanvas"></image>
    </view>
  </view>
  <block wx:for="{{ orderInfo.subOrderList }}" wx:key="index" wx:for-item="imgItem" wx:for-index="imgIndex">
    <view class="box">
      <view class="title">
        上传客户合照或车辆照片
        <text class="goodsName"> ({{filter.replaceItemText(imgItem.upgradeGoodsAlias) ||filter.replaceItemText(imgItem.upgradeGoodsName) || ''}})</text>
      </view>
      <view class="flex">
        <view class="tire-block" wx:for="{{ imgItem.constructionImgList || [] }}" wx:key="index">
          <view class="tire-img-box" catchtap="handlePreviewImg" data-item="{{ item }}" data-imgindex="{{ imgIndex }}">
            <image class="icon-delete" catchtap="handleDelete" data-index="{{ index }}" data-imgindex="{{ imgIndex }}" src="/tabWorkOrder/images/icon-delete.png" />
            <image class="tire-img" src="{{ item }}" />
          </view>
        </view>
        <view class="tire-block" bindtap="handleUpload" data-index="{{ imgIndex }}" wx:if="{{ !imgItem.constructionImgList || imgItem.constructionImgList.length<9 }}">
          <view>
            <image class="icon-plus" src="{{ IMG_URL }}camera_icon.png" />
          </view>
        </view>
      </view>
    </view>
  </block>
  <view class="box bottom">
    <view class="title">评分</view>
    <view class="star-box">
      <block wx:for="{{ 5 }}" wx:key="index">
        <view class="star" bindtap="setStar" data-index="{{ index }}">
          <image src="{{ IMG_URL}}{{index < rating?'score_icon.png':'star_icon.png' }}" />
        </view>
      </block>
    </view>
    <view class="tags">
      <block wx:for="{{ tags }}" wx:key="index">
        <view class="tag {{ item.checked?'act':'' }}" bindtap="chooseTag" data-index="{{ index }}">{{item.name}}</view>
      </block>
    </view>
  </view>
</view>
<!-- 已支付4 战败2  已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<block wx:if="{{ (!perm.hasPermission.isSuper(userInfo) && perm.hasPermission.isNotMentor(userInfo) && !perm.hasPermission.canViewRecruit(userInfo) && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6)) && (orderInfo.subOrderList && orderInfo.subOrderList.length) }}">
  <view class="btn-box  {{ isFullSucreen?'isFullSucreen-btn':'' }}">
    <view class="btn text-center comfirmBtn" bindtap="confirmConstruction">确认完成施工</view>
  </view>
</block>
<order-popup orderType="4" show="{{ showPopup }}" />
<artificer-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" orderInfo="{{ orderInfo }}" artificerSelectObj="{{ artificerSelectObj }}" bindconfirm="changeArtificer" />
<film-roll-no-popup show="{{ filmRollNoPopup }}" title="选择膜卷号" copyfilmRollNoList="{{ filmRollNoList }}" filmSelectedItem="{{ filmSelectedItem }}" bindconfirm="changefilmRollNo" />
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>