dev01 2 years ago
parent
commit
6d8056f98b
1 changed files with 85 additions and 8 deletions
  1. 85 8
      js/component/manageCenter/order/orderNew/inquiry.jsx

+ 85 - 8
js/component/manageCenter/order/orderNew/inquiry.jsx

@@ -151,6 +151,7 @@ const IntentionCustomer = Form.create()(
           depId: this.state.departmenttList,
           amountStatus: this.state.amountStatus,
           approval: this.state.approvalSearch,
+          projectType: this.state.projectType,
           processStatus: this.state.processStatusSearch
         },
         success: function (data) {
@@ -168,6 +169,8 @@ const IntentionCustomer = Form.create()(
                 id: thisdata.id,
                 salesType: thisdata.salesType, //销售类型
                 other: thisdata.other,
+                deleteSign: thisdata.deleteSign,
+                projectType: thisdata.projectType, // 会员状态
                 orderNo: thisdata.orderNo, //订单编号
                 totalAmount: thisdata.totalAmount, //签单金额
                 processStatus: thisdata.processStatus, //流程状态
@@ -689,12 +692,72 @@ const IntentionCustomer = Form.create()(
             dataIndex: "contractNo",
             key: "contractNo",
             // fixed: 'left'
+            width: 130,
+            render: (text, record) => {
+              return (
+                <Tooltip
+                  title={
+                    <Button
+                      type="primary"
+                      onClick={(e) => {
+                        e.stopPropagation();
+                        let input = document.getElementById("copyText");
+                        input.value = text;
+                        input.select();
+                        document.execCommand("copy");
+                        message.success("复制成功");
+                      }}
+                    >
+                      复制
+                    </Button>
+                  }
+                >
+                  <div>
+                    {text}
+                    <div style={{ display: "flex" }}>
+                      <OrderItemStatus deleteSign={record.deleteSign} />
+                      {(record.approval == 1 || record.approval == 2) && <Tag color="#ff0000">特批</Tag>}
+                    </div>
+                  </div>
+                </Tooltip>
+              );
+            },
           },
           {
             title: "订单编号",
             dataIndex: "orderNo",
             key: "orderNo",
             // fixed: 'left'
+            width: 140,
+            render: (text, record) => {
+              return (
+                <Tooltip
+                  title={
+                    <Button
+                      type="primary"
+                      onClick={(e) => {
+                        e.stopPropagation();
+                        let input = document.getElementById("copyText");
+                        input.value = text;
+                        input.select();
+                        document.execCommand("copy");
+                        message.success("复制成功");
+                      }}
+                    >
+                      复制
+                    </Button>
+                  }
+                >
+                  <div>
+                    {text}
+                    <div>
+                      {record.totalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
+                      {record.projectType == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
+                    </div>
+                  </div>
+                </Tooltip>
+              );
+            },
           },
           {
             title: "客户名称",
@@ -760,14 +823,14 @@ const IntentionCustomer = Form.create()(
               return getLiquidationStatus(text);
             },
           },
-          {
-            title: "是否特批",
-            dataIndex: "approval",
-            key: "approval",
-            render: (text) => {
-              return getApprovedState(text);
-            },
-          },
+          // {
+          //   title: "是否特批",
+          //   dataIndex: "approval",
+          //   key: "approval",
+          //   render: (text) => {
+          //     return getApprovedState(text);
+          //   },
+          // },
           {
             title: "订单状态",
             dataIndex: "orderStatus",
@@ -1935,6 +1998,7 @@ const IntentionCustomer = Form.create()(
       this.state.amountStatus = undefined;
       this.state.approvalSearch = undefined;
       this.state.processStatusSearch = undefined;
+      this.state.projectType = undefined;
       this.loadData();
     },
     //部门
@@ -2370,6 +2434,19 @@ const IntentionCustomer = Form.create()(
                     <Option value="4">40万元以上</Option>
                   </Select>
                   <Select
+                      style={{ width: 120 }}
+                      placeholder="会员状态"
+                      value={this.state.projectType}
+                      onChange={(e) => {
+                        this.setState({
+                          projectType: e,
+                        });
+                      }}
+                    >
+                      <Option value="1">会员</Option>
+                      <Option value="0">非会员</Option>
+                    </Select>
+                  <Select
                     style={{ width: 140 }}
                     placeholder="流程状态"
                     value={this.state.processStatusSearch}