hujie123456 5 years ago
parent
commit
4cbeb17316

+ 31 - 31
js/component/manageCenter/achievement/crmAchievement.jsx

@@ -1581,38 +1581,38 @@ const AchievementDetail = React.createClass({
         };
     },
     getTechBrodersList() {
-        this.setState({
-            loading: true
-        });
-        $.ajax({
-            method: "get",
-            dataType: "json",
-            crossDomain: false,
-            url: globalConfig.context + "/api/admin/audit/techBroders",
-            success: function (data) {
-                if (!data.data) {
-                    if (data.error && data.error.length) {
-                        message.warning(data.error[0].message);
-                    }
-                    return;
-                };
-                let _me = this, theArr = [];
-                for (var item in data.data) {
+        // this.setState({
+        //     loading: true
+        // });
+        // $.ajax({
+        //     method: "get",
+        //     dataType: "json",
+        //     crossDomain: false,
+        //     url: globalConfig.context + "/api/admin/audit/techBroders",
+        //     success: function (data) {
+        //         if (!data.data) {
+        //             if (data.error && data.error.length) {
+        //                 message.warning(data.error[0].message);
+        //             }
+        //             return;
+        //         };
+        //         let _me = this, theArr = [];
+        //         for (var item in data.data) {
                 	
-                    theArr.push(
-                        <Select.Option key={item}>{data.data[item]}</Select.Option>
-                    )
-                };
-                this.setState({
-                    techBrodersOption: theArr,
-                    techBrodersObj: data.data
-                });
-            }.bind(this),
-        }).always(function () {
-            this.setState({
-                loading: false
-            });
-        }.bind(this));
+        //             theArr.push(
+        //                 <Select.Option key={item}>{data.data[item]}</Select.Option>
+        //             )
+        //         };
+        //         this.setState({
+        //             techBrodersOption: theArr,
+        //             techBrodersObj: data.data
+        //         });
+        //     }.bind(this),
+        // }).always(function () {
+        //     this.setState({
+        //         loading: false
+        //     });
+        // }.bind(this));
     },
     getTableList() {
         this.setState({

+ 126 - 76
js/component/manageCenter/financialManage/distribute/approvedOutsourcing.jsx

@@ -128,7 +128,8 @@ const approvedOutsourcing = React.createClass({
               outsourceName: thisdata.outsourceName,
               invoiceAmount: thisdata.invoiceAmount,
               finalReceivables: thisdata.finalReceivables,
-              finalReceivablesTime: thisdata.finalReceivablesTime
+              finalReceivablesTime: thisdata.finalReceivablesTime,
+              signTotalAmount: thisdata.signTotalAmount
             });
           }
         }
@@ -191,100 +192,116 @@ const approvedOutsourcing = React.createClass({
       changeList: undefined,
       columns: [
         {
+          title: "合同编号",
+          dataIndex: "contractNo",
+          key: "contractNo",
+          className: "title-table"
+        },
+        {
           title: "订单编号",
           dataIndex: "orderNo",
-          key: "orderNo"
+          key: "orderNo",
+          className: "title-table"
           // fixed: "left"
         },
         {
-          title: "合同编号",
-          dataIndex: "contractNo",
-          key: "contractNo"
+          title: "客户名称",
+          dataIndex: "buyerName",
+          key: "buyerName",
+          className: "title-table"
+        },
+        {
+          title: "订单部门",
+          dataIndex: "departmentName",
+          key: "departmentName",
+          className: "title-table"
+        },
+        {
+          title: "订单负责人",
+          dataIndex: "sellerName",
+          key: "sellerName",
+          className: "title-table"
+        },
+        {
+          title: "外包公司",
+          dataIndex: "outsourceName",
+          key: "outsourceName",
+          className: "title-table"
         },
         {
           title: "签单日期",
           dataIndex: "signTime",
-          key: "signTime"
+          key: "signTime",
+          className: "title-table"
         },
         {
           title: "下单日期",
           dataIndex: "createTime",
-          key: "createTime"
+          key: "createTime",
+          className: "title-table"
         },
         {
-          title: "已收款(万元)",
-          dataIndex: "actuallyTotalAmount",
-          key: "actuallyTotalAmount"
+          title: "签单金额(万元)",
+          dataIndex: "signTotalAmount",
+          key: "signTotalAmount",
+          className: "title-table"
         },
         {
           title: "开票金额(万元)",
           dataIndex: "invoiceAmount",
-          key: "invoiceAmount"
+          key: "invoiceAmount",
+          className: "title-table"
+        },
+        {
+          title: "已收款(万元)",
+          dataIndex: "actuallyTotalAmount",
+          key: "actuallyTotalAmount",
+          className: "title-table"
         },
         {
           title: "最近收款(万元)",
           dataIndex: "finalReceivables",
-          key: "finalReceivables"
+          key: "finalReceivables",
+          className: "title-table"
         },
         {
           title: "最近收款时间",
           dataIndex: "finalReceivablesTime",
-          key: "finalReceivablesTime"
+          key: "finalReceivablesTime",
+          className: "title-table"
         },
         {
-          title: "客户名称",
-          dataIndex: "buyerName",
-          key: "buyerName"
-        },
-        {
-          title: "外包公司",
-          dataIndex: "outsourceName",
-          key: "outsourceName"
+          title: "结算状态",
+          dataIndex: "liquidationStatus",
+          key: "liquidationStatus",
+          className: "title-table",
+          render: text => {
+            return getLiquidationStatus(text);
+          }
         },
         {
           title: "流程状态",
           dataIndex: "processStatus",
           key: "processStatus",
+          className: "title-table",
           render: text => {
             return getProcessStatus(text);
           }
         },
         {
-          title: "订单部门",
-          dataIndex: "departmentName",
-          key: "departmentName"
-        },
-        {
           title: "特批状态",
           dataIndex: "approval",
           key: "approval",
+          className: "title-table",
           render: text => {
             return getApproval(text);
           }
         },
-        //                 {
-        //                     title: '订单状态',
-        //                     dataIndex: 'orderStatus',
-        //                     key: 'orderStatus',
-        //                     render: text => { return getNewOrderStatus(text)}
-        //                 },
-        {
-          title: "订单负责人",
-          dataIndex: "sellerName",
-          key: "sellerName"
-        },
-        {
-          title: "结算状态",
-          dataIndex: "liquidationStatus",
-          key: "liquidationStatus",
-          render: text => {
-            return getLiquidationStatus(text);
-          }
-        },
         {
           title: "操作",
           dataIndex: "caozuo",
           key: "caouzo",
+          className: "title-table",
           render: (text, recard) => {
             return (
               <div>
@@ -526,15 +543,35 @@ const approvedOutsourcing = React.createClass({
       searchTime: [,],
       printColumns: [
         {
+          title: "合同编号",
+          dataIndex: "contractNo",
+          key: "contractNo"
+        },
+        {
           title: "订单编号",
           dataIndex: "orderNo",
           key: "orderNo"
           // fixed: "left"
         },
         {
-          title: "合同编号",
-          dataIndex: "contractNo",
-          key: "contractNo"
+          title: "客户名称",
+          dataIndex: "buyerName",
+          key: "buyerName"
+        },
+        {
+          title: "订单部门",
+          dataIndex: "departmentName",
+          key: "departmentName"
+        },
+        {
+          title: "订单负责人",
+          dataIndex: "sellerName",
+          key: "sellerName"
+        },
+        {
+          title: "外包公司",
+          dataIndex: "outsourceName",
+          key: "outsourceName"
         },
         {
           title: "签单日期",
@@ -547,14 +584,37 @@ const approvedOutsourcing = React.createClass({
           key: "createTime"
         },
         {
+          title: "签单金额(万元)",
+          dataIndex: "signTotalAmount",
+          key: "signTotalAmount"
+        },
+        {
+          title: "开票金额(万元)",
+          dataIndex: "invoiceAmount",
+          key: "invoiceAmount"
+        },
+        {
           title: "已收款(万元)",
           dataIndex: "actuallyTotalAmount",
           key: "actuallyTotalAmount"
         },
         {
-          title: "客户名称",
-          dataIndex: "buyerName",
-          key: "buyerName"
+          title: "最近收款(万元)",
+          dataIndex: "finalReceivables",
+          key: "finalReceivables"
+        },
+        {
+          title: "最近收款时间",
+          dataIndex: "finalReceivablesTime",
+          key: "finalReceivablesTime"
+        },
+        {
+          title: "结算状态",
+          dataIndex: "liquidationStatus",
+          key: "liquidationStatus",
+          render: text => {
+            return getLiquidationStatus(text);
+          }
         },
         {
           title: "流程状态",
@@ -565,31 +625,12 @@ const approvedOutsourcing = React.createClass({
           }
         },
         {
-          title: "订单部门",
-          dataIndex: "departmentName",
-          key: "departmentName"
-        },
-        {
           title: "特批状态",
           dataIndex: "approval",
           key: "approval",
           render: text => {
             return getApproval(text);
           }
-        },
-
-        {
-          title: "订单负责人",
-          dataIndex: "sellerName",
-          key: "sellerName"
-        },
-        {
-          title: "结算状态",
-          dataIndex: "liquidationStatus",
-          key: "liquidationStatus",
-          render: text => {
-            return getLiquidationStatus(text);
-          }
         }
       ],
       waterlistDate: [
@@ -1542,17 +1583,26 @@ const approvedOutsourcing = React.createClass({
               pagination={this.state.pagination}
               onRowDoubleClick={this.tableRowClick.bind(this)}
               rowSelection={rowSelection}
+              size="small"
             />
           </Spin>
           <p
             style={{ display: "inline-block", fontSize: "14px", color: "red" }}
           >
-            {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}` +
-              " " +
-              " " +
-              `合同额总计(万元):${
-                this.state.totalHui ? this.state.totalHui : "0"
-              }`}
+            {
+              <span style={{ marginRight: 10 }}>
+                {`收款金额总计(万元):${
+                  this.state.hui ? this.state.hui : "0"
+                }`}
+              </span>
+            }
+            {
+              <span>
+                {`合同额总计(万元):${
+                  this.state.totalHui ? this.state.totalHui : "0"
+                }`}
+              </span>
+            }
           </p>
         </div>
         <div className="patent-desc">

+ 49 - 25
js/component/manageCenter/financialManage/distribute/huiKuan.jsx

@@ -25,7 +25,8 @@ import {
   getprovince,
   getStatus,
   getPeople,
-  splitUrl
+  splitUrl,
+  moneyVerify
 } from "@/tools";
 import { ChooseList } from "../../../../component/manageCenter/order/orderNew/chooseList";
 import "./huiKuan.less"
@@ -198,53 +199,63 @@ const HuiKuan = React.createClass({
         {
           title: "合同编号",
           dataIndex: "contractNo",
-          key: "contractNo"
+          key: "contractNo",
           // fixed: "left"
+          className: "title-table"
         },
         {
           title: "订单编号",
           dataIndex: "orderNo",
-          key: "orderNo"
+          key: "orderNo",
+          className: "title-table"
         },
         {
           title: "流水编号",
           dataIndex: "financialPayNo",
-          key: "financialPayNo"
+          key: "financialPayNo",
+          className: "title-table"
         },
         {
           title: "客户名称",
           dataIndex: "nickname",
-          key: "nickname"
+          key: "nickname",
+          className: "title-table"
         },
         {
           title: "付款方",
           dataIndex: "corporateName",
-          key: "corporateName"
+          key: "corporateName",
+          className: "title-table"
         },
         {
-          title: "合同额(万元)",
+          title: "合同额(万元)",
           dataIndex: "totalAmount",
-          key: "totalAmount"
+          key: "totalAmount",
+          className: "title-table"
         },
         {
-          title: "已收款(万元)",
+          title: "已收款(万元)",
           dataIndex: "settlementAmount",
-          key: "settlementAmount"
+          key: "settlementAmount",
+          className: "title-table"
         },
         {
-          title: "本次回款(万元)",
+          title: "本次回款(万元)",
           dataIndex: "amount",
-          key: "amount"
+          key: "amount",
+          className: "title-table"
         },
         {
           title: "回款时间",
           dataIndex: "receivablesTimes",
-          key: "receivablesTimes"
+          key: "receivablesTimes",
+          className: "title-table"
         },
         {
           title: "状态",
           dataIndex: "status",
           key: "status",
+          className: "title-table",
           render: status => {
             let str = "";
             let color = "";
@@ -264,12 +275,14 @@ const HuiKuan = React.createClass({
         {
           title: "批量导入时间",
           dataIndex: "createTimes",
-          key: "createTimes"
+          key: "createTimes",
+          className: "title-table"
         },
         {
           title: "备注",
           dataIndex: "remarks",
-          key: "remarks"
+          key: "remarks",
+          className: "title-table"
         }
       ],
       columnsDate: [
@@ -388,8 +401,8 @@ const HuiKuan = React.createClass({
   },
 
   handleOk() {
+    if(moneyVerify(this.state.modalData.amount)) return
     this.setState({ loading: true });
-
     if(!this.state.choose) {
       $.ajax({
         method: "POST",
@@ -436,6 +449,8 @@ const HuiKuan = React.createClass({
         // totalAmount: this.state.modalData.totalAmount,
         // contractNo: this.state.modalData.contractNo,
         // nickname: this.state.modalData.nickname,
+        corporateName: this.state.modalData.corporateName,
+        financialPayNo: this.state.modalData.financialPayNo,
         remarks: this.state.modalData.remarks,
         id: this.state.modalData.key
       },
@@ -802,22 +817,31 @@ const HuiKuan = React.createClass({
                   ? this.state.columns
                   : this.state.changeList
               }
-              //   scroll={{ x: 1500, y: 0 }}
+              scroll={{ x: "max-content" }}
               dataSource={this.state.dataSource}
               pagination={this.state.pagination}
               rowSelection={rowSelection}
               bordered
+              size="small"
             />
           </Spin>
           <p
             style={{ display: "inline-block", fontSize: "14px", color: "red" }}
           >
-            {`回款金额总计(万元):${this.state.hui ? this.state.hui : "0"}` +
-              " " +
-              " " +
-              `合同额总计(万元):${
-                this.state.totalHui ? this.state.totalHui : "0"
-              }`}
+            {
+              <span style={{ marginRight: 10 }}>
+                {`回款金额总计(万元):${
+                  this.state.hui ? this.state.hui : "0"
+                }`}
+              </span>
+            }
+            {
+              <span>
+                {`合同额总计(万元):${
+                  this.state.totalHui ? this.state.totalHui : "0"
+                }`}
+              </span>
+            }
           </p>
         </div>
 
@@ -923,7 +947,7 @@ const HuiKuan = React.createClass({
               display: this.state.choose ? "block" : "none"
             }}
           >
-            合同额(万元):
+            合同额(万元):
             <Input
               style={{
                 width: "auto",
@@ -939,7 +963,7 @@ const HuiKuan = React.createClass({
             />
           </p>
           <p style={{ marginBottom: 10 }}>
-            本次回款(万元):
+            本次回款(万元):
             <Input
               style={{ width: "auto" }}
               value={this.state.modalData.amount}

+ 6 - 0
js/component/manageCenter/financialManage/distribute/public.less

@@ -116,3 +116,9 @@ table tr span,table tr td{
         }
     }
 }
+thead>tr>.title-table {
+    background-color: #F5F5F5 !important;
+}
+.ant-table-selection-column {
+    background-color: #f5f5f5 !important;
+}

+ 117 - 66
js/component/manageCenter/financialManage/distribute/shouKuang.jsx

@@ -124,7 +124,8 @@ const ShouKuang = React.createClass({
               departmentName: thisdata.departmentName,
               invoiceAmount: thisdata.invoiceAmount,
               finalReceivables: thisdata.finalReceivables,
-              finalReceivablesTime: thisdata.finalReceivablesTime
+              finalReceivablesTime: thisdata.finalReceivablesTime,
+              signTotalAmount: thisdata.signTotalAmount
             });
           }
         }
@@ -185,15 +186,30 @@ const ShouKuang = React.createClass({
       changeList: undefined,
       printColumns: [
         {
+          title: "合同编号",
+          dataIndex: "contractNo",
+          key: "contractNo"
+        },
+        {
           title: "订单编号",
           dataIndex: "orderNo",
           key: "orderNo"
           // fixed: "left"
         },
         {
-          title: "合同编号",
-          dataIndex: "contractNo",
-          key: "contractNo"
+          title: "客户名称",
+          dataIndex: "buyerName",
+          key: "buyerName"
+        },
+        {
+          title: "订单部门",
+          dataIndex: "departmentName",
+          key: "departmentName"
+        },
+        {
+          title: "订单负责人",
+          dataIndex: "sellerName",
+          key: "sellerName"
         },
         {
           title: "签单日期",
@@ -206,14 +222,37 @@ const ShouKuang = React.createClass({
           key: "createTime"
         },
         {
+          title: "签单金额(万元)",
+          dataIndex: "signTotalAmount",
+          key: "signTotalAmount"
+        },
+        {
+          title: "开票金额(万元)",
+          dataIndex: "invoiceAmount",
+          key: "invoiceAmount"
+        },
+        {
           title: "已收款(万元)",
           dataIndex: "actuallyTotalAmount",
           key: "actuallyTotalAmount"
         },
         {
-          title: "客户名称",
-          dataIndex: "buyerName",
-          key: "buyerName"
+          title: "最近收款(万元)",
+          dataIndex: "finalReceivables",
+          key: "finalReceivables"
+        },
+        {
+          title: "最近收款时间",
+          dataIndex: "finalReceivablesTime",
+          key: "finalReceivablesTime"
+        },
+        {
+          title: "结算状态",
+          dataIndex: "liquidationStatus",
+          key: "liquidationStatus",
+          render: text => {
+            return getLiquidationStatus(text);
+          }
         },
         {
           title: "流程状态",
@@ -224,97 +263,111 @@ const ShouKuang = React.createClass({
           }
         },
         {
-          title: "订单部门",
-          dataIndex: "departmentName",
-          key: "departmentName"
-        },
-        {
           title: "特批状态",
           dataIndex: "approval",
           key: "approval",
           render: text => {
             return getApproval(text);
           }
-        },
-
-        {
-          title: "订单负责人",
-          dataIndex: "sellerName",
-          key: "sellerName"
-        },
-        {
-          title: "结算状态",
-          dataIndex: "liquidationStatus",
-          key: "liquidationStatus",
-          render: text => {
-            return getLiquidationStatus(text);
-          }
         }
       ],
       columns: [
         {
+          title: "合同编号",
+          dataIndex: "contractNo",
+          key: "contractNo",
+          className: "title-table"
+        },
+        {
           title: "订单编号",
           dataIndex: "orderNo",
-          key: "orderNo"
+          key: "orderNo",
+          className: "title-table"
           // fixed: "left"
         },
         {
-          title: "合同编号",
-          dataIndex: "contractNo",
-          key: "contractNo"
+          title: "客户名称",
+          dataIndex: "buyerName",
+          key: "buyerName",
+          className: "title-table"
+        },
+        {
+          title: "订单部门",
+          dataIndex: "departmentName",
+          key: "departmentName",
+          className: "title-table"
+        },
+        {
+          title: "订单负责人",
+          dataIndex: "sellerName",
+          key: "sellerName",
+          className: "title-table"
         },
         {
           title: "签单日期",
           dataIndex: "signTime",
-          key: "signTime"
+          key: "signTime",
+          className: "title-table"
         },
         {
           title: "下单日期",
           dataIndex: "createTime",
-          key: "createTime"
+          key: "createTime",
+          className: "title-table"
         },
         {
-          title: "已收款(万元)",
-          dataIndex: "actuallyTotalAmount",
-          key: "actuallyTotalAmount"
+          title: "签单金额(万元)",
+          dataIndex: "signTotalAmount",
+          key: "signTotalAmount",
+          className: "title-table"
         },
         {
           title: "开票金额(万元)",
           dataIndex: "invoiceAmount",
-          key: "invoiceAmount"
+          key: "invoiceAmount",
+          className: "title-table"
+        },
+        {
+          title: "已收款(万元)",
+          dataIndex: "actuallyTotalAmount",
+          key: "actuallyTotalAmount",
+          className: "title-table"
         },
         {
           title: "最近收款(万元)",
           dataIndex: "finalReceivables",
-          key: "finalReceivables"
+          key: "finalReceivables",
+          className: "title-table"
         },
         {
           title: "最近收款时间",
           dataIndex: "finalReceivablesTime",
-          key: "finalReceivablesTime"
+          key: "finalReceivablesTime",
+          className: "title-table"
         },
         {
-          title: "客户名称",
-          dataIndex: "buyerName",
-          key: "buyerName"
+          title: "结算状态",
+          dataIndex: "liquidationStatus",
+          key: "liquidationStatus",
+          className: "title-table",
+          render: text => {
+            return getLiquidationStatus(text);
+          }
         },
         {
           title: "流程状态",
           dataIndex: "processStatus",
           key: "processStatus",
+          className: "title-table",
           render: text => {
             return getProcessStatus(text);
           }
         },
         {
-          title: "订单部门",
-          dataIndex: "departmentName",
-          key: "departmentName"
-        },
-        {
           title: "特批状态",
           dataIndex: "approval",
           key: "approval",
+          className: "title-table",
           render: text => {
             return getApproval(text);
           }
@@ -326,23 +379,12 @@ const ShouKuang = React.createClass({
         //                     key: 'orderStatus',
         //                     render: text => { return getNewOrderStatus(text)}
         //                 },
-        {
-          title: "订单负责人",
-          dataIndex: "sellerName",
-          key: "sellerName"
-        },
-        {
-          title: "结算状态",
-          dataIndex: "liquidationStatus",
-          key: "liquidationStatus",
-          render: text => {
-            return getLiquidationStatus(text);
-          }
-        },
+
         {
           title: "操作",
           dataIndex: "caozuo",
           key: "caouzo",
+          className: "title-table",
           render: (text, recard) => {
             return (
               <div>
@@ -454,7 +496,7 @@ const ShouKuang = React.createClass({
           //   fixed: "left"
         },
         {
-          title: "金额(万元)",
+          title: "收款金额(万元)",
           dataIndex: "transactionAmount",
           key: "transactionAmount"
         },
@@ -1046,17 +1088,26 @@ const ShouKuang = React.createClass({
               scroll={{ x: "max-content", y: 0 }}
               pagination={this.state.pagination}
               onRowDoubleClick={this.tableRowClick.bind(this)}
+              size="small"
             />
           </Spin>
           <p
             style={{ display: "inline-block", fontSize: "14px", color: "red" }}
           >
-            {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}` +
-              " " +
-              " " +
-              `合同额总计(万元):${
-                this.state.totalHui ? this.state.totalHui : "0"
-              }`}
+            {
+              <span style={{ marginRight: 10 }}>
+                {`收款金额总计(万元):${
+                  this.state.hui ? this.state.hui : "0"
+                }`}
+              </span>
+            }
+            {
+              <span>
+                {`合同额总计(万元):${
+                  this.state.totalHui ? this.state.totalHui : "0"
+                }`}
+              </span>
+            }
           </p>
         </div>
         <Assign

+ 18 - 9
js/component/manageCenter/order/orderNew/changeComponent/agreeButton.js

@@ -1,6 +1,7 @@
 import React, { Component } from "react";
 import { Modal, Button, Input, Form, message } from "antd";
 import $ from "jquery/src/ajax";
+import { moneyVerify } from "@/tools.js";
 
 class ReasonInput extends Component {
   constructor(props) {
@@ -150,16 +151,24 @@ class ReasonInput extends Component {
       message.error("理由不能为空!");
       return false;
     }
-    // 判断权限是否大于营销管理员
-    if (
-      this.props.processState <= 1 ||
-      this.props.processState == 4 ||
-      this.props.processState >= 6
-    ) {
-      this.sendRequest(data, backData);
-    } else {
-      this.inputAjax(data, backData);
+    if( this.props.data.status == 2 && this.props.processState == 5) {
+      if (
+        moneyVerify(this.props.ajaxData.cwCost) ||
+        moneyVerify(this.props.ajaxData.refundableAmount)
+      ) {
+        return;
+      }
     }
+      if (
+        this.props.processState <= 1 ||
+        this.props.processState == 4 ||
+        this.props.processState >= 6
+      ) {
+        // 判断权限是否大于营销管理员
+        this.sendRequest(data, backData);
+      } else {
+        this.inputAjax(data, backData);
+      }
     data.onChange(this.state.reason);
   }
 

+ 1 - 1
js/component/manageCenter/order/orderNew/changeComponent/changeDetailCwzy.js

@@ -14,7 +14,7 @@ import {
 import AgreeButton from "./agreeButton.js";
 import Rizhi from "./rizhi.js";
 import moment from "moment";
-import { getProcessStatusNew } from "@/tools.js";
+import { getProcessStatusNew, moneyVerify } from "@/tools.js";
 import { shenghePeo } from "@/tools.js";
 import $ from "jquery/src/ajax";
 import ReactToPrint from "react-to-print";

+ 6 - 0
js/component/tools.js

@@ -1898,5 +1898,11 @@ module.exports = {
       str = str.substr(0, str.length - 1);
       return str + ")审核中";
     }
+  },
+  moneyVerify(e) {
+    if(!/^\d{1,3}(,?\d{3})*(\.\d{1,4})?$/.test(e)) {
+      message.warning("输入金额不符合规范")
+      return true
+    }
   }
 };