给财务单据增加财务人员的快捷录入
This commit is contained in:
@@ -162,6 +162,11 @@ export const FinancialModalMixin = {
|
|||||||
this.$refs.accountModalForm.title = "新增结算账户";
|
this.$refs.accountModalForm.title = "新增结算账户";
|
||||||
this.$refs.accountModalForm.disableSubmit = false;
|
this.$refs.accountModalForm.disableSubmit = false;
|
||||||
},
|
},
|
||||||
|
addPerson() {
|
||||||
|
this.$refs.personModalForm.add();
|
||||||
|
this.$refs.personModalForm.title = "新增经手人";
|
||||||
|
this.$refs.personModalForm.disableSubmit = false;
|
||||||
|
},
|
||||||
vendorModalFormOk() {
|
vendorModalFormOk() {
|
||||||
this.initSupplier()
|
this.initSupplier()
|
||||||
},
|
},
|
||||||
@@ -171,6 +176,9 @@ export const FinancialModalMixin = {
|
|||||||
accountModalFormOk() {
|
accountModalFormOk() {
|
||||||
this.initAccount()
|
this.initAccount()
|
||||||
},
|
},
|
||||||
|
personModalFormOk() {
|
||||||
|
this.initPerson()
|
||||||
|
},
|
||||||
//单元值改变一个字符就触发一次
|
//单元值改变一个字符就触发一次
|
||||||
onValueChange(event) {
|
onValueChange(event) {
|
||||||
let that = this
|
let that = this
|
||||||
|
|||||||
@@ -29,6 +29,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
||||||
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -88,10 +94,12 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
<person-modal ref="personModalForm" @ok="personModalFormOk"></person-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
import PersonModal from '../../system/modules/PersonModal'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
||||||
@@ -101,8 +109,13 @@
|
|||||||
name: "AdvanceInModal",
|
name: "AdvanceInModal",
|
||||||
mixins: [JEditableTableMixin, FinancialModalMixin],
|
mixins: [JEditableTableMixin, FinancialModalMixin],
|
||||||
components: {
|
components: {
|
||||||
|
PersonModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate
|
JDate,
|
||||||
|
VNodes: {
|
||||||
|
functional: true,
|
||||||
|
render: (h, ctx) => ctx.props.vnodes,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -19,6 +19,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
||||||
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -92,11 +98,13 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
||||||
|
<person-modal ref="personModalForm" @ok="personModalFormOk"></person-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import AccountModal from '../../system/modules/AccountModal'
|
import AccountModal from '../../system/modules/AccountModal'
|
||||||
|
import PersonModal from '../../system/modules/PersonModal'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
||||||
@@ -107,6 +115,7 @@
|
|||||||
mixins: [JEditableTableMixin, FinancialModalMixin],
|
mixins: [JEditableTableMixin, FinancialModalMixin],
|
||||||
components: {
|
components: {
|
||||||
AccountModal,
|
AccountModal,
|
||||||
|
PersonModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate,
|
JDate,
|
||||||
VNodes: {
|
VNodes: {
|
||||||
|
|||||||
@@ -29,6 +29,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
||||||
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -100,11 +106,13 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
||||||
|
<person-modal ref="personModalForm" @ok="personModalFormOk"></person-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import AccountModal from '../../system/modules/AccountModal'
|
import AccountModal from '../../system/modules/AccountModal'
|
||||||
|
import PersonModal from '../../system/modules/PersonModal'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
||||||
@@ -115,6 +123,7 @@
|
|||||||
mixins: [JEditableTableMixin, FinancialModalMixin],
|
mixins: [JEditableTableMixin, FinancialModalMixin],
|
||||||
components: {
|
components: {
|
||||||
AccountModal,
|
AccountModal,
|
||||||
|
PersonModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate,
|
JDate,
|
||||||
VNodes: {
|
VNodes: {
|
||||||
|
|||||||
@@ -29,6 +29,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
||||||
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -100,11 +106,13 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
||||||
|
<person-modal ref="personModalForm" @ok="personModalFormOk"></person-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import AccountModal from '../../system/modules/AccountModal'
|
import AccountModal from '../../system/modules/AccountModal'
|
||||||
|
import PersonModal from '../../system/modules/PersonModal'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
||||||
@@ -115,6 +123,7 @@
|
|||||||
mixins: [JEditableTableMixin, FinancialModalMixin],
|
mixins: [JEditableTableMixin, FinancialModalMixin],
|
||||||
components: {
|
components: {
|
||||||
AccountModal,
|
AccountModal,
|
||||||
|
PersonModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate,
|
JDate,
|
||||||
VNodes: {
|
VNodes: {
|
||||||
|
|||||||
@@ -35,6 +35,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
||||||
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -128,6 +134,7 @@
|
|||||||
<debt-bill-list ref="debtBillList" @ok="debtBillListOk"></debt-bill-list>
|
<debt-bill-list ref="debtBillList" @ok="debtBillListOk"></debt-bill-list>
|
||||||
<customer-modal ref="customerModalForm" @ok="customerModalFormOk"></customer-modal>
|
<customer-modal ref="customerModalForm" @ok="customerModalFormOk"></customer-modal>
|
||||||
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
||||||
|
<person-modal ref="personModalForm" @ok="personModalFormOk"></person-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -135,6 +142,7 @@
|
|||||||
import DebtBillList from '../dialog/DebtBillList'
|
import DebtBillList from '../dialog/DebtBillList'
|
||||||
import CustomerModal from '../../system/modules/CustomerModal'
|
import CustomerModal from '../../system/modules/CustomerModal'
|
||||||
import AccountModal from '../../system/modules/AccountModal'
|
import AccountModal from '../../system/modules/AccountModal'
|
||||||
|
import PersonModal from '../../system/modules/PersonModal'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
||||||
@@ -147,6 +155,7 @@
|
|||||||
DebtBillList,
|
DebtBillList,
|
||||||
CustomerModal,
|
CustomerModal,
|
||||||
AccountModal,
|
AccountModal,
|
||||||
|
PersonModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate,
|
JDate,
|
||||||
VNodes: {
|
VNodes: {
|
||||||
|
|||||||
@@ -35,6 +35,12 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="财务人员">
|
||||||
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
<a-select placeholder="选择财务人员" v-decorator="[ 'handsPersonId', validatorRules.handsPersonId ]"
|
||||||
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
|
||||||
|
<div slot="dropdownRender" slot-scope="menu">
|
||||||
|
<v-nodes :vnodes="menu" />
|
||||||
|
<a-divider style="margin: 4px 0;" />
|
||||||
|
<div style="padding: 4px 8px; cursor: pointer;"
|
||||||
|
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||||
|
</div>
|
||||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -128,6 +134,7 @@
|
|||||||
<debt-bill-list ref="debtBillList" @ok="debtBillListOk"></debt-bill-list>
|
<debt-bill-list ref="debtBillList" @ok="debtBillListOk"></debt-bill-list>
|
||||||
<vendor-modal ref="vendorModalForm" @ok="vendorModalFormOk"></vendor-modal>
|
<vendor-modal ref="vendorModalForm" @ok="vendorModalFormOk"></vendor-modal>
|
||||||
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
<account-modal ref="accountModalForm" @ok="accountModalFormOk"></account-modal>
|
||||||
|
<person-modal ref="personModalForm" @ok="personModalFormOk"></person-modal>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -135,6 +142,7 @@
|
|||||||
import DebtBillList from '../dialog/DebtBillList'
|
import DebtBillList from '../dialog/DebtBillList'
|
||||||
import VendorModal from '../../system/modules/VendorModal'
|
import VendorModal from '../../system/modules/VendorModal'
|
||||||
import AccountModal from '../../system/modules/AccountModal'
|
import AccountModal from '../../system/modules/AccountModal'
|
||||||
|
import PersonModal from '../../system/modules/PersonModal'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
import { FinancialModalMixin } from '../mixins/FinancialModalMixin'
|
||||||
@@ -147,6 +155,7 @@
|
|||||||
DebtBillList,
|
DebtBillList,
|
||||||
VendorModal,
|
VendorModal,
|
||||||
AccountModal,
|
AccountModal,
|
||||||
|
PersonModal,
|
||||||
JUpload,
|
JUpload,
|
||||||
JDate,
|
JDate,
|
||||||
VNodes: {
|
VNodes: {
|
||||||
|
|||||||
Reference in New Issue
Block a user