优化
This commit is contained in:
@@ -151,7 +151,8 @@
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@change="crud.toQuery"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
@@ -238,6 +239,7 @@ import DivDialog from '@/views/wms/statistics/ioStorQuery/DivDialog'
|
||||
import TaskDialog from '@/views/wms/statistics/ioStorQuery/TaskDialog'
|
||||
import crudStorattr from '@/api/wms/basedata/st/storattr'
|
||||
import crudRawAssist from '@/api/wms/st/core/inbill/rawassist'
|
||||
import Date from '@/utils/datetime'
|
||||
|
||||
export default {
|
||||
name: 'IoStorQuery',
|
||||
@@ -269,6 +271,7 @@ export default {
|
||||
dis_flag: true,
|
||||
work_flag: true,
|
||||
openParam: [],
|
||||
query_flag: true,
|
||||
mstrow: {},
|
||||
currentRow: null,
|
||||
checkrows: [],
|
||||
@@ -289,9 +292,15 @@ export default {
|
||||
checkoutbill.getType().then(res => {
|
||||
this.billtypelist = res
|
||||
})
|
||||
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.query_flag) {
|
||||
this.crud.query.begin_time = (new Date().daysAgo(30)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
this.handleCurrentChange(null)
|
||||
},
|
||||
fun(val) {
|
||||
@@ -315,6 +324,19 @@ export default {
|
||||
this.$refs.table.clearSelection()
|
||||
this.handleCurrentChange(null)
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
buttonChange(current) {
|
||||
if (current !== null) {
|
||||
this.currentRow = current
|
||||
|
||||
@@ -15,7 +15,16 @@
|
||||
|
||||
<el-form-item label="日期">
|
||||
<label slot="label">日 期:</label>
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="单据编号">
|
||||
@@ -124,13 +133,13 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="100" align="center" fixed />
|
||||
<el-table-column prop="0" label="质检单号" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="1" label="物料编码" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="20" label="物料名称" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="2" label="批号" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column type="index" label="序号" width="60" align="center" fixed />
|
||||
<el-table-column prop="0" label="质检单号" min-width="130" fixed />
|
||||
<el-table-column prop="1" label="物料编码" min-width="130" fixed />
|
||||
<el-table-column prop="20" label="物料名称" min-width="130" fixed />
|
||||
<el-table-column prop="2" label="批号" min-width="130" fixed />
|
||||
<template v-for="(col,index) in cols">
|
||||
<el-table-column v-if="col" :prop="col.prop" :label="col.label" width="120px" show-overflow-tooltip />
|
||||
<el-table-column v-if="col" :prop="col.prop" :label="col.label" width="140" />
|
||||
</template>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
@@ -150,10 +159,11 @@ import DateRangePicker from '@/components/DateRangePicker'
|
||||
import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
import Date from '@/utils/datetime'
|
||||
|
||||
export default {
|
||||
name: 'PhySicalQuery',
|
||||
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker },
|
||||
components: { pagination, crudOperation, rrOperation },
|
||||
mixins: [presenter(), header(), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
@@ -179,6 +189,7 @@ export default {
|
||||
return {
|
||||
cols: [],
|
||||
statusList: [],
|
||||
query_flag: true,
|
||||
permission: {
|
||||
},
|
||||
rules: {
|
||||
@@ -187,10 +198,16 @@ export default {
|
||||
beforeCreate() {
|
||||
},
|
||||
created() {
|
||||
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.query_flag) {
|
||||
this.crud.query.begin_time = (new Date().daysAgo(30)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
crudPhySicalQuery.getHeader().then(res => {
|
||||
this.cols = res
|
||||
})
|
||||
@@ -198,6 +215,19 @@ export default {
|
||||
this.statusList = res
|
||||
})
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
|
||||
@@ -45,13 +45,13 @@
|
||||
<el-table ref="table" :max-height="590" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||
<el-table-column prop="material_code" label="产品编码" width="180" />
|
||||
<el-table-column prop="sum_qty" label="计划重量(吨)" :formatter="crud.formatNum3" min-width="80" />
|
||||
<el-table-column prop="sum_qty" label="计划重量(吨)" :formatter="crud.formatNum3" min-width="100" />
|
||||
<el-table-column prop="product_num" label="计划批次" min-width="80" />
|
||||
<el-table-column prop="device_name" label="关键设备" width="100" />
|
||||
<el-table-column prop="workorder_date" min-width="130" label="粉料配粉时间" />
|
||||
<el-table-column prop="pw_time" label="粉料喷雾时间" width="130" />
|
||||
<el-table-column prop="in_time" label="最后入库时间" width="130" />
|
||||
<el-table-column prop="in_qty" label="入库重量(吨)" :formatter="crud.formatNum3" min-width="80" />
|
||||
<el-table-column prop="workorder_date" min-width="140" label="粉料配粉时间" />
|
||||
<el-table-column prop="pw_time" label="粉料喷雾时间" width="140" />
|
||||
<el-table-column prop="in_time" label="最后入库时间" width="140" />
|
||||
<el-table-column prop="in_qty" label="入库重量(吨)" :formatter="crud.formatNum3" min-width="100" />
|
||||
<el-table-column prop="in_num" label="入库批数" width="80" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
|
||||
@@ -13,7 +13,16 @@
|
||||
>
|
||||
|
||||
<el-form-item label="到货日期">
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="单据编号">
|
||||
@@ -96,13 +105,13 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="100" align="center" fixed />
|
||||
<el-table-column prop="1" label="物料编码" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="2" label="物料名称" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="3" label="批号" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="4" label="重量" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column type="index" label="序号" min-width="60" align="center" fixed />
|
||||
<el-table-column prop="1" label="物料编码" min-width="130" fixed />
|
||||
<el-table-column prop="2" label="物料名称" min-width="150" fixed />
|
||||
<el-table-column prop="3" label="批号" min-width="130" fixed />
|
||||
<el-table-column prop="4" label="重量" min-width="100" fixed />
|
||||
<template v-for="(col,index) in cols">
|
||||
<el-table-column v-if="col" :prop="col.prop" :label="col.label" width="120px" show-overflow-tooltip />
|
||||
<el-table-column v-if="col" :prop="col.prop" :label="col.label" align="center" min-width="200" />
|
||||
</template>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
@@ -122,6 +131,7 @@ import DateRangePicker from '@/components/DateRangePicker'
|
||||
import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
|
||||
import {download} from "@/api/data";
|
||||
import {downloadFile} from "@/utils";
|
||||
import Date from '@/utils/datetime'
|
||||
|
||||
export default {
|
||||
name: 'RawUatCbQuery',
|
||||
@@ -159,11 +169,16 @@ export default {
|
||||
beforeCreate() {
|
||||
},
|
||||
created() {
|
||||
|
||||
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if(this.query_flag){
|
||||
this.crud.query.begin_time = (new Date().daysAgo(30)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
var str = this.$route.path
|
||||
// var material_type_id = str.substring(str.length - 2)
|
||||
// 截取最后一个/之后的内容
|
||||
@@ -179,6 +194,19 @@ export default {
|
||||
this.query.material_type_id = str
|
||||
return true
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
|
||||
@@ -13,7 +13,16 @@
|
||||
>
|
||||
|
||||
<el-form-item label="到货日期">
|
||||
<date-range-picker v-model="query.createTime" class="date-item" />
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
@input="onInput()"
|
||||
@change="mytoQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="单据编号">
|
||||
@@ -96,13 +105,13 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="100" align="center" fixed />
|
||||
<el-table-column prop="1" label="物料编码" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="2" label="物料名称" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="3" label="批号" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column prop="4" label="重量" min-width="100" show-overflow-tooltip fixed />
|
||||
<el-table-column type="index" label="序号" width="60" align="center" fixed />
|
||||
<el-table-column prop="1" label="物料编码" min-width="110" fixed />
|
||||
<el-table-column prop="2" label="物料名称" min-width="150" fixed />
|
||||
<el-table-column prop="3" label="批号" min-width="130" fixed />
|
||||
<el-table-column prop="4" label="重量" min-width="100" fixed />
|
||||
<template v-for="(col,index) in cols">
|
||||
<el-table-column v-if="col" :prop="col.prop" :label="col.label" width="120px" show-overflow-tooltip />
|
||||
<el-table-column v-if="col" :prop="col.prop" :label="col.label" align="center" min-width="220" />
|
||||
</template>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
@@ -122,6 +131,7 @@ import DateRangePicker from '@/components/DateRangePicker'
|
||||
import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
|
||||
import {download} from "@/api/data";
|
||||
import {downloadFile} from "@/utils";
|
||||
import Date from '@/utils/datetime'
|
||||
|
||||
export default {
|
||||
name: 'RawUatWcQuery',
|
||||
@@ -159,11 +169,16 @@ export default {
|
||||
beforeCreate() {
|
||||
},
|
||||
created() {
|
||||
|
||||
this.crud.query.createTime = [new Date().daysAgo(30), new Date()]
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if(this.query_flag){
|
||||
this.crud.query.begin_time = (new Date().daysAgo(30)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
}
|
||||
var str = this.$route.path
|
||||
// var material_type_id = str.substring(str.length - 2)
|
||||
// 截取最后一个/之后的内容
|
||||
@@ -182,6 +197,19 @@ export default {
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
mytoQuery(array1) {
|
||||
if (array1 === null) {
|
||||
this.crud.query.begin_time = ''
|
||||
this.crud.query.end_time = ''
|
||||
} else {
|
||||
this.crud.query.begin_time = array1[0]
|
||||
this.crud.query.end_time = array1[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
downdtl() {
|
||||
if (this.currentRow !== null) {
|
||||
crud.downloadLoading = true
|
||||
|
||||
Reference in New Issue
Block a user