This commit is contained in:
zds
2022-12-01 20:09:38 +08:00
parent 70fe17b48c
commit aced8be5a7
14 changed files with 287 additions and 104 deletions

View File

@@ -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/>
@@ -188,9 +189,9 @@
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="序号" width="50" align="center"/>
<el-table-column prop="biz_date" width="100" align="center" label="业务日期"/>
<el-table-column show-overflow-tooltip :formatter="bill_typeFormat" align="center" width="130" prop="bill_type" label="单据类型"/>
<el-table-column :formatter="bill_typeFormat" align="center" width="130" prop="bill_type" label="单据类型"/>
<el-table-column prop="io_type" :formatter="ioFormat" label="出入库类型" width="100" align="center"/>
<el-table-column prop="stor_name" label="仓库" show-overflow-tooltip width="80" align="center"/>
<el-table-column prop="stor_name" label="仓库" width="80" align="center"/>
<el-table-column prop="input_optname" label="业务员" align="center"/>
<el-table-column min-width="200" prop="name" label="部门" align="center"/>
<el-table-column min-width="200" align="center" prop="supp_name" label="供应商"/>
@@ -232,6 +233,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: 'IoStorQuery2',
@@ -268,6 +270,7 @@ export default {
currentRow: null,
checkrows: [],
storlist: [],
query_flag: true,
billtypelist: []
}
},
@@ -284,9 +287,15 @@ export default {
checkoutbill.getType().then(res => {
this.billtypelist = res
})
this.crud.query.createTime = [new Date().daysAgo(7), new Date()]
},
methods: {
[CRUD.HOOK.beforeRefresh]() {
if(this.query_flag){
this.crud.query.begin_time = (new Date().daysAgo(7)).strftime('%F', 'zh')
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
this.query_flag = false
}
this.handleCurrentChange(null)
},
fun(val) {
@@ -295,6 +304,19 @@ export default {
ioFormat(row, column) {
return this.dict.label.io_type[row.io_type]
},
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()
},
handleSelectionChange(val, row) {
if (val.length > 1) {
this.$refs.table.clearSelection()