<!--pages/trainConfirmBill/index.wxml-->
<view class="{{stopClick}}">
  <view class="title colorInfo">
    单据信息
  </view>
  <t-cell title="服务单号" note="{{mainData.workorder.servicebillno}}" hover />
  <t-cell title="项目名称" note="{{mainData.workorder.projectname}}" hover />
  <t-cell title="是否有偿服务" note="{{paidServiceAmount > 0?'是':'否'}}" hover />
  <view class="title colorInfo">
    客户信息
  </view>
  <t-cell title="联系企业" note="{{mainData.workorder.abbreviation}}" hover />
  <t-cell title="联系方式" note="{{mainData.workorder.scenecontactphonenumber}}" hover />
  <t-cell title="地址" note="{{mainData.workorder.province + mainData.workorder.city + mainData.workorder.county + mainData.workorder.address}}" hover />

  <!-- <t-cell title="业务员" note="{{mainData.workorder.saler_name}}" hover />
  <t-cell title="服务企业" note="{{mainData.workorder.enterprisename}}" hover />
  <view class="title colorInfo">
    现场联系人信息
  </view>
  <t-cell title="姓名" note="{{mainData.workorder.scenecontact}}" hover />
  <t-cell title="电话" note="{{mainData.workorder.scenecontactphonenumber}}" hover />
  <t-cell title="地址" note="{{mainData.workorder.address}}" hover /> -->
  <view class="title colorInfo">
    应用信息
  </view>
  <t-cell title="应用系统" note="{{mainData.workorder.class1}}" hover />
  <t-cell title="客诉大类" note="{{mainData.workorder.class2}}" hover />
  <view class="title colorInfo">
    问题及处理
  </view>
  <t-textarea style="margin-bottom:1px" label="客诉内容" value="{{mainData.workorder.reason}}" bind:blur="inputChange" t-class="external-class" placeholder="请输入客诉内容" disableDefaultPadding="{{true}}" autosize />
  <t-textarea style="margin-bottom:1px" label="原因及处理措施" value="{{treatment}}" data-name="treatment" bind:blur="inputChange" t-class="external-class" placeholder="原因及处理措施" disableDefaultPadding="{{true}}" autosize />
  <t-cell title="下次处理时间" data-name="nextTreatmentTime" note="{{nextTreatmentTime}}" bind:click="showNextTimePicker" hover />
  <t-textarea style="margin-bottom:1px" label="事项说明" value="{{explain}}" data-name="explain" bind:blur="inputChange" t-class="external-class" placeholder="原因及处理措施" disableDefaultPadding="{{true}}" autosize />
  <t-cell title="希望下次回访时间" data-name="nextRebackTime" note="{{nextRebackTime}}" bind:click="showNextTimePicker" hover />
  <t-textarea style="margin-bottom:1px" label="文字说明" value="{{text}}" data-name="text" bind:blur="inputChange" t-class="external-class" placeholder="请输入文字说明" disableDefaultPadding="{{true}}" autosize />

  <view class="title colorInfo">
    评价
  </view>
  <view class="demo-rate">
    <view class="demo-rate__title">反应速度</view>
    <!-- 实心评分，设置属性：variant-->
    <t-rate value="{{mainData.responsescore}}" data-name="responsescore" variant="filled" bind:change="onChange" />
  </view>
  <view class="demo-rate">
    <view class="demo-rate__title">配合态度</view>
    <!-- 实心评分，设置属性：variant-->
    <t-rate value="{{mainData.attitudescore}}" data-name="attitudescore" variant="filled" bind:change="onChange" />
  </view>
  <view class="title colorInfo">
    客户签字
  </view>
  <card>
    <view style="flex:1" slot="content">
      <!-- <upload id="upload"></upload> -->
      <sign-name wx:if="{{SignName}}" bindData="{{bindSignNameData}}"></sign-name>
    </view>
  </card>
</view>

<view style="height: 150rpx;" />
<view class="footer">
  <view class="count">
  </view>
  <view class="but-box">
    <van-button custom-class='but' wx:if="{{mainData.status == '新建'}}" bind:click="createImage">单据预览</van-button>
    <van-button custom-class='but' wx:else bind:click="checkImage">查看单据</van-button>
    <van-button custom-class='but delete' wx:if="{{mainData.status == '新建'}}" bind:click="delete">删 除</van-button>
    <van-button custom-class='but' wx:if="{{mainData.status == '新建'}}" bind:click="submit">提 交</van-button>
  </view>
</view>

<t-date-time-picker title="日期" visible="{{dateVisible}}" mode="date" defaultValue="{{nextTreatmentTime}}" format="YYYY-MM-DD" bindchange="onConfirm" bindcancel="showNextTimePicker" start="{{start}}" end="{{end}}" />