批量开票添加选择邮寄联系人功能
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
@ok="modalFormOk"
|
||||
:project-id="selectProjectId"
|
||||
:visible.sync="arriveVisible"></arrive-stage-module>
|
||||
|
||||
<!-- 开票阶段-->
|
||||
<invoicing-stage-module
|
||||
ref="invoicingStage"
|
||||
@@ -108,12 +109,17 @@
|
||||
:project-name="selectProjectName"
|
||||
:visible.sync="invoicingVisible"
|
||||
:charge-company-name="selectProjectChargeCompanyName"></invoicing-stage-module>
|
||||
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
||||
|
||||
<!-- 批量开票-->
|
||||
<batch-invoicing-module
|
||||
:selected-data="selectedProject"
|
||||
:selected-company="selectedCompany"
|
||||
is-financial
|
||||
:visible.sync="batchInvoicingVisible">
|
||||
</batch-invoicing-module>
|
||||
|
||||
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -248,7 +254,8 @@ export default {
|
||||
invoicingVisible: false,
|
||||
arriveVisible: false,
|
||||
selectedProject: [],
|
||||
batchInvoicingVisible: false
|
||||
batchInvoicingVisible: false,
|
||||
selectedCompany: {} // 选中项目的企业信息
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -316,6 +323,11 @@ export default {
|
||||
if (!isAllEqual(companyArr)) {
|
||||
reject('请选择来款单位为同一企业的项目合并开票')
|
||||
}
|
||||
this.selectedCompany = {
|
||||
id: arr[0].chargeCompanyId,
|
||||
companyName: arr[0].chargeCompanyTemporaryName
|
||||
}
|
||||
console.log(this.selectedCompany)
|
||||
}
|
||||
// 来款
|
||||
if (operateType === 'incomePayment') {
|
||||
|
||||
@@ -40,6 +40,15 @@
|
||||
date-format="YYYY-MM-DD"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="12" :sm="24" v-if="isFinancial">
|
||||
<a-form-item label="邮寄联系人" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<select-contacts
|
||||
placeholder="请选择邮寄联系人"
|
||||
v-decorator="['postContactId',validatorRules.postContactId]"
|
||||
v-bind="$attrs"
|
||||
:maxLength='50'></select-contacts>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
|
||||
@@ -78,21 +87,30 @@ import JDate from '../../../components/tools/JDate'
|
||||
import { money } from '../../../utils/validate'
|
||||
import { addZero } from '../../../utils/util'
|
||||
import { addPayBill } from '../../../api/incomePaymentsApi'
|
||||
import SelectContacts from '../../../components/company/SelectContacts'
|
||||
|
||||
export default {
|
||||
name: 'BatchInvoicingModule',
|
||||
components: { JDate },
|
||||
components: { JDate, SelectContacts },
|
||||
props: {
|
||||
// 选中的项目信息
|
||||
selectedData: {
|
||||
type: Array,
|
||||
required: false,
|
||||
default: []
|
||||
default: () => {
|
||||
return []
|
||||
}
|
||||
},
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 是否为财务管理到账开票
|
||||
isFinancial: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -180,6 +198,7 @@ export default {
|
||||
},
|
||||
inputInvoicingAmount: null, // 输入的开票金额
|
||||
sumAmountOwed: 0 // 总未开票金额
|
||||
// selectedCompany: {} // 企业信息
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -154,7 +154,7 @@ export default {
|
||||
let str = this.checkedKeys.join(',').toString()
|
||||
console.log(str)
|
||||
this.form.setFieldsValue({memberName: str})
|
||||
this.form.validateFields((err, values) => {
|
||||
this.form.validateFields((err) => {
|
||||
if (!err) {
|
||||
this.confirmLoading = true
|
||||
if (this.isBatch) {
|
||||
|
||||
Reference in New Issue
Block a user