2022.8.2 搜索

master
271556543@qq.com 4 years ago
parent 8be7126579
commit 9709ee01ad

@ -71,7 +71,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>款项类型 <span style="color: red;font-weight: 600;padding-right: 4px;">*</span>款项类型
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-select placeholder="选择款项类型或直接填写其他类型" <el-select placeholder="选择款项类型或直接录入其他类型"
v-model="paymentRegistrationForm.type" v-model="paymentRegistrationForm.type"
style="width: 200px;" style="width: 200px;"
filterable filterable

@ -438,9 +438,10 @@ export default {
}, },
{ {
label:'付款计划', label:'付款计划',
prop:'plan_link_count', prop:'sign_plan_count',
width: 120, width: 120,
formatter:(cell,data,value)=>{ formatter:(cell,data,value)=>{
if(value == 0) return '暂无'
return value + '期' return value + '期'
} }
}, },
@ -733,8 +734,8 @@ export default {
// //
showPaymentPlan(row, column, cell){ showPaymentPlan(row, column, cell){
console.log(column) //console.log(column)
if(column.property === 'plan_link_count'){ if(column.property === 'sign_plan_count'){
this.$refs['contractPaymentRegistration'].getSignPlan(row.id) this.$refs['contractPaymentRegistration'].getSignPlan(row.id)
this.$refs['contractPaymentRegistration'].isShow = true this.$refs['contractPaymentRegistration'].isShow = true
} }
@ -869,7 +870,7 @@ export default {
// //
selectPlan(sel,row){ selectPlan(sel,row){
if(sel){ if(sel){
console.log(sel,row) //console.log(sel,row)
this.form.plan = sel.map(item => { this.form.plan = sel.map(item => {
return { return {
label:item.name, label:item.name,
@ -905,7 +906,7 @@ export default {
}, },
// //
submit(){ submit(){
console.log(this.form) //console.log(this.form)
addContrant({ addContrant({
type:this.form.type, type:this.form.type,
is_plan:this.form.isBudget ? 1 : 0, is_plan:this.form.isBudget ? 1 : 0,

@ -5,15 +5,15 @@
<slot> <slot>
<span style="padding: 0 6px;word-break: keep-all;">创建日期</span> <span style="padding: 0 6px;word-break: keep-all;">创建日期</span>
<span> <span>
<DatePicker placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px"></DatePicker> <DatePicker :value="selectDate" placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px" @on-change="(e)=>selectDate = e"></DatePicker>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;">关键字</span> <span style="padding: 0 6px;word-break: keep-all;">关键字</span>
<span> <span>
<Input placeholder="请输入关键字" style="width: 180px"></Input> <Input v-model="keywords" placeholder="请输入关键字" style="width: 180px"></Input>
</span> </span>
<Button type="primary" style="margin-left: 10px" ghost @click="contractId = '',pageIndex = 1">重置</Button> <Button type="primary" style="margin-left: 10px" ghost @click="contractId = '',pageIndex = 1,keywords = '',selectDate = ''">重置</Button>
<Button type="primary" style="margin-left: 10px" @click="getFundLogs"></Button> <Button type="primary" style="margin-left: 10px" @click="getFundLogs"></Button>
</slot> </slot>
</lx-header> </lx-header>
@ -64,6 +64,8 @@ export default {
}, },
data() { data() {
return { return {
selectDate:'',
keywords:'',
list:[], list:[],
contractId:'', contractId:'',
total:0, total:0,
@ -128,7 +130,7 @@ export default {
}, },
async getFundLogs(){ async getFundLogs(){
const res = await getFundLog({page_size:10,page:this.pageIndex,contract_id:this.contractId}) const res = await getFundLog({page_size:10,page:this.pageIndex,contract_id:this.contractId,keyword:this.keywords,date:this.selectDate})
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total
}, },

@ -5,12 +5,12 @@
<slot> <slot>
<span style="padding: 0 6px;word-break: keep-all;">创建日期</span> <span style="padding: 0 6px;word-break: keep-all;">创建日期</span>
<span> <span>
<DatePicker placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px"></DatePicker> <DatePicker :value="selectDate" placeholder="请选择日期" type="date" placement="bottom-start" style="width: 180px" @on-change="(e)=>selectDate = e"></DatePicker>
</span> </span>
<span style="padding: 0 6px;word-break: keep-all;">关键字</span> <span style="padding: 0 6px;word-break: keep-all;">关键字</span>
<span> <span>
<Input placeholder="请输入关键字" style="width: 180px"></Input> <Input v-model="keyword" placeholder="请输入关键字" style="width: 180px"></Input>
</span> </span>
<Button type="primary" style="margin-left: 10px" ghost>重置</Button> <Button type="primary" style="margin-left: 10px" ghost>重置</Button>
@ -53,6 +53,8 @@ export default {
}, },
data() { data() {
return { return {
keyword:'',
selectDate:'',
list:[], list:[],
total:0, total:0,
pageIndex:1, pageIndex:1,
@ -116,7 +118,7 @@ export default {
}, },
async getFundLogs(){ async getFundLogs(){
const res = await getFundLog({page_size:10,page:this.pageIndex}) const res = await getFundLog({page_size:10,page:this.pageIndex,keyword:this.keyword,date:this.selectDate})
this.list = res.data this.list = res.data
this.total = res.total this.total = res.total
}, },

Loading…
Cancel
Save