Commit 7b8054c8 authored by hubaoshan's avatar hubaoshan

详情 导出 bug

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