|
@ -126,9 +126,7 @@ export default { |
|
|
child: [] |
|
|
child: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
|
|
|
this.getData() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 获取数据前的处理 |
|
|
// 获取数据前的处理 |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
@ -137,9 +135,7 @@ export default { |
|
|
this.crud.query.tid = null |
|
|
this.crud.query.tid = null |
|
|
this.crud.query[this.optionVal] = this.keyWord |
|
|
this.crud.query[this.optionVal] = this.keyWord |
|
|
}, |
|
|
}, |
|
|
getData() { |
|
|
|
|
|
console.log(this.crud, 'crud') |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 单元格样式 |
|
|
// 单元格样式 |
|
|
cell({ row, columnIndex }) { |
|
|
cell({ row, columnIndex }) { |
|
|
if (row.storageType === 0 && columnIndex === 2) { // 未入 |
|
|
if (row.storageType === 0 && columnIndex === 2) { // 未入 |
|
@ -154,7 +150,6 @@ export default { |
|
|
// 双击详情 |
|
|
// 双击详情 |
|
|
async handleDbClick(row) { |
|
|
async handleDbClick(row) { |
|
|
this.$refs.detailDom.rowData = row |
|
|
this.$refs.detailDom.rowData = row |
|
|
console.log(row, 'row') |
|
|
|
|
|
let logId = null |
|
|
let logId = null |
|
|
// 获取logId |
|
|
// 获取logId |
|
|
await initStorageLogList().then(res => { |
|
|
await initStorageLogList().then(res => { |
|
@ -166,27 +161,22 @@ export default { |
|
|
'logId': logId |
|
|
'logId': logId |
|
|
} |
|
|
} |
|
|
// 调取详情接口 |
|
|
// 调取详情接口 |
|
|
console.log(params) |
|
|
|
|
|
initStorageLogDetailes(params).then(res => { |
|
|
initStorageLogDetailes(params).then(res => { |
|
|
console.log(res, '==res') |
|
|
|
|
|
this.$refs.detailDom.tableData = res |
|
|
this.$refs.detailDom.tableData = res |
|
|
}) |
|
|
}) |
|
|
this.$refs.detailDom.detailVisible = true |
|
|
this.$refs.detailDom.detailVisible = true |
|
|
}, |
|
|
}, |
|
|
selectionChangeHandler(val) { |
|
|
selectionChangeHandler(val) { |
|
|
this.selections = val |
|
|
this.selections = val |
|
|
// console.log(val, '-----') |
|
|
|
|
|
}, |
|
|
}, |
|
|
// 入库 |
|
|
// 入库 |
|
|
handleIn() { |
|
|
handleIn() { |
|
|
// console.log(this.selections, 'sel') |
|
|
|
|
|
if (this.selections[0].storageType === 0) { |
|
|
if (this.selections[0].storageType === 0) { |
|
|
const params = { |
|
|
const params = { |
|
|
caseId: this.selections[0].id |
|
|
caseId: this.selections[0].id |
|
|
// caseId: '8A686B1E9F255DCBE6B262' |
|
|
// caseId: '8A686B1E9F255DCBE6B262' |
|
|
} |
|
|
} |
|
|
initCaseByArchives(params).then(res => { |
|
|
initCaseByArchives(params).then(res => { |
|
|
console.log(res, 'res') |
|
|
|
|
|
this.$refs.inDialogDom.childData = res |
|
|
this.$refs.inDialogDom.childData = res |
|
|
}) |
|
|
}) |
|
|
this.$refs.inDialogDom.dialogVisible = true |
|
|
this.$refs.inDialogDom.dialogVisible = true |
|
@ -201,7 +191,7 @@ export default { |
|
|
if (bool) { // 全是'待入'状态弹出成功提示 |
|
|
if (bool) { // 全是'待入'状态弹出成功提示 |
|
|
const params = this.selections.map(item => item.id) |
|
|
const params = this.selections.map(item => item.id) |
|
|
readyCollectConfirm(params).then(res => { |
|
|
readyCollectConfirm(params).then(res => { |
|
|
console.log(res, '预人工确认res') |
|
|
|
|
|
|
|
|
// console.log(res, '预人工确认res') |
|
|
const handDialogDom = this.$refs.handDialogDom |
|
|
const handDialogDom = this.$refs.handDialogDom |
|
|
if (res.length === 1) { |
|
|
if (res.length === 1) { |
|
|
const params = res.map(item => item.caseId) |
|
|
const params = res.map(item => item.caseId) |
|
|