创建采购合同: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> <template>
<div id="app"> <div id="app">
<router-view/> <router-view v-if="isRouterAlive"/>
</div> </div>
</template> </template>
<script> <script>
export default { 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> </script>

View File

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