创建采购合同:reload刷新页;readonly合同总额;限制规定到货时间;

This commit is contained in:
chenjianan
2018-11-17 10:21:12 +08:00
parent 9d70d2a3e0
commit b369087c65
2 changed files with 25 additions and 7 deletions

View File

@@ -1,11 +1,29 @@
<template>
<div id="app">
<router-view/>
<router-view v-if="isRouterAlive"/>
</div>
</template>
<script>
export default {
name: 'App'
name: 'App',
provide() {
return {
reload: this.reload
}
},
data() {
return {
isRouterAlive: true
}
},
methods: {
reload() {
this.isRouterAlive = false
this.$nextTick(function() {
this.isRouterAlive = true
})
}
}
}
</script>

View File

@@ -186,7 +186,7 @@
style="margin-top:10px"
@click="calculateContractSum">计算合同总额</el-button>
<span>合同总额:</span>
<el-input v-model="contractSum" size="small"/>
<el-input v-model="contractSum" size="small" readonly/>
</el-card>
<el-card>
@@ -237,10 +237,10 @@ export default {
searchView: '',
fileList: [],
minDate: null,
endDateOpt: { // 为了让规定到货时间早于物料计划到货时间
endDateOpt: { // 禁用大于规定到货日期和小于当前日期
disabledDate: (time) => {
if (this.minDate) {
return time.getTime() > this.minDate
return time.getTime() > this.minDate || time.getTime() < new Date()
}
}
},
@@ -262,8 +262,8 @@ export default {
payTime5Value: '', // 付款时间
payTime6Value: '', // 付款时间
freight: '', // 运费
taxRate: '', // 税率
currencyValue: '', // 币种
taxRate: '0.17', // 税率
currencyValue: 1, // 币种
currency: [
{
label: '人民币',