This commit is contained in:
liushuai
2019-09-05 10:33:39 +08:00
parent 653abcfc59
commit afcda77786
19 changed files with 4558 additions and 81 deletions

View File

@@ -26,7 +26,7 @@
size="small"
type="date"
placeholder="请选择结束日期"/>
<el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="PageSizeProject = 10;PageCurrentProject = 1;searchTableDataProject()">查询</el-button>
<el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="PageSizeProject = 30;PageCurrentProject = 1;searchTableDataProject()">查询</el-button>
</el-card>
<el-card>
@@ -312,13 +312,14 @@
<el-row>
<el-col :span="12">
<el-form-item label="保证金金额" prop="保证金金额">
<el-input-number v-model="form.保证金金额" :precision="2" :step="0.1" style="width: 200px" size="small"/>
<el-input-number v-model="form.保证金金额" :precision="2" :step="1" style="width: 200px" size="small"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="缴纳日期" prop="交付日期">
<el-date-picker
v-model="form.交付日期"
:picker-options="pickerOptions"
style="width: 200px;"
value-format="yyyy-MM-dd"
size="small"
@@ -402,6 +403,7 @@
<el-form-item label="扣款日期" prop="扣款日期">
<el-date-picker
v-model="form2.扣款日期"
:picker-options="pickerOptions1"
style="width: 200px;"
value-format="yyyy-MM-dd"
size="small"
@@ -442,6 +444,7 @@
<el-form-item label="扣款日期" prop="扣款日期">
<el-date-picker
v-model="form3.扣款日期"
:picker-options="pickerOptions1"
style="width: 200px;"
value-format="yyyy-MM-dd"
size="small"
@@ -481,6 +484,7 @@
<el-form-item label="收回日期" prop="收回日期">
<el-date-picker
v-model="form4.收回日期"
:picker-options="pickerOptions2"
style="width: 200px;"
value-format="yyyy-MM-dd"
size="small"
@@ -512,12 +516,18 @@ export default {
}
}
return {
pickerOptions: {},
pickerOptions1: {},
pickerOptions2: {},
timetime: '',
timetime1: '',
timetime2: '',
listLoadingProject: false, // 项目信息加载动画
projectTableData: [], // 项目信息表格
startTime: '', // 开始时间
endTime: '', // 结束时间
PageCurrentProject: 1, // 项目信息表格翻页
PageSizeProject: 10, // 项目信息表格每页显示条数
PageSizeProject: 30, // 项目信息表格每页显示条数
totalProject: null, // 总条数
plannedTime: [], // 执行情况
entryNameValue_check: '',
@@ -540,10 +550,10 @@ export default {
tableData1Loading: false, // 安全保证金信息表加载动画
tableData2Loading: false, // 安全保证金信息表加载动画
PageCurrent: 1,
PageSize: 10,
PageSize: 30,
total: null,
PageCurrent2: 1,
PageSize2: 10,
PageSize2: 30,
total2: null,
radio: '1',
title: '',
@@ -611,6 +621,30 @@ export default {
this.searchTableDataProject()
},
methods: {
changeTime() {
this.pickerOptions = Object.assign({}, this.pickerOptions, {
disabledDate: (time) => {
console.log(this.timetime)
return time.getTime() < Date.parse(this.timetime)
}
})
},
changeTime1() {
this.pickerOptions1 = Object.assign({}, this.pickerOptions1, {
disabledDate: (time) => {
console.log(this.timetime1)
return time.getTime() < Date.parse(this.timetime1)
}
})
},
changeTime2() {
this.pickerOptions2 = Object.assign({}, this.pickerOptions2, {
disabledDate: (time) => {
console.log(this.timetime2)
return time.getTime() < Date.parse(this.timetime2)
}
})
},
init() {
this.getSelect(initProject, ['项目名称', '项目流水号'], 'entryName')
this.getSelect(initProject, ['项目名称', '项目流水号'], 'entryName1')
@@ -694,6 +728,8 @@ export default {
},
addSafetyMargin(row) {
this.title = '增加'
this.timetime = row.合同签订日期
this.changeTime()
this.dialogFormVisible1 = true
this.projectCode = row.项目流水号
this.addForm('form')
@@ -794,6 +830,9 @@ export default {
},
Withdrawing(row) {
this.title2 = '扣款'
this.timetime1 = row.交付日期
console.log(row)
this.changeTime1()
this.dialogFormVisible2 = true
this.code = row.安全保证金流水号
this.projectName = row.项目名称
@@ -839,6 +878,8 @@ export default {
TakeBack(row) {
this.code = row.安全保证金流水号
this.projectName = row.项目名称
this.timetime2 = row.交付日期
this.changeTime2()
this.form4.剩余金额 = parseFloat(row.应收回金额)
this.dialogFormVisible4 = true
},