发票信息简单联调

This commit is contained in:
2024-04-26 09:45:59 +08:00
parent cbe7db0ac1
commit 571373c33c
5 changed files with 64 additions and 17 deletions

View File

@@ -1,6 +1,8 @@
import { getInvoiceInfo, updateInvoiceInfo } from "../../../../service/invoice"
import { getUserInfo } from "../../../../service/user";
import { alertInfo, alertSuccess } from "../../../../utils/index";
import request from '../../../../utils/request'
const { OK } = request
// pages/invoiceList/components/info/index.js
Component({
@@ -32,7 +34,10 @@ Component({
methods: {
async getDetail() {
const { code, message, data } = await getInvoiceInfo()
if (code !== OK) {
alertInfo(message)
return;
}
this.setData({ detail: {...data, },editType: 'detail', formData: {} })
},
async getUser() {