修改发票
parent
2e8ac51ed2
commit
e906ac120b
|
@ -1,10 +1,141 @@
|
|||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/selectCustomer"],{"17ce":function(t,e,n){"use strict";var s=n("e54c"),i=n.n(s);i.a},"280c":function(t,e,n){"use strict";n.r(e);var s=n("d437"),i=n.n(s);for(var o in s)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(o);e["default"]=i.a},5293:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var s={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,e=(this._self._c,this.customerlist.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},"5bcd":function(t,e,n){"use strict";n.r(e);var s=n("5293"),i=n("280c");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("7215"),n("17ce");var u=n("f0c5"),c=Object(u["a"])(i["default"],s["b"],s["c"],!1,null,"b7fb50f4",null,!1,s["a"],void 0);e["default"]=c.exports},7215:function(t,e,n){"use strict";var s=n("c9d7"),i=n.n(s);i.a},c9d7:function(t,e,n){},d437:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=n("76dd"),i=n("0c59"),o={props:{},data:function(){return{keyword:"",customerlist:[],page:1,totalPage:1,preseCustomerObj:{},BASE_IMG_URL:i.BASE_IMG_URL}},methods:{init:function(){this.$refs.popup.open(),this.page=1,this.customerlist=[],this.getList()},getList:function(){var t=this,e={page:this.page,name:this.keyword};(0,s.netKehuList)(e).then((function(e){t.customerlist=t.customerlist.concat(e.data.data),t.totalPage=e.data.last_page}))},loadMoredata:function(){this.page>=this.totalPage||(this.page++,this.getList())},searchName:function(t){this.page=1,this.customerlist=[],this.getList()},selectItem:function(t,e){this.preseCustomerObj=t},closePopup:function(){this.$refs.popup.close()},sureSelect:function(){this.preseCustomerObj?(this.$refs.popup.close(),this.$emit("getCustomerinfo",this.preseCustomerObj)):this.$refs.popup.close()},hideSelect:function(){this.$refs.popup.close()}}};e.default=o},e54c:function(t,e,n){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
["components/selectCustomer"], {
|
||||
"17ce": function(t, e, n) {
|
||||
"use strict";
|
||||
var s = n("e54c"),
|
||||
i = n.n(s);
|
||||
i.a
|
||||
},
|
||||
"280c": function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var s = n("d437"),
|
||||
i = n.n(s);
|
||||
for (var o in s)["default"].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, (function() {
|
||||
return s[t]
|
||||
}))
|
||||
}(o);
|
||||
e["default"] = i.a
|
||||
},
|
||||
5293: function(t, e, n) {
|
||||
"use strict";
|
||||
n.d(e, "b", (function() {
|
||||
return i
|
||||
})), n.d(e, "c", (function() {
|
||||
return o
|
||||
})), n.d(e, "a", (function() {
|
||||
return s
|
||||
}));
|
||||
var s = {
|
||||
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,
|
||||
e = (this._self._c, this.customerlist.length);
|
||||
this.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
g0: e
|
||||
}
|
||||
})
|
||||
},
|
||||
o = []
|
||||
},
|
||||
"5bcd": function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var s = n("5293"),
|
||||
i = n("280c");
|
||||
for (var o in i)["default"].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, (function() {
|
||||
return i[t]
|
||||
}))
|
||||
}(o);
|
||||
n("7215"), n("17ce");
|
||||
var u = n("f0c5"),
|
||||
c = Object(u["a"])(i["default"], s["b"], s["c"], !1, null, "b7fb50f4", null, !1, s["a"], void 0);
|
||||
e["default"] = c.exports
|
||||
},
|
||||
7215: function(t, e, n) {
|
||||
"use strict";
|
||||
var s = n("c9d7"),
|
||||
i = n.n(s);
|
||||
i.a
|
||||
},
|
||||
c9d7: function(t, e, n) {},
|
||||
d437: function(t, e, n) {
|
||||
"use strict";
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
var s = n("76dd"),
|
||||
i = n("0c59"),
|
||||
o = {
|
||||
props: {},
|
||||
data: function() {
|
||||
return {
|
||||
keyword: "",
|
||||
customerlist: [],
|
||||
page: 1,
|
||||
totalPage: 1,
|
||||
preseCustomerObj: {},
|
||||
BASE_IMG_URL: i.BASE_IMG_URL
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init: function() {
|
||||
this.$refs.popup.open(), this.page = 1, this.customerlist = [], this.getList()
|
||||
},
|
||||
getList: function() {
|
||||
var t = this,
|
||||
e = {
|
||||
page: this.page,
|
||||
name: this.keyword
|
||||
};
|
||||
(0, s.netKehuList)(e).then((function(e) {
|
||||
t.customerlist = t.customerlist.concat(e.data.data), t.totalPage = e.data.last_page
|
||||
}))
|
||||
},
|
||||
loadMoredata: function() {
|
||||
this.page >= this.totalPage || (this.page++, this.getList())
|
||||
},
|
||||
searchName: function(t) {
|
||||
this.page = 1, this.customerlist = [], this.getList()
|
||||
},
|
||||
selectItem: function(t, e) {
|
||||
this.preseCustomerObj = t
|
||||
},
|
||||
closePopup: function() {
|
||||
this.$refs.popup.close()
|
||||
},
|
||||
sureSelect: function() {
|
||||
this.preseCustomerObj ? (this.$refs.popup.close(), this.$emit("getCustomerinfo", this.preseCustomerObj)) : this.$refs.popup.close()
|
||||
},
|
||||
hideSelect: function() {
|
||||
this.$refs.popup.close()
|
||||
},
|
||||
addlink: function() {
|
||||
wx.navigateTo({
|
||||
url: '/pagesA/crm/createCustomer/createCustomer'
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
e.default = o
|
||||
},
|
||||
e54c: function(t, e, n) {}
|
||||
}
|
||||
]);;
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/selectCustomer-create-component',
|
||||
{
|
||||
'components/selectCustomer-create-component':(function(module, exports, __webpack_require__){
|
||||
'components/selectCustomer-create-component': (function(module, exports, __webpack_require__) {
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("5bcd"))
|
||||
})
|
||||
},
|
||||
[['components/selectCustomer-create-component']]
|
||||
[
|
||||
['components/selectCustomer-create-component']
|
||||
]
|
||||
]);
|
|
@ -1 +1,24 @@
|
|||
<view class="data-v-b7fb50f4"><uni-popup vue-id="633301b1-1" type="bottom" background-color="#fff" data-ref="popup" data-event-opts="{{[['^touchmove',[['',['$event']]]]]}}" catch:touchmove="__e" class="data-v-b7fb50f4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup_title data-v-b7fb50f4">选择客户</view><view class="searbox data-v-b7fb50f4"><image class="searimg data-v-b7fb50f4" src="{{BASE_IMG_URL+'ss.png'}}" mode="scaleToFill"></image><input class="{{['li_box','data-v-b7fb50f4',keyword?'fontactive':'']}}" type="text" placeholder-style="color:#999;" placeholder="客户名称" data-event-opts="{{[['input',[['__set_model',['','keyword','$event',[]]],['searchName',['$event']]]]]}}" value="{{keyword}}" bindinput="__e"/></view><scroll-view class="scrollbox data-v-b7fb50f4" scroll-y="{{true}}" lower-threshold="30" data-event-opts="{{[['scrolltolower',[['loadMoredata',['$event']]]]]}}" bindscrolltolower="__e"><block wx:for="{{customerlist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['selectItem',['$0',index],[[['customerlist','',index]]]]]]]}}" class="liwarp data-v-b7fb50f4" bindtap="__e"><view class="warpleft data-v-b7fb50f4"><view class="name data-v-b7fb50f4">{{"名称:"+item.name}}</view></view><label class="radio data-v-b7fb50f4"><radio value="r1" color="#03aa96" checked="{{preseCustomerObj.id==item.id}}" class="data-v-b7fb50f4"></radio></label></view></block><block wx:if="{{$root.g0==0}}"><view class="noData data-v-b7fb50f4">暂无更多</view></block></scroll-view><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="btnlist data-v-b7fb50f4" catchtap="__e"><view data-event-opts="{{[['tap',[['hideSelect',['$event']]]]]}}" class="btn secbtn data-v-b7fb50f4" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['sureSelect',['$event']]]]]}}" class="btn firbtn data-v-b7fb50f4" bindtap="__e">确定</view></view></uni-popup></view>
|
||||
<view class="data-v-b7fb50f4">
|
||||
<uni-popup vue-id="633301b1-1" type="bottom" background-color="#fff" data-ref="popup" data-event-opts="{{[['^touchmove',[['',['$event']]]]]}}" catch:touchmove="__e" class="data-v-b7fb50f4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}">
|
||||
<view class="popup_title data-v-b7fb50f4">选择客户</view>
|
||||
<view class="searbox data-v-b7fb50f4">
|
||||
<image class="searimg data-v-b7fb50f4" src="{{BASE_IMG_URL+'ss.png'}}" mode="scaleToFill"></image><input class="{{['li_box','data-v-b7fb50f4',keyword?'fontactive':'']}}" type="text" placeholder-style="color:#999;" placeholder="客户名称" data-event-opts="{{[['input',[['__set_model',['','keyword','$event',[]]],['searchName',['$event']]]]]}}"
|
||||
value="{{keyword}}" bindinput="__e" /></view>
|
||||
<scroll-view class="scrollbox data-v-b7fb50f4" scroll-y="{{true}}" lower-threshold="30" data-event-opts="{{[['scrolltolower',[['loadMoredata',['$event']]]]]}}" bindscrolltolower="__e">
|
||||
<block wx:for="{{customerlist}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view data-event-opts="{{[['tap',[['selectItem',['$0',index],[[['customerlist','',index]]]]]]]}}" class="liwarp data-v-b7fb50f4" bindtap="__e">
|
||||
<view class="warpleft data-v-b7fb50f4">
|
||||
<view class="name data-v-b7fb50f4">{{"名称:"+item.name}}</view>
|
||||
</view><label class="radio data-v-b7fb50f4"><radio value="r1" color="#03aa96" checked="{{preseCustomerObj.id==item.id}}" class="data-v-b7fb50f4"></radio></label></view>
|
||||
</block>
|
||||
<block wx:if="{{$root.g0==0}}">
|
||||
<view class="noData data-v-b7fb50f4">暂无更多</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
<view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="btnlist data-v-b7fb50f4" catchtap="__e">
|
||||
<view data-event-opts="{{[['tap',[['hideSelect',['$event']]]]]}}" class="btn secbtn data-v-b7fb50f4" bindtap="__e">取消</view>
|
||||
<view data-event-opts="{{[['tap',[['addlink',['$event']]]]]}}" class="btn secbtn data-v-b7fb50f4" bindtap="__e" style="background: #0090fe;">新增</view>
|
||||
<view data-event-opts="{{[['tap',[['sureSelect',['$event']]]]]}}" class="btn firbtn data-v-b7fb50f4" bindtap="__e">确定</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
|
@ -42,12 +42,36 @@
|
|||
<block wx:if="{{info}}">
|
||||
<view class="content" wx:if="{{has_amount_view}}">{{'已回款:¥'+(info.receivables?info.receivables.repayment_money:'')+''}}</view>
|
||||
</block>
|
||||
<block wx:if="{{info}}">
|
||||
<view class="content" wx:if="{{has_amount_view}}">{{'报销金额汇总:¥ '+(info.total_consume?info.total_consume:'')+''}}</view>
|
||||
</block>
|
||||
<block wx:if="{{info}}">
|
||||
<view class="content" wx:if="{{has_amount_view}}">{{'待回款:¥ '+(info.receivables?info.receivables.be_money:'')+''}}</view>
|
||||
</block>
|
||||
<block wx:if="{{info}}">
|
||||
<view class="content">{{'签约时间:'+(info.order_date?info.order_date:'')+''}}</view>
|
||||
</block>
|
||||
|
||||
<view class="roll">
|
||||
<scroll-view class="scrollView" scroll-x="true" lower-threshold="50" enable-flex="{{true}}">
|
||||
<view class="scrollbox">
|
||||
<view data-event-opts="{{[['tap',[['toAddCost',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
|
||||
<view class="scroll_top" style="font-size: 32rpx;">{{info.total_consume}}</view>
|
||||
<view class="scroll_foot">报销</view>
|
||||
</view>
|
||||
<view data-event-opts="{{[['tap',[['toAddBills',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
|
||||
<view class="scroll_top" style="font-size: 32rpx;">{{info.total_bill}}</view>
|
||||
<view class="scroll_foot">发票</view>
|
||||
</view>
|
||||
<view data-event-opts="{{[['tap',[['toAddPayment',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
|
||||
<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 class="roll">
|
||||
<scroll-view class="scrollView" scroll-x="true" lower-threshold="50" enable-flex="{{true}}">
|
||||
<view class="scrollbox">
|
||||
|
@ -103,13 +127,6 @@
|
|||
<u-popup bind:input="__e" vue-id="a970ea7e-4" mode="bottom" border-radius="20" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}">
|
||||
<view class="pull_head">更多操作</view>
|
||||
<view class="pull_con">
|
||||
<view data-event-opts="{{[['tap',[['toAddBills',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
|
||||
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">发票</view>
|
||||
</view>
|
||||
|
||||
<view data-event-opts="{{[['tap',[['toAddCost',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
|
||||
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">费用</view>
|
||||
</view>
|
||||
|
||||
<view data-event-opts="{{[['tap',[['followClick',['$0',3],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
|
||||
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">写新跟进</view>
|
||||
|
@ -117,13 +134,6 @@
|
|||
<view data-event-opts="{{[['tap',[['toAddPlan',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
|
||||
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">回款计划</view>
|
||||
</view>
|
||||
|
||||
|
||||
<block wx:if="{{info&&info.check_status==2}}">
|
||||
<view data-event-opts="{{[['tap',[['toAddPayment',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
|
||||
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">回款</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{info&&(info.check_status==0||info.check_status==1)}}">
|
||||
<view data-event-opts="{{[['tap',[['removeExamine',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
|
||||
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">撤回审批</view>
|
||||
|
|
Loading…
Reference in New Issue