fix 在库查询、入库单查询
This commit is contained in:
parent
d97d79a15c
commit
af6637e86e
@ -313,7 +313,7 @@
|
||||
const size = ref<'default' | 'large' | 'small'>('small');//formdata时间设置
|
||||
const state = reactive({
|
||||
orgNo:'',
|
||||
PhaseList: [{ label: 'C', Value: 'C' }, { label: 'D', Value: 'D' }, { label: 'S', Value: 'S' }] as any,
|
||||
PhaseList: [{ label: '全部', Value: '' }, { label: 'C', Value: 'C' }, { label: 'D', Value: 'D' }, { label: 'S', Value: 'S' }] as any,
|
||||
PackingGradeList:[{ label: '全部', Value: '' },{ label: '合格', Value: 'OK' }, { label: '不合格', Value: 'NG' }] as any,
|
||||
resultStateList:[{ label: '全部', Value: '' },{ label: '待质检', Value: 'PREOQA' },{ label: '质检完成', Value: 'END' }] as any,
|
||||
ChangeERPLocation: [],
|
||||
@ -540,14 +540,8 @@
|
||||
state.queryParams.version = 'WEB00034'
|
||||
await getQueryPageList(state.queryParams)
|
||||
.then((res: any) => {
|
||||
if (res.data.list.length > 0) {
|
||||
state.BoxHistoryList = res.data.list
|
||||
state.total = res.data.total
|
||||
} else {
|
||||
state.BoxHistoryList = res.data.list
|
||||
proxy.$ElMessage.success('查询结果为空');
|
||||
}
|
||||
|
||||
})
|
||||
state.queryParams.version = 'WEB00032'
|
||||
state.AllNumber = 0
|
||||
|
@ -237,6 +237,7 @@ function handleQuery() {
|
||||
state.loading = true
|
||||
state.list = []
|
||||
state.list_d = []
|
||||
state.page_d.total = 0;
|
||||
queryFormRef.value.validate((isValid: boolean) => {
|
||||
if (isValid) {
|
||||
getQueryPageList({
|
||||
@ -250,26 +251,21 @@ function handleQuery() {
|
||||
pageSize: state.page.pageSize,
|
||||
}).then((res: any) => {
|
||||
state.loading = false
|
||||
if(res.data.list.length ==0 ){
|
||||
ElMessageBox.alert('查无数据', '提醒框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
} else {
|
||||
state.list = res.data.list;
|
||||
for(let i=0;i<state.list.length;i++)
|
||||
{
|
||||
var dates = new Date(state.list[i].ORDERDATE).toJSON();
|
||||
state.list[i].ORDERDATE=new Date(+new Date(dates) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
|
||||
console.log( state.list[i].ORDERDATE);
|
||||
}
|
||||
state.page.total = res.data.total;
|
||||
state.loading = false
|
||||
if (state.list.length > 0) {
|
||||
for (const element of state.list) {
|
||||
const dates = new Date(element.ORDERDATE).toJSON()
|
||||
element.ORDERDATE = new Date(+new Date(dates) + 8 * 3600 * 1000)
|
||||
.toISOString()
|
||||
.replace(/T/g, ' ')
|
||||
.replace(/\.[\d]{3}Z/, '')
|
||||
}
|
||||
state.active_row = state.list[0]
|
||||
if (state.active_row) {
|
||||
handleQuery_d()
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user