<view class="{{stopClick}}">
    <view class="title colorInfo">
        单据信息
    </view>
    <t-cell title="服务单号" note="{{mainData.workorder.servicebillno}}" hover />
    <t-cell title="确认日期" note="{{mainData.workorder.createdate}}" hover />
    <view class="title colorInfo">
        服务信息
    </view>
    <t-cell title="服务分类" note="{{mainData.workorder.servicetype}}" hover />
    <t-cell title="应用系统" note="{{mainData.workorder.class1}}" hover />
    <t-cell title="客诉大类" note="{{mainData.workorder.class2}}" hover />
    <t-cell title="工单负责人" note="{{mainData.workorder.projectleader}}" hover />
    <t-cell title="项目名称" note="{{mainData.workorder.projectname}}" 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-tabs defaultValue="{{1}}" t-class="custom-tabs">
        <t-tab-panel label="产品信息" value="1">
            <view class="panel">
                <card style="margin-top:10px" wx:for="{{mainData.trainertitems}}" wx:key="itemid">
                    <product-card style="flex:1" slot="content" data="{{item}}" changeQty="{{false}}" bind:delete="deleteMaterial" bind:input="qtyChange"></product-card>
                </card>
                <view class="flex-align-center flex-around panel">
                    <t-button size="extra-small" variant="primary" bind:tap="addProduct">添加产品</t-button>
                </view>
            </view>
        </t-tab-panel>
    </t-tabs>
    <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 />
    <view class="title colorInfo">
        维修信息确认
    </view>
    <t-cell title="是否需要拆卸配件或整拆" note="{{node1}}" hover />
    <t-textarea style="margin-bottom:1px" label="维修方案及周期" value="{{node2}}" data-name="与现场协商确认维修方案" bind:blur="inputChange" t-class="external-class" placeholder="维修方案" disableDefaultPadding="{{true}}" autosize />
    <t-cell title="是否有偿服务" note="{{paidServiceAmount > 0?'是':'否'}}" hover />
    <t-cell title="服务金额" note="{{paidServiceAmount}}" hover />
    <t-textarea style="margin-bottom:1px" label="实施内容" value="{{node3}}" data-name="实施内容" bind:blur="inputChange" t-class="external-class" placeholder="实施内容" disableDefaultPadding="{{true}}" autosize />
    <t-textarea style="margin-bottom:1px" label="服务测试内容描述" value="{{node4}}" data-name="与现场协商试运行" bind:blur="inputChange" t-class="external-class" placeholder="服务测试内容描述" disableDefaultPadding="{{true}}" autosize />
    <t-textarea style="margin-bottom:1px" label="现场交代事项" value="{{node5}}" data-name="现场交代事项" 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: 130rpx;" />
<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>