474 lines
32 KiB
JavaScript
474 lines
32 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-48ab4963", "chunk-2d0aa9e6"], { "127f": function(e, t, n) {
|
||
"use strict";
|
||
n.d(t, "a", (function() {
|
||
return o;
|
||
}));
|
||
var o = function() {
|
||
function e2() {
|
||
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
|
||
}
|
||
return "".concat(+/* @__PURE__ */ new Date(), "_").concat(e2()).concat(e2());
|
||
};
|
||
}, "27c7": function(e, t, n) {
|
||
}, 8194: function(e, t, n) {
|
||
"use strict";
|
||
n.d(t, "d", (function() {
|
||
return r;
|
||
})), n.d(t, "c", (function() {
|
||
return a;
|
||
})), n.d(t, "e", (function() {
|
||
return i;
|
||
})), n.d(t, "a", (function() {
|
||
return s;
|
||
})), n.d(t, "b", (function() {
|
||
return u;
|
||
}));
|
||
var o = n("b775");
|
||
function r(e2) {
|
||
return Object(o["a"])({ url: "/appproject/MemberWorkAccount/checkMemberWorkAccount", method: "post", data: e2 });
|
||
}
|
||
function a(e2) {
|
||
return Object(o["a"])({ url: "/company/member/findById", method: "post", data: e2 });
|
||
}
|
||
function i(e2) {
|
||
return Object(o["a"])({ url: "/appproject/member/listMemberByProjectUuid", method: "post", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(o["a"])({ url: "/appproject/member/pageListByCompany", method: "post", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(o["a"])({ url: "/appproject/member/projectSocialSecurityDetails", method: "post", data: e2 });
|
||
}
|
||
}, "997d": function(e, t, n) {
|
||
"use strict";
|
||
n.d(t, "p", (function() {
|
||
return r;
|
||
})), n.d(t, "g", (function() {
|
||
return a;
|
||
})), n.d(t, "i", (function() {
|
||
return i;
|
||
})), n.d(t, "A", (function() {
|
||
return s;
|
||
})), n.d(t, "m", (function() {
|
||
return u;
|
||
})), n.d(t, "a", (function() {
|
||
return c;
|
||
})), n.d(t, "l", (function() {
|
||
return l;
|
||
})), n.d(t, "h", (function() {
|
||
return m;
|
||
})), n.d(t, "B", (function() {
|
||
return p;
|
||
})), n.d(t, "d", (function() {
|
||
return d;
|
||
})), n.d(t, "e", (function() {
|
||
return f;
|
||
})), n.d(t, "k", (function() {
|
||
return b;
|
||
})), n.d(t, "b", (function() {
|
||
return h;
|
||
})), n.d(t, "c", (function() {
|
||
return v;
|
||
})), n.d(t, "j", (function() {
|
||
return y;
|
||
})), n.d(t, "o", (function() {
|
||
return g;
|
||
})), n.d(t, "s", (function() {
|
||
return F;
|
||
})), n.d(t, "q", (function() {
|
||
return j;
|
||
})), n.d(t, "t", (function() {
|
||
return k;
|
||
})), n.d(t, "f", (function() {
|
||
return A;
|
||
})), n.d(t, "C", (function() {
|
||
return O;
|
||
})), n.d(t, "D", (function() {
|
||
return I;
|
||
})), n.d(t, "r", (function() {
|
||
return x;
|
||
})), n.d(t, "v", (function() {
|
||
return N;
|
||
})), n.d(t, "n", (function() {
|
||
return B;
|
||
})), n.d(t, "y", (function() {
|
||
return _;
|
||
})), n.d(t, "z", (function() {
|
||
return $;
|
||
})), n.d(t, "w", (function() {
|
||
return w;
|
||
})), n.d(t, "x", (function() {
|
||
return C;
|
||
})), n.d(t, "E", (function() {
|
||
return U;
|
||
})), n.d(t, "u", (function() {
|
||
return S;
|
||
}));
|
||
var o = n("b775");
|
||
function r(e2) {
|
||
return Object(o["a"])({ url: "/appproject/Investment/pageList", method: "post", data: e2 });
|
||
}
|
||
function a(e2) {
|
||
return Object(o["a"])({ url: "/appproject/Investment/create", method: "post", data: e2 });
|
||
}
|
||
function i(e2) {
|
||
return Object(o["a"])({ url: "/appproject/Investment/delete", method: "post", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(o["a"])({ url: "/appproject/Investment/update", method: "post", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(o["a"])({ url: "/appproject/supplier/listAccountByProjectUuid", method: "post", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentSubscribe/pageList", method: "post", data: e2 });
|
||
}
|
||
function l(e2, t2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentSubscribe/importExcel/".concat(t2), method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
|
||
}
|
||
function m(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentSubscribe/create", method: "post", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentSubscribe/update", method: "post", data: e2 });
|
||
}
|
||
function d(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentSubscribe/batchAbandon", method: "post", data: e2 });
|
||
}
|
||
function f(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentSubscribe/batchApply", method: "post", data: e2 });
|
||
}
|
||
function b(e2) {
|
||
return Object(o["a"])({ url: "/appproject/FinanceApprove/findByProjectUuidAndTypeCode", method: "post", data: e2 });
|
||
}
|
||
function h(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentPlan/pageList", method: "post", data: e2 });
|
||
}
|
||
function v(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentPlan/approve", method: "post", data: e2 });
|
||
}
|
||
function y(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentPlan/findById", method: "post", data: e2 });
|
||
}
|
||
function g(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/pageList", method: "post", data: e2 });
|
||
}
|
||
function F(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/pageList", method: "post", data: e2 });
|
||
}
|
||
function j(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentPaymentSubscribe/create", method: "post", data: e2 });
|
||
}
|
||
function k(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/total", method: "post", data: e2 });
|
||
}
|
||
function A(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/cancelOrder", method: "post", data: e2 });
|
||
}
|
||
function O(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/updateInvoiceAmount", method: "post", data: e2 });
|
||
}
|
||
function I(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/updatePaymentInfo", method: "post", data: e2 });
|
||
}
|
||
function x(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrder/findById", method: "post", data: e2 });
|
||
}
|
||
function N(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/pageList", method: "post", data: e2 });
|
||
}
|
||
function B(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/listTotal", method: "post", data: e2 });
|
||
}
|
||
function _(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentPaymentSubscribe/pageList", method: "post", data: e2 });
|
||
}
|
||
function $(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentPaymentSubscribe/paymentConfirm", method: "post", data: e2 });
|
||
}
|
||
function w(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/paymentConfirm", method: "post", data: e2 });
|
||
}
|
||
function C(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/statusRollBack", method: "post", data: e2 });
|
||
}
|
||
function U(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/updateReceiveTime", method: "post", data: e2 });
|
||
}
|
||
function S(e2) {
|
||
return Object(o["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/export", method: "post", responseType: "blob", data: e2 });
|
||
}
|
||
}, dee1: function(e, t, n) {
|
||
"use strict";
|
||
var o = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return e2.show ? n2("div", [n2("el-card", { staticClass: "box-card nav-card" }, [n2("el-page-header", { attrs: { content: e2.title }, on: { back: e2.goBack } })], 1), e2._v(" "), n2("el-card", { staticClass: "box-card addInfo-content" }, [n2("el-form", { ref: "infoForm", staticClass: "demo-form-inline", attrs: { model: e2.infoForm, "label-width": "120px", rules: e2.infoRules, inline: true } }, [n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "计提年月", prop: "paymentMonth" } }, [n2("el-date-picker", { attrs: { disabled: e2.PowerSupplyBureauDisabled, format: "yyyy-MM", "value-format": "yyyy-MM", type: "month", placeholder: "选择计提年月" }, model: { value: e2.infoForm.paymentMonth, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "paymentMonth", t3);
|
||
}, expression: "infoForm.paymentMonth" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "应付日期", prop: "paymentDate" } }, [n2("el-date-picker", { attrs: { format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", type: "date", placeholder: "选择应付日期" }, model: { value: e2.infoForm.paymentDate, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "paymentDate", t3);
|
||
}, expression: "infoForm.paymentDate" } })], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "支出项", prop: "investment" } }, [n2("el-select", { attrs: { placeholder: "选择支出项", "value-key": "id", clearable: "" }, on: { change: e2.changePaySelect }, model: { value: e2.infoForm.investment, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "investment", t3);
|
||
}, expression: "infoForm.investment" } }, e2._l(e2.list, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3 } });
|
||
})), 1)], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "支出科目", prop: "subject" } }, [n2("el-input", { attrs: { disabled: "" }, model: { value: e2.infoForm.subject, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "subject", t3);
|
||
}, expression: "infoForm.subject" } })], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [e2.payoff ? n2("el-form-item", { attrs: { label: "收款单位", prop: "receiveUnit" } }, [n2("el-input", { attrs: { placeholder: "收款单位", clearable: "" }, model: { value: e2.infoForm.receiveUnit, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "receiveUnit", t3);
|
||
}, expression: "infoForm.receiveUnit" } })], 1) : n2("el-form-item", { attrs: { label: "收款单位", prop: "receiveUnit" } }, [n2("el-select", { attrs: { placeholder: "请选择员工", filterable: "" }, on: { change: e2.selectUser }, model: { value: e2.infoForm.receiveUnit, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "receiveUnit", t3);
|
||
}, expression: "infoForm.receiveUnit" } }, e2._l(e2.userList, (function(e3, t3) {
|
||
return n2("el-option", { key: t3, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "收款开户行", prop: "receiveBank" } }, [n2("el-input", { attrs: { placeholder: "收款开户行", clearable: "" }, model: { value: e2.infoForm.receiveBank, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "receiveBank", t3);
|
||
}, expression: "infoForm.receiveBank" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "收款账户", prop: "receiveAccountNo" } }, [n2("el-input", { attrs: { placeholder: "收款账户", clearable: "" }, model: { value: e2.infoForm.receiveAccountNo, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "receiveAccountNo", t3);
|
||
}, expression: "infoForm.receiveAccountNo" } })], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "支出金额", prop: "totalAmount" } }, [n2("el-input-number", { attrs: { disabled: e2.PowerSupplyBureauDisabled, "controls-position": "right", precision: 2, min: 0 }, on: { input: e2.changeAmount }, model: { value: e2.infoForm.totalAmount, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "totalAmount", t3);
|
||
}, expression: "infoForm.totalAmount" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "需发票金额", prop: "needAmount" } }, [n2("el-input-number", { attrs: { "controls-position": "right", disabled: "", min: 0 }, model: { value: e2.infoForm.needAmount, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "needAmount", t3);
|
||
}, expression: "infoForm.needAmount" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "已提供发票", prop: "invoiceAmount" } }, [n2("el-input-number", { attrs: { disabled: !e2.infoForm.totalAmount, "controls-position": "right", precision: 2, min: 0, max: e2.infoForm.totalAmount }, model: { value: e2.infoForm.invoiceAmount, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "invoiceAmount", t3);
|
||
}, expression: "infoForm.invoiceAmount" } })], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "预算分类", prop: "budgetType" } }, [n2("el-select", { attrs: { placeholder: "请选择预算分类" }, model: { value: e2.infoForm.budgetType, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "budgetType", t3);
|
||
}, expression: "infoForm.budgetType" } }, e2._l(e2.budgetTypeList, (function(e3, t3) {
|
||
return n2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1)], 1), e2._v(" "), 2 == e2.infoForm.budgetType ? n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "滚动预算", prop: "isRollingBudget" } }, [n2("el-select", { attrs: { placeholder: "请选择是否预算分类" }, model: { value: e2.infoForm.isRollingBudget, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "isRollingBudget", t3);
|
||
}, expression: "infoForm.isRollingBudget" } }, [n2("el-option", { attrs: { label: "是", value: 1 } }), e2._v(" "), n2("el-option", { attrs: { label: "否", value: 0 } })], 1)], 1)], 1) : e2._e()], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "付款单位", prop: "payment" } }, [n2("el-select", { attrs: { placeholder: "选择付款单位", clearable: "", "value-key": "id" }, on: { change: e2.changeCompany }, model: { value: e2.infoForm.payment, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "payment", t3);
|
||
}, expression: "infoForm.payment" } }, e2._l(e2.companyList, (function(e3, t3) {
|
||
return n2("el-option", { key: t3, attrs: { label: e3.name, value: e3 } });
|
||
})), 1)], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "付款开户行", prop: "paymentBank" } }, [n2("el-input", { attrs: { disabled: "" }, model: { value: e2.infoForm.paymentBank, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "paymentBank", t3);
|
||
}, expression: "infoForm.paymentBank" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "付款账户", prop: "paymentAccountNo" } }, [n2("el-input", { attrs: { disabled: "" }, model: { value: e2.infoForm.paymentAccountNo, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "paymentAccountNo", t3);
|
||
}, expression: "infoForm.paymentAccountNo" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { label: "付款单位编码", prop: "paymentCreditCode" } }, [n2("el-input", { attrs: { disabled: "" }, model: { value: e2.infoForm.paymentCreditCode, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "paymentCreditCode", t3);
|
||
}, expression: "infoForm.paymentCreditCode" } })], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 12 } }, [n2("el-form-item", { attrs: { label: "支出说明", prop: "remark" } }, [n2("el-input", { attrs: { type: "textarea", maxlength: "200", "show-word-limit": "" }, model: { value: e2.infoForm.remark, callback: function(t3) {
|
||
e2.$set(e2.infoForm, "remark", t3);
|
||
}, expression: "infoForm.remark" } })], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 12 } }, [n2("el-form-item", { attrs: { label: "附件" } }, [n2("el-upload", { ref: "uploadFile", staticClass: "upload-demo", attrs: { action: "", "on-exceed": e2.exceedUpload, "before-upload": e2.beforeUpload, "http-request": e2.uploadRequest, "on-success": e2.uploadSuccess, "on-remove": e2.uploadRemove, multiple: "", limit: 9, "file-list": e2.fileList } }, [n2("el-button", { attrs: { size: "small", type: "primary" } }, [e2._v("点击上传")]), e2._v(" "), n2("div", { staticClass: "el-upload__tip", attrs: { slot: "tip" }, slot: "tip" }, [e2._v("\n 只能上传图片和文档,图片不超过2M,文档不超过10M\n ")])], 1)], 1)], 1)], 1), e2._v(" "), n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 12 } }, [n2("el-form-item", { attrs: { label: " " } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.addInfoSubmit } }, [e2._v(e2._s("" == e2.applyId ? "提交" : "保存"))]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.goBack } }, [e2._v("返回")])], 1)], 1)], 1)], 1)], 1)], 1) : e2._e();
|
||
}, r = [], a = (n("127f"), n("b562")), i = n("997d"), s = n("8194"), u = n("dce5");
|
||
function c() {
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
||
var e2, t2, n2 = "function" == typeof Symbol ? Symbol : {}, o2 = n2.iterator || "@@iterator", r2 = n2.toStringTag || "@@toStringTag";
|
||
function a2(n3, o3, r3, a3) {
|
||
var u3 = o3 && o3.prototype instanceof s2 ? o3 : s2, c2 = Object.create(u3.prototype);
|
||
return l(c2, "_invoke", (function(n4, o4, r4) {
|
||
var a4, s3, u4, c3 = 0, l2 = r4 || [], m3 = false, p3 = { p: 0, n: 0, v: e2, a: d3, f: d3.bind(e2, 4), d: function(t3, n5) {
|
||
return a4 = t3, s3 = 0, u4 = e2, p3.n = n5, i2;
|
||
} };
|
||
function d3(n5, o5) {
|
||
for (s3 = n5, u4 = o5, t2 = 0; !m3 && c3 && !r5 && t2 < l2.length; t2++) {
|
||
var r5, a5 = l2[t2], d4 = p3.p, f3 = a5[2];
|
||
n5 > 3 ? (r5 = f3 === o5) && (u4 = a5[(s3 = a5[4]) ? 5 : (s3 = 3, 3)], a5[4] = a5[5] = e2) : a5[0] <= d4 && ((r5 = n5 < 2 && d4 < a5[1]) ? (s3 = 0, p3.v = o5, p3.n = a5[1]) : d4 < f3 && (r5 = n5 < 3 || a5[0] > o5 || o5 > f3) && (a5[4] = n5, a5[5] = o5, p3.n = f3, s3 = 0));
|
||
}
|
||
if (r5 || n5 > 1) return i2;
|
||
throw m3 = true, o5;
|
||
}
|
||
return function(r5, l3, f3) {
|
||
if (c3 > 1) throw TypeError("Generator is already running");
|
||
for (m3 && 1 === l3 && d3(l3, f3), s3 = l3, u4 = f3; (t2 = s3 < 2 ? e2 : u4) || !m3; ) {
|
||
a4 || (s3 ? s3 < 3 ? (s3 > 1 && (p3.n = -1), d3(s3, u4)) : p3.n = u4 : p3.v = u4);
|
||
try {
|
||
if (c3 = 2, a4) {
|
||
if (s3 || (r5 = "next"), t2 = a4[r5]) {
|
||
if (!(t2 = t2.call(a4, u4))) throw TypeError("iterator result is not an object");
|
||
if (!t2.done) return t2;
|
||
u4 = t2.value, s3 < 2 && (s3 = 0);
|
||
} else 1 === s3 && (t2 = a4.return) && t2.call(a4), s3 < 2 && (u4 = TypeError("The iterator does not provide a '" + r5 + "' method"), s3 = 1);
|
||
a4 = e2;
|
||
} else if ((t2 = (m3 = p3.n < 0) ? u4 : n4.call(o4, p3)) !== i2) break;
|
||
} catch (t3) {
|
||
a4 = e2, s3 = 1, u4 = t3;
|
||
} finally {
|
||
c3 = 1;
|
||
}
|
||
}
|
||
return { value: t2, done: m3 };
|
||
};
|
||
})(n3, r3, a3), true), c2;
|
||
}
|
||
var i2 = {};
|
||
function s2() {
|
||
}
|
||
function u2() {
|
||
}
|
||
function m2() {
|
||
}
|
||
t2 = Object.getPrototypeOf;
|
||
var p2 = [][o2] ? t2(t2([][o2]())) : (l(t2 = {}, o2, (function() {
|
||
return this;
|
||
})), t2), d2 = m2.prototype = s2.prototype = Object.create(p2);
|
||
function f2(e3) {
|
||
return Object.setPrototypeOf ? Object.setPrototypeOf(e3, m2) : (e3.__proto__ = m2, l(e3, r2, "GeneratorFunction")), e3.prototype = Object.create(d2), e3;
|
||
}
|
||
return u2.prototype = m2, l(d2, "constructor", m2), l(m2, "constructor", u2), u2.displayName = "GeneratorFunction", l(m2, r2, "GeneratorFunction"), l(d2), l(d2, r2, "Generator"), l(d2, o2, (function() {
|
||
return this;
|
||
})), l(d2, "toString", (function() {
|
||
return "[object Generator]";
|
||
})), (c = function() {
|
||
return { w: a2, m: f2 };
|
||
})();
|
||
}
|
||
function l(e2, t2, n2, o2) {
|
||
var r2 = Object.defineProperty;
|
||
try {
|
||
r2({}, "", {});
|
||
} catch (e3) {
|
||
r2 = 0;
|
||
}
|
||
l = function(e3, t3, n3, o3) {
|
||
function a2(t4, n4) {
|
||
l(e3, t4, (function(e4) {
|
||
return this._invoke(t4, n4, e4);
|
||
}));
|
||
}
|
||
t3 ? r2 ? r2(e3, t3, { value: n3, enumerable: !o3, configurable: !o3, writable: !o3 }) : e3[t3] = n3 : (a2("next", 0), a2("throw", 1), a2("return", 2));
|
||
}, l(e2, t2, n2, o2);
|
||
}
|
||
function m(e2, t2, n2, o2, r2, a2, i2) {
|
||
try {
|
||
var s2 = e2[a2](i2), u2 = s2.value;
|
||
} catch (e3) {
|
||
return void n2(e3);
|
||
}
|
||
s2.done ? t2(u2) : Promise.resolve(u2).then(o2, r2);
|
||
}
|
||
function p(e2) {
|
||
return function() {
|
||
var t2 = this, n2 = arguments;
|
||
return new Promise((function(o2, r2) {
|
||
var a2 = e2.apply(t2, n2);
|
||
function i2(e3) {
|
||
m(a2, o2, r2, i2, s2, "next", e3);
|
||
}
|
||
function s2(e3) {
|
||
m(a2, o2, r2, i2, s2, "throw", e3);
|
||
}
|
||
i2(void 0);
|
||
}));
|
||
};
|
||
}
|
||
var d = { props: { show: { type: Boolean, default: false }, list: { type: Array, default: function() {
|
||
return [];
|
||
} }, userList: { type: Array, default: function() {
|
||
return [];
|
||
} }, companyList: { type: Array, default: function() {
|
||
return [];
|
||
} }, title: { type: String, default: "添加应付管控申请" } }, data: function() {
|
||
return { budgetTypeList: u["s"], applyId: "", detailInfo: "", infoForm: { paymentMonth: "", paymentDate: "", investment: "", subject: "", receiveUnit: "", receiveBank: "", receiveAccountNo: "", totalAmount: void 0, needAmount: void 0, invoiceAmount: void 0, payment: "", paymentBank: "", paymentAccountNo: "", paymentCreditCode: "", remark: "", budgetType: 1, isRollingBudget: 0 }, isNeed: false, infoRules: { paymentMonth: { required: true, message: "请选择计提年月", trigger: "change" }, paymentDate: { required: true, message: "请选择应付日期", trigger: "change" }, investment: { required: true, message: "请选择支出项", trigger: "change" }, subject: { required: true, message: "请输入支出科目", trigger: ["change", "blur"] }, receiveUnit: { required: true, message: "请输入收款单位", trigger: "blur" }, receiveBank: { required: true, message: "请输入收款开户行", trigger: "blur" }, receiveAccountNo: { required: true, message: "请输入收款账户", trigger: "blur" }, totalAmount: { required: true, message: "请输入应付金额", trigger: ["change", "blur"] }, needAmount: { required: true, message: "请输入需要发票金额", trigger: ["change", "blur"] }, invoiceAmount: { required: true, message: "请输入已提供发票金额", trigger: ["change", "blur"] }, budgetType: { required: true, message: "请选择预算分类", trigger: "change" }, payment: { required: true, message: "请选择付款单位", trigger: "change" }, paymentBank: { required: true, message: "请输入付款开户行", trigger: ["change", "blur"] }, paymentAccountNo: { required: true, message: "请输入付款账户", trigger: ["change", "blur"] }, paymentCreditCode: { required: true, message: "请输入付款单位编码", trigger: ["change", "blur"] } }, fileList: [], uploadFileList: [], payoff: true, payInfo: {}, PowerSupplyBureauDisabled: false };
|
||
}, mounted: function() {
|
||
}, methods: { initPowerSupplyBureauData: function(e2) {
|
||
this.PowerSupplyBureauDisabled = true, this.infoForm.paymentMonth = e2.paymentMonth, this.infoForm.totalAmount = e2.totalAmount, this.infoForm.ids = e2.ids, console.log(this.infoForm, "ids");
|
||
}, selectUser: function(e2) {
|
||
var t2 = this;
|
||
Object(s["c"])({ id: e2 }).then((function(e3) {
|
||
0 == e3.code && (e3.data.memberAddReqDTO.accountName ? t2.infoForm.receiveUnit = e3.data.memberAddReqDTO.accountName + "" : t2.infoForm.receiveUnit = t2.userList.find((function(e4) {
|
||
return e4.id == t2.infoForm.receiveUnit;
|
||
})).name, t2.infoForm.receiveBank = e3.data.memberAddReqDTO.bankName ? e3.data.memberAddReqDTO.bankName : "", t2.infoForm.receiveAccountNo = e3.data.memberAddReqDTO.accountNumber ? e3.data.memberAddReqDTO.accountNumber : "");
|
||
}));
|
||
}, setEdit: function(e2) {
|
||
var t2 = this;
|
||
if (this.payoff = true, this.detailInfo = e2, this.applyId = e2.id, this.infoForm.paymentMonth = e2.paymentMonth, this.infoForm.paymentDate = e2.paymentDate.substring(0, 10), this.infoForm.receiveUnit = e2.receiveUnit, this.infoForm.receiveBank = e2.receiveBank, this.infoForm.receiveAccountNo = e2.receiveAccountNo, this.infoForm.totalAmount = e2.totalAmount, this.infoForm.budgetType = e2.budgetType, this.infoForm.isRollingBudget = e2.isRollingBudget, e2.needInvoiceAmount > 0 ? (this.isNeed = true, this.infoForm.needAmount = e2.needInvoiceAmount) : (this.isNeed = false, this.infoForm.needAmount = 0), this.infoForm.invoiceAmount = e2.invoiceAmount, this.infoForm.remark = e2.remark, this.infoForm.paymentBank = e2.paymentBank, this.infoForm.paymentAccountNo = e2.paymentAccountNo, this.infoForm.paymentCreditCode = e2.paymentCreditCode, e2.fileUrls) {
|
||
var n2 = JSON.parse(e2.fileUrls);
|
||
n2.map((function(e3) {
|
||
t2.fileList.push({ name: e3.fileName, url: e3.fullUrl });
|
||
})), this.uploadFileList = JSON.parse(e2.fileUrls);
|
||
}
|
||
this.infoForm.subject = e2.subjectName, this.infoForm.investment = { id: e2.investmentId, name: e2.investmentName, subject: e2.subjectName }, this.infoForm.payment = { name: e2.paymentUnit, id: e2.paymentId };
|
||
}, changePaySelect: function(e2) {
|
||
this.payInfo = e2, 6 == e2.investmentBusinessClassify ? this.payoff = false : this.payoff = true, e2 ? (this.infoForm.subject = e2.subjectName, 1 == e2.needInvoice ? (this.isNeed = true, this.infoForm.needAmount = this.infoForm.totalAmount) : (this.isNeed = false, this.infoForm.needAmount = 0)) : (this.infoForm.subject = "", this.isNeed = false, this.infoForm.needAmount = 0);
|
||
}, changeCompany: function(e2) {
|
||
e2 ? (this.infoForm.paymentBank = e2.bankName, this.infoForm.paymentAccountNo = e2.bankAccount, this.infoForm.paymentCreditCode = e2.corporateCreditCode) : (this.infoForm.paymentBank = "", this.infoForm.paymentAccountNo = "", this.infoForm.paymentCreditCode = "");
|
||
}, changeAmount: function(e2) {
|
||
this.isNeed && (this.infoForm.needAmount = e2);
|
||
}, exceedUpload: function() {
|
||
this.$message("最多仅允许上传9个文件");
|
||
}, beforeUpload: function(e2) {
|
||
var t2 = e2.size / 1024 / 1024 < 10, n2 = e2.size / 1024 / 1024 < 2, o2 = ["jpeg", "jpg", "gif", "bmp", "png"], r2 = ["xls", "xlsx", "doc", "docx", "ppt", "pptx", "pdf", "txt"], a2 = e2.name.substring(e2.name.lastIndexOf(".") + 1);
|
||
if (!o2.includes(a2) && !r2.includes(a2)) return this.$message("上传文件只能是图片或文档,如:jpg、jpeg、png、doc、pdf、xls、txt等格式!"), false;
|
||
if (o2.includes(a2) || r2.includes(a2)) {
|
||
if (o2.includes(a2) && !n2) return this.$message("图片文件最大不超过2M"), false;
|
||
if (r2.includes(a2) && !t2) return this.$message("文档文件最大不超过10M"), false;
|
||
}
|
||
return true;
|
||
}, uploadRequest: (function() {
|
||
var e2 = p(c().m((function e3(t3) {
|
||
var n2, o2, r2, i2, s2, u2, l2, m2, p2, d2, f2, b2, h2;
|
||
return c().w((function(e4) {
|
||
while (1) switch (e4.p = e4.n) {
|
||
case 0:
|
||
if (n2 = t3.file, e4.p = 1, o2 = n2.size / 1024 / 1024 < 10, r2 = n2.size / 1024 / 1024 < 2, i2 = ["jpeg", "jpg", "gif", "bmp", "png"], s2 = ["xls", "xlsx", "doc", "docx", "ppt", "pptx", "pdf", "txt"], u2 = n2.name.substring(n2.name.lastIndexOf(".") + 1), i2.includes(u2) || s2.includes(u2)) {
|
||
e4.n = 2;
|
||
break;
|
||
}
|
||
return this.$message("上传文件只能是图片或文档,如:jpg、jpeg、png、doc、pdf、xls、txt等格式!"), t3.onError("文件类型不支持"), e4.a(2, false);
|
||
case 2:
|
||
if (!i2.includes(u2) && !s2.includes(u2)) {
|
||
e4.n = 4;
|
||
break;
|
||
}
|
||
if (!i2.includes(u2) || r2) {
|
||
e4.n = 3;
|
||
break;
|
||
}
|
||
return this.$message("图片文件最大不超过2M"), t3.onError("图片文件过大"), e4.a(2, false);
|
||
case 3:
|
||
if (!s2.includes(u2) || o2) {
|
||
e4.n = 4;
|
||
break;
|
||
}
|
||
return this.$message("文档文件最大不超过10M"), t3.onError("文档文件过大"), e4.a(2, false);
|
||
case 4:
|
||
return l2 = new FormData(), l2.append("file", n2), e4.n = 5, Object(a["b"])(l2);
|
||
case 5:
|
||
m2 = e4.v, m2 && 0 === m2.data.code && m2.data.data.fullUrl ? (p2 = { fileName: n2.name, fullUrl: m2.data.data.fullUrl }, t3.onSuccess(p2), this.$message({ message: "文件上传成功", type: "success" })) : (d2 = n2.uid, f2 = this.$refs.uploadFile.uploadFiles.findIndex((function(e5) {
|
||
return e5.uid == d2;
|
||
})), this.$refs.uploadFile.uploadFiles.splice(f2, 1), this.$message.error("文件上传失败"), t3.onError("上传失败")), e4.n = 7;
|
||
break;
|
||
case 6:
|
||
e4.p = 6, e4.v, b2 = n2.uid, h2 = this.$refs.uploadFile.uploadFiles.findIndex((function(e5) {
|
||
return e5.uid == b2;
|
||
})), this.$refs.uploadFile.uploadFiles.splice(h2, 1), this.$message.error("文件上传失败"), t3.onError("上传失败");
|
||
case 7:
|
||
return e4.a(2);
|
||
}
|
||
}), e3, this, [[1, 6]]);
|
||
})));
|
||
function t2(t3) {
|
||
return e2.apply(this, arguments);
|
||
}
|
||
return t2;
|
||
})(), uploadSuccess: function(e2) {
|
||
e2 && this.uploadFileList.push(e2);
|
||
}, uploadRemove: function(e2) {
|
||
console.log(e2, "file"), console.log(this.uploadFileList, "this.uploadFileList");
|
||
var t2 = this.uploadFileList.findIndex((function(t3) {
|
||
if (t3) return t3.fileName === e2.name;
|
||
}));
|
||
this.uploadFileList.splice(t2, 1);
|
||
}, addInfoSubmit: function() {
|
||
var e2 = this;
|
||
this.$refs["infoForm"].validate((function(t2) {
|
||
if (t2) {
|
||
var n2 = { paymentMonth: e2.infoForm.paymentMonth, paymentDate: "".concat(e2.infoForm.paymentDate, " 00:00:00"), investmentId: e2.infoForm.investment.id, receiveUnit: e2.infoForm.receiveUnit, receiveBank: e2.infoForm.receiveBank, receiveAccountNo: e2.infoForm.receiveAccountNo, totalAmount: e2.infoForm.totalAmount, invoiceAmount: e2.infoForm.invoiceAmount, paymentId: e2.infoForm.payment.id, paymentUnit: e2.infoForm.payment.name, paymentBank: e2.infoForm.paymentBank, paymentAccountNo: e2.infoForm.paymentAccountNo, paymentCreditCode: e2.infoForm.paymentCreditCode, remark: e2.infoForm.remark, fileUrls: e2.uploadFileList.length ? JSON.stringify(e2.uploadFileList) : "", budgetType: e2.infoForm.budgetType, ids: e2.infoForm.ids ? e2.infoForm.ids : null };
|
||
e2.infoForm.ids && e2.infoForm.ids.length > 0 && (n2.ids = e2.infoForm.ids), 2 == e2.infoForm.budgetType && (n2.isRollingBudget = e2.infoForm.isRollingBudget), "" != e2.applyId ? (n2.id = e2.applyId, n2.updaterName = e2.$store.state.user.userInfo.memberName, n2.updaterId = e2.$store.state.user.userInfo.memberId, n2.projectUuid = e2.detailInfo.projectUuid, n2.projectName = e2.detailInfo.projectName, Object(i["B"])(n2).then((function(t3) {
|
||
0 == t3.code && (e2.$message({ message: "修改成功", type: "success" }), e2.callBack());
|
||
}))) : (n2.projectUuid = e2.$store.state.community_uuid, n2.projectName = e2.$store.state.community_name, n2.creatorId = e2.$store.state.user.userInfo.memberId, n2.creatorName = e2.$store.state.user.userInfo.memberName, Object(i["h"])(n2).then((function(t3) {
|
||
0 == t3.code && (e2.$message({ message: "新增成功", type: "success" }), e2.callBack());
|
||
})));
|
||
}
|
||
}));
|
||
}, resetForm: function() {
|
||
this.$refs["infoForm"].resetFields(), this.applyId = "", this.detailInfo = "", this.fileList = [], this.uploadFileList = [];
|
||
}, goBack: function() {
|
||
this.resetForm(), this.$emit("back");
|
||
}, callBack: function() {
|
||
this.resetForm(), this.$emit("callback");
|
||
} } }, f = d, b = (n("fbc7"), n("829d")), h = Object(b["a"])(f, o, r, false, null, "787ce88a", null);
|
||
t["a"] = h.exports;
|
||
}, fbc7: function(e, t, n) {
|
||
"use strict";
|
||
n("27c7");
|
||
} }]);
|