fix 现存量打印

This commit is contained in:
Amjacks 2025-04-03 11:51:38 +08:00
parent d2c15a6614
commit a27f217e4d
2 changed files with 35 additions and 31 deletions

View File

@ -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,
}); });

View File

@ -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'