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