|
@@ -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){
|