优化
This commit is contained in:
@@ -134,6 +134,16 @@
|
||||
>
|
||||
打印
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
@click="downdtl()"
|
||||
>
|
||||
导出excel
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog
|
||||
@@ -193,17 +203,17 @@
|
||||
</el-table-column>
|
||||
<el-table-column v-if="false" prop="receive_id" label="到货单标识" />
|
||||
<el-table-column prop="status" label="状态" :formatter="formatStatusName" />
|
||||
<el-table-column prop="vbillcode" label="订单编号" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column show-overflow-tooltip prop="receive_code" label="到货单号" width="160px">
|
||||
<el-table-column prop="vbillcode" label="订单编号" min-width="100" />
|
||||
<el-table-column prop="receive_code" label="到货单号" width="160px">
|
||||
<template slot-scope="scope">
|
||||
<el-link type="warning" @click="crud.toView(scope.row)">{{ scope.row.receive_code }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="supp_name" label="供应商" min-width="220" show-overflow-tooltip />
|
||||
<el-table-column prop="material_code" label="物料编码" width="120px" show-overflow-tooltip />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="120px" show-overflow-tooltip />
|
||||
<el-table-column prop="pcsn" label="批次号" show-overflow-tooltip min-width="120" />
|
||||
<el-table-column prop="whether" label="质检单是否已生成" show-overflow-tooltip min-width="120" :formatter="formatWhether"/>
|
||||
<el-table-column prop="supp_name" label="供应商" min-width="220" />
|
||||
<el-table-column prop="material_code" label="物料编码" width="120px" />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="120px" />
|
||||
<el-table-column prop="pcsn" label="批次号" min-width="120" />
|
||||
<el-table-column prop="whether" label="质检单是否已生成" min-width="120" :formatter="formatWhether"/>
|
||||
<el-table-column prop="receive_qty" label="到货重量" width="120px" :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="instor_qty" label="入库重量" width="120px" :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="surplus_qty" label="剩余重量" width="120px" :formatter="crud.formatNum3" />
|
||||
@@ -228,6 +238,8 @@ import pagination from '@crud/Pagination'
|
||||
import DateRangePicker from '@/components/DateRangePicker'
|
||||
import AddShowDialog from '@/views/wms/pcs/receivemst/AddShowDialog'
|
||||
import { getLodop } from '@/assets/js/lodop/LodopFuncs'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'Receivemst',
|
||||
@@ -331,6 +343,15 @@ export default {
|
||||
this.printDialog = true
|
||||
this.acuTotal()
|
||||
},
|
||||
downdtl() {
|
||||
crud.downloadLoading = true
|
||||
download('/api/receivemst/download', this.crud.query).then(result => {
|
||||
downloadFile(result, '到货通知单', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
},
|
||||
print() {
|
||||
if (this.form.print_qty <= 0) {
|
||||
this.crud.notify('数量不能为0!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
|
||||
Reference in New Issue
Block a user