|
|
@ -1,26 +1,26 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="JNPF-common-layout">
|
|
|
|
<div class="JNPF-common-layout">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
<div class="JNPF-common-layout-center">
|
|
|
|
<div class="JNPF-common-layout-center">
|
|
|
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
|
|
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
|
|
|
<el-form @submit.native.prevent>
|
|
|
|
<el-form @submit.native.prevent>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="单据编号">
|
|
|
|
<el-form-item label="单据编号">
|
|
|
|
<el-input v-model="query.documentNo" placeholder="请输入" clearable> </el-input>
|
|
|
|
<el-input v-model="query.documentNo" placeholder="请输入" clearable></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="业务类型">
|
|
|
|
<el-form-item label="业务类型">
|
|
|
|
<el-select v-model="query.type" placeholder="请选择" clearable>
|
|
|
|
<el-select v-model="query.type" placeholder="请选择" clearable>
|
|
|
|
<el-option v-for="(item, index) in typeOptions" :key="index" :label="item.fullName" :value="item.id"
|
|
|
|
<el-option v-for="(item, index) in typeOptions" :key="index" :label="item.fullName" :value="item.id"
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="客户名称">
|
|
|
|
<el-form-item label="客户名称">
|
|
|
|
<el-input v-model="query.customerName" placeholder="请输入" clearable> </el-input>
|
|
|
|
<el-input v-model="query.customerName" placeholder="请输入" clearable></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
@ -34,9 +34,9 @@
|
|
|
|
<div class="JNPF-common-layout-main JNPF-flex-main">
|
|
|
|
<div class="JNPF-common-layout-main JNPF-flex-main">
|
|
|
|
<div class="JNPF-common-head">
|
|
|
|
<div class="JNPF-common-head">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-button type="text" v-has="'btn_add'" icon="el-icon-plus" @click="addOrUpdateHandle()">新增
|
|
|
|
<el-button type="text" v-has="'btn_add'" icon="el-icon-plus" @click="addOrUpdateHandle()">新增
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="text" v-has="'btn_download'" icon="el-icon-download" @click="exportData()">导出
|
|
|
|
<el-button type="text" v-has="'btn_download'" icon="el-icon-download" @click="exportData()">导出
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="text" v-has="'btn_batchRemove'" icon="el-icon-delete" @click="handleBatchRemoveDel()">批量删除
|
|
|
|
<el-button type="text" v-has="'btn_batchRemove'" icon="el-icon-delete" @click="handleBatchRemoveDel()">批量删除
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
@ -47,351 +47,354 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="JNPF-common-head-right">
|
|
|
|
<div class="JNPF-common-head-right">
|
|
|
|
<el-tooltip effect="dark" content="刷新" placement="top">
|
|
|
|
<el-tooltip effect="dark" content="刷新" placement="top">
|
|
|
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="reset()" />
|
|
|
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="reset()"/>
|
|
|
|
</el-tooltip>
|
|
|
|
</el-tooltip>
|
|
|
|
<screenfull isContainer />
|
|
|
|
<screenfull isContainer/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
|
|
|
|
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
|
|
|
|
@selection-change="handleSelectionChange" border>
|
|
|
|
@selection-change="handleSelectionChange" border>
|
|
|
|
<el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
|
|
|
|
<el-table-column type="index" width="50" label="序号" fixed="left" align="center"/>
|
|
|
|
<el-table-column prop="documentNo" label="单据编号" width="200" sortable align="center" fixed="left" />
|
|
|
|
<el-table-column prop="documentNo" label="单据编号" width="200" sortable align="center" fixed="left"/>
|
|
|
|
<el-table-column prop="customerName" label="客户名称" width="150" sortable align="center" fixed="left" />
|
|
|
|
<el-table-column prop="customerName" label="客户名称" width="150" sortable align="center" fixed="left"/>
|
|
|
|
<el-table-column prop="amount" label="出库金额" width="120" sortable align="center" />
|
|
|
|
<el-table-column prop="amount" label="出库金额" width="120" sortable align="center"/>
|
|
|
|
<el-table-column prop="num" label="出库数量" width="120" sortable align="center" />
|
|
|
|
<el-table-column prop="num" label="出库数量" width="120" sortable align="center"/>
|
|
|
|
<el-table-column label="币别" width="80" sortable prop="currency" align="center" >
|
|
|
|
<el-table-column label="币别" width="80" sortable prop="currency" align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.currency | dynamicText(currencyOptions) }}
|
|
|
|
{{ scope.row.currency | dynamicText(currencyOptions) }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="issueDate" label="出库日期" width="120" sortable align="center" sortable="custom" />
|
|
|
|
<el-table-column prop="issueDate" label="出库日期" width="120" sortable align="center" sortable="custom"/>
|
|
|
|
<el-table-column prop="sourceNo" label="来源单号" width="200" sortable align="center" />
|
|
|
|
<el-table-column prop="sourceNo" label="来源单号" width="200" sortable align="center"/>
|
|
|
|
<el-table-column label="业务类型" width="120" sortable prop="type" align="center" >
|
|
|
|
<el-table-column label="业务类型" width="120" sortable prop="type" align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.type | dynamicText(typeOptions) }}
|
|
|
|
{{ scope.row.type | dynamicText(typeOptions) }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="remark" label="备注" width="120" sortable align="center" />
|
|
|
|
<el-table-column prop="remark" label="备注" width="120" sortable align="center"/>
|
|
|
|
<el-table-column label="单据状态" width="120" sortable prop="status" align="center" >
|
|
|
|
<el-table-column label="单据状态" width="120" sortable prop="status" align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.status | dynamicText(statusOptions) }}
|
|
|
|
{{ scope.row.status | dynamicText(statusOptions) }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="creatorTime" label="创建时间" width="120" sortable align="center" />
|
|
|
|
<el-table-column prop="creatorTime" label="创建时间" width="120" sortable align="center"/>
|
|
|
|
<el-table-column prop="creatorUserName" label="创建人名称" width="120" sortable align="center" />
|
|
|
|
<el-table-column prop="creatorUserName" label="创建人名称" width="120" sortable align="center"/>
|
|
|
|
<el-table-column label="操作" fixed="right" width="150">
|
|
|
|
<el-table-column label="操作" fixed="right" width="150">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button type="text" v-has="'btn_edit'" @click="addOrUpdateHandle(scope.row.id)">编辑
|
|
|
|
<el-button type="text" v-has="'btn_edit'" @click="addOrUpdateHandle(scope.row.id)">编辑
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="text" v-has="'btn_remove'" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">删除
|
|
|
|
<el-button type="text" v-has="'btn_remove'" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">删除
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="text" v-has="'btn_detail'" @click="goDetail(scope.row.id)">详情
|
|
|
|
<el-button type="text" v-has="'btn_detail'" @click="goDetail(scope.row.id)">详情
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</JNPF-table>
|
|
|
|
</JNPF-table>
|
|
|
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
|
|
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
|
|
|
@pagination="initData" />
|
|
|
|
@pagination="initData"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
=======
|
|
|
|
|
|
|
|
<div class="JNPF-common-layout-center">
|
|
|
|
<div class="JNPF-common-layout-center">
|
|
|
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
|
|
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
|
|
|
<el-form @submit.native.prevent>
|
|
|
|
<el-form @submit.native.prevent>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="单据编号">
|
|
|
|
<el-form-item label="单据编号">
|
|
|
|
<el-input v-model="query.documentNo" placeholder="请输入" clearable> </el-input>
|
|
|
|
<el-input v-model="query.documentNo" placeholder="请输入" clearable></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="业务类型">
|
|
|
|
<el-form-item label="业务类型">
|
|
|
|
<el-select v-model="query.type" placeholder="请选择"
|
|
|
|
<el-select v-model="query.type" placeholder="请选择"
|
|
|
|
clearable>
|
|
|
|
clearable>
|
|
|
|
<el-option v-for="(item, index) in typeOptions" :key="index"
|
|
|
|
<el-option v-for="(item, index) in typeOptions" :key="index"
|
|
|
|
:label="item.fullName" :value="item.id"
|
|
|
|
:label="item.fullName" :value="item.id"
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
|
|
|
|
<el-button icon="el-icon-refresh-right" @click="reset()">重置</el-button>
|
|
|
|
<el-button icon="el-icon-refresh-right" @click="reset()">重置</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<div class="JNPF-common-layout-main JNPF-flex-main">
|
|
|
|
<div class="JNPF-common-layout-main JNPF-flex-main">
|
|
|
|
<div class="JNPF-common-head">
|
|
|
|
<div class="JNPF-common-head">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="addOrUpdateHandle()">新增
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="addOrUpdateHandle()">新增
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="text" icon="el-icon-download" @click="exportData()" >导出
|
|
|
|
<el-button type="text" icon="el-icon-download" @click="exportData()">导出
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()" >批量删除
|
|
|
|
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()">批量删除
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="JNPF-common-head-right">
|
|
|
|
<div class="JNPF-common-head-right">
|
|
|
|
<el-tooltip effect="dark" content="刷新" placement="top">
|
|
|
|
<el-tooltip effect="dark" content="刷新" placement="top">
|
|
|
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false"
|
|
|
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false"
|
|
|
|
@click="reset()"/>
|
|
|
|
@click="reset()"/>
|
|
|
|
</el-tooltip>
|
|
|
|
</el-tooltip>
|
|
|
|
<screenfull isContainer/>
|
|
|
|
<screenfull isContainer/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c @selection-change="handleSelectionChange" border>
|
|
|
|
|
|
|
|
<el-table-column prop="documentNo" label="单据编号" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="customerId" label="客户名称" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="amount" label="出库金额" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="num" label="出库数量" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="币别" width="0" prop="currency" algin="left"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.currency | dynamicText(currencyOptions) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="issueDate" label="出库日期" width="0" align="left"
|
|
|
|
|
|
|
|
sortable="custom" />
|
|
|
|
|
|
|
|
<el-table-column prop="sourceNo" label="来源单号" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="业务类型" width="0" prop="type" algin="left"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.type | dynamicText(typeOptions) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="remark" label="备注" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="单据状态" width="0" prop="status" algin="left"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.status | dynamicText(statusOptions) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="creatorTime" label="创建时间" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="creatorUserName" label="创建人名称" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="操作" fixed="right"
|
|
|
|
|
|
|
|
width="150" >
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button type="text"
|
|
|
|
|
|
|
|
@click="addOrUpdateHandle(scope.row.id)" >编辑
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">删除
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button type="text"
|
|
|
|
|
|
|
|
@click="goDetail(scope.row.id)">详情
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</JNPF-table>
|
|
|
|
|
|
|
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c
|
|
|
|
|
|
|
|
@selection-change="handleSelectionChange" border>
|
|
|
|
|
|
|
|
<el-table-column prop="documentNo" label="单据编号" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="customerId" label="客户名称" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="amount" label="出库金额" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="num" label="出库数量" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="币别" width="0" prop="currency" algin="left"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.currency | dynamicText(currencyOptions) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="issueDate" label="出库日期" width="0" align="left"
|
|
|
|
|
|
|
|
sortable="custom"/>
|
|
|
|
|
|
|
|
<el-table-column prop="sourceNo" label="来源单号" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="业务类型" width="0" prop="type" algin="left"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.type | dynamicText(typeOptions) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="remark" label="备注" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="单据状态" width="0" prop="status" algin="left"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.status | dynamicText(statusOptions) }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="creatorTime" label="创建时间" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="creatorUserName" label="创建人名称" width="0" align="left"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="操作" fixed="right"
|
|
|
|
|
|
|
|
width="150">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button type="text"
|
|
|
|
|
|
|
|
@click="addOrUpdateHandle(scope.row.id)">编辑
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">删除
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button type="text"
|
|
|
|
|
|
|
|
@click="goDetail(scope.row.id)">详情
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</JNPF-table>
|
|
|
|
|
|
|
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
|
|
|
|
|
|
|
@pagination="initData"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/>
|
|
|
|
</div>
|
|
|
|
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/>
|
|
|
|
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/>
|
|
|
|
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/>
|
|
|
|
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/>
|
|
|
|
>>>>>>> 0ca55ae8a6b3041ec1706aa97ac7c9fc103e10cf
|
|
|
|
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import {getDictionaryDataSelector} from '@/api/systemData/dictionary'
|
|
|
|
import {getDictionaryDataSelector} from '@/api/systemData/dictionary'
|
|
|
|
import JNPFForm from './Form'
|
|
|
|
import JNPFForm from './Form'
|
|
|
|
import ExportBox from './ExportBox'
|
|
|
|
import ExportBox from './ExportBox'
|
|
|
|
import {getDataInterfaceRes} from '@/api/systemData/dataInterface'
|
|
|
|
import {getDataInterfaceRes} from '@/api/systemData/dataInterface'
|
|
|
|
import Detail from './Detail'
|
|
|
|
import Detail from './Detail'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {JNPFForm, ExportBox,Detail},
|
|
|
|
components: {JNPFForm, ExportBox, Detail},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
detailVisible: false,
|
|
|
|
detailVisible: false,
|
|
|
|
query: {
|
|
|
|
query: {
|
|
|
|
documentNo:undefined,
|
|
|
|
documentNo: undefined,
|
|
|
|
type:undefined,
|
|
|
|
type: undefined,
|
|
|
|
},
|
|
|
|
|
|
|
|
treeProps: {
|
|
|
|
|
|
|
|
children: 'children',
|
|
|
|
|
|
|
|
label: 'fullName',
|
|
|
|
|
|
|
|
value: 'id'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
listLoading: true,
|
|
|
|
|
|
|
|
multipleSelection: [], total: 0,
|
|
|
|
|
|
|
|
listQuery: {
|
|
|
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
|
|
sort: "desc",
|
|
|
|
|
|
|
|
sidx: "",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
formVisible: false,
|
|
|
|
|
|
|
|
exportBoxVisible: false,
|
|
|
|
|
|
|
|
columnList: [
|
|
|
|
|
|
|
|
{prop: 'documentNo', label: '单据编号'},
|
|
|
|
|
|
|
|
{prop: 'customerId', label: '客户名称'},
|
|
|
|
|
|
|
|
{prop: 'amount', label: '出库金额'},
|
|
|
|
|
|
|
|
{prop: 'num', label: '出库数量'},
|
|
|
|
|
|
|
|
{prop: 'currency', label: '币别'},
|
|
|
|
|
|
|
|
{prop: 'issueDate', label: '出库日期'},
|
|
|
|
|
|
|
|
{prop: 'sourceNo', label: '来源单号'},
|
|
|
|
|
|
|
|
{prop: 'type', label: '业务类型'},
|
|
|
|
|
|
|
|
{prop: 'remark', label: '备注'},
|
|
|
|
|
|
|
|
{prop: 'status', label: '单据状态'},
|
|
|
|
|
|
|
|
{prop: 'creatorTime', label: '创建时间'},
|
|
|
|
|
|
|
|
{prop: 'creatorUserName', label: '创建人名称'},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
typeOptions:[{"fullName":"销售出库","id":"0"},{"fullName":"购销出库","id":"1"}],
|
|
|
|
|
|
|
|
typeProps:{"label":"fullName","value":"id"},
|
|
|
|
|
|
|
|
currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}],
|
|
|
|
|
|
|
|
currencyProps:{"label":"fullName","value":"id"},
|
|
|
|
|
|
|
|
statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"审批中","id":"1"},{"fullName":"已审批","id":"2"}],
|
|
|
|
|
|
|
|
statusProps:{"label":"fullName","value":"id"},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
treeProps: {
|
|
|
|
menuId() {
|
|
|
|
children: 'children',
|
|
|
|
return this.$route.meta.modelId || ''
|
|
|
|
label: 'fullName',
|
|
|
|
}
|
|
|
|
value: 'id'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
list: [],
|
|
|
|
this.initData()
|
|
|
|
listLoading: true,
|
|
|
|
|
|
|
|
multipleSelection: [], total: 0,
|
|
|
|
|
|
|
|
listQuery: {
|
|
|
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
|
|
sort: "desc",
|
|
|
|
|
|
|
|
sidx: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
formVisible: false,
|
|
|
|
goDetail(id){
|
|
|
|
exportBoxVisible: false,
|
|
|
|
this.detailVisible = true
|
|
|
|
columnList: [
|
|
|
|
this.$nextTick(() => {
|
|
|
|
{prop: 'documentNo', label: '单据编号'},
|
|
|
|
this.$refs.Detail.init(id)
|
|
|
|
{prop: 'customerId', label: '客户名称'},
|
|
|
|
})
|
|
|
|
{prop: 'amount', label: '出库金额'},
|
|
|
|
},
|
|
|
|
{prop: 'num', label: '出库数量'},
|
|
|
|
sortChange({column, prop, order}) {
|
|
|
|
{prop: 'currency', label: '币别'},
|
|
|
|
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
|
|
|
|
{prop: 'issueDate', label: '出库日期'},
|
|
|
|
this.listQuery.sidx = !order ? '' : prop
|
|
|
|
{prop: 'sourceNo', label: '来源单号'},
|
|
|
|
this.initData()
|
|
|
|
{prop: 'type', label: '业务类型'},
|
|
|
|
},
|
|
|
|
{prop: 'remark', label: '备注'},
|
|
|
|
initData() {
|
|
|
|
{prop: 'status', label: '单据状态'},
|
|
|
|
this.listLoading = true;
|
|
|
|
{prop: 'creatorTime', label: '创建时间'},
|
|
|
|
let _query = {
|
|
|
|
{prop: 'creatorUserName', label: '创建人名称'},
|
|
|
|
...this.listQuery,
|
|
|
|
],
|
|
|
|
...this.query,
|
|
|
|
typeOptions: [{"fullName": "销售出库", "id": "0"}, {"fullName": "购销出库", "id": "1"}],
|
|
|
|
menuId:this.menuId
|
|
|
|
typeProps: {"label": "fullName", "value": "id"},
|
|
|
|
};
|
|
|
|
currencyOptions: [{"fullName": "人民币", "id": "0"}, {"fullName": "美元", "id": "1"}, {"fullName": "英镑", "id": "2"}],
|
|
|
|
request({
|
|
|
|
currencyProps: {"label": "fullName", "value": "id"},
|
|
|
|
url: `/api/receipout/Receiptout/getList`,
|
|
|
|
statusOptions: [{"fullName": "已保存", "id": "0"}, {"fullName": "审批中", "id": "1"}, {"fullName": "已审批", "id": "2"}],
|
|
|
|
method: 'post',
|
|
|
|
statusProps: {"label": "fullName", "value": "id"},
|
|
|
|
data: _query
|
|
|
|
}
|
|
|
|
}).then(res => {
|
|
|
|
},
|
|
|
|
var _list =[];
|
|
|
|
computed: {
|
|
|
|
for(let i=0;i<res.data.list.length;i++){
|
|
|
|
menuId() {
|
|
|
|
let _data = res.data.list[i];
|
|
|
|
return this.$route.meta.modelId || ''
|
|
|
|
_list.push(_data)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
this.list = _list
|
|
|
|
created() {
|
|
|
|
this.total = res.data.pagination.total
|
|
|
|
this.initData()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
goDetail(id) {
|
|
|
|
|
|
|
|
this.detailVisible = true
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.$refs.Detail.init(id)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
sortChange({column, prop, order}) {
|
|
|
|
|
|
|
|
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
|
|
|
|
|
|
|
|
this.listQuery.sidx = !order ? '' : prop
|
|
|
|
|
|
|
|
this.initData()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
initData() {
|
|
|
|
|
|
|
|
this.listLoading = true;
|
|
|
|
|
|
|
|
let _query = {
|
|
|
|
|
|
|
|
...this.listQuery,
|
|
|
|
|
|
|
|
...this.query,
|
|
|
|
|
|
|
|
menuId: this.menuId
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
url: `/api/receipout/Receiptout/getList`,
|
|
|
|
|
|
|
|
method: 'post',
|
|
|
|
|
|
|
|
data: _query
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
var _list = [];
|
|
|
|
|
|
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
|
|
|
|
|
|
let _data = res.data.list[i];
|
|
|
|
|
|
|
|
_list.push(_data)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.list = _list
|
|
|
|
|
|
|
|
this.total = res.data.pagination.total
|
|
|
|
|
|
|
|
|
|
|
|
this.listLoading = false
|
|
|
|
this.listLoading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleDel(id) {
|
|
|
|
handleDel(id) {
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
request({
|
|
|
|
request({
|
|
|
|
url: `/api/receipout/Receiptout/${id}`,
|
|
|
|
url: `/api/receipout/Receiptout/${id}`,
|
|
|
|
method: 'DELETE'
|
|
|
|
method: 'DELETE'
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: 'success',
|
|
|
|
type: 'success',
|
|
|
|
message: res.msg,
|
|
|
|
message: res.msg,
|
|
|
|
onClose: () => {
|
|
|
|
onClose: () => {
|
|
|
|
this.initData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|
|
|
|
const res = val.map(item => item.id)
|
|
|
|
|
|
|
|
this.multipleSelection = res
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleBatchRemoveDel() {
|
|
|
|
|
|
|
|
if (!this.multipleSelection.length) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
message: '请选择一条数据',
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const ids = this.multipleSelection.join()
|
|
|
|
|
|
|
|
this.$confirm('您确定要删除这些数据吗, 是否继续?', '提示', {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
url: `/api/receipout/Receiptout/batchRemove/${ids}`,
|
|
|
|
|
|
|
|
method: 'DELETE'
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'success',
|
|
|
|
|
|
|
|
message: res.msg,
|
|
|
|
|
|
|
|
onClose: () => {
|
|
|
|
|
|
|
|
this.initData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
addOrUpdateHandle(id, isDetail) {
|
|
|
|
|
|
|
|
this.formVisible = true
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.$refs.JNPFForm.init(id, isDetail)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
exportData() {
|
|
|
|
|
|
|
|
this.exportBoxVisible = true
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.$refs.ExportBox.init(this.columnList)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
download(data) {
|
|
|
|
|
|
|
|
let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId}
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
url: `/api/receipout/Receiptout/Actions/Export`,
|
|
|
|
|
|
|
|
method: 'GET',
|
|
|
|
|
|
|
|
data: query
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
if (!res.data.url) return
|
|
|
|
|
|
|
|
this.jnpf.downloadFile(res.data.url)
|
|
|
|
|
|
|
|
this.$refs.ExportBox.visible = false
|
|
|
|
|
|
|
|
this.exportBoxVisible = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
search() {
|
|
|
|
|
|
|
|
this.listQuery = {
|
|
|
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
|
|
sort: "desc",
|
|
|
|
|
|
|
|
sidx: "",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.initData()
|
|
|
|
this.initData()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
refresh(isrRefresh) {
|
|
|
|
});
|
|
|
|
this.formVisible = false
|
|
|
|
})
|
|
|
|
if (isrRefresh) this.reset()
|
|
|
|
}).catch(() => {
|
|
|
|
},
|
|
|
|
});
|
|
|
|
reset() {
|
|
|
|
},
|
|
|
|
for (let key in this.query) {
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
this.query[key] = undefined
|
|
|
|
const res = val.map(item => item.id)
|
|
|
|
}
|
|
|
|
this.multipleSelection = res
|
|
|
|
this.search()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
handleBatchRemoveDel() {
|
|
|
|
|
|
|
|
if (!this.multipleSelection.length) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
message: '请选择一条数据',
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const ids = this.multipleSelection.join()
|
|
|
|
|
|
|
|
this.$confirm('您确定要删除这些数据吗, 是否继续?', '提示', {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
url: `/api/receipout/Receiptout/batchRemove/${ids}`,
|
|
|
|
|
|
|
|
method: 'DELETE'
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'success',
|
|
|
|
|
|
|
|
message: res.msg,
|
|
|
|
|
|
|
|
onClose: () => {
|
|
|
|
|
|
|
|
this.initData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
addOrUpdateHandle(id, isDetail) {
|
|
|
|
|
|
|
|
this.formVisible = true
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.$refs.JNPFForm.init(id, isDetail)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
exportData() {
|
|
|
|
|
|
|
|
this.exportBoxVisible = true
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.$refs.ExportBox.init(this.columnList)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
download(data) {
|
|
|
|
|
|
|
|
let query = {...data, ...this.listQuery, ...this.query, menuId: this.menuId}
|
|
|
|
|
|
|
|
request({
|
|
|
|
|
|
|
|
url: `/api/receipout/Receiptout/Actions/Export`,
|
|
|
|
|
|
|
|
method: 'GET',
|
|
|
|
|
|
|
|
data: query
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
if (!res.data.url) return
|
|
|
|
|
|
|
|
this.jnpf.downloadFile(res.data.url)
|
|
|
|
|
|
|
|
this.$refs.ExportBox.visible = false
|
|
|
|
|
|
|
|
this.exportBoxVisible = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
search() {
|
|
|
|
|
|
|
|
this.listQuery = {
|
|
|
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
|
|
sort: "desc",
|
|
|
|
|
|
|
|
sidx: "",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.initData()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
refresh(isrRefresh) {
|
|
|
|
|
|
|
|
this.formVisible = false
|
|
|
|
|
|
|
|
if (isrRefresh) this.reset()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
reset() {
|
|
|
|
|
|
|
|
for (let key in this.query) {
|
|
|
|
|
|
|
|
this.query[key] = undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.search()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|