修改费用搜索

master
xcw 2023-03-17 16:54:05 +08:00
parent e33ec05767
commit b4d1a0379f
5 changed files with 213 additions and 10 deletions

View File

@ -48,7 +48,7 @@
</block>
<view class="roll" wx:if="{{has_amount_view}}">
<view class="roll">
<scroll-view class="scrollView" scroll-x="true" lower-threshold="50" enable-flex="{{true}}">
<view class="scrollbox">
<view data-event-opts="{{[['tap',[['toAddBills',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
@ -61,11 +61,12 @@
<view class="scroll_foot">报销</view>
</view>
<view data-event-opts="{{[['tap',[['toAddPayment',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view data-event-opts="{{[['tap',[['toAddPayment',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e" wx:if="{{has_amount_view}}">
<view class="scroll_top" style="font-size: 32rpx;">{{info.receivables?info.receivables.repayment_money:''}}</view>
<view class="scroll_foot">回款</view>
</view>
</view>
</scroll-view>
</view>

View File

@ -1 +1 @@
.bot_total.data-v-5cad64ad{position:fixed;left:0;bottom:0;width:750rpx;height:80rpx;background:#fff;font-size:24rpx;color:#333;text-align:center;line-height:80rpx;color:#03aa96}.botwarp.data-v-5cad64ad{background:#fff;padding:0 24rpx}.botwarp .wa_li.data-v-5cad64ad{padding:24rpx 35rpx;border-bottom:1rpx solid #f5f5f5;display:flex;justify-content:space-between;align-items:center}.botwarp .wa_li .wa_label.data-v-5cad64ad{font-size:24rpx;color:#333}.botwarp .wa_li .wa_money.data-v-5cad64ad{font-size:24rpx;color:#666}.botwarp .wa_li .wa_money text.data-v-5cad64ad{color:#03aa96}.botwarp .wa_btn.data-v-5cad64ad{width:100%;height:100rpx;font-size:24rpx;color:#03aa96;text-align:center;line-height:100rpx}.tab_list.data-v-5cad64ad{width:750rpx;height:80rpx;display:flex;justify-content:space-around;align-items:center;background:#fff}.tab_list .tabli.data-v-5cad64ad{font-size:24rpx;color:#333;line-height:75rpx;text-align:center;border-bottom:4rpx solid #fff}.tab_list .tabliactive.data-v-5cad64ad{border-bottom:4rpx solid #03aa96}.searchbox.data-v-5cad64ad{display:flex;justify-content:flex-end;margin:24rpx}.searchbox .searchtext.data-v-5cad64ad{display:flex;justify-content:center;align-items:center;font-size:24rpx;color:#03aa96;padding:8rpx 28rpx;background:#fff;border-radius:5rpx;box-shadow:2rpx 2rpx 50rpx rgba(0,0,0,.1)}.searchbox .searchtext .icon-shaixuan.data-v-5cad64ad{color:#03aa96}.scrollbox.data-v-5cad64ad{width:750rpx;height:calc(100vh - 180rpx)}
.bot_total.data-v-5cad64ad{position:fixed;left:0;bottom:0;width:750rpx;height:80rpx;background:#fff;font-size:24rpx;color:#333;text-align:center;line-height:80rpx;color:#03aa96}.botwarp.data-v-5cad64ad{background:#fff;padding:0 24rpx}.botwarp .wa_li.data-v-5cad64ad{padding:24rpx 35rpx;border-bottom:1rpx solid #f5f5f5;display:flex;justify-content:space-between;align-items:center}.botwarp .wa_li .wa_label.data-v-5cad64ad{font-size:24rpx;color:#333}.botwarp .wa_li .wa_money.data-v-5cad64ad{font-size:24rpx;color:#666}.botwarp .wa_li .wa_money text.data-v-5cad64ad{color:#03aa96}.botwarp .wa_btn.data-v-5cad64ad{width:100%;height:100rpx;font-size:24rpx;color:#03aa96;text-align:center;line-height:100rpx}.tab_list.data-v-5cad64ad{width:750rpx;height:80rpx;display:flex;justify-content:space-around;align-items:center;background:#fff}.tab_list .tabli.data-v-5cad64ad{font-size:24rpx;color:#333;line-height:75rpx;text-align:center;border-bottom:4rpx solid #fff}.tab_list .tabliactive.data-v-5cad64ad{border-bottom:4rpx solid #03aa96}.searchbox.data-v-5cad64ad{display:flex;justify-content:flex-end;margin:24rpx}.searchbox .searchtext.data-v-5cad64ad{display:flex;justify-content:center;align-items:center;font-size:24rpx;color:#03aa96;padding:8rpx 28rpx;background:#fff;border-radius:5rpx;box-shadow:2rpx 2rpx 50rpx rgba(0,0,0,.1)}.searchbox .searchtext .icon-shaixuan.data-v-5cad64ad{color:#03aa96}.scrollbox.data-v-5cad64ad{width:750rpx;height:calc(100vh - 180rpx)}

View File

@ -1,10 +1,145 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/cost/screen"],{"479a":function(t,e,n){"use strict";n.r(e);var i=n("a723"),s=n("b5cd");for(var u in s)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(u);n("d50f");var c=n("f0c5"),o=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"199dac44",null,!1,i["a"],void 0);e["default"]=o.exports},"5b00":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={components:{selectCustomer:function(){Promise.all([n.e("common/vendor"),n.e("components/selectCustomer")]).then(function(){return resolve(n("5bcd"))}.bind(null,n)).catch(n.oe)}},data:function(){return{times:"",statusList:[{id:1,name:"待审核"},{id:2,name:"审核通过"},{id:3,name:"审核拒绝"}],check_status:null,customerObj:null,start_time:"",end_time:""}},methods:{init:function(){this.$refs.popup.open()},close:function(){this.$refs.popup.close()},toSelectCustomer:function(){this.$refs.customerChild.init()},getCustomerinfo:function(t){this.customerObj=t},changeTab:function(t){this.check_status=t.detail.value},changeStartTime:function(t){this.start_time=t.detail.value,this.end_time||(this.end_time=t.detail.value)},changeEndTime:function(t){this.end_time=t.detail.value,this.start_time||(this.start_time=t.detail.value)},reset:function(){this.check_status=null,this.customerObj=null,this.start_time="",this.end_time=""},sureQuery:function(){var t={times:this.start_time&&this.end_time?this.start_time+","+this.end_time:"",check_status:this.statusList[this.check_status]?this.statusList[this.check_status].id:"",customer_id:this.customerObj?this.customerObj.id:""};this.close(),this.$emit("sureParams",t)}}};e.default=i},a723:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var i={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"6f9d"))}},s=function(){var t=this.$createElement;this._self._c},u=[]},b5cd:function(t,e,n){"use strict";n.r(e);var i=n("5b00"),s=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=s.a},c7bd:function(t,e,n){},d50f:function(t,e,n){"use strict";var i=n("c7bd"),s=n.n(i);s.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
require('../common/vendor.js');
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
["pagesA/cost/screen"], {
"479a": function(t, e, n) {
"use strict";
n.r(e);
var i = n("a723"),
s = n("b5cd");
for (var u in s)["default"].indexOf(u) < 0 && function(t) {
n.d(e, t, (function() {
return s[t]
}))
}(u);
n("d50f");
var c = n("f0c5"),
o = Object(c["a"])(s["default"], i["b"], i["c"], !1, null, "199dac44", null, !1, i["a"], void 0);
e["default"] = o.exports
},
"5b00": function(t, e, n) {
"use strict";
Object.defineProperty(e, "__esModule", {
value: !0
}), e.default = void 0;
var i = {
components: {
selectCustomer: function() {
Promise.all([n.e("common/vendor"), n.e("components/selectCustomer")]).then(function() {
return resolve(n("5bcd"))
}.bind(null, n)).catch(n.oe)
}
},
data: function() {
return {
times: "",
statusList: [{
id: 1,
name: "待审核"
}, {
id: 2,
name: "审核通过"
}, {
id: 3,
name: "审核拒绝"
}],
check_status: null,
customerObj: null,
start_time: "",
end_time: "",
key_name:'',
}
},
methods: {
bindKeyName: function(e){
this.key_name = e.detail.value;
},
init: function() {
this.$refs.popup.open()
},
close: function() {
this.$refs.popup.close()
},
toSelectCustomer: function() {
this.$refs.customerChild.init()
},
getCustomerinfo: function(t) {
this.customerObj = t
},
changeTab: function(t) {
this.check_status = t.detail.value
},
changeStartTime: function(t) {
this.start_time = t.detail.value, this.end_time || (this.end_time = t.detail.value)
},
changeEndTime: function(t) {
this.end_time = t.detail.value, this.start_time || (this.start_time = t.detail.value)
},
reset: function() {
this.check_status = null, this.customerObj = null, this.start_time = "", this.end_time = "",
this.key_name = ""
},
sureQuery: function() {
var t = {
times: this.start_time && this.end_time ? this.start_time + "," + this.end_time : "",
check_status: this.statusList[this.check_status] ? this.statusList[this.check_status].id : "",
customer_id: this.customerObj ? this.customerObj.id : "",
name:this.key_name ? this.key_name : "",
};
this.close(), this.$emit("sureParams", t)
}
}
};
e.default = i
},
a723: function(t, e, n) {
"use strict";
n.d(e, "b", (function() {
return s
})), n.d(e, "c", (function() {
return u
})), n.d(e, "a", (function() {
return i
}));
var i = {
uniPopup: function() {
return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null, "6f9d"))
}
},
s = function() {
var t = this.$createElement;
this._self._c
},
u = []
},
b5cd: function(t, e, n) {
"use strict";
n.r(e);
var i = n("5b00"),
s = n.n(i);
for (var u in i)["default"].indexOf(u) < 0 && function(t) {
n.d(e, t, (function() {
return i[t]
}))
}(u);
e["default"] = s.a
},
c7bd: function(t, e, n) {},
d50f: function(t, e, n) {
"use strict";
var i = n("c7bd"),
s = n.n(i);
s.a
}
}
]);;
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pagesA/cost/screen-create-component',
{
'pagesA/cost/screen-create-component':(function(module, exports, __webpack_require__){
'pagesA/cost/screen-create-component': (function(module, exports, __webpack_require__) {
__webpack_require__('543d')['createComponent'](__webpack_require__("479a"))
})
},
[['pagesA/cost/screen-create-component']]
]);
[
['pagesA/cost/screen-create-component']
]
]);

View File

@ -1 +1,56 @@
<view class="data-v-199dac44"><uni-popup vue-id="abc9d148-1" type="top" background-color="#fff" data-ref="popup" class="data-v-199dac44 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view class="scrollbox data-v-199dac44" style="height:600rpx;background:#fff;" scroll-y="{{true}}"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="screen_content data-v-199dac44" catchtap="__e"><view class="fir_li data-v-199dac44"><view class="li_label data-v-199dac44">关联客户</view><view data-event-opts="{{[['tap',[['toSelectCustomer',['$event']]]]]}}" class="li_box data-v-199dac44" bindtap="__e"><view class="form_right data-v-199dac44" style="text-align:center;"><view class="{{['data-v-199dac44',customerObj?'valueActive':'']}}">{{''+(customerObj?customerObj.name:'点击选择')+''}}</view><view class="iconfont icon-arrows_right data-v-199dac44"></view></view></view></view><view class="fir_li data-v-199dac44"><view class="li_label data-v-199dac44">费用状态</view><picker value="{{check_status}}" range="{{statusList}}" range-key="name" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e" class="data-v-199dac44"><view class="li_box data-v-199dac44"><view class="form_right data-v-199dac44" style="text-align:center;"><view class="{{['data-v-199dac44',statusList[check_status]?'valueActive':'']}}">{{''+(statusList[check_status]?statusList[check_status].name:'点击选择')+''}}</view><view class="iconfont icon-arrows_right data-v-199dac44"></view></view></view></picker></view><view class="fir_li data-v-199dac44"><view class="li_label data-v-199dac44">时间筛选</view><view class="li_box data-v-199dac44" style="display:flex;"><picker style="width:50%;border-right:1rpx solid #CCCCCC;" mode="date" end="{{end_time}}" data-event-opts="{{[['change',[['changeStartTime',['$event']]]]]}}" bindchange="__e" class="data-v-199dac44"><view class="form_right data-v-199dac44"><view class="{{['data-v-199dac44',start_time?'valueactive':'']}}" style="flex:1;text-align:center;">{{''+(start_time?start_time:'开始时间')}}</view></view></picker><picker style="width:50%;" mode="date" start="{{start_time}}" data-event-opts="{{[['change',[['changeEndTime',['$event']]]]]}}" bindchange="__e" class="data-v-199dac44"><view class="form_right data-v-199dac44"><view class="{{['data-v-199dac44',end_time?'valueactive':'']}}" style="flex:1;text-align:center;">{{(end_time?end_time:'结束时间')+''}}</view></view></picker></view></view></view></scroll-view><view class="button_bottom data-v-199dac44"><view data-event-opts="{{[['tap',[['reset',['$event']]]]]}}" catchtap="__e" class="data-v-199dac44">重置</view><view data-event-opts="{{[['tap',[['sureQuery',['$event']]]]]}}" catchtap="__e" class="data-v-199dac44">确定</view></view></uni-popup><select-customer bind:getCustomerinfo="__e" vue-id="abc9d148-2" data-ref="customerChild" data-event-opts="{{[['^getCustomerinfo',[['getCustomerinfo']]]]}}" class="data-v-199dac44 vue-ref" bind:__l="__l"></select-customer></view>
<view class="data-v-199dac44">
<uni-popup vue-id="abc9d148-1" type="top" background-color="#fff" data-ref="popup" class="data-v-199dac44 vue-ref" bind:__l="__l" vue-slots="{{['default']}}">
<scroll-view class="scrollbox data-v-199dac44" style="height:600rpx;background:#fff;" scroll-y="{{true}}">
<view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="screen_content data-v-199dac44" catchtap="__e">
<view class="fir_li data-v-199dac44">
<view class="li_label data-v-199dac44">关联客户</view>
<view data-event-opts="{{[['tap',[['toSelectCustomer',['$event']]]]]}}" class="li_box data-v-199dac44" bindtap="__e">
<view class="form_right data-v-199dac44" style="text-align:center;">
<view class="{{['data-v-199dac44',customerObj?'valueActive':'']}}">{{''+(customerObj?customerObj.name:'点击选择')+''}}</view>
<view class="iconfont icon-arrows_right data-v-199dac44"></view>
</view>
</view>
</view>
<view class="fir_li data-v-199dac44">
<view class="li_label data-v-199dac44">费用状态</view>
<picker value="{{check_status}}" range="{{statusList}}" range-key="name" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e" class="data-v-199dac44">
<view class="li_box data-v-199dac44">
<view class="form_right data-v-199dac44" style="text-align:center;">
<view class="{{['data-v-199dac44',statusList[check_status]?'valueActive':'']}}">{{''+(statusList[check_status]?statusList[check_status].name:'点击选择')+''}}</view>
<view class="iconfont icon-arrows_right data-v-199dac44"></view>
</view>
</view>
</picker>
</view>
<view class="fir_li data-v-199dac44">
<view class="li_label data-v-199dac44">时间筛选</view>
<view class="li_box data-v-199dac44" style="display:flex;">
<picker style="width:50%;border-right:1rpx solid #CCCCCC;" mode="date" end="{{end_time}}" data-event-opts="{{[['change',[['changeStartTime',['$event']]]]]}}" bindchange="__e" class="data-v-199dac44">
<view class="form_right data-v-199dac44">
<view class="{{['data-v-199dac44',start_time?'valueactive':'']}}" style="flex:1;text-align:center;">{{''+(start_time?start_time:'开始时间')}}</view>
</view>
</picker>
<picker style="width:50%;" mode="date" start="{{start_time}}" data-event-opts="{{[['change',[['changeEndTime',['$event']]]]]}}" bindchange="__e" class="data-v-199dac44">
<view class="form_right data-v-199dac44">
<view class="{{['data-v-199dac44',end_time?'valueactive':'']}}" style="flex:1;text-align:center;">{{(end_time?end_time:'结束时间')+''}}</view>
</view>
</picker>
</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>
</scroll-view>
<view class="button_bottom data-v-199dac44">
<view data-event-opts="{{[['tap',[['reset',['$event']]]]]}}" catchtap="__e" class="data-v-199dac44">重置</view>
<view data-event-opts="{{[['tap',[['sureQuery',['$event']]]]]}}" catchtap="__e" class="data-v-199dac44">确定</view>
</view>
</uni-popup>
<select-customer bind:getCustomerinfo="__e" vue-id="abc9d148-2" data-ref="customerChild" data-event-opts="{{[['^getCustomerinfo',[['getCustomerinfo']]]]}}" class="data-v-199dac44 vue-ref" bind:__l="__l"></select-customer>
</view>

View File

@ -1 +1,13 @@
.screen_content.data-v-199dac44{width:702rpx;z-index:2;border-top:1rpx solid #ccc;background-color:#fff;padding:24rpx}.screen_content .fir_li.data-v-199dac44{margin-bottom:20rpx}.screen_content .fir_li .li_label.data-v-199dac44{font-size:28rpx;color:#333;margin-bottom:15rpx}.screen_content .fir_li .li_box.data-v-199dac44{border-radius:15rpx;border:1rpx solid #ccc;height:60rpx;padding:0 35rpx;line-height:60rpx}.screen_content .fir_li .form_right.data-v-199dac44{display:flex;justify-content:space-between;color:#999}.screen_content .fir_li .form_right image.data-v-199dac44{width:40rpx;height:40rpx;margin:28rpx 5rpx 0 0}.screen_content .fir_li .form_right .rightinput.data-v-199dac44{height:60rpx;line-height:60rpx;width:100%}.button_bottom.data-v-199dac44{display:flex;width:100%;height:90rpx;background-color:#fff;line-height:90rpx;text-align:center;font-size:32rpx}.button_bottom.data-v-199dac44 :first-child{flex:1;color:#03aa96;border-top:1rpx solid #ccc}.button_bottom.data-v-199dac44 :last-child{flex:1;background-color:#03aa96;color:#fff}
.screen_content.data-v-199dac44{width:702rpx;z-index:2;border-top:1rpx solid #ccc;background-color:#fff;padding:24rpx}.screen_content .fir_li.data-v-199dac44{margin-bottom:20rpx}.screen_content .fir_li .li_label.data-v-199dac44{font-size:28rpx;color:#333;margin-bottom:15rpx}.screen_content .fir_li .li_box.data-v-199dac44{border-radius:15rpx;border:1rpx solid #ccc;height:60rpx;padding:0 35rpx;line-height:60rpx}.screen_content .fir_li .form_right.data-v-199dac44{display:flex;justify-content:space-between;color:#999}.screen_content .fir_li .form_right image.data-v-199dac44{width:40rpx;height:40rpx;margin:28rpx 5rpx 0 0}.screen_content .fir_li .form_right .rightinput.data-v-199dac44{height:60rpx;line-height:60rpx;width:100%}.button_bottom.data-v-199dac44{display:flex;width:100%;height:90rpx;background-color:#fff;line-height:90rpx;text-align:center;font-size:32rpx}.button_bottom.data-v-199dac44 :first-child{flex:1;color:#03aa96;border-top:1rpx solid #ccc}.button_bottom.data-v-199dac44 :last-child{flex:1;background-color:#03aa96;color:#fff}
.key-input {
width: 100%;
height: 60rpx;
line-height: 60rpx;
display: block;
border-radius: 15rpx;
border: 1rpx solid #ccc;
height: 60rpx;
padding: 0 35rpx;
line-height: 60rpx;
margin-top: 20rpx;
}