‘修改合同搜索’

master
xcw 2023-03-17 10:39:55 +08:00
parent f7a65138d2
commit 3c29010266
4 changed files with 23 additions and 3 deletions

View File

@ -112,6 +112,7 @@
info: 0, info: 0,
rSelect: [], rSelect: [],
has_amount_view:false, //检查是否有查看合同金额的权限 has_amount_view:false, //检查是否有查看合同金额的权限
key_name:'',//关键词
} }
}, },
onLoad: function(t) { onLoad: function(t) {
@ -124,6 +125,9 @@
this.page >= this.totalPage || (this.page++, this.getList()) this.page >= this.totalPage || (this.page++, this.getList())
}, },
methods: { methods: {
bindKeyName: function(e){
this.key_name = e.detail.value;
},
toSelectCustomer: function() { toSelectCustomer: function() {
this.$refs.customerChild.init() this.$refs.customerChild.init()
}, },
@ -180,7 +184,8 @@
type: this.typeIndex, type: this.typeIndex,
status: this.status, status: this.status,
staff_id: this.ascripId, staff_id: this.ascripId,
customer_id: this.customerObj ? this.customerObj.id : "" customer_id: this.customerObj ? this.customerObj.id : "",
name:this.key_name
}; };
// 检查是否查看合同金额的权限 // 检查是否查看合同金额的权限
(n.checkHasAmountView)().then((function(i) { (n.checkHasAmountView)().then((function(i) {
@ -202,7 +207,7 @@
this.end_time = t.detail.value, this.start_time || (this.start_time = t.detail.value) this.end_time = t.detail.value, this.start_time || (this.start_time = t.detail.value)
}, },
reset: function() { reset: function() {
this.type = "", this.start_time = "", this.end_time = "", this.ascripId = null, this.ascripIndex = null, this.status = null, this.customerObj = null this.type = "", this.start_time = "",this.key_name = "", this.end_time = "", this.ascripId = null, this.ascripIndex = null, this.status = null, this.customerObj = null
}, },
sureQuery: function() { sureQuery: function() {
this.$refs.screenpopup.close(), this.init() this.$refs.screenpopup.close(), this.init()

View File

@ -58,6 +58,13 @@
</picker> </picker>
</view> </view>
</view> </view>
<view class="fir_li data-v-e5a6e2f8">
<view class="li_label data-v-e5a6e2f8">关键词搜索</view>
<view class="li_box data-v-e5a6e2f8" style="display:flex;">
<input type="text" value="{{key_name}}" placeholder="请输入关键词" data-event-opts="{{[['change',[['bindKeyName',['$event']]]]]}}" bindchange="__e" class="key-input"/>
</view>
</view>
</view> </view>
</scroll-view> </scroll-view>
<view class="button_bottom data-v-e5a6e2f8"> <view class="button_bottom data-v-e5a6e2f8">

File diff suppressed because one or more lines are too long

View File

@ -124,6 +124,7 @@
<view class="cost_text data-v-2a5dec54">{{"关联公司:"+item.corporation.name}}</view> <view class="cost_text data-v-2a5dec54">{{"关联公司:"+item.corporation.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"发票金额:"+item.money}}</view> <view class="cost_text data-v-2a5dec54">{{"发票金额:"+item.money}}</view>
<view class="cost_text data-v-2a5dec54">{{"消费日期:"+item.createtime}}</view> <view class="cost_text data-v-2a5dec54">{{"消费日期:"+item.createtime}}</view>
<view class="cost_text data-v-2a5dec54">{{"创建人:"+item.staff.name}}</view>
</view> </view>
</view> </view>
</view> </view>