|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-card v-loading="config.operating"> |
|
|
|
|
<search-form> |
|
|
|
|
<list-page :loading="config.operating" :buttons="buttonGroup" :list="listPageConfig"> |
|
|
|
|
<template v-slot:searchForm> |
|
|
|
|
<search-form-item label="单 号"> |
|
|
|
|
<el-input v-model="searchForm.idFuzzy" clearable maxlength="50"/> |
|
|
|
|
</search-form-item> |
|
|
|
|
@ -54,77 +54,60 @@ |
|
|
|
|
value-format="timestamp" |
|
|
|
|
/> |
|
|
|
|
</search-form-item> |
|
|
|
|
</search-form> |
|
|
|
|
|
|
|
|
|
<el-row class="button-group"> |
|
|
|
|
<el-button icon="el-icon-search" size="small" type="primary" @click="search">查 询</el-button> |
|
|
|
|
<el-button v-if="canAdd" icon="el-icon-plus" size="small" type="primary" @click="add">添 加</el-button> |
|
|
|
|
<el-button icon="el-icon-view" size="small" type="primary" @click="see">查 看</el-button> |
|
|
|
|
<el-button v-if="canUpdate" icon="el-icon-edit" size="small" type="primary" @click="edit">编 辑</el-button> |
|
|
|
|
<el-button v-if="canDel" icon="el-icon-delete" size="small" type="danger" @click="del">删 除</el-button> |
|
|
|
|
<el-button v-if="canExport" icon="el-icon-download" size="small" type="info" @click="downloadExcel">导 出 |
|
|
|
|
</el-button> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<el-row v-loading="config.loading" class="table-container"> |
|
|
|
|
<abstract-table :data="tableData" @row-click="rowClick" @expand-change="getSubList"> |
|
|
|
|
<el-table-column align="center" type="expand"> |
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
<liner-progress :show="row._loading"/> |
|
|
|
|
<el-table v-show="!row._loading" :data="row.data" border row-key="id"> |
|
|
|
|
<el-table-column align="center" label="#" type="index" width="80"/> |
|
|
|
|
<el-table-column align="center" label="商品" prop="cname" show-overflow-tooltip/> |
|
|
|
|
<el-table-column align="center" label="采购数量" prop="num"/> |
|
|
|
|
<el-table-column align="center" label="采购单价" prop="price"/> |
|
|
|
|
<el-table-column align="center" label="未入库数量" prop="remainNum"/> |
|
|
|
|
</el-table> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="#" type="index" width="80"/> |
|
|
|
|
<el-table-column align="center" label="单 号" width="160"> |
|
|
|
|
<router-link |
|
|
|
|
slot-scope="{row}" |
|
|
|
|
:to="`/purchase/order/detail/see/${row.id}`" |
|
|
|
|
@click.native.stop |
|
|
|
|
> |
|
|
|
|
{{ row.id }} |
|
|
|
|
</router-link> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="供应商" prop="sname" show-overflow-tooltip/> |
|
|
|
|
<el-table-column align="center" label="创建人" prop="cname" show-overflow-tooltip/> |
|
|
|
|
<el-table-column align="center" label="创建时间" width="150"> |
|
|
|
|
<template v-slot="{row}">{{ row.ctime | timestamp2Date }}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="审核人" prop="vname"/> |
|
|
|
|
<el-table-column align="center" label="审核时间" width="150"> |
|
|
|
|
<template v-slot="{row}">{{ row.vtime | timestamp2Date }}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="状 态" width="120"> |
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
<span :class="{primary:row.status===1,success:row.status===2}" class="dot"/> |
|
|
|
|
{{ getStatus(row.status) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="完成情况" width="120"> |
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
<span :class="{primary:row.finish===1,success:row.finish===2}" class="dot"/> |
|
|
|
|
{{ getFinish(row.finish) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="完成时间" width="150"> |
|
|
|
|
<template v-slot="{row}">{{ row.ftime | timestamp2Date }}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</abstract-table> |
|
|
|
|
|
|
|
|
|
<abstract-pagination :model="searchForm" @current-change="pageChange"/> |
|
|
|
|
</el-row> |
|
|
|
|
</el-card> |
|
|
|
|
</template> |
|
|
|
|
<template v-slot:tableColumn> |
|
|
|
|
<el-table-column align="center" type="expand"> |
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
<liner-progress :show="row._loading"/> |
|
|
|
|
<el-table v-show="!row._loading" :data="row.data" border row-key="id"> |
|
|
|
|
<el-table-column align="center" label="#" type="index" width="80"/> |
|
|
|
|
<el-table-column align="center" label="商品" prop="cname" show-overflow-tooltip/> |
|
|
|
|
<el-table-column align="center" label="采购数量" prop="num"/> |
|
|
|
|
<el-table-column align="center" label="采购单价" prop="price"/> |
|
|
|
|
<el-table-column align="center" label="未入库数量" prop="remainNum"/> |
|
|
|
|
</el-table> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="#" type="index" width="80"/> |
|
|
|
|
<el-table-column align="center" label="单 号" width="160"> |
|
|
|
|
<router-link |
|
|
|
|
slot-scope="{row}" |
|
|
|
|
:to="`/purchase/order/detail/see/${row.id}`" |
|
|
|
|
@click.native.stop |
|
|
|
|
> |
|
|
|
|
{{ row.id }} |
|
|
|
|
</router-link> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="供应商" prop="sname" show-overflow-tooltip/> |
|
|
|
|
<el-table-column align="center" label="创建人" prop="cname" show-overflow-tooltip/> |
|
|
|
|
<el-table-column align="center" label="创建时间" width="150"> |
|
|
|
|
<template v-slot="{row}">{{ row.ctime | timestamp2Date }}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="审核人" prop="vname"/> |
|
|
|
|
<el-table-column align="center" label="审核时间" width="150"> |
|
|
|
|
<template v-slot="{row}">{{ row.vtime | timestamp2Date }}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="状 态" width="120"> |
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
<span :class="{primary:row.status===1,success:row.status===2}" class="dot"/> |
|
|
|
|
{{ getStatus(row.status) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="完成情况" width="120"> |
|
|
|
|
<template v-slot="{row}"> |
|
|
|
|
<span :class="{primary:row.finish===1,success:row.finish===2}" class="dot"/> |
|
|
|
|
{{ getFinish(row.finish) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="完成时间" width="150"> |
|
|
|
|
<template v-slot="{row}">{{ row.ftime | timestamp2Date }}</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</template> |
|
|
|
|
</list-page> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
<script type="text/jsx"> |
|
|
|
|
import docTableMixin from '@/mixin/docTableMixin' |
|
|
|
|
import SearchForm from '@/component/form/Search' |
|
|
|
|
import SearchFormItem from "@/component/form/Search/item" |
|
|
|
|
import {add, update, del, withdraw, pass, reject, getSubById, search, exportExcel} from "@/api/doc/purchase/order" |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
@ -132,8 +115,6 @@ export default { |
|
|
|
|
|
|
|
|
|
mixins: [docTableMixin], |
|
|
|
|
|
|
|
|
|
components: {SearchForm, SearchFormItem}, |
|
|
|
|
|
|
|
|
|
data() { |
|
|
|
|
this.api = {add, update, del, withdraw, pass, reject, getSubById, search, exportExcel} |
|
|
|
|
return { |
|
|
|
|
|