<div ms-controller="marketingdocumentaryoffer">
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian">
        <tbody>
            <tr>
                <td width="198" height="450" valign="top" id="tdleft">
                    <!--leftNav-->
                    <div id="left" ms-widget="leftMenu">
                    </div>
                    <!--End leftNav-->
                </td>
                <td valign="top" id="right" class="addrightbg">
                    <div style="margin-bottom: 10px;">
                        <div class="boxtip" id="boxtip">
                            <h1>{{lang.Documentaryoffer}}</h1>
                            <p>{{lang.DocumentaryofferDepartment}}</p>
                            <!--<a href="javascript:history.go(-1)" class="btn_back"></a>-->
                        </div>
                        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhTable">
                            <tbody>
                                <tr>
                                    <td width="460" class="searchico">
                                        <div class="input-append" style="margin-bottom: 10px;">
                                            <input type="text" class="span4" ms-duplex="queryData.key.val" ms-enter="grid1.doSearch" ms-attr-placeholder="lang.SearchKeyWordForDocumentaryOffer">
                                            <button class="add-on ibtsearch" type="button" id="btnsel" ms-click="grid1.doSearch" style="height: 28px; font-size: 12px; padding: 3px 12px;">
                                                {{lang.SearchBtn}}
                                            </button>
                                            <button class="add-on ibtsearch clearall" type="button" ms-click="clearQuery" style="height: 28px; font-size: 12px; padding: 3px 12px;">
                                                {{lang.ShowAllBtn}}</button>
                                        </div>
                                    </td>
                                    <td class="fgray">&nbsp;
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhField">
                            <tbody>
                                <tr ms-class="quickword {{$val.hide?'hide':''}}" ms-repeat="queryData" ms-if-loop="$val.items && !$val.jump">
                                    <td ms-attr-colspan="$val.next?1:2" ms-width="$val.next?'50%':'100%'">
                                        <span>{{$val.label}}</span>
                                        <div style="display: inline;">
                                            <a ms-repeat-r='$val.items' href="javascript:void(0)" ms-click='addQuery($key, r.val, r.label)' ms-class-selected="r.curr" ms-html='r.label'></a>
                                        </div>
                                    </td>
                                    <td ms-if="$val.next" width="50%">
                                        <span>{{queryData[$val.next].label}}</span>
                                        <div style="display: inline;">
                                            <a ms-repeat-r="queryData[$val.next].items" href="javascript:void(0)" ms-click='addQuery($val.next, r.val, r.label)' ms-class-selected="r.curr" ms-html='r.label'></a>
                                        </div>
                                    </td>
                                </tr>
                                <tr ms-if="queryMore">
                                    <td colspan="2">
                                        <ul class="quickwordul">
                                            <li>
                                                <div class="quickwordmore" isshow="flase" onclick="quickwordShow()">更多选项<span class="quickdown"></span></div>
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="seabox">
                                        <span class="first" ms-html='lang.CurrSearchCondition'></span>
                                        <div style="display: inline; float: left;" ms-repeat="queryData">
                                            <span class="searchItem" ms-if-loop='$val.valLabel'>{{$val.valLabel}}
                                        <i><a href="javascript:void(0)" ms-click='removeQuery($key)'></a></i>
                                            </span>
                                        </div>
                                        <span class="last" ms-visible='hasQuery' ms-click='clearQuery'><a href="javascript:void(0)" ms-html='lang.ClearAll'></a></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div>
                            <ul class="tabWarp tlist" style="margin-top: 10px; margin-bottom: -1px;">
                                <li ms-repeat-r="listTabs" ms-class-1="{{listtab==r.val?'hover':'normal'}}" ms-click="listtabChange(r.val)">{{r.label}}</li>
                            </ul>
                        </div>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="tableList">
                            <thead>
                                <tr class="dobtn" style="background-color: rgba(0, 0, 0, 0);">
                                    <td ms-attr-colspan="grid1.colCount" bgcolor="#FFFFFF">
                                        <a ms-if="ADD" href="javascript:void(0)" class="doadd" ms-click="doadd">{{lang.AddBtn}}</a>
                                        <a ms-if="DELETE" href="javascript:void(0)" class="doalldel" ms-click="grid1.removeAll">{{lang.BtachDelBtn}}</a>
                                    </td>
                                </tr>
                                <tr class="head" style="background-color: rgba(0, 0, 0, 0);">
                                    <td width="3%" align="center">
                                        <input type="checkbox" ms-duplex-radio="grid1.checkall">
                                    </td>
                                    <td width="15%" align="center">{{lang.Theme}}
                                    </td>
                                    <td ms-if="grid1.showCustomer" width="15%" align="center">客户
                                    </td>
                                    <td ms-if="grid1.showSalesopp" width="15%" align="center">归属销售机会
                                    </td>

                                    <td width="8%" align="center">{{lang.Documentaryperson}}
                                    </td>
                                    <td width="8%" align="center">状态
                                    </td>
                                    <!--        <td width="5%" align="center" >{{lang.OfferDate}}
                                    </td>-->
                                    <td width="5%" align="center" title="点击按此列排序" class="colsort" ms-click="dautosort('OfferDate')">{{lang.OfferDate}}
                                      <span ms-class="{{sort=='OfferDate' && sortValue==0?'colsortup':'colsortdown'}}"></span>
                                    </td>
                                    <td width="6%" align="center">{{lang.Operate}}
                                    </td>
                                </tr>
                            </thead>
                            <tbody ms-each-item="grid1.list" ms-if="grid1.list.length>0">
                                <tr style="background-color: rgb(255, 255, 255);">
                                    <td align="center">
                                        <input ms-attr-disabled="item.IsSign" type="checkbox" ms-duplex-radio="item.checked">
                                    </td>
                                    <td align="left">
                                        <span ms-if="item.hasComment">
                                            <a ms-if="showindex == $index" href="javascript:void(0);" class="notexpand" title="展开更多信息" ms-click="showmore($index,item.Id)">&nbsp;</a>
                                            <a ms-if="showindex != $index" href="javascript:void(0);" class="expand" ms-click="showmore($index,item.Id)"></a>
                                            <a href="javascript:void(0)" ms-click="doview(item.Id)">{{item.Title}}</a>
                                        </span>
                                        <span ms-if="!item.hasComment" style="margin-left: 20px;">
                                            <a href="javascript:void(0)" ms-click="doview(item.Id)">{{item.Title}}</a>
                                        </span>
                                    </td>
                                    <td align="left" ms-if="grid1.showCustomer">
                                        <a href="javascript:void(0)" ms-click="gotoview(item.Customer)">{{item.CustomerDisplay}}</a>
                                    </td>
                                    <td align="left" ms-if="grid1.showSalesopp">
                                        <a href="javascript:void(0)" ms-attr-val="item.SalesOpportunities" ms-click="doviewSales">{{item.SalesOpportunitiesDisplay}}</a>
                                    </td>
                                    <td align="center">{{item.DocumentaryEmployeeDisplay}}
                                    </td>
                                    <td align="center">
                                        <span ms-if="item.IsSign" style="color: #0d9836; cursor: pointer;" ms-title="'合同名称：'+item.ContractDisplay" ms-click="contractdoview" ms-attr-val="item.Contract">已签单</span>
                                        <span ms-if="!item.IsSign">未签单</span>
                                    </td>
                                    <td align="center">{{item.OfferDate}}
                                    </td>
                                    <td align="center">
                                        <a ms-if="!item.IsSign　&& ADDCONTRACT" href="javascript:void(0)" ms-value="item.Id" ms-click="truncontract" class="dowrite" title="建立合同订单"></a>
                                        <a ms-if="item.IsSign || !ADDCONTRACT" href="javascript:void(0)" class="nowrite" title="已签单或者没权限"></a>

                                        <a href="javascript:void(0)" class="doview" ms-click="doview(item.Id)" ms-title="lang.ViewBtn"></a>
                                        <a ms-if="item.EDIT && !item.IsSign" href="javascript:void(0)" class="doedit" ms-click="doedit(item.Id)" ms-title="lang.EditBtn"></a>
                                        <a ms-if="!item.EDIT || item.IsSign" href="javascript:void(0)" class="noedit" ms-title="lang.EditBtn"></a>
                                        <a ms-if="item.DELETE && !item.IsSign" href="javascript:void(0)" class="dodel" ms-click="grid1.removeById(item.Id,$index)" ms-attr-index="$index" ms-title="lang.DelBtn"></a>
                                        <a ms-if="!item.DELETE || item.IsSign" href="javascript:void(0)" class="nodel" ms-title="lang.DelBtn"></a>
                                    </td>
                                </tr>
                                <tr ms-if="showindex == $index" style="background: #FFF;">
                                    <td ms-attr-colspan="grid1.colCount">
                                        <div class="Tab_box">
                                            <i></i>
                                            <dl>
                                                <dd>
                                                    <a ms-click="commentAdd(item,1)" href='javascript:void(0);' title="新增点评">新增点评</a>
                                                </dd>
                                            </dl>
                                            <dl ms-repeat-cmt="comments">
                                                <dt>
                                                    <strong  ms-widget='userCard' ms-data-userid="cmt.AddEmpId">{{cmt.AddByName}}({{cmt.Position}})</strong><span>{{cmt.CommentDate}}</span>
                                                    <div class="clear"></div>
                                                </dt>
                                                <dd>
                                                        <font>{{cmt.Comments}}</font>
                                                </dd>
                                            </dl>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr ms-if="grid1.gridmsg">
                                    <td ms-attr-colspan="grid1.colCount" align="center" class="gridmsg">{{grid1.gridmsg|html}}</td>
                                </tr>
                                <tr>
                                    <td ms-attr-colspan="grid1.colCount" ms-widget='paging' data-gridid="grid1"></td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 选择产品 -->
    <noscript type="text/avalon" id="ProductListTemp">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="203" height="390" valign="top">
                    <table width="96%" border="0" cellpadding="0" cellspacing="0" class="seacrhTable" style="background: none;">
                        <tr>
                            <td valign="top">
                                <div class="boxTitle" style="overflow-y: auto; height: 420px;">
                                    <h2>产品分类</h2>
                                    <ul class='ztree' ms-widget="productCategoryTree,pctree,pCategoryTreeOpts"></ul>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" style="padding-left: 3px; width: 800px;">
                    <div class="boxTitlenob">
                        <h2>产品列表<span class="rseachbox">
                            <input ms-duplex="productKey" placeholder="输入产品关键字" type="text" style="margin-bottom: 0px; font-size: 9px; color: #989898;" />
                            <button class="inputbt" type="button" ms-click="onSearchProduct">
                            </button>
                        </span>
                        </h2>
                    </div>
                    <table width="" border="0" cellspacing="1" cellpadding="0" class="tableList productlist" style="width: 100%;">
                        <thead>
                            <tr class="head">
                                <td width="3%" align="center">选择
                                </td>
                                <td width="20%" align="center">产品名称
                                </td>
                                <td width="8%" align="center">规格/型号
                                </td>
                                <td width="10%" align="center">品 牌
                                </td>
                                <td width="5%" align="center">库存量
                                </td>
                                <td width="8%" align="center">标准价
                                </td>
                                <td ms-if="entity.Customer">特供价
                                </td>
                                <td ms-if="CustomerMemberGradeDisplay">{{CustomerMemberGradeDisplay}}价
                                </td>
                            </tr>
                        </thead>
                        <tbody ms-each-item="productList">
                            <tr ms-title="formatPriceList(item)" ms-click="onSetProductIndex" ms-dblclick="selectedProduct(item)" style="cursor: pointer;">
                                <td align="center">
                                    <input type="radio" name="rdoproduct" />
                                </td>
                                <td align="center">{{item.Name|truncate(20,'...')}}
                                </td>
                                <td align="center">{{item.Standard}}
                                </td>
                                <td align="center">{{item.Brand.Name}}
                                </td>
                                <td align="center">{{item.CurrentStockNum}}
                                </td>
                                <td align="center">{{item.GeneralCustomerPrice}}
                                </td>
                                <td ms-if="entity.Customer">{{item.SpecialPrice}}
                                </td>
                                <td ms-if="CustomerMemberGradeDisplay">{{item.GradePrice}}
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td ms-attr-colspan="entity.Customer?8:6" ms-widget='paging,productupaing,productpaing'></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
        </table>
    </noscript>

    <!--- 新增或修改---->
    <noscript type="text/avalon" id="offerformTemplate">
        <div style="padding: 10px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="commontable shortSelect">
                <tbody>
                    <tr>
                        <th width="90">客户：</th>
                        <td width="300">
                            <div ms-if="grid1.showCustomer">
                                <input type="hidden" ms-duplex="entity.Customer" readonly="readonly">
                                <input type="text" ms-duplex="entity.CustomerDisplay" readonly="readonly">
                                <button id="btnSelectCustomerContact" class="myfbt" type="button" ms-click="selectCustomer()">
                                    <i class="customer"></i>
                                </button>
                                <span class="must">*</span>
                            </div>
                            <div ms-if="!grid1.showCustomer" class="subtitle">
                                {{entity.CustomerDisplay}}
                            </div>
                        </td>
                        <th width="100">客户联系人：
                        </th>
                        <td>
                            <input type="hidden" ms-duplex="entity.CustomerContact" readonly="readonly">
                            <input type="text" ms-duplex="entity.CustomerContactDisplay" style="width: 100px;">
                            <select style="width: 100px;" ms-change="contactChange">
                                <option value="">选择联系人</option>
                                <option ms-repeat-con="CustomerContactData" ms-value="con.Id">{{con.Name}}</option>
                            </select>
                            <a href="javascript:void(0)" class="acolor" ms-click="addContact">+新增联系人</a>
                            <!--<span class="must">*</span>-->
                        </td>
                    </tr>
                    <tr>
                        <th>销售机会：
                        </th>
                        <td colspan="3">
                            <!--<input type="text" ms-duplex="entity.SalesOpportunitiesDisplay" style="width: 120px;" readonly="readonly"> -->
                            <div ms-if="urlAction!='salesopp'">
                                <select style="width: 120px;" ms-duplex="entity.SalesOpportunities">
                                    <option value="">选择销售机会</option>
                                    <option ms-repeat-item="opportunitiestypedata" ms-value="item.Id" ms-text="item.Title"></option>
                                </select>
                                <a href="javascript:void(0)" ms-click="doaddSales" class="acolor">+新增销售机会</a>
                            </div>
                            <div ms-if="urlAction=='salesopp'" class="subtitle">
                                {{entity.SalesOpportunitiesDisplay}}
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>主题：
                        </th>
                        <td colspan="3">
                            <input type="text" ms-duplex="entity.Title" style="width: 320px;">
                            <span class="must">*</span>
                            <a ms-if="entity.Title" href="javascript:void(0)" class="doclear" ms-click="clearTitle" title="清空标题">清空</a>
                        </td>
                    </tr>
                    <tr>
                        <th>跟单描述：
                        </th>
                        <td colspan="3">
                            <textarea id="CustomerDemand_text" rows="3" cols="20" style="width: 710px;" placeholder="1.写清楚客户需求    2.我方对应解决方案   3.客户对方案的回馈反应" ms-duplex="entity.CustomerDemand"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <label>
                                <input type="checkbox" ms-duplex-radio="entity.HasOffer">&nbsp;报价明细（{{entity.HasOffer?'有':'无'}}）</label>
                            <label ms-if="entity.HasOffer">
                                <input type="checkbox" ms-duplex-radio="entity.HasPaySendType">&nbsp;付款发货方式（{{entity.HasPaySendType?'有':'无'}}）</label>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div ms-visible="entity.HasOffer">
                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList">
                    <tr class="minhead" align="center">
                        <td width="2%">序号
                        </td>
                        <td width="25%">产品名称
                        </td>
                        <td width="15%">规格/型号
                        </td>
                        <td width="7%">单价
                        </td>
                        <td width="7%">数量
                        </td>
                        <td width="8%">金额
                        </td>
                        <td width="2%" align="center">操作
                        </td>
                    </tr>
                    <tr ms-repeat-item="documentaryofferproductslist" align="center" style="background-color: rgb(255, 255, 255);" ms-click="onSetIndex">
                        <td style="text-align: center;">{{($index+1)}}
                        </td>
                        <td>
                            <input type="hidden" ms-duplex="item.DocumentaryOffer" />
                            <input type="text" ms-duplex="item.ProductName" readonly="readonly" />
                            <input type="hidden" ms-duplex="item.Product" />
                            <button type="button" ms-attr-index="$index" class="myfbt" ms-live-click="onSelectProuct"><i class="customer"></i></button>
                        </td>
                        <td>
                            <input type="text" ms-duplex="item.Standard" style="width: 120px;" />
                        </td>
                        <td>
                            <input type="text" ms-duplex="item.Price" style="width: 50px;" data-id="Price" ms-class-1="redbg:item.Price<item.LowestPrice" ms-blur="onSumCost(item)" />
                        </td>
                        <td>
                            <input type="text" ms-duplex="item.Num" style="width: 50px;" ms-blur="onSumCost" />
                        </td>
                        <td>
                            <input type="text" ms-duplex="item.Money" readonly="readonly" style="width: 60px;" />
                        </td>
                        <td align="center">
                            <a href="javascript:void(0)" class="dodel" ms-attr-index="$index" ms-live-click="onProductDel"></a>
                        </td>
                    </tr>
                    <tr style="background: rgb(255, 255, 255);">
                        <td colspan="5">
                            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="commontable">
                                <tr>
                                    <td style="line-height: 22px; height: 22px;" rowspan="2" valign="top"><a href="javascript:void(0)" ms-click="onProductAdd">+&nbsp;新增一行</a></td>
                                    <td style="text-align: right; line-height: 22px; height: 22px;">(小计{{entity.OfferTotal}} x 税率<input type="text" style="width: 23px; margin: 0; padding: 0 3px;" ms-duplex="entity.TaxRate" ms-blur="onMathTaxAmt" />
                                        <span style="display: inline-block; width: auto; height: 14px; padding: 3px; font-weight: normal; line-height: 12px; text-align: center; text-shadow: 0 1px 0 white; background-color: #EEE; border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; margin: 0px 0 0 -4px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0;">%</span>
                                        = 税额{{entity.TaxAmt}}) + 小计</td>
                                </tr>
                                <tr>
                                    <td style="text-align: right; line-height: 22px; height: 22px;">=&nbsp;合计</td>
                                </tr>
                            </table>
                        </td>
                        <td colspan="2">
                            <table border="0" cellspacing="1" cellpadding="0">
                                <tr>
                                    <td style="padding-left: 2px; line-height: 22px; height: 22px;">
                                    {{entity.OfferTotal}} 
                        <tr>
                            <td style="padding-left: 2px; line-height: 22px; height: 22px; font-size: 13px; color: #f00;">{{entity.TotalAmt}}</td>
                        </tr>
                            </table>
                        </td>
                    </tr>
                    <tr ms-if="entity.HasPaySendType" style="background: rgb(255, 255, 255);">
                        <td colspan="7">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="commontable shortSelect">
                                <tbody>
                                    <tr>
                                        <th width="70">1.付款方式：
                                        </th>
                                        <td width="380">
                                            <select style="width: 110px;" ms-duplex="entity.PayType">
                                                <option value="">请选择</option>
                                                <option ms-repeat-subitem="paytypedata" ms-value="subitem.Id">{{subitem.Data}}</option>
                                            </select>
                                        </td>
                                        <th width="90">结算方式：
                                        </th>
                                        <td>
                                            <select style="width: 110px;" ms-duplex="entity.BalanceType">
                                                <option value="">请选择</option>
                                                <option ms-repeat-subitem="balancetypedata" ms-value="subitem.Id">{{subitem.Data}}</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>付款说明：
                                        </th>
                                        <td>
                                            <input type="text" ms-duplex="entity.PayToRemark" style="width: 300px;">
                                        </td>
                                        <th>要求票据：
                                        </th>
                                        <td>
                                            <select style="width: 110px;" ms-duplex="entity.NoteType">
                                                <option value="">请选择</option>
                                                <option ms-repeat-subitem="billtypedata" ms-value="subitem.Id" ms-text="subitem.Data"></option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>2.发货方式：
                                        </th>
                                        <td>
                                            <select style="width: 110px;" ms-duplex="entity.ConsignmentType">
                                                <option value="">请选择</option>
                                                <option ms-repeat-subitem="consignmenttypedata" ms-value="subitem.Id">{{subitem.Data}}</option>
                                            </select>
                                        </td>
                                        <th>交货日期：
                                        </th>
                                        <td>
                                            <input type="text" ms-duplex="entity.DeliveryDate" style="width: 90px" ms-widget="date,delivedateid,delivedateOpts">
                                        </td>

                                    </tr>
                                    <tr>
                                        <th>收货人：
                                        </th>
                                        <td>
                                            <input type="hidden" ms-duplex="entity.Consignee" />
                                            <input type="text" ms-duplex="entity.ConsigneeDisplay" style="width: 100px">
                                            <button class="myfbt" type="button" ms-click='selectConsignee()'><i class="customer"></i></button>
                                        </td>
                                        <th>运费承担：
                                        </th>
                                        <td>
                                            <input type="text" ms-duplex="entity.FreightBear" style="width: 200px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>收货电话：
                                        </th>
                                        <td>
                                            <input type="text" ms-duplex="entity.ConsigneePhone" style="width: 100px">
                                        </td>
                                        <th>收货地址：
                                        </th>
                                        <td>
                                            <input type="text" ms-duplex="entity.ConsigneeAddress" style="width: 200px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>3.其他说明：
                                        </th>
                                        <td colspan="3">
                                            <input type="text" ms-duplex="entity.PayRemark" placeholder="备注" style="width: 676px;">
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="commontable shortSelect top10">
                <tbody>
                    <tr>
                        <th width="100">报价相关附件： 
                        </th>
                        <td width="400">
                            <span ms-if="entity.Files">{{entity.Files|getFileName}}<a ms-click="delFiles()" href="javascript:void(0)" class="dodel" title="移除附件"></a> </span>
                            <button type="button" class="btnsimple" ms-click="uploadFiles()">
                                上传附件
                            </button>
                        </td>
                        <th width="100">报价有效期至：</th>
                        <td>
                            <input type="text" ms-duplex="entity.ValidityDate" style="width: 140px" ms-widget="date,validitydateid,validitydateOpts">
                        </td>
                    </tr>
                    <tr>
                        <th>跟单报价人：</th>
                        <td>
                            <input type="hidden" ms-duplex="entity.DocumentaryEmployee" />
                            <input type="text" ms-duplex="entity.DocumentaryEmployeeDisplay" readonly="readonly" style="width: 80px;" />
                            <button type="button" class="myfbt" ms-click="selectDocumentaryEmployeeTree()"><i class="iadduser"></i></button>
                        </td>
                        <th>跟单报价时间：
                        </th>
                        <td>
                            <input type="text" ms-duplex="entity.OfferDate" style="width: 140px" ms-widget="date,offerdateid,offerdateOpts"><span class="must">*</span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </noscript>
    <!-- 点评内容 -->
    <noscript type="text/avalon" id="commentView">
        <div>
            <div><span style="font-size: 14px; font-weight: bold;">点评内容</span></div>
            <div style=" min-height: 120px; margin: 5px auto;">
                <div><textarea style="width: 98%; height: 80px;" ms-duplex="commentItem.Comments"></textarea></div>
                <div>
                <span>点评人：{{commentItem.AddByName}}</span>  <span style="margin-right: 10px; float: right;">点评时间：{{commentItem.CommentDate}}</span>
                </div>
            </div>
        </div>
    </noscript>
</div>
