fix 物料冲销
This commit is contained in:
parent
0c1d2a05b8
commit
d2c15a6614
@ -26,7 +26,7 @@
|
|||||||
<el-form-item label="料号" prop="MATERIALSPECNAME">
|
<el-form-item label="料号" prop="MATERIALSPECNAME">
|
||||||
<el-Input v-model="queryParams.MATERIALSPECNAME" clearable />
|
<el-Input v-model="queryParams.MATERIALSPECNAME" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="品名" prop="DESC_CN">
|
<el-form-item label="品名" prop="DESC_CN">
|
||||||
<el-Input v-model="queryParams.DESC_CN" clearable />
|
<el-Input v-model="queryParams.DESC_CN" clearable />
|
||||||
@ -229,6 +229,7 @@ function handleQueryInfo() {
|
|||||||
state.page.pageNum = 1
|
state.page.pageNum = 1
|
||||||
state.page_d.pageNum = 1
|
state.page_d.pageNum = 1
|
||||||
state.page.total = 0
|
state.page.total = 0
|
||||||
|
state.page_d.total = 0;
|
||||||
handleQuery()
|
handleQuery()
|
||||||
}
|
}
|
||||||
function handleQuery() {
|
function handleQuery() {
|
||||||
@ -247,22 +248,18 @@ function handleQuery() {
|
|||||||
pageNum: state.page.pageNum,
|
pageNum: state.page.pageNum,
|
||||||
pageSize: state.page.pageSize,
|
pageSize: state.page.pageSize,
|
||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
if(res.data.list.length == 0){
|
state.list = res.data.list;
|
||||||
ElMessageBox.alert('查无数据', '提醒框', {
|
state.page.total = res.data.total;
|
||||||
confirmButtonText: 'OK',
|
state.loading = false
|
||||||
})
|
if (state.list.length > 0) {
|
||||||
state.loading = false
|
for (const element of state.list) {
|
||||||
} else {
|
let dates = new Date(element.ORDERDATE).toJSON()
|
||||||
|
element.ORDERDATE = new Date(+new Date(dates) + 8 * 3600 * 1000)
|
||||||
state.list = res.data.list;
|
.toISOString()
|
||||||
for(let i=0;i<state.list.length;i++)
|
.replace(/T/g, ' ')
|
||||||
{
|
.replace(/\.[\d]{3}Z/, '')
|
||||||
var dates = new Date(state.list[i].ORDERDATE).toJSON();
|
console.log(element.ORDERDATE)
|
||||||
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
|
|
||||||
state.active_row = state.list[0]
|
state.active_row = state.list[0]
|
||||||
if (state.active_row) {
|
if (state.active_row) {
|
||||||
handleQuery_d()
|
handleQuery_d()
|
||||||
|
@ -189,7 +189,11 @@ function handleQueryInfo() {
|
|||||||
}
|
}
|
||||||
function handleQuery() {
|
function handleQuery() {
|
||||||
state.list_d = []
|
state.list_d = []
|
||||||
|
state.list = []
|
||||||
|
state.page.total = 0;
|
||||||
state.loading = true
|
state.loading = true
|
||||||
|
state.page_d.total = 0;
|
||||||
|
state.loading_d = false
|
||||||
queryFormRef.value.validate((isValid: boolean) => {
|
queryFormRef.value.validate((isValid: boolean) => {
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
getQueryPageList({
|
getQueryPageList({
|
||||||
@ -202,17 +206,10 @@ function handleQuery() {
|
|||||||
pageNum: state.page.pageNum,
|
pageNum: state.page.pageNum,
|
||||||
pageSize: state.page.pageSize,
|
pageSize: state.page.pageSize,
|
||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
if(res.data.list.length == 0){
|
state.list = res.data.list;
|
||||||
ElMessageBox.alert('查无数据', '提醒框', {
|
state.page.total = res.data.total;
|
||||||
confirmButtonText: 'OK',
|
state.loading = false
|
||||||
})
|
if (state.list.length > 0) {
|
||||||
state.loading = false
|
|
||||||
state.list = []
|
|
||||||
state.list_d = []
|
|
||||||
} else {
|
|
||||||
state.list = res.data.list;
|
|
||||||
state.page.total = res.data.total;
|
|
||||||
state.loading = false
|
|
||||||
state.active_row = state.list[0]
|
state.active_row = state.list[0]
|
||||||
if (state.active_row) {
|
if (state.active_row) {
|
||||||
handleQuery_d()
|
handleQuery_d()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user