|
|
@@ -202,313 +202,312 @@ import baseInfo from '@/utils/baseInfo'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import filterHelper from '../../utils/filterHelper'
|
|
|
export default {
|
|
|
- name: 'finance_withdraw',
|
|
|
- components: {FilterUser, Pagination},
|
|
|
+ name: 'finance_withdraw',
|
|
|
+ components: {FilterUser, Pagination},
|
|
|
|
|
|
- data() {
|
|
|
- return {
|
|
|
- activeName: 'all',
|
|
|
- tableHeaders: null,
|
|
|
- baseDecLevels: baseInfo.decLevels(),
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ activeName: 'all',
|
|
|
+ tableHeaders: null,
|
|
|
+ baseDecLevels: baseInfo.decLevels(),
|
|
|
|
|
|
- allData: null,
|
|
|
- tableData: null,
|
|
|
- loading: true,
|
|
|
- multipleSelection: [],
|
|
|
- currentPage: 1,
|
|
|
- totalPages: 1,
|
|
|
- totalCount: 1,
|
|
|
- pageSize: 20,
|
|
|
- tool: tool,
|
|
|
- permission: permission,
|
|
|
- regTypes: baseInfo.regTypes(),
|
|
|
- dialogEditFormVisible: false,
|
|
|
- dialogEditLoading: false,
|
|
|
- dialogAuditFormVisible: false,
|
|
|
- dialogAuditLoading: false,
|
|
|
- dialogAddInvoiceVisible: false,
|
|
|
- dialogAddInvoiceLoading: false,
|
|
|
- auditId: null,
|
|
|
- form: {
|
|
|
- id: null,
|
|
|
- baseInfo: {USER_NAME: null, REG_TYPE: null},
|
|
|
- amount: null,
|
|
|
- planPaidAt: null,
|
|
|
- paidAt: new Date(),
|
|
|
- createRemark: null,
|
|
|
- },
|
|
|
- invoiceForm: {
|
|
|
- id: null,
|
|
|
- withdrawId: null,
|
|
|
- withdrawSn: null,
|
|
|
- invoiceCode: null,
|
|
|
- invoiceNum: null,
|
|
|
- invoiceDate: null,
|
|
|
- amount: null,
|
|
|
- taxRate: null,
|
|
|
- purchaserName: null,
|
|
|
- purchaserRegisterNum: null,
|
|
|
- purchaserAddress: null,
|
|
|
- purchaserBank: null,
|
|
|
- sellerName: null,
|
|
|
- sellerRegisterNum: null,
|
|
|
- sellerAddress: null,
|
|
|
- sellerBank: null,
|
|
|
- itemName: null,
|
|
|
- invoiceRemark: null,
|
|
|
- createRemark: null,
|
|
|
- },
|
|
|
- pickerOptions0: {
|
|
|
- disabledDate(time) {
|
|
|
- return time.getTime() < Date.now();
|
|
|
- }
|
|
|
- },
|
|
|
- pickerOptions1: {
|
|
|
- disabledDate(time) {
|
|
|
- return time.getTime() < Date.now() - 8.64e7;
|
|
|
- }
|
|
|
- },
|
|
|
- auditRemark: '',
|
|
|
- auditForm: {
|
|
|
- auditTips: '',
|
|
|
- auditStatus: null,
|
|
|
- selectedIds: [],
|
|
|
- planPaidAt: null,
|
|
|
- createRemark: null,
|
|
|
- withdrawAudit: '',
|
|
|
- },
|
|
|
- auditTips: '',
|
|
|
- filterTypes: {},
|
|
|
- filterModel: {},
|
|
|
- excelForm: {
|
|
|
- rowCount: '',
|
|
|
- },
|
|
|
- filterStatus: '0',
|
|
|
+ allData: null,
|
|
|
+ tableData: null,
|
|
|
+ loading: true,
|
|
|
+ multipleSelection: [],
|
|
|
+ currentPage: 1,
|
|
|
+ totalPages: 1,
|
|
|
+ totalCount: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ tool: tool,
|
|
|
+ permission: permission,
|
|
|
+ regTypes: baseInfo.regTypes(),
|
|
|
+ dialogEditFormVisible: false,
|
|
|
+ dialogEditLoading: false,
|
|
|
+ dialogAuditFormVisible: false,
|
|
|
+ dialogAuditLoading: false,
|
|
|
+ dialogAddInvoiceVisible: false,
|
|
|
+ dialogAddInvoiceLoading: false,
|
|
|
+ auditId: null,
|
|
|
+ form: {
|
|
|
+ id: null,
|
|
|
+ baseInfo: {USER_NAME: null, REG_TYPE: null},
|
|
|
+ amount: null,
|
|
|
+ planPaidAt: null,
|
|
|
+ paidAt: new Date(),
|
|
|
+ createRemark: null,
|
|
|
+ },
|
|
|
+ invoiceForm: {
|
|
|
+ id: null,
|
|
|
+ withdrawId: null,
|
|
|
+ withdrawSn: null,
|
|
|
+ invoiceCode: null,
|
|
|
+ invoiceNum: null,
|
|
|
+ invoiceDate: null,
|
|
|
+ amount: null,
|
|
|
+ taxRate: null,
|
|
|
+ purchaserName: null,
|
|
|
+ purchaserRegisterNum: null,
|
|
|
+ purchaserAddress: null,
|
|
|
+ purchaserBank: null,
|
|
|
+ sellerName: null,
|
|
|
+ sellerRegisterNum: null,
|
|
|
+ sellerAddress: null,
|
|
|
+ sellerBank: null,
|
|
|
+ itemName: null,
|
|
|
+ invoiceRemark: null,
|
|
|
+ createRemark: null,
|
|
|
+ },
|
|
|
+ pickerOptions0: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() < Date.now();
|
|
|
}
|
|
|
- },
|
|
|
- mounted () {
|
|
|
- this.getData();
|
|
|
- /* if (permission.hasPermission(`finance/withdraw-7`)) {
|
|
|
- this.activeName = 'seven'
|
|
|
- }
|
|
|
- if (permission.hasPermission(`finance/withdraw-4`)) {
|
|
|
- this.activeName = 'four'
|
|
|
- }
|
|
|
- if (permission.hasPermission(`finance/withdraw-6`)) {
|
|
|
- this.activeName = 'six'
|
|
|
- }
|
|
|
- if (permission.hasPermission(`finance/withdraw-3`)) {
|
|
|
- this.activeName = 'three'
|
|
|
- }
|
|
|
- if (permission.hasPermission(`finance/withdraw-2`)) {
|
|
|
- this.activeName = 'two'
|
|
|
- }
|
|
|
- if (permission.hasPermission(`finance/withdraw-1`)) {
|
|
|
- this.activeName = 'one'
|
|
|
- }
|
|
|
- if (permission.hasPermission(`finance/withdraw-0`)) {
|
|
|
- this.activeName = 'zero'
|
|
|
+ },
|
|
|
+ pickerOptions1: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() < Date.now() - 8.64e7;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ auditRemark: '',
|
|
|
+ auditForm: {
|
|
|
+ auditTips: '',
|
|
|
+ auditStatus: null,
|
|
|
+ selectedIds: [],
|
|
|
+ planPaidAt: null,
|
|
|
+ createRemark: null,
|
|
|
+ withdrawAudit: '',
|
|
|
+ },
|
|
|
+ auditTips: '',
|
|
|
+ filterTypes: {},
|
|
|
+ filterModel: {},
|
|
|
+ excelForm: {
|
|
|
+ rowCount: '',
|
|
|
+ },
|
|
|
+ filterStatus: '0',
|
|
|
}
|
|
|
- if (permission.hasPermission(`finance/withdraw-0`) && permission.hasPermission(`finance/withdraw-1`) && permission.hasPermission(`finance/withdraw-2`) && permission.hasPermission(`finance/withdraw-3`) && permission.hasPermission(`finance/withdraw-6`) && permission.hasPermission(`finance/withdraw-4`) && permission.hasPermission(`finance/withdraw-7`)) {
|
|
|
- this.activeName = 'all'
|
|
|
- }*/
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ this.getData();
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-7`)) {
|
|
|
+ // this.activeName = 'seven'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-4`)) {
|
|
|
+ // this.activeName = 'four'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-6`)) {
|
|
|
+ // this.activeName = 'six'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-3`)) {
|
|
|
+ // this.activeName = 'three'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-2`)) {
|
|
|
+ // this.activeName = 'two'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-1`)) {
|
|
|
+ // this.activeName = 'one'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-0`)) {
|
|
|
+ // this.activeName = 'zero'
|
|
|
+ // }
|
|
|
+ // if (permission.hasPermission(`finance/withdraw-0`) && permission.hasPermission(`finance/withdraw-1`) && permission.hasPermission(`finance/withdraw-2`) && permission.hasPermission(`finance/withdraw-3`) && permission.hasPermission(`finance/withdraw-6`) && permission.hasPermission(`finance/withdraw-4`) && permission.hasPermission(`finance/withdraw-7`)) {
|
|
|
+ // this.activeName = 'all'
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
- methods: {
|
|
|
- handleMuli(command) {
|
|
|
- if (this.multipleSelection.length < 1) {
|
|
|
- this.$message({
|
|
|
- message: '请选择要操作的记录',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return;
|
|
|
- }
|
|
|
- this.handleAudit(null, command)
|
|
|
- },
|
|
|
- handleAudit(row = null, status) {
|
|
|
- let title = ''
|
|
|
- if (status === '2') {
|
|
|
- title = '确定要通过审核?备注:'
|
|
|
- }else if(status === '3'){
|
|
|
- title = '确定要设为待付款?备注:'
|
|
|
- }else if(status === '4'){
|
|
|
- title = '确定要设为付款失败?备注:'
|
|
|
- }else if(status === '6'){
|
|
|
- title = '确定要设为已付款?备注:'
|
|
|
- }else if(status === '7'){
|
|
|
- title = '确定要设为已退回?备注:'
|
|
|
- }
|
|
|
- this.handleStatusShow(row,status,title);
|
|
|
- },
|
|
|
- handleExpand(row, event, column) {
|
|
|
- this.$refs.multipleTable.toggleRowExpansion(row)
|
|
|
- },
|
|
|
- handleExport() {
|
|
|
- let filterData = this.filterModel
|
|
|
- // 如果有选中,导出选中ID,否则导出全部
|
|
|
- if (this.multipleSelection.length > 0) {
|
|
|
- let selectedIds = []
|
|
|
- for (let val of this.multipleSelection) {
|
|
|
- selectedIds.push(val.ID)
|
|
|
- }
|
|
|
-
|
|
|
- filterData.selectedIds = selectedIds
|
|
|
- }
|
|
|
- this.$confirm('确定要导出当前表格中的提现数据吗?', 'Hint', {
|
|
|
- confirmButtonText: 'confirm', // 确定
|
|
|
- cancelButtonText: 'cancel', // 取消
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- return network.getData('finance/withdraw-export', filterData)
|
|
|
- }).then(response => {
|
|
|
- this.$message({
|
|
|
- message: response,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- }).catch(response => {
|
|
|
- })
|
|
|
- },
|
|
|
- handleAdd() {
|
|
|
- this.$router.push({path: `/finance/withdraw-add`})
|
|
|
- },
|
|
|
- handleExcel() {
|
|
|
- },
|
|
|
- handleExcelPaidFalse() {
|
|
|
- window.open(CDN_BASE_URL + `/files/bonus_withdraw_paid_false.xlsx`)
|
|
|
- },
|
|
|
- handleEditShow(row) {
|
|
|
- this.dialogEditLoading = true
|
|
|
- this.auditId = row.ID
|
|
|
- this.dialogEditFormVisible = true
|
|
|
- let vueObj = this
|
|
|
- network.getData('finance/withdraw-get', {id: this.auditId}).then(response => {
|
|
|
- vueObj.dialogEditLoading = false
|
|
|
- vueObj.form = response
|
|
|
- })
|
|
|
- },
|
|
|
- handleEdit() {
|
|
|
- this.dialogEditFormVisible = false
|
|
|
- this.$message({
|
|
|
- message: '正在修改数据',
|
|
|
- type: 'info'
|
|
|
- })
|
|
|
- this.loading = true
|
|
|
- let path = 'finance/withdraw-edit'
|
|
|
- network.postData(path, this.form).then(response => {
|
|
|
- this.$message({
|
|
|
- message: response,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.getData(this.currentPage, this.pageSize)
|
|
|
- }).catch(response => {
|
|
|
- })
|
|
|
- },
|
|
|
- handleStatusShow(row, status, title, remark = 'Note') { // 备注
|
|
|
- this.auditForm = {
|
|
|
- auditTips: '',
|
|
|
- auditStatus: null,
|
|
|
- selectedIds: [],
|
|
|
- planPaidAt: null,
|
|
|
- paidAt: new Date(),
|
|
|
- remark: null,
|
|
|
- }
|
|
|
- if (row === null) {
|
|
|
- for (let val of this.multipleSelection) {
|
|
|
- this.auditForm.selectedIds.push(val.ID)
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.auditForm.selectedIds.push(row.ID)
|
|
|
- }
|
|
|
- if (this.auditForm.selectedIds.length === 0) {
|
|
|
- this.$message({
|
|
|
- message: '请选择数据',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- this.auditRemark = remark
|
|
|
- this.dialogAuditFormVisible = true
|
|
|
- this.auditForm.auditTips = title
|
|
|
- this.auditForm.auditStatus = status
|
|
|
- },
|
|
|
- handleStatus() {
|
|
|
- network.postData('finance/mult-point', {opType: 2}).then(response => {
|
|
|
- this.auditForm.withdrawAudit = response.withdrawAudit
|
|
|
- this.$confirm('Are you sure to change the state of the selected data?', 'Hint', { // 确定要对所选数据修改状态吗?
|
|
|
- confirmButtonText: 'confirm', // 确定
|
|
|
- cancelButtonText: 'cancel', // 取消
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- return network.postData('finance/withdraw-status', this.auditForm)
|
|
|
- }).then(response => {
|
|
|
- this.dialogAuditFormVisible = false
|
|
|
- this.$message({
|
|
|
- message: response,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.getData(this.currentPage, this.pageSize)
|
|
|
- }).catch(response => {
|
|
|
- this.dialogAuditFormVisible = false
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- handleAddInvoiceShow(row) {
|
|
|
- this.dialogAddInvoiceVisible = true
|
|
|
- this.auditId = row.INVOICE_ID
|
|
|
- this.dialogAddInvoiceLoading = true
|
|
|
- let vueObj = this
|
|
|
- network.getData('finance/invoice-audit-get', {id: this.auditId}).then(response => {
|
|
|
- vueObj.dialogAddInvoiceLoading = false
|
|
|
- vueObj.invoiceForm = response
|
|
|
- this.invoiceForm.withdrawSn = row.SN
|
|
|
- this.invoiceForm.withdrawId = row.ID
|
|
|
- })
|
|
|
- },
|
|
|
- handleAddInvoice() {
|
|
|
- let path = 'finance/invoice-audit-add'
|
|
|
- if (this.invoiceForm.id) path = 'finance/invoice-audit-edit'
|
|
|
- network.postData(path, this.invoiceForm).then(response => {
|
|
|
- this.$message({
|
|
|
- message: response,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.dialogAddInvoiceVisible = false
|
|
|
- this.getData(this.currentPage, this.pageSize)
|
|
|
- }).catch(response => {
|
|
|
- })
|
|
|
- },
|
|
|
- handleSelectionChange(val) {
|
|
|
- this.multipleSelection = val
|
|
|
- },
|
|
|
- handleCurrentChange(page) {
|
|
|
- this.getData(page, this.pageSize)
|
|
|
- },
|
|
|
- handleSizeChange(pageSize) {
|
|
|
- this.getData(this.currentPage, pageSize)
|
|
|
- },
|
|
|
- handleFilterStatusClick(tab, event) {
|
|
|
- filterHelper.clearFilterOption(this)
|
|
|
- this.getData()
|
|
|
- },
|
|
|
- handleFilterUser(filterData) {
|
|
|
- filterHelper.handleFilterUser(this, filterData)
|
|
|
- },
|
|
|
- handleFilter() {
|
|
|
- this.getData()
|
|
|
- },
|
|
|
- getData(page, pageSize) {
|
|
|
- let filterData = this.filterModel
|
|
|
- filterData.filterStatus = this.filterStatus != '-1' ? `=,${this.filterStatus}` : ''
|
|
|
- let vueObj = this
|
|
|
- network.getPageData(this, 'finance/withdraw', page, pageSize, filterData, function (response) {
|
|
|
- vueObj.allData = response
|
|
|
- vueObj.filterTypes = response.filterTypes
|
|
|
- })
|
|
|
- },
|
|
|
- onMessageCallback() {
|
|
|
- this.getData(this.currentPage, this.pageSize)
|
|
|
- },
|
|
|
+ methods: {
|
|
|
+ handleMuli (command) {
|
|
|
+ if (this.multipleSelection.length < 1) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择要操作的记录',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.handleAudit(null, command)
|
|
|
+ },
|
|
|
+ handleAudit (row = null, status) {
|
|
|
+ let title = ''
|
|
|
+ if (status === '2') {
|
|
|
+ title = '确定要通过审核?备注:'
|
|
|
+ }else if(status === '3') {
|
|
|
+ title = '确定要设为待付款?备注:'
|
|
|
+ }else if(status === '4') {
|
|
|
+ title = '确定要设为付款失败?备注:'
|
|
|
+ }else if(status === '6') {
|
|
|
+ title = '确定要设为已付款?备注:'
|
|
|
+ }else if(status === '7') {
|
|
|
+ title = '确定要设为已退回?备注:'
|
|
|
+ }
|
|
|
+ this.handleStatusShow(row,status,title);
|
|
|
+ },
|
|
|
+ handleExpand (row, event, column) {
|
|
|
+ this.$refs.multipleTable.toggleRowExpansion(row)
|
|
|
+ },
|
|
|
+ handleExport () {
|
|
|
+ let filterData = this.filterModel
|
|
|
+ // 如果有选中,导出选中ID,否则导出全部
|
|
|
+ if (this.multipleSelection.length > 0) {
|
|
|
+ let selectedIds = []
|
|
|
+ for (let val of this.multipleSelection) {
|
|
|
+ selectedIds.push(val.ID)
|
|
|
+ }
|
|
|
+ filterData.selectedIds = selectedIds
|
|
|
+ }
|
|
|
+ this.$confirm('确定要导出当前表格中的提现数据吗?', 'Hint', {
|
|
|
+ confirmButtonText: 'confirm', // 确定
|
|
|
+ cancelButtonText: 'cancel', // 取消
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ return network.getData('finance/withdraw-export', filterData)
|
|
|
+ }).then(response => {
|
|
|
+ this.$message({
|
|
|
+ message: response,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ }).catch(response => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleAdd () {
|
|
|
+ this.$router.push({path: `/finance/withdraw-add`})
|
|
|
+ },
|
|
|
+ handleExcel () {
|
|
|
+ },
|
|
|
+ handleExcelPaidFalse () {
|
|
|
+ window.open(CDN_BASE_URL + `/files/bonus_withdraw_paid_false.xlsx`)
|
|
|
+ },
|
|
|
+ handleEditShow (row) {
|
|
|
+ this.dialogEditLoading = true
|
|
|
+ this.auditId = row.ID
|
|
|
+ this.dialogEditFormVisible = true
|
|
|
+ let vueObj = this
|
|
|
+ network.getData('finance/withdraw-get', {id: this.auditId}).then(response => {
|
|
|
+ vueObj.dialogEditLoading = false
|
|
|
+ vueObj.form = response
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleEdit () {
|
|
|
+ this.dialogEditFormVisible = false
|
|
|
+ this.$message({
|
|
|
+ message: '正在修改数据',
|
|
|
+ type: 'info'
|
|
|
+ })
|
|
|
+ this.loading = true
|
|
|
+ let path = 'finance/withdraw-edit'
|
|
|
+ network.postData(path, this.form).then(response => {
|
|
|
+ this.$message({
|
|
|
+ message: response,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.getData(this.currentPage, this.pageSize)
|
|
|
+ }).catch(response => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleStatusShow(row, status, title, remark = 'Note') { // 备注
|
|
|
+ this.auditForm = {
|
|
|
+ auditTips: '',
|
|
|
+ auditStatus: null,
|
|
|
+ selectedIds: [],
|
|
|
+ planPaidAt: null,
|
|
|
+ paidAt: new Date(),
|
|
|
+ remark: null,
|
|
|
}
|
|
|
+ if (row === null) {
|
|
|
+ for (let val of this.multipleSelection) {
|
|
|
+ this.auditForm.selectedIds.push(val.ID)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.auditForm.selectedIds.push(row.ID)
|
|
|
+ }
|
|
|
+ if (this.auditForm.selectedIds.length === 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择数据',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.auditRemark = remark
|
|
|
+ this.dialogAuditFormVisible = true
|
|
|
+ this.auditForm.auditTips = title
|
|
|
+ this.auditForm.auditStatus = status
|
|
|
+ },
|
|
|
+ handleStatus () {
|
|
|
+ network.postData('finance/mult-point', {opType: 2}).then(response => {
|
|
|
+ this.auditForm.withdrawAudit = response.withdrawAudit
|
|
|
+ this.$confirm('Are you sure to change the state of the selected data?', 'Hint', { // 确定要对所选数据修改状态吗?
|
|
|
+ confirmButtonText: 'confirm', // 确定
|
|
|
+ cancelButtonText: 'cancel', // 取消
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ return network.postData('finance/withdraw-status', this.auditForm)
|
|
|
+ }).then(response => {
|
|
|
+ this.dialogAuditFormVisible = false
|
|
|
+ this.$message({
|
|
|
+ message: response,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.getData(this.currentPage, this.pageSize)
|
|
|
+ }).catch(response => {
|
|
|
+ this.dialogAuditFormVisible = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleAddInvoiceShow (row) {
|
|
|
+ this.dialogAddInvoiceVisible = true
|
|
|
+ this.auditId = row.INVOICE_ID
|
|
|
+ this.dialogAddInvoiceLoading = true
|
|
|
+ let vueObj = this
|
|
|
+ network.getData('finance/invoice-audit-get', {id: this.auditId}).then(response => {
|
|
|
+ vueObj.dialogAddInvoiceLoading = false
|
|
|
+ vueObj.invoiceForm = response
|
|
|
+ this.invoiceForm.withdrawSn = row.SN
|
|
|
+ this.invoiceForm.withdrawId = row.ID
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleAddInvoice () {
|
|
|
+ let path = 'finance/invoice-audit-add'
|
|
|
+ if (this.invoiceForm.id) path = 'finance/invoice-audit-edit'
|
|
|
+ network.postData(path, this.invoiceForm).then(response => {
|
|
|
+ this.$message({
|
|
|
+ message: response,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.dialogAddInvoiceVisible = false
|
|
|
+ this.getData(this.currentPage, this.pageSize)
|
|
|
+ }).catch(response => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = val
|
|
|
+ },
|
|
|
+ handleCurrentChange(page) {
|
|
|
+ this.getData(page, this.pageSize)
|
|
|
+ },
|
|
|
+ handleSizeChange(pageSize) {
|
|
|
+ this.getData(this.currentPage, pageSize)
|
|
|
+ },
|
|
|
+ handleFilterStatusClick(tab, event) {
|
|
|
+ filterHelper.clearFilterOption(this)
|
|
|
+ this.getData()
|
|
|
+ },
|
|
|
+ handleFilterUser(filterData) {
|
|
|
+ filterHelper.handleFilterUser(this, filterData)
|
|
|
+ },
|
|
|
+ handleFilter() {
|
|
|
+ this.getData()
|
|
|
+ },
|
|
|
+ getData(page, pageSize) {
|
|
|
+ let filterData = this.filterModel
|
|
|
+ filterData.filterStatus = this.filterStatus != '-1' ? `=,${this.filterStatus}` : ''
|
|
|
+ let vueObj = this
|
|
|
+ network.getPageData(this, 'finance/withdraw', page, pageSize, filterData, function (response) {
|
|
|
+ vueObj.allData = response
|
|
|
+ vueObj.filterTypes = response.filterTypes
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onMessageCallback() {
|
|
|
+ this.getData(this.currentPage, this.pageSize)
|
|
|
+ },
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|