|  |  |  | 
|---|
|  |  |  | <div class="main_app"> | 
|---|
|  |  |  | <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear" /> | 
|---|
|  |  |  | <div class="mt20"> | 
|---|
|  |  |  | <el-button type="primary" @click="handleEdit()" v-permissions="['business:ywpatrolline:create']">新建出库单</el-button> | 
|---|
|  |  |  | <el-button @click="handleEx()" v-permissions="['business:ywpatrolline:create']">导出</el-button> | 
|---|
|  |  |  | <el-button type="primary" @click="handleEdit()" v-permissions="['business:ywoutinboundrecord:create']">新建出库单</el-button> | 
|---|
|  |  |  | <el-button @click="handleEx()" v-permissions="['business:ywoutinboundrecord:exportExcel']">导出</el-button> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <el-table v-loading="loading" :data="list" stripe> | 
|---|
|  |  |  | <el-table-column prop="code" label="出库单号" min-width="120" show-overflow-tooltip /> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="createUserName" label="领用人" min-width="90" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="createDate" label="操作时间" min-width="140" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="remark" label="备注" min-width="100" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="workTime" label="操作" min-width="80" show-overflow-tooltip> | 
|---|
|  |  |  | <template v-slot="{ row }"> | 
|---|
|  |  |  | <span @click="handleDetail(row)" class="primaryColor pointer">查看详情</span> | 
|---|
|  |  |  | <span @click="handleDetail(row)" v-permissions="['business:ywoutinboundrecord:query']" class="primaryColor pointer">查看详情</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | 
|---|
|  |  |  | import dayjs from 'dayjs' | 
|---|
|  |  |  | import duration from 'dayjs/plugin/duration' | 
|---|
|  |  |  | dayjs.extend(duration) | 
|---|
|  |  |  | import { ywOutinboundPage } from '@/api' | 
|---|
|  |  |  | import { ywOutinboundPage, ywOutinboundEx } from '@/api' | 
|---|
|  |  |  | import { fetchList as getStoreList } from '@/api/ywWarehouse' | 
|---|
|  |  |  | import { StoreTypeOps, rules } from './components/config' | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | 
|---|
|  |  |  | label: '出库类型', | 
|---|
|  |  |  | labelCode: 'name', | 
|---|
|  |  |  | valueCode: 'id', | 
|---|
|  |  |  | options: StoreTypeOps.filter(i => i.type == 0) | 
|---|
|  |  |  | options: StoreTypeOps.filter(i => i.type == 1) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | online: true | 
|---|