添加项目资金来源

haicang
jwg 3 months ago
parent 45ca827ee7
commit ad785d3e8c

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

Loading…
Cancel
Save