Browse Source

完成订单变更功能1-18

mentoswzq 5 years ago
parent
commit
ac1cbf0a43

+ 0 - 1
css/changeDetail.less

@@ -1,6 +1,5 @@
 .changeDetail {
     position: relative;
-    bottom: 15px;
 }
 
 .changeDetail .half-item {

+ 11 - 0
js/component/manageCenter/order/content.less

@@ -88,4 +88,15 @@
 
 .ant-upload-list-item{
 	font-size: 14px;
+}
+.ant-modal-close-x {
+    display: block;
+    font-style: normal;
+    text-align: center;
+    text-transform: none;
+    text-rendering: auto;
+    width: 22px;
+    height: 23px;
+    line-height: 28px;
+    font-size: 21px;
 }

+ 233 - 3
js/component/manageCenter/order/orderNew/addService.jsx

@@ -349,6 +349,234 @@ const NewService = Form.create()(
             }
           }
         ],
+        detailColumns: [
+        {
+          title: "变更状态",
+          dataIndex: "type",
+          key: "type",
+          render: text => {
+            let str = "";
+            let color = "";
+            if (text == 1) {
+              str = "增";
+              color = "#87d068";
+            } else if (text == 2) {
+              str = "改";
+              color = "#108ee9";
+            } else if (text == 3) {
+              str = "删";
+              color = "#f50";
+            }
+            return (
+              <Tag
+                color={color}
+                style={{ display: text == 0 ? "none" : "inline-block" }}
+              >
+                {str}
+              </Tag>
+            );
+          }
+        },
+        {
+          title: "业务项目名称",
+          dataIndex: "commodityName",
+          key: "commodityName"
+          // render: (text, record) => {
+          //   let str = "";
+          //   let color = "";
+          //   if (record.type == 1) {
+          //     str = "增";
+          //     color = "#87d068";
+          //   } else if (record.type == 2) {
+          //     str = "改";
+          //     color = "#108ee9";
+          //   } else if (record.type == 3) {
+          //     str = "删";
+          //     color = "#f50";
+          //   }
+          //   if (record.type == 0) {
+          //     return <span>{text}</span>;
+          //   } else {
+          //     return (
+          //       <span>
+          //         <Tag color={color}>{str}</Tag>
+          //         {text}
+          //       </span>
+          //     );
+          //   }
+          // }
+        },
+        {
+          title: "项目类别",
+          dataIndex: "cname",
+          key: "cname"
+        },
+        {
+          title: "项目数量",
+          dataIndex: "commodityQuantity",
+          key: "commodityQuantity"
+        },
+        {
+          title: "金额(万元)",
+          dataIndex: "commodityPrice",
+          key: "commodityPrice",
+          render: text => {
+            if (this.props.isZxs) {
+              return <span>***</span>;
+            }else {
+              return <span>{text}</span>
+            }
+          }
+        },
+        {
+          title: "主要项目",
+          dataIndex: "main",
+          key: "main",
+          render: text => {
+            return text ? "是" : "否";
+          }
+        },
+        {
+          title: "项目说明",
+          dataIndex: "taskComment",
+          key: "taskComment",
+          render: text => {
+            return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
+          }
+        }
+      ],
+      detailContactsLists: [
+        {
+          title: "变更状态",
+          dataIndex: "type",
+          key: "type",
+          render: text => {
+            let str = "";
+            let color = "";
+            if (text == 1) {
+              str = "增";
+              color = "#87d068";
+            } else if (text == 2) {
+              str = "改";
+              color = "#108ee9";
+            } else if (text == 3) {
+              str = "删";
+              color = "#f50";
+            }
+            return (
+              <Tag
+                color={color}
+                style={{ display: text == 0 ? "none" : "inline-block" }}
+              >
+                {str}
+              </Tag>
+            );
+          }
+        },
+        {
+          title: "项目名称",
+          dataIndex: "commodityName",
+          key: "commodityName"
+          // render: (text, record) => {
+          //   let str = "";
+          //   let color = "";
+          //   if (record.type == 1) {
+          //     str = "增";
+          //     color = "#87d068";
+          //   } else if (record.type == 2) {
+          //     str = "改";
+          //     color = "#108ee9";
+          //   } else if (record.type == 3) {
+          //     str = "删";
+          //     color = "#f50";
+          //   }
+          //   if (record.type == 0) {
+          //     return <span>{text}</span>;
+          //   } else {
+          //     return (
+          //       <span>
+          //         <Tag color={color}>{str}</Tag>
+          //         {text}
+          //       </span>
+          //     );
+          //   }
+          // }
+        },
+        {
+          title: "项目分类",
+          dataIndex: "projectType",
+          key: "projectType",
+          render: text => {
+            let arr = this.state.proDataSource || [];
+            let str = "";
+            for (let i = 0; i < arr.length; i++) {
+              if (this.state.proDataSource[i].cSort == text) {
+                str = this.state.proDataSource[i].cname;
+                return <span>{str}</span>;
+              }
+            }
+          }
+        },
+        {
+          title: "催款科目",
+          dataIndex: "dunTypeName",
+          key: "dunTypeName",
+          render: text => {
+            return <span>{text}</span>;
+          }
+        },
+        {
+          title: "时间",
+          dataIndex: "waitDay",
+          key: "waitDay",
+          render: (text, record) => {
+            if (record.dunTypeName) {
+              return <span>{text}</span>;
+            }
+          }
+        },
+        {
+          title: "金额(万元)",
+          dataIndex: "money",
+          key: "money",
+          render: (text, record) => {
+            if (record.dunTypeName) {
+              if (record.appropriationRatio && !record.money) {
+                return <span>{record.appropriationRatio}(拨款比例)</span>;
+              } else if (record.appropriationRatio && record.money) {
+                return (
+                  <span>
+                    {text}(比例:{record.appropriationRatio})
+                  </span>
+                );
+              } else {
+                if(this.props.isZxs) {
+                  return <span>***</span>
+                }
+                return <span>{text}</span>;
+              }
+            }
+          }
+        },
+        {
+          title: "服务年限",
+          dataIndex: "startDate",
+          key: "startDate",
+          render: (text, record) => {
+            if (record.dunTypeName) {
+              return <span>{text}</span>;
+            }
+          }
+        },
+        {
+          title: "催款状态",
+          dataIndex: "status",
+          key: "status",
+          render: text => {
+            return <span>{text == 1 ? "已启动" : "未启动"}</span>;
+          }
+        }
+      ],
         columnsrizhi: [
           {
             title: "流程",
@@ -1938,6 +2166,7 @@ const NewService = Form.create()(
       if (key === "1") {
         this.jiedian(this.props.datauser.orderNo);
         this.jiedianNew(this.props.datauser.orderNo);
+        this.loaduser();
         // this.loaduser();
       }
       if (key === "3") {
@@ -2042,7 +2271,8 @@ const NewService = Form.create()(
                   tuiKuanFlag: false,
                   displayList: false,
                   // 置空
-                  changeId: undefined
+                  changeId: undefined,
+                  isCaoGao: false
                 });
               }
             } else {
@@ -4645,7 +4875,7 @@ const NewService = Form.create()(
                               >
                                 <Spin spinning={this.state.loading}>
                                   <Table
-                                    columns={this.state.proColumns}
+                                    columns={this.state.detailColumns}
                                     dataSource={this.state.proDataSource}
                                     pagination={this.state.pagination}
                                     // onRowClick={this.tableRowClick}
@@ -4678,7 +4908,7 @@ const NewService = Form.create()(
                                   <Form layout="horizontal">
                                     <Table
                                       pagination={false}
-                                      columns={this.state.changeCuiList}
+                                      columns={this.state.detailContactsLists}
                                       dataSource={this.state.cuiDataSource}
                                       scroll={{ x: "max-content", y: 0 }}
                                       bordered

+ 2 - 1
js/component/manageCenter/order/orderNew/changeComponent/changeDetailCwzj.js

@@ -8,6 +8,7 @@ import $ from "jquery/src/ajax";
 import "../../../../../../css/changeDetail.less"
 import tongguo from "../../../../../../image/tongguo.png";
 import ProAndCuiList from "./proAndCuiList.jsx";
+import "./xButton.less";
 // import ReactToPrint from "react-to-print";
 const FormItem = Form.Item;
 const { TextArea } = Input;
@@ -594,7 +595,7 @@ class ChangeDetail extends Component {
                 下一张
               </Button>
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
 
           {/* <h2 style={{ textAlign: "center", marginBottom: 0 }}>变更日志</h2> */}

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

@@ -20,6 +20,7 @@ import $ from "jquery/src/ajax";
 import ReactToPrint from "react-to-print";
 import tongguo from "../../../../../../image/tongguo.png";
 import ProAndCuiList from "./proAndCuiList.jsx";
+import "./xButton.less"
 
 
 const { RangePicker } = DatePicker;
@@ -962,7 +963,7 @@ class ChangeDetail extends Component {
                 下一张
               </Button>
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
 
           <ul

+ 2 - 1
js/component/manageCenter/order/orderNew/changeComponent/changeDetailJsjl.js

@@ -7,6 +7,7 @@ import { shenghePeo } from "@/tools.js";
 import $ from "jquery/src/ajax";
 import tongguo from "../../../../../../image/tongguo.png";
 import ProAndCuiList from "./proAndCuiList.jsx";
+import "./xButton.less";
 // import ReactToPrint from "react-to-print";
 
 const formItemLayout = {
@@ -435,7 +436,7 @@ class ChangeDetail extends Component {
                 src={this.state.previewImage || ""}
               />
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
 
           <ul

+ 2 - 1
js/component/manageCenter/order/orderNew/changeComponent/changeDetailJsy.js

@@ -7,6 +7,7 @@ import {shenghePeo} from "@/tools.js"
 import $ from "jquery/src/ajax";
 import tongguo from "../../../../../../image/tongguo.png";
 import ProAndCuiList from "./proAndCuiList.jsx";
+import "./xButton.less";
 // import ReactToPrint from "react-to-print";
 const FormItem = Form.Item;
 const { TextArea } = Input;
@@ -411,7 +412,7 @@ class ChangeDetail extends Component {
                 src={this.state.previewImage || ""}
               />
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
 
           {/* <ul>

+ 2 - 1
js/component/manageCenter/order/orderNew/changeComponent/changeDetailJszj.js

@@ -7,6 +7,7 @@ import { shenghePeo } from "@/tools.js";
 import $ from "jquery/src/ajax";
 import tongguo from "../../../../../../image/tongguo.png";
 import ProAndCuiList from "./proAndCuiList.jsx";
+import "./xButton.less";
 // import ReactToPrint from "react-to-print";
 
 const formItemLayout = {
@@ -424,7 +425,7 @@ class ChangeDetail extends Component {
                 src={this.state.previewImage || ""}
               />
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
 
           <ul

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

@@ -419,7 +419,7 @@ class ChangeDetail extends Component {
                 src={this.state.previewImage || ""}
               />
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
 
           {/* <h2 style={{ textAlign: "center", marginBottom: 0 }}>变更日志</h2> */}

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

@@ -448,7 +448,7 @@ class ChangeDetail extends Component {
               <Button onClick={this.upImg}>上一张</Button>
               <Button onClick={this.downImg}>下一张</Button>
             </Modal>
-            <Rizhi changeId={this.props.data.id} />
+            <Rizhi changeId={this.props.id} />
           </Form.Item>
           {/* {this.props.data.type === 0 && this.props.data.processState >= 2 ? (
             <div>

+ 11 - 0
js/component/manageCenter/order/orderNew/changeComponent/xButton.less

@@ -0,0 +1,11 @@
+.ant-modal-close-x {
+    display: block;
+    font-style: normal;
+    text-align: center;
+    text-transform: none;
+    text-rendering: auto;
+    width: 22px;
+    height: 23px;
+    line-height: 28px;
+    font-size: 21px;
+}

+ 3 - 2
js/component/manageCenter/order/orderNew/contractCwzj.js

@@ -846,7 +846,7 @@ const contractChange = Form.create()(
       });
     },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -854,7 +854,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -886,6 +886,7 @@ const contractChange = Form.create()(
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 3 - 2
js/component/manageCenter/order/orderNew/contractCwzy.js

@@ -922,7 +922,7 @@ const contractChange = Form.create()(
       });
     },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -930,7 +930,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -963,6 +963,7 @@ const contractChange = Form.create()(
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 3 - 2
js/component/manageCenter/order/orderNew/contractJsjl.js

@@ -842,7 +842,7 @@ const contractChange = Form.create()(
       });
     },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -850,7 +850,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -882,6 +882,7 @@ const contractChange = Form.create()(
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 3 - 2
js/component/manageCenter/order/orderNew/contractJsy.js

@@ -806,7 +806,7 @@ const contractChange = Form.create()(
       });
     },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -814,7 +814,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -846,6 +846,7 @@ const contractChange = Form.create()(
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 3 - 2
js/component/manageCenter/order/orderNew/contractJszj.js

@@ -840,7 +840,7 @@ const contractChange = Form.create()(
       });
     },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -848,7 +848,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -880,6 +880,7 @@ const contractChange = Form.create()(
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 3 - 2
js/component/manageCenter/order/orderNew/contractYxgly.js

@@ -842,7 +842,7 @@ const contractChange = Form.create()(
     //   },100)
     // },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -850,7 +850,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -882,6 +882,7 @@ const contractChange = Form.create()(
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 4 - 2
js/component/manageCenter/order/orderNew/contractYxy.js

@@ -857,7 +857,7 @@ const contractChange = Form.create()(
       });
     },
 
-    loadDataChange() {
+    loadDataChange(key) {
       $.ajax({
         method: "get",
         dataType: "json",
@@ -865,7 +865,7 @@ const contractChange = Form.create()(
         crossDomain: false,
         url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
         data: {
-          changeId: this.state.id
+          changeId: key
         },
         success: function(data) {
           if (data.error.length || data.data.list == "") {
@@ -893,9 +893,11 @@ const contractChange = Form.create()(
             this.loadDataChange(key);
           } else if (key != "a" && key != "c" && key.length > 10) {
             this.primaryOrder(key);
+            this.ChangeDetail(key);
             this.xiangmu(key);
             this.jiedian(key);
             this.jiedianNew(key);
+            this.loadDataChange(key);
           }
         }
       );

+ 297 - 245
js/component/manageCenter/project/project/zxsglyOutSourcingPaiDan.jsx

@@ -52,21 +52,22 @@ const zxsglyOutSourcingPaiDan = React.createClass({
                     for (let i = 0; i < data.data.list.length; i++) {
                         let thisdata = data.data.list[i];
                         theArr.push({
-                            key: i,
-                            id:thisdata.id,//任务ID
-                            orderNo: thisdata.orderNo,//订单编号
-	                         totalAmount:thisdata.totalAmount,//签单金额
-	                         processStatus:thisdata.processStatus,//流程状态
-	                         liquidationStatus:thisdata.liquidationStatus,//结算状态
-	                         approval:thisdata.approval,//特批状态
-	                         signDate:thisdata.signDate,//签单时间
-	                         userName:thisdata.userName,//客户名称
-	                         salesmanName:thisdata.salesmanName,//营销员名称
-	                         financeName:thisdata.financeName,//财务名称
-	                         consultantName:thisdata.consultantName,//项目负责人
-	                         createDate:thisdata.createDate,//下单时间
-	                         settlementAmount:thisdata.settlementAmount,//已交款项
-	                         depName:thisdata.depName,//部门名称
+                          key: i,
+                          id: thisdata.id, //任务ID
+                          orderNo: thisdata.orderNo, //订单编号
+                          totalAmount: thisdata.totalAmount, //签单金额
+                          processStatus: thisdata.processStatus, //流程状态
+                          liquidationStatus: thisdata.liquidationStatus, //结算状态
+                          approval: thisdata.approval, //特批状态
+                          signDate: thisdata.signDate, //签单时间
+                          userName: thisdata.userName, //客户名称
+                          salesmanName: thisdata.salesmanName, //营销员名称
+                          financeName: thisdata.financeName, //财务名称
+                          consultantName: thisdata.consultantName, //项目负责人
+                          createDate: thisdata.createDate, //下单时间
+                          settlementAmount: thisdata.settlementAmount, //已交款项
+                          depName: thisdata.depName, //部门名称
+                          ischange: thisdata.ischange //是否通过变更生成的
                         });
                     };
                 }
@@ -89,238 +90,289 @@ const zxsglyOutSourcingPaiDan = React.createClass({
     },
     getInitialState() {
         return {
-			distribution:'0',
-			customerArr: [],
-            searchMore: true,
-            assignVisible:false,
-            releaseDate: [],
-			attachmentUrl:[],
-			pictureUrl:[],
-            departmentArr: [],
-            boHuivisible:false,
-            selectedRowKeys: [],
-            selectedRows: [],
-            loading: false,
-            paginations:false,
-            pagination: {
-                defaultCurrent: 1,
-                defaultPageSize: 10,
-                showQuickJumper: true,
-                pageSize: 10,
-                onChange: function (page) {
-                    this.loadData(page);
-                }.bind(this),
-                showTotal: function (total) {
-                    return '共' + total + '条数据';
+          distribution: "0",
+          customerArr: [],
+          searchMore: true,
+          assignVisible: false,
+          releaseDate: [],
+          attachmentUrl: [],
+          pictureUrl: [],
+          departmentArr: [],
+          boHuivisible: false,
+          selectedRowKeys: [],
+          selectedRows: [],
+          loading: false,
+          paginations: false,
+          pagination: {
+            defaultCurrent: 1,
+            defaultPageSize: 10,
+            showQuickJumper: true,
+            pageSize: 10,
+            onChange: function(page) {
+              this.loadData(page);
+            }.bind(this),
+            showTotal: function(total) {
+              return "共" + total + "条数据";
+            }
+          },
+          columns: [
+            {
+              title: "订单编号",
+              dataIndex: "orderNo",
+              key: "orderNo",
+              render: (text, record) => {
+                if (record.ischange == 1) {
+                  return (
+                    <span>
+                      <Tag color="#f50">变更</Tag>
+                      {text}
+                    </span>
+                  );
+                } else {
+                  return <span>{text}</span>;
                 }
+              }
             },
-            columns: [
-                {
-                    title: '订单编号',
-                    dataIndex: 'orderNo',
-                    key: 'orderNo',
-                },
-                {
-                    title: '签单客户',
-                    dataIndex: 'userName',
-                    key: 'userName',
-                }, {
-                    title: '下单时间',
-                    dataIndex: 'createDate',
-                    key: 'createDate',
-                },  {
-                    title: '签单时间',
-                    dataIndex: 'signDate',
-                    key: 'signDate',
-                },
-                {
-                    title: '订单总金额(万)',
-                    dataIndex: 'totalAmount',
-                    key: 'totalAmount'
-                },
-                {
-                    title: '是否特批',
-                    dataIndex: 'approval',
-                    key: 'approval',
-                    render: text => { return getApproval(text)}
-                },
-                {
-                    title: '订单负责人',
-                    dataIndex: 'salesmanName',
-                    key: 'salesmanName'
-                },{
-                    title: '订单部门',
-                    dataIndex: 'depName',
-                    key: 'depName'
-                },
-                {
-                    title: '财务负责人',
-                    dataIndex: 'financeName',
-                    key: 'financeName'
-                },
-                {
-                    title: '项目负责人',
-                    dataIndex: 'consultantName',
-                    key: 'consultantName'
-                },
-                {
-                    title: '分派状态',
-                    dataIndex: 'processStatus',
-                    key: 'processStatus',
-                    render: text => { return text==5||text==6?getProcessStatus(text):'未分配'}
-                },
-                {
-                    title:'操作',
-                    dataIndex: 'caozuo',
-                    key: 'caouzo',
-                    render:(text,record)=>{
-                        return <div>
-                        	{record.settlementAmount==0?
-                            <Button type="primary" style={{margin:'0 10px'}} onClick={(e)=>{e.stopPropagation(),this.examNo(record)}}>驳回</Button>
-                        	:''}
-                        </div>
-                    }
-                }
-            ],
-			columnsW: [
-			    {
-			        title: '外包名称',
-			        dataIndex: 'name',
-			        key: 'name',
-			    }, {
-			        title: '联系人',
-			        dataIndex: 'contacts',
-			        key: 'contacts',
-			    },  {
-			        title: '联系人电话',
-			        dataIndex: 'contactsMobile',
-			        key: 'contactsMobile',
-			    },
-			    {
-			        title: '地址',
-			        dataIndex: 'ProvinceCity',
-			        key: 'ProvinceCity',
-					render:(test)=>{
-						return test[0]===null?'':(getprovince(test[0])+'/'+getprovince(test[1])+'/'+getprovince(test[2]))
-					}
-			    },
-				{
-				    title: '地址详情',
-				    dataIndex: 'address',
-				    key: 'address',
-					render:(text)=>{
-						return (text&&text.length>8?text.substr(0,8)+'...':text)
-					}
-				},
-				{
-				    title: '创建时间',
-				    dataIndex: 'createTimes',
-				    key: 'createTimes',
-				},
-			    {
-			        title: '任务名称',
-			        dataIndex: 'tname',
-			        key: 'tname'
-			    },
-			    {
-			        title: '合同编号',
-			        dataIndex: 'contractNo',
-			        key: 'contractNo',
-			    },
-			    {
-			        title: '项目状态',
-			        dataIndex: 'projectStatus',
-			        key: 'projectStatus',
-					render:(text)=>{
-						return getProjectStatus(text);
-					}
-			    },
-			],
-			columnsrizhi:[
-				{
-					title:'流程',
-					dataIndex: 'processName',
-					key: 'processName'
-				},{
-					title:'操作人',
-					dataIndex: 'adminName',
-					key: 'adminName'
-				},{
-					title:'时间',
-					dataIndex: 'createDate',
-					key: 'createDate'
-				}
-			],
-            dataSource: [],
-            searchTime: [],
-            columnsX: [
-				{
-                    title: '业务项目名称',
-                    dataIndex: 'commodityName',
-                    key: 'commodityName'
-                }, {
-                    title: '项目类别',
-                    dataIndex: 'cname',
-                    key: 'cname'
-                },{
-                    title: '项目数量',
-                    dataIndex: 'commodityQuantity',
-                    key: 'commodityQuantity'
-                }, {
-                    title: '金额(万元)',
-                    dataIndex: 'commodityPrice',
-                    key: 'commodityPrice'
-                }, {
-                    title: '负责人',
-                    dataIndex: 'contacts',
-                    key: 'contacts'
-                }, {
-                    title: '负责人电话',
-                    dataIndex: 'contactsMobile',
-                    key: 'contactsMobile'
-                }, {
-                    title: '主要项目',
-                    dataIndex: 'main',
-                    key: 'main',
-                    render:(text)=>{
-                    	return (text?'是':'否')
-                    }
-                }, {
-                    title: '项目说明',
-                    dataIndex: 'taskComment',
-                    key: 'taskComment',
-					render:(text)=>{
-						return (text&&text.length>8?text.substr(0,8)+'…':text)
-					}
-                },
-                {
-                    title:'操作',
-                    dataIndex: 'caozuo',
-                    key: 'caouzo',
-                    render:(text,record)=>{
-                        return (
-                          <div>
-                            {this.state.processStatus == 4 ||
-                            record.taskStatus == 0 ? (
-                              <Button
-                                type="primary"
-                                style={{ margin: "0 10px" }}
-                                onClick={e => {
-                                  e.stopPropagation(), this.evaluate(record);
-                                }}
-                              >
-                                分配任务
-                              </Button>
-                            ) : (
-                              ""
-                            )}
-                          </div>
-                        );
-                    }
-                }
-			],
-			dataSourceX: [],
-        }
+            {
+              title: "签单客户",
+              dataIndex: "userName",
+              key: "userName"
+            },
+            {
+              title: "下单时间",
+              dataIndex: "createDate",
+              key: "createDate"
+            },
+            {
+              title: "签单时间",
+              dataIndex: "signDate",
+              key: "signDate"
+            },
+            {
+              title: "订单总金额(万)",
+              dataIndex: "totalAmount",
+              key: "totalAmount"
+            },
+            {
+              title: "是否特批",
+              dataIndex: "approval",
+              key: "approval",
+              render: text => {
+                return getApproval(text);
+              }
+            },
+            {
+              title: "订单负责人",
+              dataIndex: "salesmanName",
+              key: "salesmanName"
+            },
+            {
+              title: "订单部门",
+              dataIndex: "depName",
+              key: "depName"
+            },
+            {
+              title: "财务负责人",
+              dataIndex: "financeName",
+              key: "financeName"
+            },
+            {
+              title: "项目负责人",
+              dataIndex: "consultantName",
+              key: "consultantName"
+            },
+            {
+              title: "分派状态",
+              dataIndex: "processStatus",
+              key: "processStatus",
+              render: text => {
+                return text == 5 || text == 6
+                  ? getProcessStatus(text)
+                  : "未分配";
+              }
+            },
+            {
+              title: "操作",
+              dataIndex: "caozuo",
+              key: "caouzo",
+              render: (text, record) => {
+                return (
+                  <div>
+                    {record.settlementAmount == 0 ? (
+                      <Button
+                        type="primary"
+                        style={{ margin: "0 10px" }}
+                        onClick={e => {
+                          e.stopPropagation(), this.examNo(record);
+                        }}
+                      >
+                        驳回
+                      </Button>
+                    ) : (
+                      ""
+                    )}
+                  </div>
+                );
+              }
+            }
+          ],
+          columnsW: [
+            {
+              title: "外包名称",
+              dataIndex: "name",
+              key: "name"
+            },
+            {
+              title: "联系人",
+              dataIndex: "contacts",
+              key: "contacts"
+            },
+            {
+              title: "联系人电话",
+              dataIndex: "contactsMobile",
+              key: "contactsMobile"
+            },
+            {
+              title: "地址",
+              dataIndex: "ProvinceCity",
+              key: "ProvinceCity",
+              render: test => {
+                return test[0] === null
+                  ? ""
+                  : getprovince(test[0]) +
+                      "/" +
+                      getprovince(test[1]) +
+                      "/" +
+                      getprovince(test[2]);
+              }
+            },
+            {
+              title: "地址详情",
+              dataIndex: "address",
+              key: "address",
+              render: text => {
+                return text && text.length > 8
+                  ? text.substr(0, 8) + "..."
+                  : text;
+              }
+            },
+            {
+              title: "创建时间",
+              dataIndex: "createTimes",
+              key: "createTimes"
+            },
+            {
+              title: "任务名称",
+              dataIndex: "tname",
+              key: "tname"
+            },
+            {
+              title: "合同编号",
+              dataIndex: "contractNo",
+              key: "contractNo"
+            },
+            {
+              title: "项目状态",
+              dataIndex: "projectStatus",
+              key: "projectStatus",
+              render: text => {
+                return getProjectStatus(text);
+              }
+            }
+          ],
+          columnsrizhi: [
+            {
+              title: "流程",
+              dataIndex: "processName",
+              key: "processName"
+            },
+            {
+              title: "操作人",
+              dataIndex: "adminName",
+              key: "adminName"
+            },
+            {
+              title: "时间",
+              dataIndex: "createDate",
+              key: "createDate"
+            }
+          ],
+          dataSource: [],
+          searchTime: [],
+          columnsX: [
+            {
+              title: "业务项目名称",
+              dataIndex: "commodityName",
+              key: "commodityName"
+            },
+            {
+              title: "项目类别",
+              dataIndex: "cname",
+              key: "cname"
+            },
+            {
+              title: "项目数量",
+              dataIndex: "commodityQuantity",
+              key: "commodityQuantity"
+            },
+            {
+              title: "金额(万元)",
+              dataIndex: "commodityPrice",
+              key: "commodityPrice"
+            },
+            {
+              title: "负责人",
+              dataIndex: "contacts",
+              key: "contacts"
+            },
+            {
+              title: "负责人电话",
+              dataIndex: "contactsMobile",
+              key: "contactsMobile"
+            },
+            {
+              title: "主要项目",
+              dataIndex: "main",
+              key: "main",
+              render: text => {
+                return text ? "是" : "否";
+              }
+            },
+            {
+              title: "项目说明",
+              dataIndex: "taskComment",
+              key: "taskComment",
+              render: text => {
+                return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
+              }
+            },
+            {
+              title: "操作",
+              dataIndex: "caozuo",
+              key: "caouzo",
+              render: (text, record) => {
+                return (
+                  <div>
+                    {this.state.processStatus == 4 || record.taskStatus == 0 ? (
+                      <Button
+                        type="primary"
+                        style={{ margin: "0 10px" }}
+                        onClick={e => {
+                          e.stopPropagation(), this.evaluate(record);
+                        }}
+                      >
+                        分配任务
+                      </Button>
+                    ) : (
+                      ""
+                    )}
+                  </div>
+                );
+              }
+            }
+          ],
+          dataSourceX: []
+        };
     },
     /* 分派 */
     evaluate(record){