|
@@ -30,7 +30,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 创建时间 -->
|
|
|
- <el-form-item>
|
|
|
+ <!-- <el-form-item>
|
|
|
<span style="margin-left:5px;margin-right:5px;color:#606266;">{{$t('creationtime')}}</span>
|
|
|
<el-date-picker
|
|
|
style="width:240px;"
|
|
@@ -58,6 +58,17 @@
|
|
|
clearable
|
|
|
@change="searchFilter"
|
|
|
></el-date-picker>
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item>
|
|
|
+ <span style="margin-left:5px;margin-right:5px;color:#606266;">对方单位</span>
|
|
|
+ <el-input v-model.trim="customerOrgs" placeholder="请输入" size="small" style="width: 150px" clearable @input="onCustomerOrgsInput"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <span style="margin-left:5px;margin-right:5px;color:#606266;">合同状态</span>
|
|
|
+ <el-select v-model="finishStatuss" placeholder="请选择" style="width:120px" size="small" clearable @change="searchFilter">
|
|
|
+ <el-option label="履约中" :value="1"></el-option>
|
|
|
+ <el-option label="履约完成" :value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
@@ -288,14 +299,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="payedAmount" label="已付款金额(元)" width="160">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input-number v-model="scope.row.payedAmount" controls-position="right" @change="chgPayedAmount()" :min="0" size="small" :precision="2"></el-input-number>
|
|
|
+ <el-input-number v-model="scope.row.payedAmount" controls-position="right" @change="chgPayedAmount()" :min="0" size="small" :precision="2" :controls="false"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="payType" label="付款类型" width="140">
|
|
|
<template slot-scope="scope">
|
|
|
<el-select v-model="scope.row.payType" placeholder="请选择" size="small">
|
|
|
<el-option label="预付" :value="1"></el-option>
|
|
|
- <el-option label="报账" :value="2"></el-option>
|
|
|
+ <el-option label="报账" :value="0"></el-option>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -616,6 +627,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { debounce } from 'lodash';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -628,6 +640,8 @@ export default {
|
|
|
typeName: '',
|
|
|
status: '',
|
|
|
dateArray: [],
|
|
|
+ customerOrgs: '',
|
|
|
+ finishStatuss: '',
|
|
|
|
|
|
typeList: [],
|
|
|
contractList: [],
|
|
@@ -705,8 +719,10 @@ export default {
|
|
|
// console.log('test',row);
|
|
|
// // this.$refs.uploadFile.submit()
|
|
|
// },
|
|
|
+ onCustomerOrgsInput: debounce(function() {
|
|
|
+ this.searchFilter();
|
|
|
+ }, 500),
|
|
|
processingContractAmount() {
|
|
|
- console.log(this.contractForm.isAmountFixed, '<====== 开始执行')
|
|
|
if(this.contractForm.isAmountFixed) {
|
|
|
return
|
|
|
}
|
|
@@ -899,6 +915,15 @@ export default {
|
|
|
parameter.startDate = this.dateArray[0]
|
|
|
parameter.endDate = this.dateArray[1]
|
|
|
}
|
|
|
+
|
|
|
+ if(this.customerOrgs) {
|
|
|
+ parameter.customerOrg = this.customerOrgs
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.finishStatuss) {
|
|
|
+ parameter.finishStatus = this.finishStatuss
|
|
|
+ }
|
|
|
+
|
|
|
this.http.post('/contract/exportContractOneToMany',parameter,
|
|
|
res => {
|
|
|
if(res.code == 'ok'){
|
|
@@ -1390,6 +1415,15 @@ export default {
|
|
|
parameter.paymentStartDate = this.paymentDate[0]
|
|
|
parameter.paymentEndDate = this.paymentDate[1]
|
|
|
}
|
|
|
+
|
|
|
+ if(this.customerOrgs) {
|
|
|
+ parameter.customerOrg = this.customerOrgs
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.finishStatuss) {
|
|
|
+ parameter.finishStatus = this.finishStatuss
|
|
|
+ }
|
|
|
+
|
|
|
this.listLoading = true
|
|
|
this.http.post('/contract/getContractPage',parameter,
|
|
|
res => {
|