更新接口

master
xcw 2023-03-14 14:28:27 +08:00
parent fb444babaa
commit fb5f442d8a
15 changed files with 24513 additions and 31 deletions

10
app.js
View File

@ -1,4 +1,12 @@
require('./common/runtime.js')
require('./common/vendor.js')
require('./common/main.js')
require('./common/main.js')
App({
globalData: {
BASE_IMG_URL:"https://crm.hebeidazhe.com/assets/addons/crmx/mini/",
BASE_URL:"http://crm.scdxtc.cn",
}
})

View File

@ -96,6 +96,7 @@
"payment/index",
"payplan/index",
"cost/index",
"bills/index",
"circulate/index",
"circulate/add",
"circulate/edit",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

106
pagesA/bills/index.js Normal file
View File

@ -0,0 +1,106 @@
// pagesA/bills/index.js
require('../common/vendor.js');
const app = getApp(); //全局app
Page({
/**
* 页面的初始数据
*/
data: {
BASE_IMG_URL: app.globalData.BASE_IMG_URL,
BASE_URL:app.globalData.BASE_URL,
page: 1,
totalPage: 1,
list: [
{
check_staff_ids: "126",
check_status: 2,
consume_time: "2023-02-27",
consume_type: "住酒店",
createtime: "2023-02-27 10:25:09"
},
{
check_staff_ids: "122",
check_status: 2,
consume_time: "2023-02-21",
consume_type: "住酒店",
createtime: "2023-02-27 10:25:09"
}
],
queryParams: {},
moneyInfo: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getBillList();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
getBillList() {
console.log(this.data.BASE_URL)
wx.request({
url: this.data.BASE_URL + '/addons/crmx/bill/getContractList',
data: {
page: this.data.page
},
header: {
'content-type': 'application/json', // 默认值
'token': wx.getStorageSync('token'),
},
success (res) {
console.log(res.data)
}
})
}
})

8
pagesA/bills/index.json Normal file
View File

@ -0,0 +1,8 @@
{
"navigationBarTitleText": "发票",
"usingComponents": {
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
"screen-pop": "/pagesA/cost/screen",
"cost-item": "/pagesA/cost/item"
}
}

22
pagesA/bills/index.wxml Normal file
View File

@ -0,0 +1,22 @@
<view class="data-v-5cad64ad">
<scroll-view class="scrollbox data-v-5cad64ad" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loodMore',['$event']]]]]}}" bindscrolltolower="__e">
<view class="payList data-v-5cad64ad">
<block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" class="cost data-v-2a5dec54" bindtap="__e">
<view class="cost_info data-v-2a5dec54">
<view class="cost_left data-v-2a5dec54">
<view class="cost_text data-v-2a5dec54">{{"关联公司:"+item.customer.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"发票金额:"+item.money}}</view>
<view class="cost_text data-v-2a5dec54">{{"消费日期:"+item.consume_time}}</view>
</view>
</view>
</view>
</block>
</view>
</scroll-view>
<view data-event-opts="{{[['tap',[['addCost',['$event']]]]]}}" class="icon_creat data-v-5cad64ad" bindtap="__e">
<image src="{{BASE_IMG_URL+'1.png'}}" mode="scaleToFill" class="data-v-5cad64ad"></image>
</view>
<screen-pop bind:sureParams="__e" vue-id="0e7795c2-3" data-ref="screenChild" data-event-opts="{{[['^sureParams',[['surePa']]]]}}" class="data-v-5cad64ad vue-ref" bind:__l="__l"></screen-pop>
</view>

86
pagesA/bills/index.wxss Normal file
View File

@ -0,0 +1,86 @@
.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)
}
.cost.data-v-2a5dec54{width:690rpx;margin:0 auto 24rpx;background:#fff;border-radius:20rpx;padding:30rpx;position:relative}.cost .cost_type.data-v-2a5dec54{font-size:28rpx;color:#333;padding-bottom:15rpx;border-bottom:1rpx solid #f5f5f5}.cost .cost_status.data-v-2a5dec54{position:absolute;right:24rpx;top:24rpx;background:rgba(3,170,150,.1);border-radius:5rpx;font-size:26rpx;color:#03aa96;padding:5rpx 12rpx}.cost .cost_info.data-v-2a5dec54{display:flex;justify-content:space-between;align-items:center;padding:10rpx}.cost .cost_info .cost_left .cost_text.data-v-2a5dec54{font-size:24rpx;color:#999;margin-bottom:10rpx}.cost .cost_info .cost_right.data-v-2a5dec54{display:flex;flex-direction:column;align-items:center}.cost .cost_info .cost_right .staffimg.data-v-2a5dec54{width:80rpx;height:80rpx;border-radius:50%;margin-bottom:8rpx}.cost .cost_info .cost_right .staffname.data-v-2a5dec54{font-size:24rpx;color:#999}

View File

@ -1 +1,176 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/cost/index"],{6774:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"6f9d"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},b92c:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("8886");o(n("66fd"));var i=o(n("f6d8"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},bade:function(t,e,n){"use strict";n.r(e);var o=n("e856"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},ce1d:function(t,e,n){"use strict";var o=n("f0fb"),i=n.n(o);i.a},e856:function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("9523")),r=n("76dd"),a=n("0c59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var u={components:{screenPop:function(){n.e("pagesA/cost/screen").then(function(){return resolve(n("479a"))}.bind(null,n)).catch(n.oe)},costItem:function(){n.e("pagesA/cost/item").then(function(){return resolve(n("ed12"))}.bind(null,n)).catch(n.oe)}},data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL,type:0,page:1,totalPage:1,list:[],queryParams:{},moneyInfo:{}}},onLoad:function(){},onShow:function(){this.init()},methods:{lookTotal:function(){this.$refs.popup.open()},removeTotal:function(){this.$refs.popup.close()},changeFirTab:function(t){this.type=t,this.init()},surePa:function(t){this.queryParams=t,this.init()},toQuery:function(){this.$refs.screenChild.init()},loodMore:function(){this.page<this.totalPage&&(this.page++,this.getList())},init:function(){var t=this;this.page=1,this.list=[],setTimeout((function(){t.getList()}),200)},getList:function(){var t=this,e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({type:this.type,page:this.page},this.queryParams);(0,r.netCostList)(e).then((function(e){t.list=t.list.concat(e.data.data),t.totalPage=e.data.last_page,t.moneyInfo=e.data.moneyinfo}))},addCost:function(){t.navigateTo({url:"/pages/index/groupCompany/cost/addCost"})}}};e.default=u}).call(this,n("543d")["default"])},f0fb:function(t,e,n){},f6d8:function(t,e,n){"use strict";n.r(e);var o=n("6774"),i=n("bade");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("ce1d");var a=n("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"5cad64ad",null,!1,o["a"],void 0);e["default"]=c.exports}},[["b92c","common/runtime","common/vendor"]]]);
require('../common/vendor.js');
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
["pagesA/cost/index"], {
6774: function(t, e, n) {
"use strict";
n.d(e, "b", (function() {
return i
})), n.d(e, "c", (function() {
return r
})), n.d(e, "a", (function() {
return o
}));
var o = {
uniPopup: function() {
return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null, "6f9d"))
}
},
i = function() {
var t = this.$createElement;
this._self._c
},
r = []
},
b92c: function(t, e, n) {
"use strict";
(function(t, e) {
var o = n("4ea4");
n("8886");
o(n("66fd"));
var i = o(n("f6d8"));
t.__webpack_require_UNI_MP_PLUGIN__ = n, e(i.default)
}).call(this, n("bc2e")["default"], n("543d")["createPage"])
},
bade: function(t, e, n) {
"use strict";
n.r(e);
var o = n("e856"),
i = n.n(o);
for (var r in o)["default"].indexOf(r) < 0 && function(t) {
n.d(e, t, (function() {
return o[t]
}))
}(r);
e["default"] = i.a
},
ce1d: function(t, e, n) {
"use strict";
var o = n("f0fb"),
i = n.n(o);
i.a
},
e856: function(t, e, n) {
"use strict";
(function(t) {
var o = n("4ea4");
Object.defineProperty(e, "__esModule", {
value: !0
}), e.default = void 0;
var i = o(n("9523")),
r = n("76dd"),
a = n("0c59");
function c(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(t);
e && (o = o.filter((function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
}))), n.push.apply(n, o)
}
return n
}
var u = {
components: {
screenPop: function() {
n.e("pagesA/cost/screen").then(function() {
return resolve(n("479a"))
}.bind(null, n)).catch(n.oe)
},
costItem: function() {
n.e("pagesA/cost/item").then(function() {
return resolve(n("ed12"))
}.bind(null, n)).catch(n.oe)
}
},
data: function() {
return {
BASE_IMG_URL: a.BASE_IMG_URL,
type: 0,
page: 1,
totalPage: 1,
list: [],
queryParams: {},
moneyInfo: {}
}
},
onLoad: function() {},
onShow: function() {
this.init()
},
methods: {
lookTotal: function() {
this.$refs.popup.open()
},
removeTotal: function() {
this.$refs.popup.close()
},
changeFirTab: function(t) {
this.type = t, this.init()
},
surePa: function(t) {
this.queryParams = t, this.init()
},
toQuery: function() {
this.$refs.screenChild.init()
},
loodMore: function() {
this.page < this.totalPage && (this.page++, this.getList())
},
init: function() {
var t = this;
this.page = 1, this.list = [], setTimeout((function() {
t.getList()
}), 200)
},
getList: function() {
var t = this,
e = function(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? c(Object(n), !0).forEach((function(e) {
(0, i.default)(t, e, n[e])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : c(Object(n)).forEach((function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
}))
}
return t
}({
type: this.type,
page: this.page
}, this.queryParams);
(0, r.netCostList)(e).then((function(e) {
t.list = t.list.concat(e.data.data), t.totalPage = e.data.last_page, t.moneyInfo = e.data.moneyinfo
}))
},
addCost: function() {
t.navigateTo({
url: "/pages/index/groupCompany/cost/addCost"
})
}
}
};
e.default = u
}).call(this, n("543d")["default"])
},
f0fb: function(t, e, n) {},
f6d8: function(t, e, n) {
"use strict";
n.r(e);
var o = n("6774"),
i = n("bade");
for (var r in i)["default"].indexOf(r) < 0 && function(t) {
n.d(e, t, (function() {
return i[t]
}))
}(r);
n("ce1d");
var a = n("f0c5"),
c = Object(a["a"])(i["default"], o["b"], o["c"], !1, null, "5cad64ad", null, !1, o["a"], void 0);
e["default"] = c.exports
}
},
[
["b92c", "common/runtime", "common/vendor"]
]
]);

View File

@ -1 +1,44 @@
<view class="data-v-5cad64ad"><view class="tab_list data-v-5cad64ad"><view data-event-opts="{{[['tap',[['changeFirTab',[0]]]]]}}" class="{{['tabli','data-v-5cad64ad',type==0?'tabliactive':'']}}" bindtap="__e">全部</view><view data-event-opts="{{[['tap',[['changeFirTab',[1]]]]]}}" class="{{['tabli','data-v-5cad64ad',type==1?'tabliactive':'']}}" bindtap="__e">我负责的</view><view data-event-opts="{{[['tap',[['changeFirTab',[2]]]]]}}" class="{{['tabli','data-v-5cad64ad',type==2?'tabliactive':'']}}" bindtap="__e">下属负责的</view></view><view class="searchbox data-v-5cad64ad"><view data-event-opts="{{[['tap',[['toQuery',['$event']]]]]}}" class="searchtext data-v-5cad64ad" bindtap="__e">筛选<view class="iconfont icon-shaixuan data-v-5cad64ad"></view></view></view><scroll-view class="scrollbox data-v-5cad64ad" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loodMore',['$event']]]]]}}" bindscrolltolower="__e"><view class="payList data-v-5cad64ad"><cost-item vue-id="0e7795c2-1" list="{{list}}" class="data-v-5cad64ad" bind:__l="__l"></cost-item></view></scroll-view><view style="height:200rpx;" class="data-v-5cad64ad"></view><view data-event-opts="{{[['tap',[['lookTotal',['$event']]]]]}}" class="bot_total data-v-5cad64ad" bindtap="__e">总金额合计></view><uni-popup vue-id="0e7795c2-2" type="bottom" background-color="#fff" data-ref="popup" data-event-opts="{{[['^touchmove',[['',['$event']]]]]}}" catch:touchmove="__e" class="data-v-5cad64ad vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="botwarp data-v-5cad64ad"><view class="wa_li data-v-5cad64ad"><view class="wa_label data-v-5cad64ad">总金额</view><view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.allmoney?moneyInfo.allmoney:'0'}}</text>元</view></view><view class="wa_li data-v-5cad64ad"><view class="wa_label data-v-5cad64ad">费用待审核总金额</view><view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.inmoney?moneyInfo.inmoney:'0'}}</text>元</view></view><view class="wa_li data-v-5cad64ad"><view class="wa_label data-v-5cad64ad">费用审核通过总金额</view><view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.remoney?moneyInfo.remoney:'0'}}</text>元</view></view><view class="wa_li data-v-5cad64ad"><view class="wa_label data-v-5cad64ad">费用审核未通过金额</view><view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.nomoney?moneyInfo.nomoney:'0'}}</text>元</view></view><view data-event-opts="{{[['tap',[['removeTotal',['$event']]]]]}}" class="wa_btn data-v-5cad64ad" bindtap="__e">取消</view></view></uni-popup><view data-event-opts="{{[['tap',[['addCost',['$event']]]]]}}" class="icon_creat data-v-5cad64ad" bindtap="__e"><image src="{{BASE_IMG_URL+'1.png'}}" mode="scaleToFill" class="data-v-5cad64ad"></image></view><screen-pop bind:sureParams="__e" vue-id="0e7795c2-3" data-ref="screenChild" data-event-opts="{{[['^sureParams',[['surePa']]]]}}" class="data-v-5cad64ad vue-ref" bind:__l="__l"></screen-pop></view>
<view class="data-v-5cad64ad">
<view class="tab_list data-v-5cad64ad">
<view data-event-opts="{{[['tap',[['changeFirTab',[0]]]]]}}" class="{{['tabli','data-v-5cad64ad',type==0?'tabliactive':'']}}" bindtap="__e">全部</view>
<view data-event-opts="{{[['tap',[['changeFirTab',[1]]]]]}}" class="{{['tabli','data-v-5cad64ad',type==1?'tabliactive':'']}}" bindtap="__e">我负责的</view>
<view data-event-opts="{{[['tap',[['changeFirTab',[2]]]]]}}" class="{{['tabli','data-v-5cad64ad',type==2?'tabliactive':'']}}" bindtap="__e">下属负责的</view>
</view>
<view class="searchbox data-v-5cad64ad">
<view data-event-opts="{{[['tap',[['toQuery',['$event']]]]]}}" class="searchtext data-v-5cad64ad" bindtap="__e">筛选
<view class="iconfont icon-shaixuan data-v-5cad64ad"></view>
</view>
</view>
<scroll-view class="scrollbox data-v-5cad64ad" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loodMore',['$event']]]]]}}" bindscrolltolower="__e">
<view class="payList data-v-5cad64ad">
<cost-item vue-id="0e7795c2-1" list="{{list}}" class="data-v-5cad64ad" bind:__l="__l"></cost-item>
</view>
</scroll-view>
<view style="height:200rpx;" class="data-v-5cad64ad"></view>
<view data-event-opts="{{[['tap',[['lookTotal',['$event']]]]]}}" class="bot_total data-v-5cad64ad" bindtap="__e">总金额合计></view>
<uni-popup vue-id="0e7795c2-2" type="bottom" background-color="#fff" data-ref="popup" data-event-opts="{{[['^touchmove',[['',['$event']]]]]}}" catch:touchmove="__e" class="data-v-5cad64ad vue-ref" bind:__l="__l" vue-slots="{{['default']}}">
<view class="botwarp data-v-5cad64ad">
<view class="wa_li data-v-5cad64ad">
<view class="wa_label data-v-5cad64ad">总金额</view>
<view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.allmoney?moneyInfo.allmoney:'0'}}</text>元</view>
</view>
<view class="wa_li data-v-5cad64ad">
<view class="wa_label data-v-5cad64ad">费用待审核总金额</view>
<view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.inmoney?moneyInfo.inmoney:'0'}}</text>元</view>
</view>
<view class="wa_li data-v-5cad64ad">
<view class="wa_label data-v-5cad64ad">费用审核通过总金额</view>
<view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.remoney?moneyInfo.remoney:'0'}}</text>元</view>
</view>
<view class="wa_li data-v-5cad64ad">
<view class="wa_label data-v-5cad64ad">费用审核未通过金额</view>
<view class="wa_money data-v-5cad64ad"><text class="data-v-5cad64ad">{{moneyInfo.nomoney?moneyInfo.nomoney:'0'}}</text>元</view>
</view>
<view data-event-opts="{{[['tap',[['removeTotal',['$event']]]]]}}" class="wa_btn data-v-5cad64ad" bindtap="__e">取消</view>
</view>
</uni-popup>
<view data-event-opts="{{[['tap',[['addCost',['$event']]]]]}}" class="icon_creat data-v-5cad64ad" bindtap="__e">
<image src="{{BASE_IMG_URL+'1.png'}}" mode="scaleToFill" class="data-v-5cad64ad"></image>
</view>
<screen-pop bind:sureParams="__e" vue-id="0e7795c2-3" data-ref="screenChild" data-event-opts="{{[['^sureParams',[['surePa']]]]}}" class="data-v-5cad64ad vue-ref" bind:__l="__l"></screen-pop>
</view>

View File

@ -1 +1,36 @@
<view class="data-v-2a5dec54"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" class="cost data-v-2a5dec54" bindtap="__e"><block wx:if="{{item.check_status==0}}"><view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">待审核</label></view></block><block wx:if="{{item.check_status==1}}"><view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核中</label></view></block><block wx:if="{{item.check_status==2}}"><view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核通过</label></view></block><block wx:if="{{item.check_status==3}}"><view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核未通过</label></view></block><block wx:if="{{item.check_status==4}}"><view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">撤销</label></view></block><view class="cost_type data-v-2a5dec54">{{item.consume_type}}</view><view class="cost_info data-v-2a5dec54"><view class="cost_left data-v-2a5dec54"><view class="cost_text data-v-2a5dec54">{{"关联客户:"+item.customer.name}}</view><view class="cost_text data-v-2a5dec54">{{"费用金额:"+item.money}}</view><view class="cost_text data-v-2a5dec54">{{"消费日期:"+item.consume_time}}</view></view><view class="cost_right data-v-2a5dec54"><image class="staffimg data-v-2a5dec54" src="{{item.staff.img}}" mode></image><view class="staffname data-v-2a5dec54">{{item.staff.name}}</view></view></view></view></block><block wx:if="{{$root.g0==0}}"><u-empty vue-id="b3d048d6-1" text="暂无更多" class="data-v-2a5dec54" bind:__l="__l"></u-empty></block></view>
<view class="data-v-2a5dec54">
<block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" class="cost data-v-2a5dec54" bindtap="__e">
<block wx:if="{{item.check_status==0}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">待审核</label></view>
</block>
<block wx:if="{{item.check_status==1}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核中</label></view>
</block>
<block wx:if="{{item.check_status==2}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核通过</label></view>
</block>
<block wx:if="{{item.check_status==3}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核未通过</label></view>
</block>
<block wx:if="{{item.check_status==4}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">撤销</label></view>
</block>
<view class="cost_type data-v-2a5dec54">{{item.consume_type}}</view>
<view class="cost_info data-v-2a5dec54">
<view class="cost_left data-v-2a5dec54">
<view class="cost_text data-v-2a5dec54">{{"关联客户:"+item.customer.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"费用金额:"+item.money}}</view>
<view class="cost_text data-v-2a5dec54">{{"消费日期:"+item.consume_time}}</view>
</view>
<view class="cost_right data-v-2a5dec54">
<image class="staffimg data-v-2a5dec54" src="{{item.staff.img}}" mode></image>
<view class="staffname data-v-2a5dec54">{{item.staff.name}}</view>
</view>
</view>
</view>
</block>
<block wx:if="{{$root.g0==0}}">
<u-empty vue-id="b3d048d6-1" text="暂无更多" class="data-v-2a5dec54" bind:__l="__l"></u-empty>
</block>
</view>

View File

@ -20,7 +20,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.30.2",
"appid": "wxa02e44170bc722cd",
"appid": "wxead43e7e9c2b21e4",
"projectname": "CRM",
"condition": {},
"editorSetting": {

View File

@ -1,7 +1,27 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "CRM",
"projectname": "crm_second_opening_mini",
"setting": {
"compileHotReLoad": true
},
"condition": {
"miniprogram": {
"list": [
{
"name": "",
"pathName": "pages/index/groupCompany/contract/contractDetail",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pagesA/bill/index",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
}
}