发票信息简单联调
This commit is contained in:
@@ -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() {
|
||||
|
@@ -75,7 +75,7 @@
|
||||
}
|
||||
|
||||
.month {
|
||||
width: 138rpx;
|
||||
width: 190rpx;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
|
Reference in New Issue
Block a user