Commit 3dbfd88a authored by xioln's avatar xioln

问题修改

parent 2d7d28d9
...@@ -346,6 +346,7 @@ export default { ...@@ -346,6 +346,7 @@ export default {
this.$refs.form.validate((isok) => { this.$refs.form.validate((isok) => {
if (isok) { if (isok) {
this.$api.recursion('JobResponseInTest', params).then(res => { this.$api.recursion('JobResponseInTest', params).then(res => {
this.$utils.showMessageSuccess('保存成功!')
resolve(true) resolve(true)
}).catch(() => { }).catch(() => {
resolve(false) resolve(false)
......
...@@ -931,6 +931,7 @@ export default { ...@@ -931,6 +931,7 @@ export default {
this.$refs.form.validate((isok) => { this.$refs.form.validate((isok) => {
if (isok) { if (isok) {
this.$api.recursion('JobResponseInTest', params).then(res => { this.$api.recursion('JobResponseInTest', params).then(res => {
this.$utils.showMessageSuccess('保存成功!')
resolve(true) resolve(true)
}).catch(() => { }).catch(() => {
resolve(false) resolve(false)
......
...@@ -316,6 +316,7 @@ export default { ...@@ -316,6 +316,7 @@ export default {
this.$refs.form.validate((isok) => { this.$refs.form.validate((isok) => {
if (isok) { if (isok) {
this.$api.recursion('JobResponseInTest', params).then(res => { this.$api.recursion('JobResponseInTest', params).then(res => {
this.$utils.showMessageSuccess('保存成功!')
resolve(true) resolve(true)
}).catch(() => { }).catch(() => {
resolve(false) resolve(false)
......
...@@ -58,7 +58,6 @@ export default { ...@@ -58,7 +58,6 @@ export default {
// 初始化数据 // 初始化数据
}, },
mounted() { mounted() {
console.log('this.basicData', this.basicData)
this.basicDataId = this.basicData.id this.basicDataId = this.basicData.id
this.inventoryReqId = this.basicData.inventoryReqId this.inventoryReqId = this.basicData.inventoryReqId
this.getInventoryRequest(this.basicData.inventoryReqId) this.getInventoryRequest(this.basicData.inventoryReqId)
...@@ -66,7 +65,6 @@ export default { ...@@ -66,7 +65,6 @@ export default {
methods: { methods: {
getInventoryRequest(id) { getInventoryRequest(id) {
get(`InventoryRequest/${id}`).then(res => { get(`InventoryRequest/${id}`).then(res => {
console.log('getInventoryRequest', res)
const type = res.items.billType const type = res.items.billType
// switch (type) { // switch (type) {
// case '器材': // case '器材':
...@@ -125,7 +123,6 @@ export default { ...@@ -125,7 +123,6 @@ export default {
] ]
} }
post('JobResponseInTest/search', param).then(res => { post('JobResponseInTest/search', param).then(res => {
console.log('data', res)
const data = res.items.content[0] const data = res.items.content[0]
this.data = data this.data = data
this.type = type this.type = type
......
...@@ -122,11 +122,22 @@ export default { ...@@ -122,11 +122,22 @@ export default {
// this.timerId = null // this.timerId = null
// } // }
// }, 200) // }, 200)
this.searchInStorageRequestItem(this.basicData.id) if (this.basicData.subTypeName === 'InStoragePurchase' ||
this.basicData.subTypeName === 'InStorageExpire' ||
this.basicData.subTypeName === 'InStorageRecall'
) {
this.$nextTick(() => {
if (this.basicData.inStorageRequestItems[0]) {
this.searchInStorageRequestItem(this.basicData.inStorageRequestItems[0].inventoryReqId, 'inventoryReq.id')
}
})
} else {
this.searchInStorageRequestItem(this.basicData.id, 'id')
}
}, },
methods: { methods: {
// 编辑采购入库明细查询InStorageRequestItem/search // 编辑采购入库明细查询InStorageRequestItem/search
searchInStorageRequestItem(id) { searchInStorageRequestItem(id, fieldName) {
const param = { const param = {
'rootCondition': { 'rootCondition': {
'pageFrom': 1, 'pageFrom': 1,
...@@ -136,7 +147,7 @@ export default { ...@@ -136,7 +147,7 @@ export default {
{ {
'items': [ 'items': [
{ {
'fieldName': 'id', 'fieldName': fieldName,
'operator': 'EQ', 'operator': 'EQ',
'value': id 'value': id
}, },
......
...@@ -177,6 +177,7 @@ export default { ...@@ -177,6 +177,7 @@ export default {
} }
this.$api.recursion('JobResponseInStorage', params).then(res => { this.$api.recursion('JobResponseInStorage', params).then(res => {
this.$utils.showMessageSuccess('保存成功') this.$utils.showMessageSuccess('保存成功')
this.searchInStorageRequestItem(this.basicData.id)
// this.extWorkUnitName = extWorkUnitId.split('+')[1] // this.extWorkUnitName = extWorkUnitId.split('+')[1]
}) })
} }
...@@ -262,7 +263,6 @@ export default { ...@@ -262,7 +263,6 @@ export default {
} }
}, },
created() { created() {
console.log('basicData', { ...this.basicData })
// 初始化数据 // 初始化数据
// this.searchInStorageRequestItem(this.basicData.businessObject.id) // this.searchInStorageRequestItem(this.basicData.businessObject.id)
}, },
......
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