将单据的查看和编辑改为从后台单独查询

This commit is contained in:
季圣华
2022-12-18 22:55:27 +08:00
parent 2113691a41
commit 234f58bfad
4 changed files with 77 additions and 51 deletions

View File

@@ -1,4 +1,5 @@
import {findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail, getUserList, getPersonByType, getAccount} from '@/api/api'
import {findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail,
getUserList, getPersonByType, getAccount} from '@/api/api'
import Vue from 'vue'
export const FinancialListMixin = {
@@ -43,7 +44,13 @@ export const FinancialListMixin = {
if(this.btnEnableList.indexOf(2)===-1) {
this.$refs.modalForm.isCanCheck = false
}
this.handleEdit(record);
//查询单条财务信息
findFinancialDetailByNumber({ billNo: record.billNo }).then((res) => {
if (res && res.code === 200) {
let item = res.data
this.handleEdit(item)
}
})
} else {
this.$message.warning("抱歉,只有未审核的单据才能编辑!")
}