|
@@ -134,7 +134,7 @@
|
|
|
</el-dialog>
|
|
|
<myMessage :messTit="messTit" @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
|
|
|
v-if="centerDialogVisible"></myMessage>
|
|
|
-</fullscreen>
|
|
|
+ </fullscreen>
|
|
|
</template>
|
|
|
<script>
|
|
|
import mySearch from "../../../components/search.vue";
|
|
@@ -243,14 +243,14 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
|
|
|
- secbuySchedule: function() {
|
|
|
- this.infolist.secbuySchedule = (this.infolist.secbuyPreAccount - this.infolist.secbuyLastAccount) / this.infolist.secbuyPreAccount;
|
|
|
- this.infolist.secbuySchedule = ((parseFloat(this.infolist.secbuySchedule)*100).toFixed(2));
|
|
|
- if(isNaN(this.infolist.secbuySchedule)){
|
|
|
- this.infolist.secbuySchedule = ''
|
|
|
- }
|
|
|
- return this.infolist.secbuySchedule;
|
|
|
+ secbuySchedule: function () {
|
|
|
+ this.infolist.secbuySchedule = (this.infolist.secbuyPreAccount - this.infolist.secbuyLastAccount) / this.infolist.secbuyPreAccount;
|
|
|
+ this.infolist.secbuySchedule = ((parseFloat(this.infolist.secbuySchedule) * 100).toFixed(2));
|
|
|
+ if (isNaN(this.infolist.secbuySchedule)) {
|
|
|
+ this.infolist.secbuySchedule = ''
|
|
|
}
|
|
|
+ return this.infolist.secbuySchedule;
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
closedia() {
|
|
@@ -387,13 +387,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submitInfo(u) {
|
|
|
- // callback(new Error('不能为空'))
|
|
|
- // if (
|
|
|
- // this.infolist.secbuyPreAccount <=
|
|
|
- // this.infolist.secbuyLastAccount
|
|
|
- // ) {
|
|
|
- // new Error("二采预算总额应大于二采剩余预算");
|
|
|
- // }
|
|
|
+ if (
|
|
|
+ parseInt(this.infolist.secbuyPreAccount) <=
|
|
|
+ parseInt(this.infolist.costAccount)
|
|
|
+ ) {
|
|
|
+ this.$message.error('二采预算总额应大于二采剩余预算')
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
let _this = this;
|
|
|
this.$refs.infolist.validate(valid => {
|
|
@@ -543,7 +543,7 @@ export default {
|
|
|
watch: {
|
|
|
"infolist.secbuyPreAccount": {
|
|
|
handler(newVal) {
|
|
|
- this.infolist.secbuyLastAccount = newVal - this.infolist.costAccount
|
|
|
+ this.infolist.secbuyLastAccount = newVal - this.infolist.costAccount
|
|
|
},
|
|
|
},
|
|
|
}
|