瀏覽代碼

委托查询优化

wyh 1 年之前
父節點
當前提交
f72717006a
共有 1 個文件被更改,包括 28 次插入3 次删除
  1. 28 3
      itdmWeb/src/views/module-iTDM/weituochaxun/ItdmWeituoYangpinList.vue

+ 28 - 3
itdmWeb/src/views/module-iTDM/weituochaxun/ItdmWeituoYangpinList.vue

@@ -78,7 +78,7 @@
     <!-- table区域-begin -->
     <div>
       <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
-        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <div style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
         <a style="margin-left: 24px" @click="onClearSelected">清空</a>
       </div> -->
 
@@ -115,11 +115,16 @@
           </a-button>
         </template>
 
+        <span slot="download" slot-scope="text, record">
+          <a v-if="record.shenheStatus ==1" @click="handleDownload(record)">下载委托</a>
+          <a v-if="record.shenheStatus !=1" disabled>下载委托</a>
+        </span>
+
         <span slot="action" slot-scope="text, record">
           <!-- <a @click="handleEdit(record)">编辑</a> -->
           <a @click="handleDetail(record)">详情</a>
-          <a-divider type="vertical" v-if="record.shenheStatus ==1"/>
-          <a v-if="record.shenheStatus ==1" @click="handleDownload(record)">下载委托</a>
+          <!-- <a-divider type="vertical" v-if="record.shenheStatus ==1"/>
+          <a v-if="record.shenheStatus ==1" @click="handleDownload(record)">下载委托</a> -->
 
           <!-- <a-divider type="vertical" />
           <a-dropdown>
@@ -246,6 +251,26 @@
             align:"center",
             dataIndex:'shenheStatus_dictText'
           },
+                    {
+            title:'下载',
+            align:"center",
+            fixed:"right",
+            width:70,
+            dataIndex:'download',
+            // scopedSlots: { customRender: 'download' },
+            customRender:function (t,r,index) {
+              const that = this
+              var childrenVal
+              childrenVal = (<div onclick={()=>{that.handleDownload(record)}} >下载委托</div>)
+              return {
+                children: childrenVal,
+                attrs: {
+                  rowSpan: r.rowSpan
+                }
+              }
+              // return {children: <a onclick={()=>{that.handleDownload(record)}} >下载委托</a>,attrs: {rowSpan:r.rowSpan}};
+            },
+          },
           // {
           //   title:'生产厂家',
           //   align:"center",