2023-03-15 04:59:31 +00:00
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
|
|
["pages/index/contract/contract"], {
|
|
|
|
"4cae": function(t, i, e) {
|
|
|
|
"use strict";
|
|
|
|
(function(t, i) {
|
|
|
|
var n = e("4ea4");
|
|
|
|
e("8886");
|
|
|
|
n(e("66fd"));
|
|
|
|
var s = n(e("517f"));
|
|
|
|
t.__webpack_require_UNI_MP_PLUGIN__ = e, i(s.default)
|
|
|
|
}).call(this, e("bc2e")["default"], e("543d")["createPage"])
|
|
|
|
},
|
|
|
|
"517f": function(t, i, e) {
|
|
|
|
"use strict";
|
|
|
|
e.r(i);
|
|
|
|
var n = e("8df5"),
|
|
|
|
s = e("a0a6");
|
|
|
|
for (var a in s)["default"].indexOf(a) < 0 && function(t) {
|
|
|
|
e.d(i, t, (function() {
|
|
|
|
return s[t]
|
|
|
|
}))
|
|
|
|
}(a);
|
|
|
|
e("70f7");
|
|
|
|
var o = e("f0c5"),
|
|
|
|
c = Object(o["a"])(s["default"], n["b"], n["c"], !1, null, "e5a6e2f8", null, !1, n["a"], void 0);
|
|
|
|
i["default"] = c.exports
|
|
|
|
},
|
|
|
|
"70f7": function(t, i, e) {
|
|
|
|
"use strict";
|
|
|
|
var n = e("73ea"),
|
|
|
|
s = e.n(n);
|
|
|
|
s.a
|
|
|
|
},
|
|
|
|
"73ea": function(t, i, e) {},
|
|
|
|
"8df5": function(t, i, e) {
|
|
|
|
"use strict";
|
|
|
|
e.d(i, "b", (function() {
|
|
|
|
return s
|
|
|
|
})), e.d(i, "c", (function() {
|
|
|
|
return a
|
|
|
|
})), e.d(i, "a", (function() {
|
|
|
|
return n
|
|
|
|
}));
|
|
|
|
var n = {
|
|
|
|
uniPopup: function() {
|
|
|
|
return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null, "6f9d"))
|
|
|
|
},
|
|
|
|
uEmpty: function() {
|
|
|
|
return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null, "38b8"))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
s = function() {
|
|
|
|
var t = this.$createElement,
|
|
|
|
i = (this._self._c, this.contract_list.length);
|
|
|
|
this.$mp.data = Object.assign({}, {
|
|
|
|
$root: {
|
|
|
|
g0: i
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
a = []
|
|
|
|
},
|
|
|
|
a0a6: function(t, i, e) {
|
|
|
|
"use strict";
|
|
|
|
e.r(i);
|
|
|
|
var n = e("cd5d"),
|
|
|
|
s = e.n(n);
|
|
|
|
for (var a in n)["default"].indexOf(a) < 0 && function(t) {
|
|
|
|
e.d(i, t, (function() {
|
|
|
|
return n[t]
|
|
|
|
}))
|
|
|
|
}(a);
|
|
|
|
i["default"] = s.a
|
|
|
|
},
|
|
|
|
cd5d: function(t, i, e) {
|
|
|
|
"use strict";
|
|
|
|
(function(t) {
|
|
|
|
Object.defineProperty(i, "__esModule", {
|
|
|
|
value: !0
|
|
|
|
}), i.default = void 0;
|
|
|
|
var n = e("76dd"),
|
|
|
|
s = e("0c59"),
|
|
|
|
a = {
|
|
|
|
components: {
|
|
|
|
selectCustomer: function() {
|
|
|
|
Promise.all([e.e("common/vendor"), e.e("components/selectCustomer")]).then(function() {
|
|
|
|
return resolve(e("5bcd"))
|
|
|
|
}.bind(null, e)).catch(e.oe)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data: function() {
|
|
|
|
return {
|
|
|
|
moneyInfo: {},
|
|
|
|
contract_list: [],
|
|
|
|
page: 1,
|
|
|
|
limit: 10,
|
|
|
|
totalPage: 1,
|
|
|
|
BASE_IMG_URL: s.BASE_IMG_URL,
|
|
|
|
name: "",
|
|
|
|
type: "",
|
|
|
|
typeList: ["全部客户", "我的客户", "下级的客户"],
|
|
|
|
typeIndex: 0,
|
|
|
|
statusList: ["全部", "待审核", "待回款", "已回款"],
|
|
|
|
status: null,
|
|
|
|
start_time: "",
|
|
|
|
end_time: "",
|
|
|
|
ascripList: [],
|
|
|
|
ascripId: null,
|
|
|
|
ascripIndex: null,
|
|
|
|
customerObj: null,
|
|
|
|
goodsList: ["全部客户", "我的客户", "下级的客户"],
|
|
|
|
info: 0,
|
|
|
|
rSelect: [],
|
|
|
|
has_amount_view:false, //检查是否有查看合同金额的权限
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad: function(t) {
|
|
|
|
t.startTime && (this.typeIndex = 0 == t.type ? 1 : 1 == t.type ? 0 : 2, this.type = this.typeList[this.typeIndex], this.start_time = t.startTime, this.end_time = t.endTime, this.ascripId = t.staffid), t.stime && (this.typeIndex = t.status, this.start_time = t.stime, this.end_time = t.etime)
|
|
|
|
},
|
|
|
|
onShow: function() {
|
|
|
|
this.init(), this.getGuishu()
|
|
|
|
},
|
|
|
|
onReachBottom: function() {
|
|
|
|
this.page >= this.totalPage || (this.page++, this.getList())
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toSelectCustomer: function() {
|
|
|
|
this.$refs.customerChild.init()
|
|
|
|
},
|
|
|
|
getCustomerinfo: function(t) {
|
|
|
|
this.customerObj = t
|
|
|
|
},
|
|
|
|
init: function() {
|
|
|
|
var t = this;
|
|
|
|
this.page = 1, this.contract_list = [], setTimeout((function() {
|
|
|
|
t.getList()
|
|
|
|
}), 200)
|
|
|
|
},
|
|
|
|
toQuery: function() {
|
|
|
|
this.$refs.screenpopup.open()
|
|
|
|
},
|
|
|
|
lookTotal: function() {
|
|
|
|
this.$refs.popup.open()
|
|
|
|
},
|
|
|
|
removeTotal: function() {
|
|
|
|
this.$refs.popup.close()
|
|
|
|
},
|
|
|
|
changeTab: function(t) {
|
|
|
|
this.status = t.detail.value
|
|
|
|
},
|
|
|
|
changeFirTab: function(t) {
|
|
|
|
this.typeIndex = t, this.init()
|
|
|
|
},
|
|
|
|
moveStop: function() {},
|
|
|
|
toCreateContract: function() {
|
|
|
|
t.navigateTo({
|
|
|
|
url: "/pagesA/crm/contract/contract"
|
|
|
|
})
|
|
|
|
},
|
|
|
|
tab: function(t) {
|
|
|
|
this.info = t
|
|
|
|
},
|
|
|
|
getGuishu: function() {
|
|
|
|
var t = this;
|
|
|
|
(0, n.netSearchStaffList)().then((function(i) {
|
|
|
|
t.ascripList = i.data, t.ascripId && t.ascripList.forEach((function(i, e) {
|
|
|
|
i.id == t.ascripId && (t.ascripIndex = e)
|
|
|
|
}))
|
|
|
|
}))
|
|
|
|
},
|
|
|
|
changeAscrip: function(t) {
|
|
|
|
this.ascripIndex = t.detail.value, this.ascripId = this.ascripList[this.ascripIndex].id
|
|
|
|
},
|
|
|
|
getList: function() {
|
|
|
|
var t = this,
|
|
|
|
i = {
|
|
|
|
page: this.page,
|
|
|
|
limit: this.limit,
|
|
|
|
createtime: this.start_time && this.end_time ? this.start_time + "," + this.end_time : "",
|
|
|
|
type: this.typeIndex,
|
|
|
|
status: this.status,
|
|
|
|
staff_id: this.ascripId,
|
|
|
|
customer_id: this.customerObj ? this.customerObj.id : ""
|
|
|
|
};
|
|
|
|
// 检查是否查看合同金额的权限
|
|
|
|
(n.checkHasAmountView)().then((function(i) {
|
|
|
|
console.log(i.data,'权限')
|
|
|
|
t.has_amount_view = i.data.has_amount_view;
|
|
|
|
wx.setStorageSync('has_amount_view', i.data.has_amount_view)
|
|
|
|
}));
|
|
|
|
(0, n.netCrmContractList)(i).then((function(i) {
|
|
|
|
t.contract_list = t.contract_list.concat(i.data.data), t.totalPage = i.data.last_page, t.moneyInfo = i.data.moneyinfo
|
|
|
|
}))
|
|
|
|
},
|
|
|
|
changeType: function(t) {
|
|
|
|
this.typeIndex = t
|
|
|
|
},
|
|
|
|
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.type = "", this.start_time = "", this.end_time = "", this.ascripId = null, this.ascripIndex = null, this.status = null, this.customerObj = null
|
|
|
|
},
|
|
|
|
sureQuery: function() {
|
|
|
|
this.$refs.screenpopup.close(), this.init()
|
|
|
|
},
|
|
|
|
toContractDetail: function(i) {
|
|
|
|
t.navigateTo({
|
|
|
|
url: "/pages/index/groupCompany/contract/contractDetail?id=" + i
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
i.default = a
|
|
|
|
}).call(this, e("543d")["default"])
|
|
|
|
}
|
|
|
|
},
|
|
|
|
[
|
|
|
|
["4cae", "common/runtime", "common/vendor"]
|
|
|
|
]
|
|
|
|
]);
|