|
@@ -13,33 +13,37 @@
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<vxe-table border :footer-method="footerMethod2" show-overflow show-footer ref="baseTable"
|
|
<vxe-table border :footer-method="footerMethod2" show-overflow show-footer ref="baseTable"
|
|
|
:key="baseKey" class="vxe-table-element" :data="inputForm.financeInvoiceBaseDTOList"
|
|
:key="baseKey" class="vxe-table-element" :data="inputForm.financeInvoiceBaseDTOList"
|
|
|
- style="margin-left: 5em" @cell-click="" @edit-closed="" keep-source highlight-current-row
|
|
|
|
|
- :edit-rules="tableRules"
|
|
|
|
|
|
|
+ :style="{ marginLeft: isMobile ? '0' : '5em' }" @cell-click="" @edit-closed="" keep-source
|
|
|
|
|
+ highlight-current-row :edit-rules="tableRules"
|
|
|
:edit-config="{ trigger: 'click', mode: 'cell', showStatus: true, autoClear: true, icon: '-' }">
|
|
:edit-config="{ trigger: 'click', mode: 'cell', showStatus: true, autoClear: true, icon: '-' }">
|
|
|
<vxe-table-column field="programName" align="center" title="项目名称" :edit-render="{}"
|
|
<vxe-table-column field="programName" align="center" title="项目名称" :edit-render="{}"
|
|
|
- show-overflow="title">
|
|
|
|
|
|
|
+ show-overflow="title" :min-width="isMobile ? '200' : ''">
|
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
|
<el-input @focus="openProgramPageForm(scope.$rowIndex)" placeholder="请填写项目名称"
|
|
<el-input @focus="openProgramPageForm(scope.$rowIndex)" placeholder="请填写项目名称"
|
|
|
:readonly="true" v-model="scope.row.programName" />
|
|
:readonly="true" v-model="scope.row.programName" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="contractName" align="center" title="合同名称" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="contractName" align="center" title="合同名称" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '200' : ''">
|
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
|
<el-input @focus="openContractForm()" placeholder="请填写合同名称" :readonly="true"
|
|
<el-input @focus="openContractForm()" placeholder="请填写合同名称" :readonly="true"
|
|
|
v-model="scope.row.contractName" />
|
|
v-model="scope.row.contractName" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="programNo" align="center" title="项目编号" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="programNo" align="center" title="项目编号" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '200' : ''">
|
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
|
<el-input :readonly="true" placeholder="请填写项目编号" v-model="scope.row.programNo" />
|
|
<el-input :readonly="true" placeholder="请填写项目编号" v-model="scope.row.programNo" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="reportNo" align="center" title="报告号" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="reportNo" align="center" title="报告号" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '200' : ''">
|
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
|
<el-input :readonly="true" placeholder="请填写项目编号" v-model="scope.row.reportNo" />
|
|
<el-input :readonly="true" placeholder="请填写项目编号" v-model="scope.row.reportNo" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="account" align="center" title="发票金额(元)" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="account" align="center" title="发票金额(元)" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '200' : ''">
|
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
|
<el-input v-on:input="scope.row.account = scope.row.account.replace(/[^-0-9.]/g, '')
|
|
<el-input v-on:input="scope.row.account = scope.row.account.replace(/[^-0-9.]/g, '')
|
|
|
.replace(/^\./g, '')
|
|
.replace(/^\./g, '')
|
|
@@ -49,7 +53,8 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="isPreInvoice" align="center" title="是否预开票" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="isPreInvoice" align="center" title="是否预开票" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '100' : ''">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
{{ $dictUtils.getDictLabel('is_pre_invoice', scope.row.isPreInvoice, '') }}
|
|
{{ $dictUtils.getDictLabel('is_pre_invoice', scope.row.isPreInvoice, '') }}
|
|
|
</template>
|
|
</template>
|
|
@@ -64,7 +69,7 @@
|
|
|
<!-- <el-input v-model="scope.row.reportNo" placeholder="请填写报告号"/>-->
|
|
<!-- <el-input v-model="scope.row.reportNo" placeholder="请填写报告号"/>-->
|
|
|
<!-- </template>-->
|
|
<!-- </template>-->
|
|
|
<!-- </vxe-table-column>-->
|
|
<!-- </vxe-table-column>-->
|
|
|
- <vxe-table-column title="操作" align="center" width="100">
|
|
|
|
|
|
|
+ <vxe-table-column title="操作" align="center" width="100" :min-width="isMobile ? '120' : ''">
|
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
|
<el-button type="danger"
|
|
<el-button type="danger"
|
|
|
@click="removeEvent(scope.row, scope.$rowIndex, 'base')">删除</el-button>
|
|
@click="removeEvent(scope.row, scope.$rowIndex, 'base')">删除</el-button>
|
|
@@ -676,14 +681,16 @@
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<vxe-table border show-overflow show-footer ref="detailTable" :key="detailKey"
|
|
<vxe-table border show-overflow show-footer ref="detailTable" :key="detailKey"
|
|
|
class="vxe-table-element" :data="inputForm.financeInvoiceDetailDTOList"
|
|
class="vxe-table-element" :data="inputForm.financeInvoiceDetailDTOList"
|
|
|
- style="margin-left: 5em" highlight-current-row
|
|
|
|
|
|
|
+ :style="{ marginLeft: isMobile ? '0' : '5em' }" highlight-current-row
|
|
|
:edit-config="{ trigger: 'click', mode: 'cell', showStatus: true, autoClear: true }">
|
|
:edit-config="{ trigger: 'click', mode: 'cell', showStatus: true, autoClear: true }">
|
|
|
- <vxe-table-column field="code" title="发票代码" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="code" title="发票代码" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '120' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input :disabled="isDisabled" v-model="scope.row.code" placeholder="请填写发票代码" />
|
|
<el-input :disabled="isDisabled" v-model="scope.row.code" placeholder="请填写发票代码" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="number" title="发票号" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="number" title="发票号" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '200' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input :disabled="isDisabled" oninput="value=value.replace(/\D|^/g,'')"
|
|
<el-input :disabled="isDisabled" oninput="value=value.replace(/\D|^/g,'')"
|
|
|
placeholder="请填写发票号" maxlength="20"
|
|
placeholder="请填写发票号" maxlength="20"
|
|
@@ -692,7 +699,8 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="account" title="开票金额(元)" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="account" title="开票金额(元)" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '120' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input-number :disabled="isDisabled"
|
|
<el-input-number :disabled="isDisabled"
|
|
|
@blur="checkAccount(scope.row, scope.$rowIndex)" v-model="scope.row.account"
|
|
@blur="checkAccount(scope.row, scope.$rowIndex)" v-model="scope.row.account"
|
|
@@ -701,7 +709,8 @@
|
|
|
</el-input-number>
|
|
</el-input-number>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="rate" title="税率(%)" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="rate" title="税率(%)" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '120' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input-number :disabled="isDisabled"
|
|
<el-input-number :disabled="isDisabled"
|
|
|
@blur="checkRate(scope.row, scope.$rowIndex)" v-model="scope.row.rate"
|
|
@blur="checkRate(scope.row, scope.$rowIndex)" v-model="scope.row.rate"
|
|
@@ -710,19 +719,22 @@
|
|
|
</el-input-number>
|
|
</el-input-number>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="amount" title="金额" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="amount" title="金额" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '120' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input :disabled="isDisabled" :readonly="true" v-model="scope.row.amount"
|
|
<el-input :disabled="isDisabled" :readonly="true" v-model="scope.row.amount"
|
|
|
placeholder="请填写金额" />
|
|
placeholder="请填写金额" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="tax" title="税额" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="tax" title="税额" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '120' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input :disabled="isDisabled" :readonly="true" v-model="scope.row.tax"
|
|
<el-input :disabled="isDisabled" :readonly="true" v-model="scope.row.tax"
|
|
|
placeholder="请填写税额" />
|
|
placeholder="请填写税额" />
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="allAmount" title="累计登记金额" :edit-render="{}">
|
|
|
|
|
|
|
+ <vxe-table-column field="allAmount" title="累计登记金额" :edit-render="{}"
|
|
|
|
|
+ :min-width="isMobile ? '120' : ''">
|
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
|
<el-input-number :disabled="isDisabled" v-model="scope.row.allAmount"
|
|
<el-input-number :disabled="isDisabled" v-model="scope.row.allAmount"
|
|
|
controls-position="right" :controls="false" style="width:100%;" :precision="2"
|
|
controls-position="right" :controls="false" style="width:100%;" :precision="2"
|
|
@@ -730,7 +742,7 @@
|
|
|
</el-input-number>
|
|
</el-input-number>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column title="操作" width="100">
|
|
|
|
|
|
|
+ <vxe-table-column title="操作" width="100" :min-width="isMobile ? '120' : ''">
|
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
|
<el-button :disabled="isDisabled" type="danger"
|
|
<el-button :disabled="isDisabled" type="danger"
|
|
|
@click="removeEvent(scope.row, scope.$rowIndex, 'detail')">删除</el-button>
|
|
@click="removeEvent(scope.row, scope.$rowIndex, 'detail')">删除</el-button>
|
|
@@ -967,12 +979,15 @@ export default {
|
|
|
userEmail: '',
|
|
userEmail: '',
|
|
|
userPhone: '',
|
|
userPhone: '',
|
|
|
isPreInvoice: '',
|
|
isPreInvoice: '',
|
|
|
- isDisabled: false
|
|
|
|
|
|
|
+ isDisabled: false,
|
|
|
|
|
+ isMobile: false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
commonApi: null,
|
|
commonApi: null,
|
|
|
created() {
|
|
created() {
|
|
|
this.commonApi = new CommonApi()
|
|
this.commonApi = new CommonApi()
|
|
|
|
|
+ this.judgmentMobile()
|
|
|
|
|
+ window.addEventListener('resize', this.judgmentMobile)
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
},
|
|
},
|
|
@@ -1022,6 +1037,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 是否是移动端,宽度判断
|
|
|
|
|
+ judgmentMobile() {
|
|
|
|
|
+ if (window.innerWidth <= 768) {
|
|
|
|
|
+ this.isMobile = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.isMobile = false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getKeyWatch(keyWatch) {
|
|
getKeyWatch(keyWatch) {
|
|
|
this.keyWatch = keyWatch
|
|
this.keyWatch = keyWatch
|
|
|
},
|
|
},
|
|
@@ -1593,21 +1616,6 @@ export default {
|
|
|
this.inputForm.title = `${this.$store.state.user.name} 发起了 ${data.no} [财务-发票申请]`
|
|
this.inputForm.title = `${this.$store.state.user.name} 发起了 ${data.no} [财务-发票申请]`
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // // 请求开票接口
|
|
|
|
|
- // if (this.inputForm.status === '12') {
|
|
|
|
|
- // // 区分红票,蓝票
|
|
|
|
|
- // if (this.inputForm.redInvoiceFlag === '1') {
|
|
|
|
|
- // let params = {
|
|
|
|
|
- // originalInvno: this.inputForm.invoiceNumberStr,
|
|
|
|
|
- // workInvoiceId: this.inputForm.id,
|
|
|
|
|
- // redInvoiceRelevancyId: this.inputForm.redInvoiceRelevancyId
|
|
|
|
|
- // }
|
|
|
|
|
- // financeInvoiceService.invoiceAllScenarioRedOMSView(params)
|
|
|
|
|
- // }
|
|
|
|
|
- // if (this.inputForm.redInvoiceFlag === '0') {
|
|
|
|
|
- // financeInvoiceService.invoiceOMSView(this.inputForm.id)
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
|
|
|
|
|
this.inputForm.id = data.businessId
|
|
this.inputForm.id = data.businessId
|
|
|
callback(data.businessTable, data.businessId, this.inputForm, data.recordType)
|
|
callback(data.businessTable, data.businessId, this.inputForm, data.recordType)
|