crm_second_opening_mini/pages/index/groupCompany/cost/costDetail.js

152 lines
5.6 KiB
JavaScript

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
["pages/index/groupCompany/cost/costDetail"], {
2311: function(t, n, e) {},
"40aa": function(t, n, e) {
"use strict";
var i = e("2311"),
a = e.n(i);
a.a
},
7894: function(t, n, e) {
"use strict";
(function(t) {
Object.defineProperty(n, "__esModule", {
value: !0
}), n.default = void 0;
var i = e("0c59"),
a = e("76dd"),
o = e("dc92"),
u = {
components: {
approvalStatus: function() {
e.e("components/approvalStatus").then(function() {
return resolve(e("b975"))
}.bind(null, e)).catch(e.oe)
}
},
data: function() {
return {
id: "",
customer_id: "",
consume_time: "",
consume_type: "",
money: "",
remark: "",
file_ids: "",
BASE_IMG_URL: i.BASE_IMG_URL,
info: {},
payment_approval: {}
}
},
onLoad: function(t) {
this.id = t.id
},
onShow: function() {
this.getDetail(), this.getApprovalList()
},
onUnload: function() {
t.removeStorageSync("remindlist")
},
methods: {
getApprovalList: function() {
var t = this,
n = {
type: "consume",
relation_id: this.id
};
(0, o.netApprovalDetail)(n).then((function(n) {
t.payment_approval = n.data
}))
},
getDetail: function() {
var t = this;
(0, a.netCostDetail)({
id: this.id
}).then((function(n) {
t.info = n.data
}))
},
previewImg: function(n, e) {
t.previewImage({
urls: n,
current: e,
fail: function(t) {
console.log(t)
}
})
},
toPass: function() {
t.navigateTo({
url: "/pages/examine/examine?id=" + this.id + "&type=consume&status=1"
})
},
toRefuse: function() {
t.navigateTo({
url: "/pages/examine/examine?id=" + this.id + "&type=consume&status=2"
})
},
toEdit: function() {
t.navigateTo({
url: "/pages/index/groupCompany/cost/editCost?id=" + this.id
})
}
}
};
n.default = u
}).call(this, e("543d")["default"])
},
"919a": function(t, n, e) {
"use strict";
(function(t, n) {
var i = e("4ea4");
e("8886");
i(e("66fd"));
var a = i(e("d7f1"));
t.__webpack_require_UNI_MP_PLUGIN__ = e, n(a.default)
}).call(this, e("bc2e")["default"], e("543d")["createPage"])
},
c8a8: function(t, n, e) {
"use strict";
e.r(n);
var i = e("7894"),
a = e.n(i);
for (var o in i)["default"].indexOf(o) < 0 && function(t) {
e.d(n, t, (function() {
return i[t]
}))
}(o);
n["default"] = a.a
},
d7f1: function(t, n, e) {
"use strict";
e.r(n);
var i = e("ee61"),
a = e("c8a8");
for (var o in a)["default"].indexOf(o) < 0 && function(t) {
e.d(n, t, (function() {
return a[t]
}))
}(o);
e("40aa");
var u = e("f0c5"),
c = Object(u["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
n["default"] = c.exports
},
ee61: function(t, n, e) {
"use strict";
e.d(n, "b", (function() {
return i
})), e.d(n, "c", (function() {
return a
})), e.d(n, "a", (function() {}));
var i = function() {
var t = this.$createElement;
this._self._c
},
a = []
}
},
[
["919a", "common/runtime", "common/vendor"]
]
]);