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: [] 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)

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

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

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

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

Loading…
Cancel
Save