Commit 9b8ff161 authored by 徐俊's avatar 徐俊

xujun

parent 823a5867
...@@ -74,7 +74,8 @@ ...@@ -74,7 +74,8 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row v-for="(item, index) in equipments" :key="'equipments' + index" type="flex" class="row_center"> <div>
<a-row v-for="(item, index) in equipments" :key="'equipments'+index" type="flex" class="row_center">
<a-col :span="1"> <a-col :span="1">
<div class="special-middle"><a-button icon="close" type="primary" shape="circle" size="small" @click="deleteEquipment(item)"></a-button>&nbsp;{{ index + 1 }}</div> <div class="special-middle"><a-button icon="close" type="primary" shape="circle" size="small" @click="deleteEquipment(item)"></a-button>&nbsp;{{ index + 1 }}</div>
</a-col> </a-col>
...@@ -139,10 +140,10 @@ ...@@ -139,10 +140,10 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
</div>
<a-row type="flex" class="row_center"> <a-row type="flex" class="row_center">
<a-col :span="5"> <a-col :span="5">
<div class="special-middle"><div>单价5万元及以上购置设备合计</div></div> <div class="special-middle"><div>单价50万元及以上购置设备合计</div></div>
</a-col> </a-col>
<a-col :span="2"> <a-col :span="2">
<div class="special-middle"><div>/</div></div> <div class="special-middle"><div>/</div></div>
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
</a-row> </a-row>
<a-row type="flex" class="row_center"> <a-row type="flex" class="row_center">
<a-col :span="5"> <a-col :span="5">
<div class="special-middle"><div>单价5万元以下购置设备合计</div></div> <div class="special-middle"><div>单价50万元以下购置设备合计</div></div>
</a-col> </a-col>
<a-col :span="2"> <a-col :span="2">
<div class="special-middle"><div>/</div></div> <div class="special-middle"><div>/</div></div>
...@@ -258,7 +259,7 @@ ...@@ -258,7 +259,7 @@
<a-row type="flex" class="item_inner"> <a-row type="flex" class="item_inner">
<a-col :span="24"> <a-col :span="24">
<span style="color: red;">注:1.本表只填写省级财政科技资金购置的设备;涉及自筹经费购买的设备,请在资金预算编制说明中说明。<br /> <span style="color: red;">注:1.本表只填写省级财政科技资金购置的设备;涉及自筹经费购买的设备,请在资金预算编制说明中说明。<br />
2.单价5万元以下的设备不填写明细。</span> 2.单价50万元以下的设备不填写明细。</span>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
...@@ -303,6 +304,7 @@ export default { ...@@ -303,6 +304,7 @@ export default {
}, },
}, },
created () { created () {
console.log(this.equipments)
}, },
methods: { methods: {
calNumberAmount() { calNumberAmount() {
...@@ -311,7 +313,7 @@ export default { ...@@ -311,7 +313,7 @@ export default {
this.fiftyUpNumber = 0 this.fiftyUpNumber = 0
this.fiftyDownNumber = 0 this.fiftyDownNumber = 0
this.equipments.forEach(e => { this.equipments.forEach(e => {
if (e.unitPrice >= 5) { if (e.unitPrice >= 50) {
this.fiftyUpAmount += e.unitPrice * e.quantity this.fiftyUpAmount += e.unitPrice * e.quantity
this.fiftyUpNumber += e.quantity this.fiftyUpNumber += e.quantity
} else { } else {
...@@ -331,8 +333,9 @@ export default { ...@@ -331,8 +333,9 @@ export default {
this.calNumberAmount() this.calNumberAmount()
}, },
addArrey() { addArrey() {
this.equipments.push(Object.assign({ ...Equipment })) this.equipments.push({ ...Equipment })
this.calNumberAmount() console.log(this.equipments)
//this.calNumberAmount()
}, },
deleteEquipment(item) { deleteEquipment(item) {
let index = this.equipments.indexOf(item) let index = this.equipments.indexOf(item)
......
...@@ -790,6 +790,9 @@ export default { ...@@ -790,6 +790,9 @@ export default {
if (!!!this.formData.members || this.formData.members.length == 0) if (!!!this.formData.members || this.formData.members.length == 0)
this.formData.members = [] this.formData.members = []
if (!!!this.formData.equipments || this.formData.equipments.length == 0)
this.formData.equipments = []
if (!!!this.formData.fileList || !this.formData.fileList.length || this.formData.fileList.length == 0) { if (!!!this.formData.fileList || !this.formData.fileList.length || this.formData.fileList.length == 0) {
this.formData.fileList = [] this.formData.fileList = []
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment