Commit e198262a by 王志慧

fixed

1 parent 08943eca
...@@ -639,7 +639,7 @@ export default { ...@@ -639,7 +639,7 @@ export default {
return worksheet return worksheet
}, },
getHeaderRow(sheet) { getHeaderRow(sheet) {
console.log(sheet) // console.log(sheet)
const headers = [] const headers = []
/* sheet['!ref']表示所有单元格的范围,例如从A1到F8则记录为 A1:F8*/ /* sheet['!ref']表示所有单元格的范围,例如从A1到F8则记录为 A1:F8*/
const range = XLSX.utils.decode_range(sheet['!ref']) const range = XLSX.utils.decode_range(sheet['!ref'])
...@@ -670,7 +670,6 @@ export default { ...@@ -670,7 +670,6 @@ export default {
handleImport() { handleImport() {
this.isImport = true this.isImport = true
this.clearFile() this.clearFile()
}, },
clearFile() { clearFile() {
this.importForm = { this.importForm = {
...@@ -730,7 +729,6 @@ export default { ...@@ -730,7 +729,6 @@ export default {
cancelImport() { cancelImport() {
this.isImport = false this.isImport = false
this.clearFile() this.clearFile()
}, },
//获取复选table数据 //获取复选table数据
selectionTable(val) { selectionTable(val) {
...@@ -738,10 +736,10 @@ export default { ...@@ -738,10 +736,10 @@ export default {
}, },
//批量审核 //批量审核
handleCheck(row, isRefuse = 0) { handleCheck(row, isRefuse = 0) {
// console.log(row)
// isRefuse: 0:审批,2:驳回 // isRefuse: 0:审批,2:驳回
if (row) { if (row) {
this.ids = isRefuse == 0 ? [row.id] : row.id this.ids = isRefuse == 0 ? [row.id] : row.id
this.$refs.withdrawRef.clearMutiSelect()
} else { } else {
if (!this.ids || this.ids.length == 0) { if (!this.ids || this.ids.length == 0) {
this.$message({ this.$message({
...@@ -760,7 +758,6 @@ export default { ...@@ -760,7 +758,6 @@ export default {
if (row) { if (row) {
this.ids = [row.id] this.ids = [row.id]
this.payForm.payMoney = (row.payAmount / 100).toFixed(2) this.payForm.payMoney = (row.payAmount / 100).toFixed(2)
this.$refs.withdrawRef.clearMutiSelect()
} else { } else {
if (!this.ids || this.ids.length == 0) { if (!this.ids || this.ids.length == 0) {
this.$message({ this.$message({
...@@ -786,6 +783,7 @@ export default { ...@@ -786,6 +783,7 @@ export default {
}) })
}, },
comfirmCheck() { comfirmCheck() {
// console.log(this.ids)
if (this.isRefuse == 2 && this.form.remark == '') { if (this.isRefuse == 2 && this.form.remark == '') {
this.$message({ this.$message({
message: '请输入驳回原因', message: '请输入驳回原因',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!