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