-
查询条件
-
-
- 发票号码
-
-
-
- setFormData({
- ...FormData,
- invoice: e.target.value,
- })
- }
- />
-
-
-
-
- 邮箱
-
-
-
- setFormData({
- ...FormData,
- email: e.target.value,
- })
- }
- />
-
-
-
-
商户名称
-
-
-
-
-
- 发票抬头
-
-
-
- setFormData({
- ...FormData,
- invoice_t: e.target.value,
- })
- }
- />
-
-
-
-
发票类型
-
-
-
-
-
开票日期
-
-
- onChangeData(dates, dataString)
- }
- />
-
-
-
-
状态
-
-
-
- {
- var reset = formdata
- setFormData(reset);
- setFormDatas(reset);
- }}
+ })
+ .catch((err) => {
+ message.error(err);
+ });
+ },
+ });
+ }}
+ >
+ 冲红
+
+
+
+
+ }
+ >
+
+
+ );
+ },
+ },
+ ];
+ };
+ //列表
+ const columns = column();
+
+ //开票
+ const pushred = [
+ {
+ text: "电子邮箱",
+ value: "email",
+ type: 1,
+ rules: [
+ {
+ required: true,
+ message: "电子邮箱不能为空",
+ },
+ {
+ pattern:
+ /^[A-Za-z0-9-_\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
+ message: "邮箱格式错误,请重新输入",
+ },
+ ],
+ },
+ {
+ text: "企业类型",
+ value: "qylx",
+ type: 2,
+ data: [
+ {
+ value: 1,
+ label: "个人",
+ },
+ {
+ value: 2,
+ label: "企业",
+ },
+ ],
+ rules: [
+ {
+ required: true,
+ message: "企业类型不能为空",
+ },
+ ],
+ },
+ {
+ text: "发票抬头",
+ value: "fptt",
+ rules: [
+ {
+ required: true,
+ message: "发票抬头不能为空",
+ },
+ ],
+ },
+ {
+ text: "纳税人识别号",
+ value: "nsrsbh",
+ rules: "",
+ },
+ {
+ text: "地址",
+ value: "dz",
+ rules: "",
+ },
+ {
+ text: "电话",
+ value: "dh",
+ rules: [
+ {
+ pattern: /^1[3|4|5|7|8|9]\d{9}$/,
+ message: "电话格式错误,请重新输入",
+ },
+ ],
+ },
+ {
+ text: "开户行",
+ value: "khh",
+ rules: "",
+ },
+ {
+ text: "账号",
+ value: "zh",
+ rules: "",
+ },
+ ];
+ //时间
+ const onChangeData = (dates, dataString) => {
+ setFormData({
+ ...FormData,
+ start_time: dataString[0],
+ end_time: dataString[1],
+ });
+ };
+ //页码
+ function onShowSizeChange(pn, pn_size) {
+ setFormData({
+ ...FormData,
+ pn: pn,
+ page_size: pn_size,
+ });
+ setFormDatas({
+ ...FormDatas,
+ pn: pn,
+ page_size: pn_size,
+ });
+ }
+ //提交
+ const SubmitPush = () => {
+ form
+ .validateFields()
+ .then((val) => {
+ console.log(val);
+ // ajax.submitPush({ ...val }).then((res) => {
+ // if (res.status == 20000) {
+ // form.resetFields();
+ // message.success(res.message);
+ // } else {
+ // message.error(res.message);
+ // }
+ // });
+ })
+ .catch((e) => {
+ console.log(e);
+ });
+ };
+ //表单输出
+ const FormTable = (data, disabledcol) => {
+ return (
+
+ );
+ };
+ //获取页面显示数据
+ const getData = (data) => {
+ setLoading(false);
+ ajax.ElectInvoice.getInvoiceMess({ ...data }).then(
+ (res) => {
+ if (parseInt(res?.status) === 20000) {
+ console.log(res);
+ setData({
+ data: res?.data || {},
+ total: res.total || 0,
+ });
+ setLoading(true);
+ } else {
+ message.error(res?.message);
+ }
+ setLoading(true);
+ },
+ (err) => {
+ console.log(err);
+ setLoading(true);
+ }
+ );
+ };
+ useEffect(() => {
+ getData(FormDatas);
+ //调用接口
+ }, [FormDatas]);
+
+ return (
+
+
+
+
查询条件
+
+
发票号码
+
+
+ setFormData({
+ ...FormData,
+ ordernum: e.target.value,
+ })
+ }
+ />
+
+
+
+
邮箱
+
+
+ setFormData({
+ ...FormData,
+ email: e.target.value,
+ })
+ }
+ />
+
+
+
+
商户名称
+
+
+
+
+
发票抬头
+
+
+ setFormData({
+ ...FormData,
+ head_name: e.target.value,
+ })
+ }
+ />
+
+
+
+
发票类型
+
+
-
-
-
-
record.id}
- dataSource={Data.data}
- pagination={false}
- scroll={{
- x: 1300,
- y: "calc(100vh - 300px)"
- }}
- />
-
-
-
`共 ${total_records} 条`}
- total={Data.total}
- current={FormData.pn}
- pageSize={FormData.page_size}
- pageSizeOptions={dictionary?.pageSizeOptions}
- onChange={onShowSizeChange}
- onShowSizeChange={onShowSizeChange}
- />
-
-
+
+
+
开票日期
+
+
+ onChangeData(dates, dataString)
+ }
+ />
+
+
+
+
状态
+
+
+
+
+ {
+ var reset = formdata;
+ setFormData(reset);
+ setFormDatas(reset);
+ }}
+ >
+ 重置
+
+ {
+ setFormDatas({ ...FormData });
+ }}
+ >
+ 查询
+
+
+
+
+
+
+
record.id}
+ dataSource={Data.data}
+ pagination={false}
+ scroll={{
+ x: 1300,
+ y: "calc(100vh - 300px)",
+ }}
+ />
+
+
+
`共 ${total_records} 条`}
+ total={Data.total}
+ current={FormData.pn}
+ pageSize={FormData.page_size}
+ pageSizeOptions={dictionary?.pageSizeOptions}
+ onChange={onShowSizeChange}
+ onShowSizeChange={onShowSizeChange}
+ />
+
+
+
+
+ {
+ setOpen(false);
+ }}
+ width={800}
+ className="modal-invoicerepeat"
+ title={"发票冲红重开"}
+ >
+ {FormTable(pushred, [])}
+
+
+ 发票内容
+ 停车费
+
+
+ 发票金额
+ 4.00元
+
+
+
+
SubmitPush()}>
+ 提交
+
+
{
+ form.resetFields();
+ setOpen(false);
+ }}
+ >
+ 取消
+
+
+ );
}
-export default CreateInvoiceRecord;
\ No newline at end of file
+export default CreateInvoiceRecord;
diff --git a/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx b/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx
index 4fcb15b..7f7a88a 100644
--- a/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx
+++ b/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx
@@ -365,7 +365,7 @@ function PayRepeat() {
page_size: pn_size,
});
setFormDatas({
- ...FormData,
+ ...FormDatas,
pn: pn,
page_size: pn_size,
});
diff --git a/src/router/router.config.js b/src/router/router.config.js
index cd19e73..3dd7dfa 100644
--- a/src/router/router.config.js
+++ b/src/router/router.config.js
@@ -835,6 +835,40 @@ let routes = [
component: pages.CreateInvoice,
},
{
+ // -------------------------------财务管理 - 财务报表
+ path: "/financialMgm/parkingIncomeReport",
+ text: "停车收入报表",
+ name: "parkingIncomeReport",
+ component: pages.ParkingIncomeReport,
+ },
+ {
+ path: "/financialMgm/operationReport",
+ text: "运营报表",
+ name: "operationReport",
+ component: pages.OperationReport,
+ },
+ {
+ path: "/financialMgm/preOrderReport",
+ text: "预付报表",
+ name: "preOrderReport",
+ component: pages.PreOrderReport,
+ },{
+ path: "/financialMgm/paySummaryReport",
+ text: "总收入报表",
+ name: "paySummaryReport",
+ component: pages.PaySummaryReport,
+ },{
+ path: "/financialMgm/payChannelStat",
+ text: "渠道统计",
+ name: "payChannelStat",
+ component: pages.PayChannelStat,
+ },{
+ path: "/financialMgm/pdaStat",
+ text: "PDA统计",
+ name: "pdaStat",
+ component: pages.PdaStat,
+ },
+ {
// -------------------------------财务管理 - 异常处理 - 发起异常处理
path: "/financialMgm/startExceptionDeal",
text: "发起异常处理",
diff --git a/src/services/ElectInvoice/index.js b/src/services/ElectInvoice/index.js
new file mode 100644
index 0000000..1efefb1
--- /dev/null
+++ b/src/services/ElectInvoice/index.js
@@ -0,0 +1,43 @@
+import ajax from "../../config/ajax"
+
+//************************发票记录
+// 获取列表数据
+const getInvoiceMess = (params)=>{
+ return ajax({
+ url: "/api/fin/elec_invoice/get_list",
+ type: "post",
+ data: params,
+ })
+}
+//发票冲红
+const FlushRed = (params) => {
+ return ajax({
+ url: "/api/fin/elec_invoice/deal_invoice",
+ type: "post",
+ data: params,
+ })
+}
+// 订阅任务-新增基本信息订阅级别数据获取
+const getModalResource = ()=>{
+ return ajax({
+ url: "/api/v1/controlalarm/subscribes/get_deploy_subscribe_modal_resource",
+ type: "get",
+ // data: params,
+ })
+}
+//************************开具发票
+// 获取列表数据
+const getInvoice = (params)=>{
+ return ajax({
+ url: "/api/fin/elec_invoice/get_invoice_list",
+ type: "post",
+ data: params,
+ })
+}
+
+
+export default {
+ getInvoiceMess,
+ FlushRed,
+ getInvoice,
+}
\ No newline at end of file
diff --git a/src/services/index.js b/src/services/index.js
index 0dd733c..36f50d5 100644
--- a/src/services/index.js
+++ b/src/services/index.js
@@ -18,6 +18,7 @@ import ZombieCarCleanRecord from "./OutRoadMgm";
import AdminMgm from "./SystemMgm";
import RoleMgm from "./SystemMgm";
import BusinessConf from "./SystemMgm";
+import ElectInvoice from "./ElectInvoice";
const api = {};
export default {
...api,
@@ -40,5 +41,6 @@ export default {
...ZombieCarCleanRecord,
...AdminMgm,
...RoleMgm,
- ...BusinessConf
+ ...BusinessConf,
+ ElectInvoice
};