Compare commits
3 Commits
af6637e86e
...
a27f217e4d
Author | SHA1 | Date | |
---|---|---|---|
a27f217e4d | |||
d2c15a6614 | |||
0c1d2a05b8 |
@ -112,7 +112,7 @@ export function updateCAREER_ASSISTANCE(queryParams: any) {
|
|||||||
|
|
||||||
export function undoCommit(queryParams: any) {
|
export function undoCommit(queryParams: any) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/MaterialUndo/commitUndo',
|
url: '/api/api/MaterialUndo/commitUndo',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: queryParams,
|
data: queryParams,
|
||||||
});
|
});
|
||||||
|
@ -46,7 +46,7 @@ export function Getprinter(data: any) {
|
|||||||
*/
|
*/
|
||||||
export function updateRemark(data: any) {
|
export function updateRemark(data: any) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/label/updateRemark',
|
url: '/api/api/label/updateRemark',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
@ -57,7 +57,7 @@ export function updateRemark(data: any) {
|
|||||||
*/
|
*/
|
||||||
export function updateTruegg(data: any) {
|
export function updateTruegg(data: any) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/label/updateTruegg',
|
url: '/api/api/label/updateTruegg',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
@ -97,7 +97,7 @@ export function getSpecList(data: any) {
|
|||||||
|
|
||||||
export function labelMaterial(data: any) {
|
export function labelMaterial(data: any) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/label/labelMaterial',
|
url: '/api/api/label/labelMaterial',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
|
@ -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()
|
||||||
|
@ -505,17 +505,19 @@ const handleQuery = () => {
|
|||||||
function getStorageSpec() {
|
function getStorageSpec() {
|
||||||
state.queryParams.params.LOCATIONNAME = ''
|
state.queryParams.params.LOCATIONNAME = ''
|
||||||
state.AllLocationList = []
|
state.AllLocationList = []
|
||||||
getQueryList({
|
if(state.queryParams.params.ERPLOCATION) {
|
||||||
queryId: 'GetLocationList',
|
getQueryList({
|
||||||
version: 'WEB00001',
|
queryId: 'GetLocationList',
|
||||||
params: {
|
version: 'WEB00001',
|
||||||
SITENAME: 'SDK',
|
params: {
|
||||||
ERPLOCATION: state.queryParams.params.ERPLOCATION //PO
|
SITENAME: 'SDK',
|
||||||
} as any
|
ERPLOCATION: state.queryParams.params.ERPLOCATION //PO
|
||||||
}).then((res: any) => {
|
} as any
|
||||||
state.AllLocationList = res.data
|
}).then((res: any) => {
|
||||||
locatioNFilter('')
|
state.AllLocationList = res.data
|
||||||
})
|
locatioNFilter('')
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGetPrintLabelType() {
|
function getGetPrintLabelType() {
|
||||||
@ -547,21 +549,23 @@ function locatioNFilter(query: any) {
|
|||||||
function getERPLocation() {
|
function getERPLocation() {
|
||||||
state.queryParams.params.LOCATIONNAME = ''
|
state.queryParams.params.LOCATIONNAME = ''
|
||||||
state.queryParams.params.ERPLOCATION = ''
|
state.queryParams.params.ERPLOCATION = ''
|
||||||
getQueryList({
|
if (state.queryParams.params.ERPFACTORY) {
|
||||||
// queryId: "GetERPLocationForCreatePO",
|
getQueryList({
|
||||||
queryId: 'GetErpLocationList',
|
// queryId: "GetERPLocationForCreatePO",
|
||||||
version: 'WEB00001',
|
queryId: 'GetErpLocationList',
|
||||||
params: {
|
version: 'WEB00001',
|
||||||
SITENAME: 'SDK',
|
params: {
|
||||||
ERPFACTORYNAME: state.queryParams.params.ERPFACTORY
|
SITENAME: 'SDK',
|
||||||
} as any
|
ERPFACTORYNAME: state.queryParams.params.ERPFACTORY
|
||||||
}).then((res: any) => {
|
} as any
|
||||||
console.log(res.data)
|
}).then((res: any) => {
|
||||||
state.ERPLocationList = res.data
|
console.log(res.data)
|
||||||
state.ERPLocationList.unshift({
|
state.ERPLocationList = res.data
|
||||||
VALUE: '全部'
|
state.ERPLocationList.unshift({
|
||||||
|
VALUE: '全部'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ERPFactoryQuery() {
|
function ERPFactoryQuery() {
|
||||||
@ -611,9 +615,9 @@ function commitDESC_CN() {
|
|||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
console.log(res.success)
|
console.log(res.success)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
// ElMessageBox.alert('修改实际规格成功', '提醒框', {
|
ElMessageBox.alert('修改实际规格成功', '提醒框', {
|
||||||
// confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
// })
|
})
|
||||||
} else {
|
} else {
|
||||||
ElMessageBox.alert(res.message, '提醒框', {
|
ElMessageBox.alert(res.message, '提醒框', {
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user