|
@ -158,7 +158,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { FetchInitCaseList, FetchCartoning } from '@/api/archivesManage/caseManage' |
|
|
|
|
|
|
|
|
import { FetchInitCartoningList, FetchCartoning } from '@/api/archivesManage/caseManage' |
|
|
import { header, form } from '@crud/crud' |
|
|
import { header, form } from '@crud/crud' |
|
|
export default { |
|
|
export default { |
|
|
name: 'Packing', |
|
|
name: 'Packing', |
|
@ -198,6 +198,7 @@ export default { |
|
|
querySelect(val) { |
|
|
querySelect(val) { |
|
|
this.inputSelect = val |
|
|
this.inputSelect = val |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 搜索盒列表 |
|
|
getCaseList() { |
|
|
getCaseList() { |
|
|
if (!this.caseQuery[this.inputSelect]) { |
|
|
if (!this.caseQuery[this.inputSelect]) { |
|
|
this.$message.error('请输入后再搜索!') |
|
|
this.$message.error('请输入后再搜索!') |
|
@ -227,10 +228,11 @@ export default { |
|
|
'page': 0, |
|
|
'page': 0, |
|
|
'size': 10 |
|
|
'size': 10 |
|
|
} |
|
|
} |
|
|
FetchInitCaseList(params).then(res => { |
|
|
|
|
|
|
|
|
FetchInitCartoningList(params).then(res => { |
|
|
this.tableData = res.content |
|
|
this.tableData = res.content |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 装盒 api |
|
|
handleCartoning(row) { |
|
|
handleCartoning(row) { |
|
|
let packingData = [] |
|
|
let packingData = [] |
|
|
let jnCategoryId |
|
|
let jnCategoryId |
|
@ -238,7 +240,6 @@ export default { |
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
|
packingData = this.caseData.selections |
|
|
packingData = this.caseData.selections |
|
|
jnCategoryId = this.caseData.selectedCategory.id |
|
|
jnCategoryId = this.caseData.selectedCategory.id |
|
|
archivesParentsId = null |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
packingData = this.recycleMain.$refs.file.junneiData |
|
|
packingData = this.recycleMain.$refs.file.junneiData |
|
|
if (this.caseData.selectedCategory.isType === 2) { |
|
|
if (this.caseData.selectedCategory.isType === 2) { |
|
@ -251,12 +252,17 @@ export default { |
|
|
const arrParams = packingData.map(item => { |
|
|
const arrParams = packingData.map(item => { |
|
|
const json = {} |
|
|
const json = {} |
|
|
json.archivesId = item.id |
|
|
json.archivesId = item.id |
|
|
json.archivesParentsId = archivesParentsId |
|
|
|
|
|
|
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
|
|
|
|
json.archivesParentsId = item.id |
|
|
|
|
|
} else { |
|
|
|
|
|
json.archivesParentsId = archivesParentsId |
|
|
|
|
|
} |
|
|
json.caseId = row.id |
|
|
json.caseId = row.id |
|
|
json.caseName = row.caseName |
|
|
json.caseName = row.caseName |
|
|
json.categoryId = jnCategoryId |
|
|
json.categoryId = jnCategoryId |
|
|
return json |
|
|
return json |
|
|
}) |
|
|
}) |
|
|
|
|
|
console.log(arrParams) |
|
|
this.FetchCartioning(arrParams) |
|
|
this.FetchCartioning(arrParams) |
|
|
}, |
|
|
}, |
|
|
FetchCartioning(arrParams) { |
|
|
FetchCartioning(arrParams) { |
|
|