Quellcode durchsuchen

经费审报明细ios可以输入小数点,审核列表显示学两位小数

新疆警官学校中职
lb01 vor 1 Jahr
Ursprung
Commit
adf9c41d72
2 geänderte Dateien mit 15 neuen und 5 gelöschten Zeilen
  1. +7
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue
  2. +8
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue

+ 7
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue Datei anzeigen

@@ -149,6 +149,13 @@ export default {
if(res){
// res.F_SourceName = res.F_SourceName&&this.GET_GLOBAL('department')[res.F_SourceName]? this.GET_GLOBAL('department')[res.F_SourceName].name : res.F_SourceName
this.formData = res
let FundsApplyDetailitem = res.FundsApplyDetail
if(FundsApplyDetailitem.length>0){
for(let i=0;i<FundsApplyDetailitem.length;i++){
FundsApplyDetailitem[i].Price = Number(FundsApplyDetailitem[i].Price).toFixed(2)
FundsApplyDetailitem[i].Amount = Number(FundsApplyDetailitem[i].Amount).toFixed(2)
}
}
this.FundsApplyDetail = res.FundsApplyDetail
let fileList = await this.getFileListById(res.F_NewsImage)
if(fileList&&fileList.length){


+ 8
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue Datei anzeigen

@@ -53,7 +53,7 @@
<view class="picker">{{ item.Unit ? mapitem(item.Unit) : '请选择单位' }}</view>
</picker>
</l-label>
<l-input v-model="item.Price" type="number" @blur="blurChange(item)" title="单价(元)" :disabled="!edit" placeholder="请填写" right />
<l-input v-model="item.Price" type="digit" @blur="blurChange(item)" title="单价(元)" :disabled="!edit" placeholder="请填写" right />
<l-input v-model="item.Amount" title="金额(元)" disabled placeholder="请填写" right />
<!-- <l-select @input="setValue('item.Unit', $event)" :value="getValue('item.Unit')" :range="dataSource.FundsApply.Unit" title="单位" :disabled="!edit" /> -->
@@ -226,7 +226,7 @@
id
}) {
await this.init(type, id)
console.log(this.dataSource.FundsApply.Unit)
// console.log(this.dataSource.FundsApply.Unit)
},

methods: {
@@ -507,12 +507,15 @@
changeitem(e,item){
// console.log(item)
item.Unit = this.dataSource.FundsApply.Unit[e.detail.value].value
// item.Unit =
},
mapitem(data){
return this.dataSource.FundsApply.Unit.filter(item=>{
// let items = this.dataSource.FundsApply.Unit.find(item=>{
// return item.value == data
// }).text
// console.log(items)
return this.dataSource.FundsApply.Unit.find(item=>{
return item.value == data
})[0].text
}).text
}
},
computed: {


Laden…
Abbrechen
Speichern