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) {
|
||||
return request({
|
||||
url: '/api/MaterialUndo/commitUndo',
|
||||
url: '/api/api/MaterialUndo/commitUndo',
|
||||
method: 'post',
|
||||
data: queryParams,
|
||||
});
|
||||
|
@ -46,7 +46,7 @@ export function Getprinter(data: any) {
|
||||
*/
|
||||
export function updateRemark(data: any) {
|
||||
return request({
|
||||
url: '/api/label/updateRemark',
|
||||
url: '/api/api/label/updateRemark',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@ -57,7 +57,7 @@ export function updateRemark(data: any) {
|
||||
*/
|
||||
export function updateTruegg(data: any) {
|
||||
return request({
|
||||
url: '/api/label/updateTruegg',
|
||||
url: '/api/api/label/updateTruegg',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@ -97,7 +97,7 @@ export function getSpecList(data: any) {
|
||||
|
||||
export function labelMaterial(data: any) {
|
||||
return request({
|
||||
url: '/api/label/labelMaterial',
|
||||
url: '/api/api/label/labelMaterial',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
|
@ -229,6 +229,7 @@ function handleQueryInfo() {
|
||||
state.page.pageNum = 1
|
||||
state.page_d.pageNum = 1
|
||||
state.page.total = 0
|
||||
state.page_d.total = 0;
|
||||
handleQuery()
|
||||
}
|
||||
function handleQuery() {
|
||||
@ -247,22 +248,18 @@ function handleQuery() {
|
||||
pageNum: state.page.pageNum,
|
||||
pageSize: state.page.pageSize,
|
||||
}).then((res: any) => {
|
||||
if(res.data.list.length == 0){
|
||||
ElMessageBox.alert('查无数据', '提醒框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
state.loading = false
|
||||
} 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) {
|
||||
let dates = new Date(element.ORDERDATE).toJSON()
|
||||
element.ORDERDATE = new Date(+new Date(dates) + 8 * 3600 * 1000)
|
||||
.toISOString()
|
||||
.replace(/T/g, ' ')
|
||||
.replace(/\.[\d]{3}Z/, '')
|
||||
console.log(element.ORDERDATE)
|
||||
}
|
||||
state.active_row = state.list[0]
|
||||
if (state.active_row) {
|
||||
handleQuery_d()
|
||||
|
@ -189,7 +189,11 @@ function handleQueryInfo() {
|
||||
}
|
||||
function handleQuery() {
|
||||
state.list_d = []
|
||||
state.list = []
|
||||
state.page.total = 0;
|
||||
state.loading = true
|
||||
state.page_d.total = 0;
|
||||
state.loading_d = false
|
||||
queryFormRef.value.validate((isValid: boolean) => {
|
||||
if (isValid) {
|
||||
getQueryPageList({
|
||||
@ -202,17 +206,10 @@ function handleQuery() {
|
||||
pageNum: state.page.pageNum,
|
||||
pageSize: state.page.pageSize,
|
||||
}).then((res: any) => {
|
||||
if(res.data.list.length == 0){
|
||||
ElMessageBox.alert('查无数据', '提醒框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
state.loading = false
|
||||
state.list = []
|
||||
state.list_d = []
|
||||
} else {
|
||||
state.list = res.data.list;
|
||||
state.page.total = res.data.total;
|
||||
state.loading = false
|
||||
if (state.list.length > 0) {
|
||||
state.active_row = state.list[0]
|
||||
if (state.active_row) {
|
||||
handleQuery_d()
|
||||
|
@ -505,6 +505,7 @@ const handleQuery = () => {
|
||||
function getStorageSpec() {
|
||||
state.queryParams.params.LOCATIONNAME = ''
|
||||
state.AllLocationList = []
|
||||
if(state.queryParams.params.ERPLOCATION) {
|
||||
getQueryList({
|
||||
queryId: 'GetLocationList',
|
||||
version: 'WEB00001',
|
||||
@ -516,6 +517,7 @@ function getStorageSpec() {
|
||||
state.AllLocationList = res.data
|
||||
locatioNFilter('')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function getGetPrintLabelType() {
|
||||
@ -547,6 +549,7 @@ function locatioNFilter(query: any) {
|
||||
function getERPLocation() {
|
||||
state.queryParams.params.LOCATIONNAME = ''
|
||||
state.queryParams.params.ERPLOCATION = ''
|
||||
if (state.queryParams.params.ERPFACTORY) {
|
||||
getQueryList({
|
||||
// queryId: "GetERPLocationForCreatePO",
|
||||
queryId: 'GetErpLocationList',
|
||||
@ -562,6 +565,7 @@ function getERPLocation() {
|
||||
VALUE: '全部'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function ERPFactoryQuery() {
|
||||
@ -611,9 +615,9 @@ function commitDESC_CN() {
|
||||
.then((res: any) => {
|
||||
console.log(res.success)
|
||||
if (res.success) {
|
||||
// ElMessageBox.alert('修改实际规格成功', '提醒框', {
|
||||
// confirmButtonText: 'OK',
|
||||
// })
|
||||
ElMessageBox.alert('修改实际规格成功', '提醒框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
} else {
|
||||
ElMessageBox.alert(res.message, '提醒框', {
|
||||
confirmButtonText: 'OK'
|
||||
|
Loading…
x
Reference in New Issue
Block a user