瀏覽代碼

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

新疆警官学校中职
lb01 1 年之前
父節點
當前提交
adf9c41d72
共有 2 個檔案被更改,包括 15 行新增5 行删除
  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 查看文件

@@ -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 查看文件

@@ -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: {


Loading…
取消
儲存