Selaa lähdekoodia

保养工单优化

wyh 1 vuosi sitten
vanhempi
commit
667768751d
1 muutettua tiedostoa jossa 63 lisäystä ja 63 poistoa
  1. 63 63
      src/views/module_cmms/upkeep/UpkeepList.vue

+ 63 - 63
src/views/module_cmms/upkeep/UpkeepList.vue

@@ -18,20 +18,20 @@
       </a-upload> -->
       </a-upload> -->
       <!-- 高级查询区域 -->
       <!-- 高级查询区域 -->
       <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> -->
       <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> -->
-      <a-dropdown v-if="selectedRowKeys.length > 0">
+      <!-- <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
         <a-menu slot="overlay">
           <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
           <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
         </a-menu>
         </a-menu>
         <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
         <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
-      </a-dropdown>
+      </a-dropdown> -->
     </div>
     </div>
 
 
     <!-- table区域-begin -->
     <!-- table区域-begin -->
     <div>
     <div>
-      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+      <!-- <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> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
         <a style="margin-left: 24px" @click="onClearSelected">清空</a>
         <a style="margin-left: 24px" @click="onClearSelected">清空</a>
-      </div>
+      </div> -->
 
 
       <a-table
       <a-table
         ref="table"
         ref="table"
@@ -43,7 +43,6 @@
         :dataSource="dataSource"
         :dataSource="dataSource"
         :pagination="ipagination"
         :pagination="ipagination"
         :loading="loading"
         :loading="loading"
-        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
         class="j-table-force-nowrap"
         class="j-table-force-nowrap"
         @change="handleTableChange">
         @change="handleTableChange">
 
 
@@ -68,10 +67,11 @@
         </template>
         </template>
 
 
         <span slot="action" slot-scope="text, record">
         <span slot="action" slot-scope="text, record">
-          <a @click="handleEdit(record)">编辑</a>
+          <a @click="handleEdit(record)">反馈</a>
+          <!-- <a @click="handleEdit(record)">编辑</a> -->
 
 
-          <a-divider type="vertical" />
-          <a-dropdown>
+          <!-- <a-divider type="vertical" /> -->
+          <!-- <a-dropdown>
             <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
             <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
             <a-menu slot="overlay">
             <a-menu slot="overlay">
               <a-menu-item>
               <a-menu-item>
@@ -83,7 +83,7 @@
                 </a-popconfirm>
                 </a-popconfirm>
               </a-menu-item>
               </a-menu-item>
             </a-menu>
             </a-menu>
-          </a-dropdown>
+          </a-dropdown> -->
         </span>
         </span>
 
 
       </a-table>
       </a-table>
@@ -122,35 +122,30 @@
             }
             }
           },
           },
           {
           {
-            title:'备注',
-            align:"center",
-            dataIndex: 'remark'
-          },
-          {
             title:'保养工单编号',
             title:'保养工单编号',
             align:"center",
             align:"center",
             dataIndex: 'upkeepcode'
             dataIndex: 'upkeepcode'
           },
           },
-          {
-            title:'保养名称(标题)',
-            align:"center",
-            dataIndex: 'upkeepname'
-          },
-          {
-            title:'保养计划ID',
-            align:"center",
-            dataIndex: 'upkeepplanid'
-          },
-          {
-            title:'保养工作项目ID',
-            align:"center",
-            dataIndex: 'upkeepprojid'
-          },
-          {
-            title:'工作项目名称',
-            align:"center",
-            dataIndex: 'projectname'
-          },
+          // {
+          //   title:'保养名称(标题)',
+          //   align:"center",
+          //   dataIndex: 'upkeepname'
+          // },
+          // {
+          //   title:'保养计划ID',
+          //   align:"center",
+          //   dataIndex: 'upkeepplanid'
+          // },
+          // {
+          //   title:'保养工作项目ID',
+          //   align:"center",
+          //   dataIndex: 'upkeepprojid'
+          // },
+          // {
+          //   title:'工作项目名称',
+          //   align:"center",
+          //   dataIndex: 'projectname'
+          // },
           {
           {
             title:'计划名称',
             title:'计划名称',
             align:"center",
             align:"center",
@@ -161,46 +156,51 @@
             align:"center",
             align:"center",
             dataIndex: 'address'
             dataIndex: 'address'
           },
           },
-          {
-            title:'厂商名称',
-            align:"center",
-            dataIndex: 'supplier'
-          },
-          {
-            title:'厂商电话',
-            align:"center",
-            dataIndex: 'suppliertel'
-          },
-          {
-            title:'联系人',
-            align:"center",
-            dataIndex: 'linker'
-          },
-          {
-            title:'联系人电话',
-            align:"center",
-            dataIndex: 'linkertel'
-          },
+          // {
+          //   title:'厂商名称',
+          //   align:"center",
+          //   dataIndex: 'supplier'
+          // },
+          // {
+          //   title:'厂商电话',
+          //   align:"center",
+          //   dataIndex: 'suppliertel'
+          // },
+          // {
+          //   title:'联系人',
+          //   align:"center",
+          //   dataIndex: 'linker'
+          // },
+          // {
+          //   title:'联系人电话',
+          //   align:"center",
+          //   dataIndex: 'linkertel'
+          // },
           {
           {
             title:'负责人',
             title:'负责人',
             align:"center",
             align:"center",
-            dataIndex: 'chargeruser'
-          },
-          {
-            title:'描述',
-            align:"center",
-            dataIndex: 'upkeepdesc'
+            dataIndex: 'chargeruser_dict'
           },
           },
+          // {
+          //   title:'描述',
+          //   align:"center",
+          //   dataIndex: 'upkeepdesc'
+          // },
           {
           {
             title:'状态:0待处理、1已通知、2未执行、3未完成、4已完成',
             title:'状态:0待处理、1已通知、2未执行、3未完成、4已完成',
             align:"center",
             align:"center",
-            dataIndex: 'status'
+            dataIndex: 'status_dict'
           },
           },
           {
           {
-            title:'处理意见',
+            title:'备注',
             align:"center",
             align:"center",
-            dataIndex: 'opinion'
+            dataIndex: 'remark'
           },
           },
+          // {
+          //   title:'处理意见',
+          //   align:"center",
+          //   dataIndex: 'opinion'
+          // },
           {
           {
             title: '操作',
             title: '操作',
             dataIndex: 'action',
             dataIndex: 'action',