|
|
@ -22,18 +22,14 @@ |
|
|
|
<el-input v-model="listQuery.params.billNo" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="申请日期"> |
|
|
|
<el-date-picker v-model="listQuery.params.startDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" |
|
|
|
type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
<el-date-picker v-model="listQuery.params.startDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
<span style="padding: 0 8px">至</span> |
|
|
|
<el-date-picker v-model="listQuery.params.endDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" |
|
|
|
type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
<el-date-picker v-model="listQuery.params.endDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="办结日期"> |
|
|
|
<el-date-picker v-model="listQuery.params.startDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" |
|
|
|
type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
<el-date-picker v-model="listQuery.params.startDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
<span style="padding: 0 8px">至</span> |
|
|
|
<el-date-picker v-model="listQuery.params.endDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" |
|
|
|
type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
<el-date-picker v-model="listQuery.params.endDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="开票单位"> |
|
|
|
<el-input v-model="listQuery.params.customerName" placeholder="" clearable/> |
|
|
@ -54,19 +50,16 @@ |
|
|
|
<!--End查询列表部分--> |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">配件销售单开票申请列表</div> |
|
|
|
<!-- <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> --> |
|
|
|
</div> |
|
|
|
<!--Start 主页面主要部分 --> |
|
|
|
<div class=""> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" align="center" width="50"/> |
|
|
|
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column label="操作" width="180" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" :disabled="scope.row.state == '已办结'" size="small" |
|
|
|
@click="toEdit(scope.row)">办理</el-button> |
|
|
|
<el-button type="primary" size="small" @click="toEdit(scope.row)" :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true">办理 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -97,40 +90,32 @@ |
|
|
|
<div class="pages"> |
|
|
|
<div class="tit"/> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</div> |
|
|
|
<!--End查询列表部分--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--新增及修改 --> |
|
|
|
<salesInvoiceAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" |
|
|
|
@reloadlist="getList" /> |
|
|
|
<salesInvoiceAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> |
|
|
|
<!-- 详情 --> |
|
|
|
<salesInvoiceInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/> |
|
|
|
|
|
|
|
<!-- 流程审批记录 --> |
|
|
|
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center> |
|
|
|
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" |
|
|
|
:src="this.centerDialogVisible === true ? url :''"></iframe> |
|
|
|
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 附件 --> |
|
|
|
<el-dialog title="附件" :visible.sync="filesDialogVisible" width="78%" height="1%" |
|
|
|
:before-close="closeFilesDialogVisible"> |
|
|
|
<el-dialog title="附件" :visible.sync="filesDialogVisible" width="78%" height="1%" :before-close="closeFilesDialogVisible"> |
|
|
|
<div style=" margin-top: -20px"> |
|
|
|
<el-image class="addinputInfo" style="width: 150px;height: 150px;padding: 10px;" |
|
|
|
v-for="(item, index) in filesList" :key="index" :src="item" :preview-src-list="filesList" /> |
|
|
|
<el-image class="addinputInfo" style="width: 150px;height: 150px;padding: 10px;" v-for="(item, index) in filesList" :key="index" :src="item" :preview-src-list="filesList"/> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import req from '@/api/operation/salesInvoice' |
|
|
|
import salesInvoiceAdd from './salesInvoiceAdd' |
|
|
@ -143,7 +128,6 @@ |
|
|
|
name: 'SalesTicket', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
|
pageye, |
|
|
|
ButtonBar, |
|
|
|
salesInvoiceAdd, |
|
|
|
salesInvoiceInfo |
|
|
@ -204,7 +188,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
filesList: [], |
|
|
|
filesDialogVisible: false, |
|
|
|
filesDialogVisible: false |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -384,7 +368,8 @@ |
|
|
|
}).catch(e => { |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 修改、编辑、详情返回列表页面 |
|
|
|
resetState() { |
|
|
|