Commit 3dbfd88a authored by xioln's avatar xioln

问题修改

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