|
@@ -19,6 +19,7 @@ import {
|
|
|
Tooltip,
|
|
|
Row,
|
|
|
Col,
|
|
|
+ Tag,
|
|
|
} from "antd";
|
|
|
import NewService from "./addService.jsx";
|
|
|
import moment from "moment";
|
|
@@ -38,6 +39,7 @@ import {
|
|
|
getProjectStatus,
|
|
|
getProjectName,
|
|
|
} from "../../../tools.js";
|
|
|
+import { salesList } from "@/dataDic.js";
|
|
|
import ShowModalDiv from "@/showModal.jsx";
|
|
|
import { ChooseList } from "../orderNew/chooseList";
|
|
|
import ReactToPrint from "react-to-print";
|
|
@@ -467,32 +469,14 @@ const MyService = Form.create()(
|
|
|
title: "销售类型",
|
|
|
dataIndex: "salesType",
|
|
|
key: "salesType",
|
|
|
- width: 70,
|
|
|
+ // width: 70,
|
|
|
render: (text, record) => {
|
|
|
return (
|
|
|
<Tooltip
|
|
|
- title={[
|
|
|
- "电话新开发",
|
|
|
- "电话自带资源",
|
|
|
- "网络",
|
|
|
- "渠道",
|
|
|
- "转介绍",
|
|
|
- "其他",
|
|
|
- "高新复购",
|
|
|
- "其他复购",
|
|
|
- ][text] + ((text == 3 || text == 4 || text == 5) ? "," + record.other : "")}
|
|
|
+ title={salesList[text] + ((text == 3 || text == 4 || text == 5) ? "," + record.other : "")}
|
|
|
>
|
|
|
<span>
|
|
|
- {[
|
|
|
- "电话新开发",
|
|
|
- "电话自带资源",
|
|
|
- "网络",
|
|
|
- "渠道",
|
|
|
- "转介绍",
|
|
|
- "其他",
|
|
|
- "高新复购",
|
|
|
- "其他复购",
|
|
|
- ][text]}
|
|
|
+ {salesList[text]}
|
|
|
</span>
|
|
|
</Tooltip>
|
|
|
);
|
|
@@ -502,8 +486,8 @@ const MyService = Form.create()(
|
|
|
title: "合同编号",
|
|
|
dataIndex: "contractNo",
|
|
|
key: "contractNo",
|
|
|
- width: 110,
|
|
|
- render: (text) => {
|
|
|
+ width: 112,
|
|
|
+ render: (text, record) => {
|
|
|
return (
|
|
|
<Tooltip
|
|
|
title={
|
|
@@ -522,7 +506,12 @@ const MyService = Form.create()(
|
|
|
</Button>
|
|
|
}
|
|
|
>
|
|
|
- {text}
|
|
|
+ <div>
|
|
|
+ {text}
|
|
|
+ <div style={{ height: 22 }}>
|
|
|
+ <OrderItemStatus deleteSign={record.deleteSign} />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</Tooltip>
|
|
|
);
|
|
|
},
|
|
@@ -553,36 +542,10 @@ const MyService = Form.create()(
|
|
|
>
|
|
|
<div>
|
|
|
{text}
|
|
|
- {record.totalAmount >= 10 ? (
|
|
|
- <div
|
|
|
- style={{
|
|
|
- background: "#ef7207",
|
|
|
- color: "#FFF",
|
|
|
- padding: "1px 7px",
|
|
|
- borderRadius: "5px",
|
|
|
- fontSize: "12px",
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- 大客户
|
|
|
- </div>
|
|
|
- ) : null}
|
|
|
- {record.projectType == 1 ? (
|
|
|
- <div
|
|
|
- style={{
|
|
|
- background: "rgb(22, 155, 213)",
|
|
|
- color: "#FFF",
|
|
|
- padding: "1px 7px",
|
|
|
- borderRadius: "5px",
|
|
|
- fontSize: "12px",
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- 会员
|
|
|
- </div>
|
|
|
- ) : null}
|
|
|
+ <div style={{ height: 22 }}>
|
|
|
+ {record.totalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
|
|
|
+ {record.totalAmount == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</Tooltip>
|
|
|
);
|
|
@@ -623,15 +586,15 @@ const MyService = Form.create()(
|
|
|
);
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- title: "状态",
|
|
|
- dataIndex: "deleteSign",
|
|
|
- key: "deleteSign",
|
|
|
- width: 80,
|
|
|
- render: (text) => {
|
|
|
- return <OrderItemStatus deleteSign={text} />;
|
|
|
- },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: "状态",
|
|
|
+ // dataIndex: "deleteSign",
|
|
|
+ // key: "deleteSign",
|
|
|
+ // width: 80,
|
|
|
+ // render: (text) => {
|
|
|
+ // return <OrderItemStatus deleteSign={text} />;
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
title: "订单部门",
|
|
|
dataIndex: "depName",
|