opt:印尼项目优化
This commit is contained in:
@@ -459,7 +459,7 @@ export default {
|
||||
data.end_time = this.crud.query.createTime[1]
|
||||
}
|
||||
this.showDtlLoading = true
|
||||
download('/api/in/InQuery/download3', data).then(result => {
|
||||
download('/api/in/InQuery/download2', data).then(result => {
|
||||
downloadFile(result, '成品入库查询', 'xlsx')
|
||||
this.showDtlLoading = false
|
||||
}).catch(() => {
|
||||
|
||||
412
lms/nladmin-ui/src/views/wms/stat/inbillquery/index3.vue
Normal file
412
lms/nladmin-ui/src/views/wms/stat/inbillquery/index3.vue
Normal file
@@ -0,0 +1,412 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="90px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item :label="$t('common.stor_name')">
|
||||
<el-select
|
||||
v-model="query.stor_id"
|
||||
clearable
|
||||
collapse-tags
|
||||
multiple
|
||||
size="mini"
|
||||
:placeholder="$t('common.Please_select')"
|
||||
class="filter-item"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in storlist"
|
||||
:key="item.stor_id"
|
||||
:label="item.stor_name"
|
||||
:value="item.stor_id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('st_ivt_structivtchange.buss_type')">
|
||||
<el-select
|
||||
v-model="query.bill_type"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
:placeholder="$t('st_ivt_structivtchange.buss_type')"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.ST_INV_IN_TYPE"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item :label="$t('st_ivt_coolpointivt.instorage_time')">
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
:start-placeholder="$t('common.startDate')"
|
||||
:end-placeholder="$t('common.endDate')"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('common.width')">
|
||||
<el-input
|
||||
v-model="query.with"
|
||||
size="mini"
|
||||
clearable
|
||||
placeholder="例如:8*868"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('common.thickness')">
|
||||
<el-input
|
||||
v-model="query.thickness_request"
|
||||
size="mini"
|
||||
clearable
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('common.container_name')">
|
||||
<el-input
|
||||
v-model="query.pcsn"
|
||||
size="mini"
|
||||
clearable
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label-width="120" :label="$t('pdm_bi_containerinfo.sale_order_name')">
|
||||
<el-input
|
||||
v-model="query.sale_order_name"
|
||||
size="mini"
|
||||
clearable
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('common.product_area')">
|
||||
<el-select
|
||||
v-model="query.product_area"
|
||||
clearable
|
||||
multiple
|
||||
size="mini"
|
||||
class="filter-item"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.product_area"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item :label="$t('status.virtual_warehouse')">
|
||||
<el-select
|
||||
v-model="query.is_virtual"
|
||||
clearable
|
||||
size="mini"
|
||||
:placeholder="$t('common.Please_select')"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.IS_OR_NOT"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('st_ivt_iostorinv.shift')">
|
||||
<el-select
|
||||
v-model="query.classes"
|
||||
clearable
|
||||
size="mini"
|
||||
:placeholder="$t('common.Please_select')"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in classes"
|
||||
:key="item.id"
|
||||
:label="item.code"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item :label="$t('common.is_summary')">
|
||||
<el-select
|
||||
v-model="query.is_all"
|
||||
clearable
|
||||
size="mini"
|
||||
:placeholder="$t('common.Please_select')"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.IS_OR_NOT"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>-->
|
||||
<el-form-item style="display: flex; justify-content: flex-end;">
|
||||
<rrOperation />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-thumb"
|
||||
size="mini"
|
||||
:loading="showDtlLoading"
|
||||
@click="downdtl"
|
||||
>
|
||||
{{ $t('common.Export') }}
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
ref="table"
|
||||
v-loading="crud.loading"
|
||||
size="mini"
|
||||
:data="crud.data"
|
||||
highlight-current-row
|
||||
style="width: 100%;"
|
||||
>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="container_name"
|
||||
:label="$t('common.finishedProductRollNumber')"
|
||||
:min-width="flexWidth('container_name',crud.data,$t('common.finishedProductRollNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="confirm_time"
|
||||
:label="$t('common.instorgeDate')"
|
||||
:min-width="flexWidth('confirm_time',crud.data,$t('common.instorgeDate'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="date_of_production"
|
||||
:label="$t('common.packingDate')"
|
||||
:min-width="flexWidth('date_of_production',crud.data,$t('common.packingDate'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="customer_description"
|
||||
:label="$t('common.customerName')"
|
||||
:min-width="flexWidth('customer_description',crud.data,$t('common.customerName'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="sale_order_name"
|
||||
:label="$t('common.orderNumber')"
|
||||
:min-width="flexWidth('sale_order_name',crud.data,$t('common.orderNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="customer_batch_number"
|
||||
:label="$t('common.batchNumber')"
|
||||
:min-width="flexWidth('customer_batch_number',crud.data,$t('common.batchNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="customer_material_code"
|
||||
:label="$t('common.materialNumber')"
|
||||
:min-width="flexWidth('customer_material_code',crud.data,$t('common.materialNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="box_no"
|
||||
:label="$t('common.boxNumber')"
|
||||
:min-width="flexWidth('box_no',crud.data,$t('common.boxNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="box_customer_sn"
|
||||
:label="$t('common.customerBoxNumber')"
|
||||
:min-width="flexWidth('box_customer_sn',crud.data,$t('common.customerBoxNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="customer_roll_name"
|
||||
:label="$t('common.customerRollNumber')"
|
||||
:min-width="flexWidth('customer_roll_name',crud.data,$t('common.customerRollNumber'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="thickness_request"
|
||||
:label="$t('common.customerRequiredThickness')"
|
||||
:min-width="flexWidth('thickness_request',crud.data,$t('common.customerRequiredThickness'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="width_standard"
|
||||
:label="$t('wms.pdm.bi.requiredWidth')"
|
||||
:formatter="crud.formatNum0"
|
||||
:min-width="flexWidth('width_standard',crud.data,$t('wms.pdm.bi.requiredWidth'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="spec"
|
||||
:label="$t('common.spec')"
|
||||
:min-width="flexWidth('spec',crud.data,$t('common.spec'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="net_weight"
|
||||
:label="$t('common.subRollNetWeight')"
|
||||
:formatter="crud.formatNum2"
|
||||
:min-width="flexWidth('net_weight',crud.data,$t('common.subRollNetWeight'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="length"
|
||||
:label="$t('common.meterage')"
|
||||
:formatter="crud.formatNum2"
|
||||
:min-width="flexWidth('length',crud.data,$t('common.meterage'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="total_net_weight"
|
||||
:label="$t('common.totalNetWeight')"
|
||||
:formatter="crud.formatNum2"
|
||||
:min-width="flexWidth('total_net_weight',crud.data,$t('common.totalNetWeight'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="box_weight"
|
||||
:label="$t('common.totalGrossWeight')"
|
||||
:formatter="crud.formatNum2"
|
||||
:min-width="flexWidth('box_weight',crud.data,$t('common.totalGrossWeight'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="roll_remark"
|
||||
:label="$t('common.remark')"
|
||||
:min-width="flexWidth('roll_remark',crud.data,$t('common.remark'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="net_weight_convert"
|
||||
:label="$t('common.netWeightConvert')"
|
||||
:min-width="flexWidth('net_weight_convert',crud.data,$t('common.netWeightConvert'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="gross_weight_convert"
|
||||
:label="$t('common.grossWeightConvert')"
|
||||
:min-width="flexWidth('gross_weight_convert',crud.data,$t('common.grossWeightConvert'))"
|
||||
/>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="warranty_expire_date"
|
||||
:label="$t('common.warranty_expire_date')"
|
||||
:min-width="flexWidth('warranty_expire_date',crud.data,$t('common.warranty_expire_date'))"
|
||||
/>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CRUD, { crud, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import DateRangePicker from '@/components/DateRangePicker/index'
|
||||
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||
import crudInbillquery from '@/views/wms/stat/inbillquery/inbillquery'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'InQuery3',
|
||||
components: { crudOperation, rrOperation, udOperation, pagination, DateRangePicker },
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '',
|
||||
optShow: { add: false, reset: true },
|
||||
idField: 'iostorinv_id',
|
||||
url: '/api/in/InQuery/query3',
|
||||
query: { 'is_all': '0', 'bill_type': '0001', 'createTime': [new Date(), new Date()], 'stor_id': '1582991156504039424' },
|
||||
crudMethod: { ...crudInbillquery }
|
||||
})
|
||||
},
|
||||
mixins: [presenter(), header(), crud()],
|
||||
// 数据字典
|
||||
dicts: ['io_bill_status', 'ST_INV_IN_TYPE', 'product_area', 'IS_OR_NOT'],
|
||||
data() {
|
||||
return {
|
||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||
storlist: [],
|
||||
classes: [{ 'id': '1', 'code': '白班' }, { 'id': '2', 'code': '晚班' }],
|
||||
showDtlLoading: false
|
||||
}
|
||||
},
|
||||
mounted: function() {
|
||||
const that = this
|
||||
window.onresize = function temp() {
|
||||
that.height = document.documentElement.clientHeight - 180 + 'px;'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
crudUserStor.getUserStor().then(res => {
|
||||
this.storlist = res
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
selectTime() {
|
||||
var date = new Date()
|
||||
var y = date.getFullYear()
|
||||
var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
||||
var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
||||
|
||||
var start_day = y + '-' + m + '-' + '01' + ' ' + '00:00:00'
|
||||
var end_day = `${y}-${m}-${d}` + ' ' + '23:59:59'
|
||||
this.query.createTime = [new Date(start_day), new Date(end_day)]
|
||||
},
|
||||
bill_typeFormat(row, column) {
|
||||
return this.dict.label.ST_INV_IN_TYPE[row.bill_type]
|
||||
},
|
||||
downdtl() {
|
||||
const data = this.crud.query
|
||||
if (this.crud.query.createTime !== undefined) {
|
||||
data.begin_time = this.crud.query.createTime[0]
|
||||
data.end_time = this.crud.query.createTime[1]
|
||||
}
|
||||
this.showDtlLoading = true
|
||||
download('/api/in/InQuery/download3', data).then(result => {
|
||||
downloadFile(result, '成品入库查询', 'xlsx')
|
||||
this.showDtlLoading = false
|
||||
}).catch(() => {
|
||||
this.showDtlLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||
::v-deep .el-dialog__body {
|
||||
padding-top: 10px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user