| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- /*******************************************************************************
- * Copyright(c) 2022 dongke All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:
- * 2.功能描述:开具发票
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 王英杰 2022-11-22 1.00 新建
- *******************************************************************************/
- const mixins = require('@/mixins/index.js')
- const util = require('@/utils/util.js')
- const Constants = require('@/utils/Constants.js');
- const api = require('@/utils/api.js');
- const config = require('@/config/config.js');
- const app = getApp()
- Page({
- mixins: [mixins],
- /**
- * 页面的初始数据
- */
- data: {
- cardList: ['main', 'other'],
- contentObj: {
- main: [{ //抬头类型
- code: 'headType',
- type: 'str',
- readonly: true,
- title: mixins.$t('headUpType')
- },
- { //购方名称
- code: 'buyerId',
- name: 'buyerName',
- title: mixins.$t("buyerName"),
- type: 'choose',
- urlKey: 'accountCategory',
- required: true,
- },
- { //购方税号
- code: 'BuyerTaxNumber',
- type: 'str',
- required: true,
- title: mixins.$t('BuyerTaxNumber')
- },
- { //发票类型
- code: 'invoiceTypeId',
- name: 'invoiceTypeName',
- title: mixins.$t("invoiceType"),
- type: 'choose',
- urlKey: 'accountCategory',
- required: true,
- },
- { //接收邮箱
- code: 'receivingEmail',
- type: 'str',
- required: true,
- title: mixins.$t('receivingEmail')
- },
- { //备注
- code: 'remarks',
- type: 'str',
- title: mixins.$t('remarks')
- },
- ],
- other: [ //备注
- {
- code: 'invoiceContent',
- type: 'textarea',
- title: mixins.$t('invoiceContent')
- },
- {
- code: 'invoicingParty',
- type: 'textarea',
- title: mixins.$t('invoicingParty')
- },
- {
- code: 'totalInvoiceAmount',
- type: 'textarea',
- title: mixins.$t('totalInvoiceAmount')
- }
- ],
- },
- buttonSaveList: [{
- code: 'preview',
- title: '预览',
- width: '120rpx',
- }, {
- code: 'submit',
- title: '提交',
- width: '120rpx',
- }],
- // 路由
- routeObjName: 'moneyAccount',
- },
- /**
- * @desc : 页面加载数据方法
- * @date : 2024/2/1 15:49
- * @author : 王英杰
- */
- loadInit() {
- let formData = this.data.formData ? JSON.parse(this.data.formData) : {}
- formData.headType = "企业单位"
- this.setData({
- formData: JSON.stringify(formData)
- })
- },
- })
|