Commit 4ffa20cf authored by hubaoshan's avatar hubaoshan

领用申请的修改

parent ad84d3a1
......@@ -29,6 +29,12 @@ export function getOutcomeWmsApply(businessId) {
})
}
export function findOutcomeWmsApply(businessId) {
return request({
url: '/outcomewmsapply/detail/' + businessId,
method: 'get'
})
}
// 3. 新增????
export function addOutcomeWmsApply(data) {
data = Qs.stringify(data)
......
......@@ -429,7 +429,7 @@ import {
getOutcomeWmsApply,
delOutcomeWmsApply,
addOutcomeWmsApply,
updateOutcomeWmsApply, exportOutcomeWmsApply, addOutcomeWmsApplyPtype
updateOutcomeWmsApply, exportOutcomeWmsApply, addOutcomeWmsApplyPtype, findOutcomeWmsApply
} from '@/api/outcomeWmsApply'
import commonField from '@/utils/commonField'
import { getDicts } from '@/api/system/dict/data'
......@@ -760,9 +760,9 @@ export default {
handleUpdate(row) {
this.reset()
const id = row.businessId
getOutcomeWmsApply(id).then(response => {
findOutcomeWmsApply(id).then(response => {
if (response.data.ptype === '30') {
if (response.data.pn === 'xxx') {
if (response.data.pn === 'Na3PO4') {
this.disabled2 = true
this.disabled3 = true
this.disabled4 = true
......@@ -772,7 +772,7 @@ export default {
console.log(this.formPn.qty1)
this.openGain = true
this.title = '修改领用申请'
} else if (response.data.pn === 'yyy') {
} else if (response.data.pn === 'NB-Y') {
this.disabled1 = true
this.disabled3 = true
this.disabled4 = true
......@@ -781,7 +781,7 @@ export default {
this.$set(this.formPn, 'qty2', response.data.qty / 15)
this.openGain = true
this.title = '修改领用申请'
} else if (response.data.pn === 'zzz') {
} else if (response.data.pn === 'NB-Z') {
this.disabled1 = true
this.disabled2 = true
this.disabled4 = true
......@@ -790,7 +790,7 @@ export default {
this.$set(this.formPn, 'qty3', response.data.qty / 18)
this.openGain = true
this.title = '修改领用申请'
} else if (response.data.pn === 'qqq') {
} else if (response.data.pn === 'NB-C') {
this.disabled1 = true
this.disabled2 = true
this.disabled3 = 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