添加项目资金来源

haicang
jwg 3 months ago
parent 45ca827ee7
commit ad785d3e8c

@ -77,6 +77,15 @@
input-align="right" input-align="right"
placeholder="请输入" placeholder="请输入"
/> />
<van-field
v-model="fundingSourceLabel"
:disabled="disabled"
label="项目资金来源"
clear-trigger="always"
input-align="right"
placeholder="请输入"
@click="showPicker = true"
/>
<van-field <van-field
v-model="form.reason" v-model="form.reason"
:disabled="disabled" :disabled="disabled"
@ -808,6 +817,15 @@
} }
" "
/> />
<van-popup v-model="showPicker" position="bottom">
<van-picker
show-toolbar
title="选择资金来源"
:columns="fundingSourceList"
@confirm="selectFundingSource"
@cancel="showPicker = false"
/>
</van-popup>
</div> </div>
</template> </template>
@ -851,6 +869,7 @@ export default {
mounted() {}, mounted() {},
data() { data() {
return { return {
showPicker: false,
areaTree: [], areaTree: [],
indexOne: 1, indexOne: 1,
indexTwo: 1, indexTwo: 1,
@ -878,7 +897,9 @@ export default {
maxDate: new Date('2030/01/01'), maxDate: new Date('2030/01/01'),
defaultDate: new Date(), defaultDate: new Date(),
dateShow: false, dateShow: false,
fundingSourceLabel: '',
form: { form: {
fundingSource: null,
companyName: window.localStorage.getItem('cn'), // companyName: window.localStorage.getItem('cn'), //
nickname: JSON.parse( nickname: JSON.parse(
window.localStorage.getItem('userInfo') || { dept: {} } window.localStorage.getItem('userInfo') || { dept: {} }
@ -943,6 +964,15 @@ export default {
// //
// bs_fee_type // bs_fee_type
computed: { computed: {
fundingSourceList() {
const list = this.getDictDatas('funding_source')?.map((e) => {
return {
text: e.label,
value: e.value
}
})
return list || []
},
allTripPartners() { allTripPartners() {
let arr = [] let arr = []
this.form.expenseClaimTrips.forEach((v) => { this.form.expenseClaimTrips.forEach((v) => {
@ -981,6 +1011,11 @@ export default {
watch: {}, watch: {},
// //
methods: { methods: {
selectFundingSource(val) {
this.form.fundingSource = val.value
this.fundingSourceLabel = val.text
this.showPicker = false
},
// //
addInvoice() { addInvoice() {
this.$router.push({ this.$router.push({
@ -1395,6 +1430,9 @@ export default {
} }
) )
} }
this.fundingSourceLabel = this.fundingSourceList.find(
(e) => e.value == this.form.fundingSource
).text
if (Array.isArray(this.form.expenseClaimTrips)) { if (Array.isArray(this.form.expenseClaimTrips)) {
this.form.expenseClaimTrips.forEach((n) => { this.form.expenseClaimTrips.forEach((n) => {
n.expenseClaimDetails.forEach((z) => { n.expenseClaimDetails.forEach((z) => {

Loading…
Cancel
Save