1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| /**
| * 补开发票-保存
| */
|
| import ApiModel from '@/utils/core/apiModel'
|
| // 表格信息
| const formList = [
| {
| type: 'input',
| label: '发票代码',
| name: 'invoiceCode',
| rules: [{ required: true }]
| },
| {
| type: 'input',
| label: '开票金额',
| name: 'invoiceAmt',
| rules: [{ required: true }]
| },
| {
| type: 'date',
| label: '开票日期',
| name: 'inputDate',
| rules: [{ required: true }]
| },
| {
| type: 'input',
| label: '发票销售方',
| name: 'invoiceSeller',
| attrs: ['readonly']
| },
| {
| type: 'input',
| label: '发票购买方',
| name: 'invoiceBuyer',
| attrs: ['readonly']
| }
| ]
|
| export default options => {
| // 接口地址,required
| const api = 'server/saveFillOpenInvoice'
| return new ApiModel({
| api,
| formList,
| request(params) {
| return this.post(params)
| }
| })
| }
|
|