Commit 7b8054c8 authored by hubaoshan's avatar hubaoshan

详情 导出 bug

parent c9e9aa83
......@@ -35,6 +35,15 @@ export function findOutcomeWmsApply(businessId) {
method: 'get'
})
}
export function findWmsApply(query) {
return request({
url: '/outcomewmsapply/detailNew/',
method: 'get',
params: query
})
}
// 3. 新增????
export function addOutcomeWmsApply(data) {
data = Qs.stringify(data)
......
......@@ -18,12 +18,21 @@ export function listOutcomeWmsJbapplyTemp(query) {
params: query
})
}
export function listOutTemp(businessId) {
// export function listOutTemp(businessId) {
// return request({
// url: '/outcomewmsjbapplytemp/detailOut/' + businessId,
// method: 'get'
// })
// }
export function findListOutTemp(query) {
return request({
url: '/outcomewmsjbapplytemp/detailOut/' + businessId,
method: 'get'
url: '/outcomewmsjbapplytemp/detailOut/',
method: 'get',
params: query
})
}
export function getOutcomeWmsJbapplyTemp(businessId) {
return request({
url: '/outcomewmsjbapplytemp/detail/' + businessId,
......
......@@ -429,7 +429,7 @@ import {
getOutcomeWmsApply,
delOutcomeWmsApply,
addOutcomeWmsApply,
updateOutcomeWmsApply, exportOutcomeWmsApply, addOutcomeWmsApplyPtype, findOutcomeWmsApply
updateOutcomeWmsApply, exportOutcomeWmsApply, addOutcomeWmsApplyPtype, findOutcomeWmsApply, findWmsApply
} from '@/api/outcomeWmsApply'
import commonField from '@/utils/commonField'
import { getDicts } from '@/api/system/dict/data'
......@@ -597,7 +597,11 @@ export default {
qty: [
{ required: true, message: '请输入qty的值', trigger: 'blur' },
{ pattern: /^(0|[1-9]\d*)$/, message: '输入值不符合格式要求,请重新输入', trigger: 'blur' }
]
],
qty1: [{ pattern: /^(0|[1-9]\d*)$/, message: '输入值不符合格式要求,请重新输入', trigger: 'blur' }],
qty2: [{ pattern: /^(0|[1-9]\d*)$/, message: '输入值不符合格式要求,请重新输入', trigger: 'blur' }],
qty3: [{ pattern: /^(0|[1-9]\d*)$/, message: '输入值不符合格式要求,请重新输入', trigger: 'blur' }],
qty4: [{ pattern: /^(0|[1-9]\d*)$/, message: '输入值不符合格式要求,请重新输入', trigger: 'blur' }]
}
}
},
......@@ -991,7 +995,11 @@ export default {
// 详情
handleDetail(row) {
const id = row.businessId
getOutcomeWmsApply(id).then(response => {
const item = {
businessId: id,
ptype: row.ptype
}
findWmsApply(item).then(response => {
if (response.data.length > 0) {
this.outTempList = response.data
this.singleDetails.createName = row.createName
......
......@@ -543,7 +543,7 @@ import {
importJbapplyExcel,
queryByPnAndPtypeAndLot,
acquireOrderByCode,
listOutTemp
findListOutTemp
} from '@/api/outcomeWmsJbapplyTemp'
import commonField from '@/utils/commonField'
import { getDicts } from '@/api/system/dict/data'
......@@ -896,7 +896,13 @@ export default {
// 获取所选行详情信息操作
handleDetail(row) {
const id = row.businessId
listOutTemp(id).then(response => {
const ptype = row.ptype
const data = {
businessId: id,
ptype: ptype
}
console.log(data)
findListOutTemp(data).then(response => {
if (response.data.length > 0) {
this.outTempList = response.data
this.isShow = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment