| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471 |
- <template>
- <ele-modal
- custom-class="ele-dialog-form long-dialog-form"
- :centered="true"
- :visible.sync="addOrEditDialogFlag"
- :title="title"
- :append-to-body="true"
- :close-on-click-modal="false"
- width="70%"
- :before-close="cancel"
- :maxable="true"
- :resizable="true"
- >
- <el-form
- ref="form"
- :rules="rules"
- class="el-form-box-add"
- :model="form"
- label-width="160px"
- >
- <headerTitle title="基本信息"></headerTitle>
- <el-row :gutter="12">
- <el-col :span="8">
- <el-form-item label="发票类型" prop="type">
- <el-select
- v-model="form.type"
- @change="handleSelType('isType')"
- clearable
- :disabled="!isEditType"
- style="width: 100%"
- >
- <el-option label="开票" :value="1"></el-option>
- <el-option label="收票" :value="2"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="form.type">
- <el-form-item label="来源类型" prop="sourceType">
- <el-select
- v-model="form.sourceType"
- @change="handleSelType('sourceType')"
- :disabled="!isEditType || isDisabledType"
- clearable
- style="width: 100%"
- >
- <el-option v-for="item in sourceTypeOp" :label="item.label" :value="item.value" :key="item.value"></el-option>
- <!-- <el-option label="对账单" :value="1"></el-option>
- <el-option label="合同" :value="2"></el-option>
- <el-option label="订单" :value="3"></el-option> -->
- <!-- <el-option label="收款计划" :value="1"></el-option> -->
- <!-- <el-option
- label="已收"
- :value="5"
- v-if="form.type == 1"
- ></el-option>
- <el-option
- label="已付"
- :value="4"
- v-if="form.type == 2"
- ></el-option>
- <el-option label="其他无订单无合同" :value="99"></el-option> -->
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="form.sourceType == 1">
- <el-form-item label="对账单" prop="sourceCode">
- <el-input
- v-model="form.sourceCode"
- readonly
- :disabled="dialogType === 'update'"
- @click.native="handleSelectAccount(1)"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="form.sourceType == 2">
- <el-form-item label="合同" prop="sourceCode">
- <el-input
- v-model="form.sourceCode"
- readonly
- @click.native="handleSelectAccount(2)"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="form.sourceType == 3">
- <el-form-item label="订单" prop="sourceCode">
- <el-input
- v-model="form.sourceCode"
- readonly
- @click.native="handleSelectAccount(3)"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="form.sourceType == 5">
- <el-form-item label="已收" prop="sourceCode">
- <el-input
- v-model="form.sourceCode"
- readonly
- @click.native="handleSelectAccount(5)"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="form.sourceType == 4">
- <el-form-item label="已付" prop="sourceCode">
- <el-input
- v-model="form.sourceCode"
- readonly
- @click.native="handleSelectAccount(4)"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="发票金额" prop="amount">
- <el-input
- type="number"
- v-model="form.amount"
- :precision="2"
- :controls="false"
- style="width: 100%"
- :disabled="Number(ifRedReversalInvoice) === 1"
- :min="0"
- >
- <template slot="append">
- <span>元</span>
- </template>
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="发票号" prop="invoiceNos">
- <el-input
- v-model="form.invoiceNos"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="开票日期">
- <el-date-picker
- style="width: 100%"
- v-model="form.expectInvoiceDate"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="申请部门" prop="applyDeptId">
- <ele-tree-select
- clearable
- :data="deptTreeList"
- v-model="form.applyDeptId"
- valueKey="id"
- labelKey="name"
- placeholder="请选择"
- @change="changeDeptInfo"
- default-expand-all
- />
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="申请人" prop="applyUserId">
- <personSelect
- ref="directorRef"
- v-model="form.applyUserId"
- @selfChange="changeUserInfo"
- />
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="发票种类" prop="category">
- <el-select
- v-model="form.category"
- clearable
- style="width: 100%"
- >
- <el-option label="增值税专用发票" :value="1"></el-option>
- <el-option label="增值税普通发票" :value="2"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item prop="files" label="发票附件">
- <fileMain v-model="form.files"></fileMain>
- </el-form-item>
- </el-col>
- </el-row>
- <headerTitle title="发票信息"></headerTitle>
- <el-row :gutter="12">
- <el-col :span="12">
- <el-form-item label="购买方名称" prop="companyName">
- <el-input
- v-model="form.companyName"
- placeholder="请输入"
- v-if="enterprisePage.length <= 1 || form.type == 1"
- />
- <el-select
- v-if="enterprisePage.length > 1 && form.type == 2"
- style="width: 100%"
- v-model="form.companyName"
- placeholder="请选择"
- @change="enterpriseChange"
- >
- <el-option
- v-for="item in enterprisePage"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="统一社会信用代码"
- prop="companyUsc"
- class="form_item_label"
- >
- <el-input v-model="form.companyUsc"></el-input>
- </el-form-item>
- <el-form-item label="联系人" prop="companyContactName">
- <el-input v-model="form.companyContactName"></el-input>
- </el-form-item>
- <el-form-item label="电话" prop="companyTel">
- <el-input v-model="form.companyTel"></el-input>
- </el-form-item>
- <el-form-item label="银行账号" prop="companyBankAccount">
- <el-input v-model="form.companyBankAccount"></el-input>
- </el-form-item>
- <el-form-item label="开户行" prop="companyBankBranchNo">
- <el-input v-model="form.companyBankBranchNo"></el-input>
- </el-form-item>
-
- <el-form-item label="地址" prop="companyAddress">
- <el-input v-model="form.companyAddress"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="销售方名称" prop="receiverName">
- <el-input
- v-model="form.receiverName"
- placeholder="请输入"
- v-if="enterprisePage.length <= 1 || form.type == 2"
- />
- <el-select
- v-if="enterprisePage.length > 1 && form.type == 1"
- style="width: 100%"
- v-model="form.receiverName"
- placeholder="请选择"
- @change="enterpriseChange"
- >
- <el-option
- v-for="item in enterprisePage"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="统一社会信用代码"
- prop="salesCompanyUsc"
- class="form_item_label"
- >
- <el-input v-model="form.salesCompanyUsc"></el-input>
- </el-form-item>
- <el-form-item label="联系人" prop="receiverContactName">
- <el-input v-model="form.receiverContactName"></el-input>
- </el-form-item>
- <el-form-item label="电话" prop="receiverTel">
- <el-input v-model="form.receiverTel"></el-input>
- </el-form-item>
- <el-form-item label="银行账号" prop="salesCompanyBankAccount">
- <el-input v-model="form.salesCompanyBankAccount"></el-input>
- </el-form-item>
- <el-form-item label="开户行" prop="salesCompanyBankBranchNo">
- <el-input v-model="form.salesCompanyBankBranchNo"></el-input>
- </el-form-item>
-
- <el-form-item label="地址" prop="receiverAddress">
- <el-input v-model="form.receiverAddress"></el-input>
- </el-form-item>
- <!-- <el-form-item prop="files" label="发票附件">
- <fileMain v-model="form.files"></fileMain>
- </el-form-item> -->
- </el-col>
- </el-row>
-
- <div v-if="form.sourceType != 99" class="payinfo" style="margin-top: 20px;">
- <headerTitle title="来源清单"></headerTitle>
- <!-- <el-form ref="form" :model="tableForm"> -->
- <ele-pro-table
- ref="table"
- :needPage="false"
- :columns="columns"
- :datasource="form.relatedList"
- row-key="id"
- class="time-form"
- >
- <template v-slot:toolbar>
- <!-- <span>已开票金额:{{ totalInvoiceAmount }}</span> -->
- </template>
- <template v-slot:planPaymentAmount="scope">
- <el-form-item
- style="width: 100%;"
- label-width="0"
- :prop="'relatedList.' + scope.$index + '.planPaymentAmount'"
- :rules="[
- {
- required: false,
- message: '请输入计划金额',
- trigger: 'blur'
- }
- ]"
- >
- <span v-if="dialogType === 'view'">{{ scope.row.planPaymentAmount }}</span>
- <el-input v-else v-model="scope.row.planPaymentAmount" type="number" @input="updatePlanPaymentAmount(scope.row)"></el-input>
- </el-form-item>
- </template>
- <template v-slot:invoiceAmount="scope">
- <el-form-item
- style="width: 100%;"
- label-width="0"
- :prop="'relatedList.' + scope.$index + '.invoiceAmount'"
- :rules="[
- {
- required: false,
- message: '请输入开票金额',
- trigger: 'blur'
- },
- {
- required: false,
- validator: (rule, value, callback) => {
- if (value === undefined || value === null || value === '') {
- callback('请输入开票金额');
- } else if (parseFloat(value) <= 0 || parseFloat(value) > parseFloat(scope.row.unInvoiceAmount)) {
- callback('开票金额必须大于0且不超过未开票金额');
- } else {
- callback();
- }
- },
- trigger: 'blur'
- }
- ]"
- >
- <span v-if="dialogType === 'view'">{{ scope.row.invoiceAmount }}</span>
- <el-input v-else v-model="scope.row.invoiceAmount" type="number" @input="updateInvoiceAmount(scope.row)"></el-input>
- </el-form-item>
- </template>
- </ele-pro-table>
- <!-- </el-form> -->
- </div>
- </el-form>
- <div style="margin-top: 20px;">
- <headerTitle title="关联物品清单信息"></headerTitle>
- <table-info-new
- v-if="form.sourceType != 99"
- :dialogType="dialogType"
- :contactData="contactData"
- ref="tableInfoRef"
- :invoiceAmount="form.invoiceAmount"
- :ifRedReversalInvoice="ifRedReversalInvoice"
- @invoiceAmountChange="invoiceAmountChange"
- ></table-info-new>
- <table-info
- v-else
- :dialogType="dialogType"
- :contactData="contactData"
- ref="tableInfoNoOrderRef"
- @setPrice="setPrice"
- ></table-info>
- </div>
- <div slot="footer">
- <el-button type="primary" v-click-once @click="handleSave(0)">保存</el-button>
- <el-button
- type="primary"
- v-if="isNeed_process_is_close"
- v-click-once
- @click="handleSave(1)"
- >提交</el-button
- >
- <el-button v-click-once @click="cancel">返回</el-button>
- </div>
- <process-submit-dialog
- api-fun-name="fininvoiceapplyStatusAPI"
- :processSubmitDialogFlag.sync="processSubmitDialogFlag"
- v-if="processSubmitDialogFlag"
- ref="processSubmitDialogRef"
- @reload="reload"
- ></process-submit-dialog>
- <!--对账单-->
- <account-statement-dialog
- ref="accountStatementDialogRef"
- :form="form"
- v-if="accountStatementDialogFlag"
- :accountstatement-dialog-flag.sync="accountStatementDialogFlag"
- @getAccountData="getAccountData"
- :contactData="contactData"
- :type="form.type"
- :multiple="true"
- >
- </account-statement-dialog>
- <!--采购订单-->
- <purchasinOrderListDialog
- ref="orderListDialogRef"
- @changeParent="changeOrder"
- ></purchasinOrderListDialog>
- <!--销售订单-->
- <saleOrderListDialog
- :isAll="true"
- ref="saleOrderListDialogref"
- @changeParent="changeOrder"
- ></saleOrderListDialog>
- <contractListDialog
- ref="selectContractRef"
- @changeParent="changeContract"
- :type="form.type"
- :multiple="true"
- ></contractListDialog>
- <!-- 应收 -->
- <receivableDialog
- ref="receivableRef"
- @receivableDone="receivableDone"
- v-if="receivableDialogFlag"
- :receivableDialogFlag.sync="receivableDialogFlag"
- :multiple="true"
- ></receivableDialog>
- <!-- 应付 -->
- <paymentListDialog
- ref="receivableRef1"
- @receivableDone="receivableDone"
- v-if="paymentListDialogFlag"
- :paymentListDialogFlag.sync="paymentListDialogFlag"
- ></paymentListDialog>
- <!-- 收款计划列表 -->
- <collectionPlanDialog
- ref="collectionPlanDialogRef"
- v-if="collectionPlanDialogFlag"
- :collectionPlanDialogFlag.sync="collectionPlanDialogFlag"
- @getPlanData="getPlanData"
- :type="form.type"
- ></collectionPlanDialog>
- </ele-modal>
- </template>
- <script>
- import personSelect from '@/components/CommomSelect/person-select.vue';
- import { listOrganizations } from '@/api/system/organization';
- import { mapGetters } from 'vuex';
- import fileUpload from '@/components/upload/fileUpload.vue';
- import tableInfoNew from './tableInfoNew.vue';
- import tableInfo from './tableInfo.vue';
- import { getTreeByPid } from '@/api/classifyManage';
- import {
- invoiceApplyInfoV2API,
- invoiceApplyCreateAPI,
- invoiceApplyUpdateV2API,
- initInvoiceByStatementId,
- splitInitAPI
- } from '@/api/financialManage/invoiceManage';
- import { getpurchaseorderDetail } from '@/api/purchasingManage/purchaseOrder';
- import { getSaleOrderDetail } from '@/api/saleManage/saleorder';
- import { getDetail } from '@/api/contractManage/contractBook';
- import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
- import accountStatementDialog from './accountstatementDialog.vue';
- import contractListDialog from '@/views/saleManage/saleOrder/components/contractListDialog.vue';
- import purchasinOrderListDialog from '@/views/purchasingManage/purchaseOrder/invoice/components/orderListDialog.vue'; //采购订单
- import saleOrderListDialog from '@/views/saleManage/saleOrder/invoice/components/orderListDialog.vue'; //销售订单
- import { enterprisePage } from '@/api/contractManage/contractBook';
- import { contactDetail } from '@/api/saleManage/contact';
- // import fileMain from '@/components/addDoc/index.vue';
- import receivableDialog from '@/views/financialManage/receivableManage/components/receivableDialog.vue'; //应收
- import paymentListDialog from '@/views/financialManage/payableManage/components/paymentListDialog.vue'; //应付
- import collectionPlanDialog from './collectionPlanDialog.vue' // 收款计划列表
- import { updateContractStatus } from '@/api/contractManage/contractBook';
- import { getMergeInvoiceInfoAPI } from '@/api/financialManage/payAndCollectPlan';
- import { paymentTypeOp } from '@/enum/dict';
- import inventoryTable from '@/BIZComponents/inventoryTable.vue';
-
- const defForm = {
- accountingSubjectCode: '',
- accountingSubjectId: '',
- accountingSubjectName: '',
- amount: undefined,
- contactId: '',
- companyAddress: '',
- companyBankAccount: '',
- companyUsc: '',
- expectInvoiceDate: '',
- companyBankBranchNo: '',
- companyName: '',
- receiverAddress: '',
- receiverName: '',
- receiverTel: '',
- receiverContactName: '',
- companyTel: '',
- companyContactName: '',
- detailList: [],
- drawerId: '',
- drawerName: '',
- files: [],
- invoiceStatus: '',
- link: [],
- remark: '',
- settlementAccountId: '',
- settlementAccountName: '',
- invoiceAmount: 0,
- getAccountData: '',
- sourceId: '',
- sourceCode: '',
- salesCompanyUsc: '',
- salesCompanyBankBranchNo: '',
- salesCompanyBankAccount: '',
- category: 1,
- relatedList: [],
- productMap: {}
- };
- export default {
- name: 'add-or-edit-dialog',
- components: {
- processSubmitDialog,
- fileUpload,
- personSelect,
- tableInfoNew,
- accountStatementDialog,
- contractListDialog,
- purchasinOrderListDialog,
- saleOrderListDialog,
- // fileMain,
- receivableDialog,
- paymentListDialog,
- collectionPlanDialog,
- tableInfo,
- inventoryTable
- },
- props: {
- isEditType: {
- type: Boolean,
- default: true
- },
- addOrEditDialogFlag: {
- type: Boolean,
- default: false
- },
- contactData: {
- type: Object,
- default: () => {
- return {};
- }
- }
- },
- provide() {
- return {
- invoiceType: () => this.form.type
- };
- },
- computed: {
- ...mapGetters(['user']),
- isAccountstatement() {
- return Array.isArray(this.form?.relatedList) && this.form?.relatedList?.[0]?.sourceType == 1;
- },
- sourceTypeOp() {
- if(this.$route.path.includes('invoiceManage') && !this.isAccountstatement) {
- return [{
- label: '其他无订单无合同',
- value: 99
- }];
- }
- return this.form.type == 1 ? [
- {
- label: '对账单',
- value: 1
- },
- {
- label: '合同',
- value: 2
- },
- {
- label: '订单',
- value: 3
- },
- {
- label: '已收',
- value: 5
- },
- {
- label: '其他无订单无合同',
- value: 99
- }
- ] : [
- {
- label: '对账单',
- value: 1
- },
- {
- label: '合同',
- value: 2
- },
- {
- label: '订单',
- value: 3
- },
- {
- label: '已付',
- value: 4
- },
- {
- label: '其他无订单无合同',
- value: 99
- }
- ]
- },
- isDisabledType() {
- return this.isAccountstatement;
- },
- columns() {
- return [
- {
- width: 45,
- type: 'index',
- columnKey: 'index',
- align: 'center',
- fixed: 'left'
- },
- {
- minWidth: 150,
- prop: 'sourceCode',
- label: '来源编码',
- align: 'center'
- },
- // {
- // width: 150,
- // prop: 'relatedOrderNo',
- // label: '来源编号',
- // align: 'center'
- // },
- {
- minWidth: 120,
- prop: 'sourceType',
- label: '来源类型',
- align: 'center',
- formatter: (row) => {
- return this.sourceTypeList.find(item => item.value == row.sourceType)?.label || ''
- }
- },
- // {
- // width: 170,
- // prop: 'planPaymentAmount',
- // label: this.form.type == 1 ? '计划收款金额' : '计划付款金额',
- // align: 'center',
- // slot: 'planPaymentAmount'
- // },
- {
- minWidth: 150,
- prop: 'unInvoiceAmount',
- label: '未开票金额',
- align: 'center'
- },
- {
- minWidth: 150,
- prop: 'invoicedAmount',
- label: '已开票金额',
- align: 'center'
- },
- {
- minWidth: 160,
- prop: 'invoiceAmount',
- label: '本次开票金额',
- align: 'center',
- // slot: 'invoiceAmount',
- fixed: 'right'
- }
- ];
- },
- },
- data() {
- return {
- cacheKeyUrl: 'eom-202608251804-inventoryTable',
- // 1-对账单,2-合同,3-订单,4-应付,5-应收,99-其他无订单无合同
- sourceTypeList: [
- {
- label: '对账单',
- value: 1
- },
- {
- label: '合同',
- value: 2
- },
- {
- label: '订单',
- value: 3
- },
- {
- label: '已付',
- value: 4
- },
- {
- label: '已收',
- value: 5
- },
- {
- label: '其他无订单无合同',
- value: 99
- }
- ],
-
- businessId: '',
- paymentTypeOp,
- fullscreen: false,
- receivableDialogFlag: false,
- dialogType: '',
- title: '',
- isOtherSourceFlag: false,
- processSubmitDialogFlag: false,
- collectionPlanDialogFlag: false,
- paymentListDialogFlag: false,
- accountStatementDialogFlag: false,
- enterprisePage: [],
- totalInvoiceAmount: 0,
- // 是否冲红发票:1-是(不允许编辑金额),0-否(允许编辑金额)
- ifRedReversalInvoice: 0,
- form: {
- applyDeptId: '',
- applyDeptName: '',
- applyUserId: '',
- applyUserName: '',
- type: 1,
- id: '',
- ...defForm
- },
- feeTypeList: [],
- accountingSubjectList: [],
- deptList: [],
- deptTreeList: [],
- rules: {
- applyDeptId: { required: true, message: '请选择', trigger: 'change' },
- applyUserId: { required: true, message: '请选择', trigger: 'change' },
- accountingSubjectId: {
- required: true,
- message: '请选择',
- trigger: 'change'
- },
- feeTypeId: { required: true, message: '请选择', trigger: 'change' },
- // amount: { required: true, message: '请输入', trigger: 'blur' },
- companyName: { required: true, message: '请输入', trigger: 'blur' },
- type: { required: true, message: '请选择', trigger: 'change' },
- sourceType: { required: true, message: '请选择', trigger: 'change' }
- },
- };
- },
- created() {
- this.getClassifyList(24, 'accountingSubjectList');
- this.getDeptList();
- },
- methods: {
- //从发票管理新增发票初始化
- async init(row = {}, type, splitData = null) {
- // 重置冲红标记,避免上次编辑状态污染本次
- this.ifRedReversalInvoice = 0;
- this.businessId = type == 'reissue' ? '' : row.id || '';
- this.title =
- type == 'add'
- ? '新增'
- : type == 'reissue'
- ? '开发票'
- : '修改';
- console.log('row', row, type);
- this.dialogType = type;
- // 修改时,先用列表行带过来的 ifRedReversalInvoice 占位(详情接口目前未返回该字段),
- // 后续 getInfo() 若接口补上该字段,会被详情返回值覆盖
- if (type === 'update') {
- this.ifRedReversalInvoice = Number(row?.ifRedReversalInvoice) || 0;
- }
- if (type == 'add' || type == 'reissue') {
- this.form.applyDeptId = this.user.info.groupId;
- this.form.applyDeptName = this.user.info.groupName;
- this.form.applyUserId = this.user.info.userId;
- this.form.applyUserName = this.user.info.name;
- enterprisePage({
- pageNum: 1,
- size: 200
- }).then((res) => {
- this.enterprisePage = [];
- this.enterprisePage.push(...res.list);
- this.enterpriseChange(this.enterprisePage[0]?.name);
- });
- // 开发票:根据总单ID拉取拆分初始化数据,预填到表单上
- if (type == 'reissue' && row.id) {
- try {
- // 优先使用调用方传入的 splitData(handleReissue 已检查过接口),避免重复调用
- const data = splitData ?? (await splitInitAPI(row.id));
- data.type = Number(data.type);
- Object.keys(data || {}).forEach((k) => {
- this.$set(this.form, k, data[k]);
- });
- this.$nextTick(() => {
- if (this.form.sourceType == 99) {
- this.$refs.tableInfoNoOrderRef?.setValue(this.form);
- } else {
- this.$refs.tableInfoRef?.putValue(this.form);
- }
- });
- } catch (e) {
- console.error('splitInit failed:', e);
- return false;
- }
- }
- } else {
- await this.getInfo(row.id);
- }
- this.$nextTick(async () => {
- // await this.getUser List(this.form.applyDeptId);
- });
- return true;
- },
- updateInvoiceAmount(row) {
- // row.invoiceAmount = Number(row.invoiceAmount).toFixed(2);
- this.form.amount = this.form.relatedList.reduce((pre, cur) => {
- return pre + Number(cur.invoiceAmount);
- }, 0);
- // this.$refs.tableInfoRef.setSinglePrice(row, this.form.relatedList);
- },
- //来源类型
- async handleSelectAccount(val) {
- if (val == 6 || val == 7) {
- this.collectionPlanDialogFlag = true;
- }
- if (val == 1) {
- this.accountStatementDialogFlag = true;
- }
- if (val == 2) {
- this.$refs.selectContractRef.open({}, 1, 1);
- }
- if (val == 3 && this.form.type == 2) {
- this.$refs.orderListDialogRef.open({}, 1, true);
- }
- if (val == 3 && this.form.type == 1) {
- this.$refs.saleOrderListDialogref.open({}, 1, true);
- }
- if (val == 5) {
- this.receivableDialogFlag = true;
- }
- if (val == 4) {
- this.paymentListDialogFlag = true;
- }
- },
- //合同回调
- async changeContract(data) {
- console.log('changeOrder~~~', data);
- // 子组件在单选/多选路径下 emit 的形态不一致,归一化为数组
- const list = Array.isArray(data) ? data : data ? [data] : [];
- if (!list.length) return;
- const tempIds = list.map((item) => item.id);
- const tempNames = list.map((item) => item.contractNo);
- this.getPlanData(tempIds, tempNames);
- // const res = await getDetail(data.id);
- // this.$set(this.form, 'sourceId', data.id);
- // this.$set(this.form, 'sourceCode', data.contractNo);
- // this.$set(
- // this.form,
- // 'amount',
- // res.contractVO?.discountTotalPrice - res.contractVO?.invoiceAmount
- // );
- // this.$set(this.form, 'invoiceAmount', res.contractVO?.invoiceAmount);
- // this.getContactDetail(
- // this.form.type == 2
- // ? res.contractVO?.partbId
- // : res.contractVO?.partaId,
- // res.contractVO
- // );
- // res.productList.forEach((item) => {
- // item.singlePrice =
- // (item.discountSinglePrice &&
- // Number(item.discountSinglePrice).toFixed(2)) ||
- // item.singlePrice;
- // item.totalPrice =
- // (item.discountTotalPrice &&
- // Number(item.discountTotalPrice).toFixed(2)) ||
- // item.totalPrice;
- // item.typeName = this.form.type == 1 ? '销售合同' : '采购合同';
- // item.type = this.form.type == 1 ? '101' : '102';
- // });
- // this.$nextTick(() => {
- // this.$refs.table.setValue(res.productList);
- // });
- this.$forceUpdate();
- },
- async getContactDetail(id, data) {
- let contactValue = {};
- if (id) {
- this.form.contactId = id;
- contactValue = await contactDetail(id);
- }
- const { base, other, bankList, linkList } = contactValue;
- if (this.form.type == 1) {
- this.form.companyName = base.name;
- this.form.companyUsc = base.unifiedSocialCreditCode;
- this.form.companyAddress = other?.addressName + other?.address;
- this.form.companyTel =
- data.partbTel ||
- linkList.find((item) => item.ifChief == 1)?.mobilePhone;
- this.form.companyBankAccount = bankList[0]?.accountNo;
- this.form.companyBankBranchNo = bankList[0]?.bankName;
- this.enterpriseChange(data.partbName);
- } else {
- this.form.receiverName = base.name;
- this.form.receiverAddress = base?.addressName + other?.address;
- this.form.receiverTel =
- data.partaTel ||
- linkList.find((item) => item.ifChief == 1)?.mobilePhone;
- this.form.salesCompanyUsc = base.unifiedSocialCreditCode;
- this.form.salesCompanyBankAccount = bankList[0]?.accountNo;
- this.form.salesCompanyBankBranchNo = bankList[0]?.bankName;
- this.enterpriseChange(data.partaName);
- }
- },
- setCompanyBankAccount(base) {
- console.log('base~~~', base);
- if (this.form.type == 1) {
- console.log('base~~~111', base.companyName);
- this.form.companyName = base.companyName;
- this.form.companyUsc = base.companyUsc;
- this.form.companyAddress = base.companyAddress;
- this.form.companyTel = base.companyTel;
- this.form.companyContactName = base.companyContactName;
- this.form.companyBankAccount = base.companyBankAccount;
- this.form.companyBankBranchNo = base.companyBankBranchNo;
- // this.enterpriseChange(base.companyName);
- } else {
- this.form.receiverName = base.receiverName;
- this.form.receiverAddress = base.receiverAddress;
- this.form.receiverTel = base.receiverTel;
- this.form.receiverContactName = base.receiverContactName;
- this.form.salesCompanyUsc = base.salesCompanyUsc;
- this.form.salesCompanyBankAccount = base.salesCompanyBankAccount;
- this.form.salesCompanyBankBranchNo = base.salesCompanyBankBranchNo;
- // this.enterpriseChange(base.receiverName);
- }
- },
- //订单回调
- async changeOrder(data) {
- console.log('changeOrder~~~', data);
- // 子组件在单选/多选路径下 emit 的形态不一致,归一化为数组
- const list = Array.isArray(data) ? data : data ? [data] : [];
- if (!list.length) return;
- const tempIds = list.map((item) => item.id);
- const tempNames = list.map((item) => item.orderNo);
- this.getPlanData(tempIds, tempNames);
- // this.$set(this.form, 'sourceId', data.id);
- // this.$set(this.form, 'sourceCode', data.orderNo);
- // let res = {};
- // if (this.form.type == 2) {
- // res = await getpurchaseorderDetail(data.id);
- // } else {
- // res = await getSaleOrderDetail(data.id);
- // }
- // this.$set(this.form, 'amount', res.payAmount - res.invoiceAmount);
- // this.$set(this.form, 'invoiceAmount', res.invoiceAmount);
- // this.getContactDetail(
- // this.form.type == 2 ? res.partbId : res.partaId,
- // res
- // );
- // res.productList.forEach((item) => {
- // item.singlePrice =
- // (item.discountSinglePrice &&
- // Number(item.discountSinglePrice).toFixed(2)) ||
- // item.singlePrice;
- // item.totalPrice =
- // (item.discountTotalPrice &&
- // Number(item.discountTotalPrice).toFixed(2)) ||
- // item.totalPrice;
- // item.typeName = this.form.type == 1 ? '销售订单' : '采购订单';
- // item.type = this.form.type == 1 ? '201' : '202';
- // });
- // this.$nextTick(() => {
- // this.$refs.table.setValue(res.productList);
- // });
- // this.$forceUpdate();
- // console.log(res);
- },
- //应收应付回调
- async payableManage(data) {
- const { row, form } = data;
- console.log(data);
- this.$set(this.form, 'sourceId', row.id);
- this.$set(this.form, 'sourceCode', row.code);
- // this.$set(
- // this.form,
- // 'amount',
- // row.receivedTotalPrice || row.paidTotalPrice
- // );
- // this.$set(this.form, 'invoiceAmount', row.invoiceAmount);
- // this.getContactDetail(form.contactId, {});
- },
- receivableDone(data) {
- // this.$set(this.form, 'type', Number(data.type));
- // this.$set(this.form, 'sourceType', data.sourceType);
- // this.payableManage(data.data);
- const tempIds = data.map((item) => item.detailId);
- const tempNames = data.map((item) => item.detailCode);
- console.log(data)
- this.getPlanData(tempIds, tempNames)
- },
- // 收/付款计划回调
- async getPlanData(tempIds, tempNames) {
- console.log('getPlanDatadata~~~', tempIds, tempNames);
- // let tempIds = [];
- // let tempNames = [];
- // if(this.form.sourceType == 4 || this.form.sourceType == 5) {
- // tempIds = data.map((item) => item.receiptPlanOrderId);
- // tempNames = data.map((item) => item.code);
- // } else {
- // tempIds = data.map((item) => item.id);
- // tempNames = data.map((item) => item.statementNo);
- // }
- this.form.sourceCode = tempNames.join(',');
-
- const res = await initInvoiceByStatementId(
- {
- sourceIds: tempIds,
- sourceType: this.form.sourceType,
- type: this.form.type
- }
- )
- res.relatedList = [res.relatedVO];
- res.relatedList = res.relatedList.map((item) => {
- item.invoiceAmount = item.unInvoiceAmount;
- return item
- })
- this.form.sourceId = res.sourceId;
- this.form.relatedList = res.relatedList;
- this.form.productMap = res.productMap;
- const amount = this.form.relatedList.reduce((prev, cur) => prev +
- +cur.invoiceAmount, 0) || 0;
- this.form.amount = amount;
- console.log('form~~~', this.form);
- this.setCompanyBankAccount(res)
- // this.form.detailList = res.detailList;
- this.$nextTick(() => {
- this.$refs.tableInfoRef.setValue(this.form);
- })
- console.log('getPlanData~~~', res);
- // console.log('detailList~~~', res.detailList);
- },
- //对账单回调
- async getAccountData(tableInfo) {
- // let res = {};
- // if (this.form.type == 2) {
- // res = await getpurchaseorderDetail(tableInfo?.children?.orderId);
- // } else {
- // res = await getSaleOrderDetail(tableInfo?.children?.orderId);
- // }
- // this.getContactDetail(tableInfo.contactId, res);
- // this.$nextTick(() => {
- // this.$set(this.form, 'sourceId', tableInfo?.children?.id);
- // this.$set(this.form, 'sourceCode', tableInfo?.statementNo);
- // this.$set(
- // this.form,
- // 'invoiceAmount',
- // tableInfo?.children?.invoiceAmount
- // );
- // this.$refs.table.getAccountData(tableInfo);
- // });
- const tempIds = tableInfo.map((item) => item.id);
- const tempNames = tableInfo.map((item) => item.statementNo);
- this.getPlanData(tempIds, tempNames);
- console.log(tableInfo);
- // this.getPlanData(tableInfo)
- },
- //订单、合同列表
- async createInvoice1(data, type, sourceType) {
- console.log('createInvoice1~~~', data);
- this.$set(this.form, 'type', Number(type));
- this.$set(this.form, 'sourceType', sourceType);
- // this.$set(this.form, 'sourceCode', tempIds);
- await this.init({}, 'add');
- let tempIds = []
- let tempNames = []
- if(sourceType == 5) {
- tempIds = data.map((item) => item.detailId);
- tempNames = data.map((item) => item.detailCode);
- } else {
- tempIds = data.map((item) => item.id);
- tempNames = data.map((item) => item.statementNo);
- }
-
- this.getPlanData(tempIds, tempNames);
- // if (sourceType == 2) {
- // this.changeContract(data);
- // }
- // if (sourceType == 3) {
- // this.changeOrder(data);
- // }
- // if (sourceType == 4 || sourceType == 5) {
- // this.payableManage(data);
- // }
- },
- //对账单列表
- createInvoice(
- row = {},
- invoiceType,
- tableInfo = {},
- isOtherSourceFlag = true,
- dialogType = 'add'
- ) {
- this.dialogType = dialogType;
- this.init(row, dialogType);
- this.form.type = tableInfo.type;
- this.$set(this.form, 'sourceType', invoiceType);
- // this.form.sourceType=invoiceType
- setTimeout(() => {
- this.getAccountData(tableInfo);
- }, 400);
- },
- //获取详情
- async getInfo(id) {
- this.form = (await invoiceApplyInfoV2API(id)) || {};
- //来源清单没有数据时给空数组,避免表格因空行报错
- this.form.relatedList = this.form.relatedVO ? [this.form.relatedVO] : [];
- this.form.type = Number(this.form.type);
- if(this.form.ifRedReversalInvoice){
- // 冲红发票标记:1 是 / 0 否。仅在 1 时禁止编辑金额相关字段
- this.ifRedReversalInvoice = Number(this.form.ifRedReversalInvoice);
- }
- this.$nextTick(() => {
- // 根据来源类型设置数据源:99 用 tableInfo(setValue),非 99 用 tableInfoNew(putValue)
- if (this.form.sourceType == 99) {
- this.$refs.tableInfoNoOrderRef?.setValue(this.form);
- } else {
- this.$refs.tableInfoRef?.putValue(this.form);
- }
- })
- },
- //获取分类管理中的数据
- async getClassifyList(id, listName) {
- let res = await getTreeByPid(id);
- this[listName] = res.data;
- },
- //获取费用类别选中数据
- changeFeeTypeInfo(val) {
- if (!val) {
- this.form.feeTypeName = '';
- this.form.feeTypeCode = '';
- }
- let data = this.$refs.feeTypeTree?.$refs?.tree?.getCurrentNode() || {};
- this.form.feeTypeName = data.name;
- this.form.feeTypeCode = data.code;
- },
- //获取会计科目选中数据
- changeSubjectInfo(val) {
- if (!val) return (this.form.accountingSubjectName = '');
- let data = this.$refs.treeSelect?.$refs?.tree?.getCurrentNode() || {};
- this.form.accountingSubjectName = data.name;
- },
- // 获取部门数据
- getDeptList() {
- listOrganizations().then((list) => {
- this.deptList = list;
- this.deptTreeList = this.$util.toTreeData({
- data: list,
- idField: 'id',
- parentIdField: 'parentId'
- });
- });
- },
- // 选择负责人部门
- changeDeptInfo(id) {
- const info = this.deptList.find((e) => e.id == id) || {};
- this.form.applyDeptName = info.name;
- this.form.applyUserId = '';
- this.form.applyUserName = '';
- this.getUserList(id);
- },
- // 获取人员数据
- getUserList(deptId) {
- if (deptId) {
- this.$refs.directorRef.getList({ deptId });
- }
- },
- //选择人员数据
- changeUserInfo(val, info) {
- this.form.applyUserName = info.name;
- },
- //
- handleSelType(val) {
- console.log('val~~~', val);
- this.form = Object.assign({}, this.form, defForm);
- if (val == 'isType') {
- this.$set(this.form, 'sourceType', '');
- }
- if(val == 'sourceType') {
- this.$nextTick(() => {
- this.$refs.tableInfoNoOrderRef?.setValue(this.form);
- })
- }
- this.form.relatedList = [];
- this.$refs.tableInfoRef?.clearTable();
- this.$refs.tableInfoNoOrderRef?.clearTable();
- this.enterpriseChange(this.enterprisePage[0]?.name);
- },
- setPrice(val) {
- this.form.amount = val;
- },
- //系统公司信息
- enterpriseChange(name) {
- let data = this.enterprisePage.find((item) => item.name == name);
- if (this.form.type == 2) {
- this.form.companyName = data?.name;
- this.form.companyUsc = data?.unifiedSocialCreditCode;
- this.form.companyAddress = data?.address;
- this.form.companyTel = data?.tel;
- this.form.companyContactName = data?.contact;
- } else {
- this.form.receiverName = data?.name;
- this.form.receiverAddress = data?.address;
- this.form.salesCompanyUsc = data?.unifiedSocialCreditCode;
- this.form.receiverTel = data?.tel;
- this.form.receiverContactName = data?.contact;
- }
- this.$forceUpdate();
- },
- invoiceAmountChange(item, sum) {
- console.log('item~~~', item, sum);
- const sameKeyItems = this.form.relatedList.filter((d) => d.sourceCode === item.key);
- console.log('sameKeyItems~~~', sameKeyItems);
- let remainingTotal = sum;
- const lastIndex = sameKeyItems.length - 1;
- // 从上到下分配 sum 给相同订单号的数据,多余数量放在最后一个
- // paymentItem.unInvoiceAmount 直接使用接口返回值,不再被关联物品清单覆盖
- sameKeyItems.forEach((paymentItem, index) => {
- if (remainingTotal <= 0) {
- paymentItem.invoiceAmount = 0;
- } else if (index === lastIndex) {
- // 最后一个分配所有剩余
- paymentItem.invoiceAmount = remainingTotal.toFixed(2);
- } else {
- const unInvoiceAmount = parseFloat(paymentItem.unInvoiceAmount) || 0;
- const allocateAmount = Math.min(remainingTotal, unInvoiceAmount);
- paymentItem.invoiceAmount = allocateAmount.toFixed(2);
- remainingTotal -= allocateAmount;
- }
- });
- this.updateInvoiceAmount();
- console.log('分配完成后的 sameKeyItems:', sameKeyItems);
- },
- updatePlanPaymentAmount(item) {
- console.log('item~~~', item);
- // unInvoiceAmount 不再本地计算,直接使用接口返回的值
- // 更新关联物品清单中的 defaultAmountTotalPrice
- const tableInfoRef = this.$refs.tableInfoRef;
- if (tableInfoRef && item.sourceCode) {
- const key = item.sourceCode;
- const newTotal = this.form.relatedList
- .filter((d) => d.sourceCode === key)
- .reduce((sum, d) => sum + (parseFloat(d.unInvoiceAmount) || 0), 0);
- tableInfoRef.tableForm.detailList.forEach((detail) => {
- if (detail.key === key) {
- this.$set(detail, 'defaultAmountTotalPrice', newTotal.toFixed(2));
- }
- });
- }
- },
- getValidate() {
- console.log(this.form);
- let arr = [
- new Promise((resolve, reject) => {
- this.$refs.form.validate((valid) => {
- if (!valid) {
- reject(false);
- } else {
- resolve(true);
- }
- });
- })
- ];
-
- // this.$refs.tableInfoRef.tableForm.detailList.forEach((item, index) => {
- // arr.push(
- // new Promise((resolve, reject) => {
- // this.$refs.tableInfoRef.$ref['form'+index].validateForm((valid) => {
- // if (!valid) {
- // reject(false);
- // } else {
- // resolve(true);
- // }
- // });
- // })
- // );
- // })
- return Promise.all(arr);
- },
- async handleSave(flag) {
- // this.$refs.form.validate(async (valid) => {
- try {
- const valid = await this.getValidate();
- console.log('valid~~~',valid);
- // if (!valid) return this.$message.warning('有必填项未填,请检查');
-
- // if (this.form.sourceType != 4 || this.form.sourceType != 5) {
- // tableData = await this.$refs.table.getTableValidate();
- // }
- // // 校验表格数据
- // const tableValid = await new Promise((resolve) => {
- // this.$refs.table.validateForm((valid) => {
- // resolve(valid);
- // });
- // });
- // 根据来源类型选择对应表格:99 用 tableInfo(tableInfoNoOrderRef),非 99 用 tableInfoNew(tableInfoRef)
- const tableRef =
- this.form.sourceType == 99
- ? this.$refs.tableInfoNoOrderRef
- : this.$refs.tableInfoRef;
- const tableValid = await tableRef.getTableValidate();
- console.log('tableValid~~~',tableValid);
- // if (!tableValid) {
- // return;
- // }
- let tableData = tableRef.getTableData();
- // this.form.link = tableData.link;
- this.form.productMap = tableData;
- console.log('commitData~~~',this.form);
- const API =
- (this.dialogType == 'add' || this.dialogType == 'reissue')
- ? invoiceApplyCreateAPI
- : invoiceApplyUpdateV2API;
- const id = await API(this.form);
- if (this.form.sourceType == 2) {
- const idArr = this.form.sourceId?.split(',') || [];
- updateContractStatus(idArr);
- }
- if (flag) {
- await this.handleSub(id);
- return;
- }
- this.$message.success('操作成功');
- this.done();
- this.cancel();
- // });
- } catch (error) {
- // this.$message.warning('有必填项未填,请检查');
- }
- },
- //
- handleSave1(flag) {
- this.$refs.form.validate(async (valid) => {
- if (!valid) return this.$message.warning('有必填项未填,请检查');
- let tableData = {};
- if (this.form.sourceType != 4 || this.form.sourceType != 5) {
- tableData = await this.$refs.table.getTableValidate();
- }
- // 校验表格数据
- const tableValid = await new Promise((resolve) => {
- this.$refs.table.validateForm((valid) => {
- resolve(valid);
- });
- });
- if (!tableValid) {
- return;
- }
- this.form.link = tableData.link;
- this.form.detailList = tableData.detailList;
- const API =
- this.dialogType == 'add'
- ? invoiceApplySaveAPI
- : invoiceApplyUpdateV2API;
- const id = await API(this.form);
- if (this.form.sourceType == 2) {
- const idArr = this.form.sourceId?.split(',') || [];
- updateContractStatus(idArr);
- }
- if (flag) {
- await this.handleSub(id);
- return;
- }
- this.$message.success('操作成功');
- this.done();
- this.cancel();
- });
- },
- //提交-开启流程
- async handleSub(id = '') {
- let data = await invoiceApplyInfoV2API(this.businessId || id);
- this.processSubmitDialogFlag = true;
- let key =
- data.type == 1 ? 'fin_invoice_apply' : 'fin_invoice_receive_apply';
- this.$nextTick(() => {
- let params = {
- businessId: data.id,
- businessKey: key,
- formCreateUserId: data.createUserId,
- variables: {
- type: data.type,
- businessCode: data.orderNo,
- businessName: data.companyName,
- businessType: data.type == 1 ? '开票' : '收票'
- }
- // callBackMethodType : '1',
- // callBackMethod : 'proTargetPlanApproveApiImpl.updatePlanApprovalStatus',
- // pcHandle : '/bpm/handleTask/components/project-manage/plan-manage/submit.vue',
- // pcView : '/bpm/handleTask/components/project-manage/plan-manage/detailDialog.vue',
- // miniHandle : '',
- // miniView : '',
- };
- this.$refs.processSubmitDialogRef.init(params);
- });
- // try {
- // await invoiceApplySubmit({
- // businessId: id || this.form.id,
- // type: this.form.type
- // });
- // } catch (e) {
- // this.$message.error(e.message);
- // }
- },
- reload() {
- this.done();
- this.cancel();
- },
- //刷新主列表数据
- done() {
- this.$emit('reload');
- },
- //关闭弹窗
- cancel() {
- this.$emit('update:addOrEditDialogFlag', false);
- }
- }
- };
- </script>
- <style scoped lang="scss">
- .el-form-box .el-table .el-table__row .el-table__cell {
- padding: 10px 0;
- }
- .payinfo .el-form-item {
- margin-bottom: 0!important;
- }
- </style>
|