Browse Source

bug修正

master
x_ying 3 years ago
parent
commit
90fe898268
  1. 16
      src/views/archivesManage/outInStorage/inStorage/index.vue
  2. 10
      src/views/archivesManage/outInStorage/outInHistory/index.vue
  3. 15
      src/views/archivesManage/outInStorage/outStorage/index.vue

16
src/views/archivesManage/outInStorage/inStorage/index.vue

@ -126,9 +126,7 @@ export default {
child: []
}
},
created() {
this.getData()
},
methods: {
//
[CRUD.HOOK.beforeRefresh]() {
@ -137,9 +135,7 @@ export default {
this.crud.query.tid = null
this.crud.query[this.optionVal] = this.keyWord
},
getData() {
console.log(this.crud, 'crud')
},
//
cell({ row, columnIndex }) {
if (row.storageType === 0 && columnIndex === 2) { //
@ -154,7 +150,6 @@ export default {
//
async handleDbClick(row) {
this.$refs.detailDom.rowData = row
console.log(row, 'row')
let logId = null
// logId
await initStorageLogList().then(res => {
@ -166,27 +161,22 @@ export default {
'logId': logId
}
//
console.log(params)
initStorageLogDetailes(params).then(res => {
console.log(res, '==res')
this.$refs.detailDom.tableData = res
})
this.$refs.detailDom.detailVisible = true
},
selectionChangeHandler(val) {
this.selections = val
// console.log(val, '-----')
},
//
handleIn() {
// console.log(this.selections, 'sel')
if (this.selections[0].storageType === 0) {
const params = {
caseId: this.selections[0].id
// caseId: '8A686B1E9F255DCBE6B262'
}
initCaseByArchives(params).then(res => {
console.log(res, 'res')
this.$refs.inDialogDom.childData = res
})
this.$refs.inDialogDom.dialogVisible = true
@ -201,7 +191,7 @@ export default {
if (bool) { // ''
const params = this.selections.map(item => item.id)
readyCollectConfirm(params).then(res => {
console.log(res, '预人工确认res')
// console.log(res, 'res')
const handDialogDom = this.$refs.handDialogDom
if (res.length === 1) {
const params = res.map(item => item.caseId)

10
src/views/archivesManage/outInStorage/outInHistory/index.vue

@ -128,9 +128,6 @@ export default {
'baseApi'
])
},
created() {
this.getData()
},
methods: {
//
[CRUD.HOOK.beforeRefresh]() {
@ -145,9 +142,6 @@ export default {
}
this.crud.query[this.optionVal] = this.keyWord
},
getData() {
console.log(this.crud, 'crud')
},
clickRowHandler(row) {
this.$refs.table.toggleRowSelection(row) //
},
@ -156,7 +150,6 @@ export default {
},
selectionChangeHandler(val) {
this.selections = val
console.log(this.selections, '-----')
},
//
cell({ row, columnIndex }) {
@ -187,14 +180,11 @@ export default {
//
async handleDbClick(row) {
this.$refs.detailDom.rowData = row
console.log(row, 'row')
const params = {
'logId': row.id
}
//
console.log(params)
initStorageLogDetailes(params).then(res => {
console.log(res, '==res')
this.$refs.detailDom.tableData = res
})
this.$refs.detailDom.detailVisible = true

15
src/views/archivesManage/outInStorage/outStorage/index.vue

@ -135,14 +135,7 @@ export default {
]
}
},
created() {
this.getData()
},
methods: {
getData() {
console.log(this.crud, 'crud')
// this.tableData = data1.rows
},
//
[CRUD.HOOK.beforeRefresh]() {
this.crud.query.caseName = null
@ -156,7 +149,6 @@ export default {
//
async handleDbClick(row) {
this.$refs.detailDom.rowData = row
console.log(row, 'row')
let logId = null
// logId
await initStorageLogList().then(res => {
@ -168,16 +160,13 @@ export default {
'logId': logId
}
//
console.log(params)
initStorageLogDetailes(params).then(res => {
console.log(res, '==res')
this.$refs.detailDom.tableData = res
})
this.$refs.detailDom.detailVisible = true
},
selectionChangeHandler(val) {
this.selections = val
// console.log(val, '-----')
},
//
handleOut() {
@ -194,7 +183,6 @@ export default {
if (bool) {
const params = this.selections.map(item => { return item.id })
grantConfirm(params).then(res => {
console.log(res, '--人工出库')
if (res) {
this.$message({
message: '出库成功!',
@ -210,12 +198,9 @@ export default {
}
},
handleConfirm() {
// console.log(this.selections, 'sel')
this.crud.downloadLoading = true
const params = this.selections.map(item => { return item.id })
console.log(params, 'params')
grant(params).then(res => {
// console.log(res, '--res')
if (res) {
this.crud.downloadLoading = false
this.$message({

Loading…
Cancel
Save