|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
import $ from "jquery";
|
|
|
import moment from "moment";
|
|
|
import Picture from "@/manageCenter/publicComponent/picture";
|
|
|
+import ResolutionDetail from "@/resolutionDetail";
|
|
|
import "@/manageCenter/financialManage/distribute/public.less";
|
|
|
import "@/manageCenter/financialManage/distribute/shouKuan.less";
|
|
|
import {
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
Cascader,
|
|
|
Popconfirm,
|
|
|
Tabs,
|
|
|
+ Tag,
|
|
|
notification
|
|
|
} from "antd";
|
|
|
import Assign from "@/manageCenter/publicComponent/assign";
|
|
@@ -69,7 +71,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
outsource: 1,
|
|
|
approval: this.state.approvalSearch //特批状态搜索
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
ShowModal(this);
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.list) {
|
|
@@ -92,18 +94,18 @@ const MyTaskOutsource = React.createClass({
|
|
|
userName:
|
|
|
thisdata.taskName.substring(0, 5) === "软件著作权"
|
|
|
? thisdata.userName +
|
|
|
- "(" +
|
|
|
- thisdata.commodityQuantity.toString() +
|
|
|
- "/" +
|
|
|
- thisdata.alreadyNumber +
|
|
|
- ")"
|
|
|
+ "(" +
|
|
|
+ thisdata.commodityQuantity.toString() +
|
|
|
+ "/" +
|
|
|
+ thisdata.alreadyNumber +
|
|
|
+ ")"
|
|
|
: thisdata.userName, //用户名
|
|
|
depName: thisdata.depName, //部门名称
|
|
|
commodityQuantity: thisdata.commodityQuantity, //项目数量
|
|
|
outsourceName: thisdata.outsourceName,
|
|
|
hours: thisdata.hours,
|
|
|
contractNo: thisdata.contractNo,
|
|
|
- approval: thisdata.approval, //特批状态
|
|
|
+ approval: thisdata.approval //特批状态
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -117,7 +119,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -152,13 +154,13 @@ const MyTaskOutsource = React.createClass({
|
|
|
defaultPageSize: 10,
|
|
|
showQuickJumper: true,
|
|
|
pageSize: 10,
|
|
|
- onChange: function (page) {
|
|
|
+ onChange: function(page) {
|
|
|
this.loadData(page);
|
|
|
this.setState({
|
|
|
page
|
|
|
});
|
|
|
}.bind(this),
|
|
|
- showTotal: function (total) {
|
|
|
+ showTotal: function(total) {
|
|
|
return "共" + total + "条数据";
|
|
|
}
|
|
|
},
|
|
@@ -333,7 +335,27 @@ const MyTaskOutsource = React.createClass({
|
|
|
{
|
|
|
title: "项目数量",
|
|
|
dataIndex: "commodityQuantity",
|
|
|
- key: "commodityQuantity"
|
|
|
+ key: "commodityQuantity",
|
|
|
+ render: (text, record) => {
|
|
|
+ if (record.splitStatus == 1) {
|
|
|
+ return (
|
|
|
+ <span>
|
|
|
+ {text}{" "}
|
|
|
+ <Tag
|
|
|
+ color="#108ee9"
|
|
|
+ onClick={e => {
|
|
|
+ e.stopPropagation();
|
|
|
+ this.showRes(record);
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 已拆
|
|
|
+ </Tag>
|
|
|
+ </span>
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return text;
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: "金额(万元)",
|
|
@@ -407,7 +429,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
style={{ marginTop: "5px" }}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
record.licenceTimes ? moment(record.licenceTimes) : null
|
|
|
}
|
|
@@ -480,15 +502,15 @@ const MyTaskOutsource = React.createClass({
|
|
|
{record.flag ? (
|
|
|
""
|
|
|
) : (
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- onClick={e => {
|
|
|
- e.stopPropagation(), this.contactSave(record, index);
|
|
|
- }}
|
|
|
- >
|
|
|
- 保存
|
|
|
- </Button>
|
|
|
- )}
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={e => {
|
|
|
+ e.stopPropagation(), this.contactSave(record, index);
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 保存
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
@@ -521,10 +543,10 @@ const MyTaskOutsource = React.createClass({
|
|
|
return test[0] === null
|
|
|
? ""
|
|
|
: getprovince(test[0]) +
|
|
|
- "/" +
|
|
|
- getprovince(test[1]) +
|
|
|
- "/" +
|
|
|
- getprovince(test[2]);
|
|
|
+ "/" +
|
|
|
+ getprovince(test[1]) +
|
|
|
+ "/" +
|
|
|
+ getprovince(test[2]);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -631,7 +653,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
let attachmentUrls = [];
|
|
|
if (this.state.attachmentUrl.length) {
|
|
|
let picArr = [];
|
|
|
- this.state.attachmentUrl.map(function (item) {
|
|
|
+ this.state.attachmentUrl.map(function(item) {
|
|
|
if (item.response && item.response.data && item.response.data.length) {
|
|
|
picArr.push(item.response.data);
|
|
|
}
|
|
@@ -679,7 +701,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
outsourcePrice: this.state.outsourcePrice //外包价格
|
|
|
}
|
|
|
}).done(
|
|
|
- function (data) {
|
|
|
+ function(data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -696,7 +718,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
tianjiaOk() {
|
|
|
if (this.state.attachmentUrl.length) {
|
|
|
let picArr = [];
|
|
|
- this.state.attachmentUrl.map(function (item) {
|
|
|
+ this.state.attachmentUrl.map(function(item) {
|
|
|
if (item.response && item.response.data && item.response.data.length) {
|
|
|
picArr.push(item.response.data);
|
|
|
}
|
|
@@ -716,7 +738,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
taskComment: this.state.taskComment //说明
|
|
|
}
|
|
|
}).done(
|
|
|
- function (data) {
|
|
|
+ function(data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -739,7 +761,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
id: id
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let thisdata = data.data;
|
|
|
if (data.error.length || data.data.list == "") {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -759,10 +781,10 @@ const MyTaskOutsource = React.createClass({
|
|
|
taskComment: thisdata.taskComment, //说明
|
|
|
attachmentUrl: thisdata.attachmentUrl
|
|
|
? splitUrl(
|
|
|
- thisdata.attachmentUrl,
|
|
|
- ",",
|
|
|
- globalConfig.avatarHost + "/upload"
|
|
|
- )
|
|
|
+ thisdata.attachmentUrl,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
: [], //图片地址
|
|
|
salesmanName: thisdata.salesmanName, //订单负责人
|
|
|
startDate: thisdata.startDate, //启动日期
|
|
@@ -791,7 +813,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -808,7 +830,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
orderNo: orderNos
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let thisdata = data.data;
|
|
|
let ProvinceCityArr = [];
|
|
|
let ProvinceS = thisdata.locationProvince; //省
|
|
@@ -840,7 +862,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -857,7 +879,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
orderNo: orderNos
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
|
|
|
if (data.error.length || data.data.list == "") {
|
|
@@ -882,7 +904,8 @@ const MyTaskOutsource = React.createClass({
|
|
|
contactsMobile: thisdata.contactsMobile, //联系人电话
|
|
|
taskStatus: thisdata.taskStatus, //是否分配
|
|
|
contractNo: thisdata.contractNo, //合同编号
|
|
|
- certificateNumber: thisdata.certificateNumber
|
|
|
+ certificateNumber: thisdata.certificateNumber,
|
|
|
+ splitStatus: thisdata.splitStatus
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -891,7 +914,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -973,7 +996,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
tid: record.id
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
let thisData = [];
|
|
|
if (!thisData) {
|
|
@@ -1000,7 +1023,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1029,7 +1052,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
alreadyNumber: record.alreadyNumber
|
|
|
}
|
|
|
}).done(
|
|
|
- function (data) {
|
|
|
+ function(data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1055,7 +1078,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
id: record.id
|
|
|
}
|
|
|
}).done(
|
|
|
- function (data) {
|
|
|
+ function(data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1106,7 +1129,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
id: this.state.id
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
|
|
|
if (data.error.length || data.data.list == "") {
|
|
@@ -1131,7 +1154,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1168,43 +1191,43 @@ const MyTaskOutsource = React.createClass({
|
|
|
if (this.companyJugle()) {
|
|
|
let upAndde = this.state.updataSwicth
|
|
|
? {
|
|
|
- api: "/api/admin/outsourceOrg/updateOutsourceOrg",
|
|
|
- warn: "修改成功",
|
|
|
- data: {
|
|
|
- id: id,
|
|
|
- name: this.state.cName,
|
|
|
- contacts: this.state.companyContacts,
|
|
|
- contactsMobile: this.state.companyContactsMobile,
|
|
|
- province: this.state.companyProvinceArr[0],
|
|
|
- city: this.state.companyProvinceArr[1],
|
|
|
- area: this.state.companyProvinceArr[2],
|
|
|
- address: this.state.companyAddress,
|
|
|
- remarks: this.state.companyRemarks
|
|
|
+ api: "/api/admin/outsourceOrg/updateOutsourceOrg",
|
|
|
+ warn: "修改成功",
|
|
|
+ data: {
|
|
|
+ id: id,
|
|
|
+ name: this.state.cName,
|
|
|
+ contacts: this.state.companyContacts,
|
|
|
+ contactsMobile: this.state.companyContactsMobile,
|
|
|
+ province: this.state.companyProvinceArr[0],
|
|
|
+ city: this.state.companyProvinceArr[1],
|
|
|
+ area: this.state.companyProvinceArr[2],
|
|
|
+ address: this.state.companyAddress,
|
|
|
+ remarks: this.state.companyRemarks
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
: {
|
|
|
- api: "/api/admin/outsourceOrg/addOutsourceOrg",
|
|
|
- warn: "保存成功",
|
|
|
- data: {
|
|
|
- name: this.state.cName,
|
|
|
- tid: this.state.RowData.id,
|
|
|
- contacts: this.state.companyContacts,
|
|
|
- contactsMobile: this.state.companyContactsMobile,
|
|
|
- orderNo: this.state.orderNo,
|
|
|
- province: this.state.companyProvinceArr[0],
|
|
|
- city: this.state.companyProvinceArr[1],
|
|
|
- area: this.state.companyProvinceArr[2],
|
|
|
- address: this.state.companyAddress,
|
|
|
- remarks: this.state.companyRemarks
|
|
|
- }
|
|
|
- };
|
|
|
+ api: "/api/admin/outsourceOrg/addOutsourceOrg",
|
|
|
+ warn: "保存成功",
|
|
|
+ data: {
|
|
|
+ name: this.state.cName,
|
|
|
+ tid: this.state.RowData.id,
|
|
|
+ contacts: this.state.companyContacts,
|
|
|
+ contactsMobile: this.state.companyContactsMobile,
|
|
|
+ orderNo: this.state.orderNo,
|
|
|
+ province: this.state.companyProvinceArr[0],
|
|
|
+ city: this.state.companyProvinceArr[1],
|
|
|
+ area: this.state.companyProvinceArr[2],
|
|
|
+ address: this.state.companyAddress,
|
|
|
+ remarks: this.state.companyRemarks
|
|
|
+ }
|
|
|
+ };
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + upAndde.api,
|
|
|
data: upAndde.data,
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
if (data.error.length || data.data.list == "") {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -1212,7 +1235,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).done(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false,
|
|
|
updataSwicth: false
|
|
@@ -1251,9 +1274,9 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
id: id
|
|
|
},
|
|
|
- success: function () { }.bind(this)
|
|
|
+ success: function() {}.bind(this)
|
|
|
}).done(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1287,7 +1310,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
orderNo: this.state.RowData.orderNo,
|
|
|
tid: this.state.RowData.id
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (data.error.length || data.data.list == "") {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1318,7 +1341,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1402,13 +1425,27 @@ const MyTaskOutsource = React.createClass({
|
|
|
this.state.outsourceName = ""; //外包公司名称
|
|
|
this.state.outsourcePrice = ""; //外包价格
|
|
|
this.loadData(this.state.page);
|
|
|
- this.state.approvalSearch = undefined
|
|
|
+ this.state.approvalSearch = undefined;
|
|
|
},
|
|
|
searchSwitch() {
|
|
|
this.setState({
|
|
|
searchMore: !this.state.searchMore
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ // 拆分详细
|
|
|
+ showRes(record) {
|
|
|
+ this.setState({
|
|
|
+ resVisible: true,
|
|
|
+ resRecord: record
|
|
|
+ });
|
|
|
+ },
|
|
|
+ resCancel() {
|
|
|
+ this.setState({
|
|
|
+ resVisible: false
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
//部门
|
|
|
departmentList() {
|
|
|
this.setState({
|
|
@@ -1420,7 +1457,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/organization/selectSuperId",
|
|
|
data: {},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let thedata = data.data;
|
|
|
let theArr = [];
|
|
|
if (!thedata) {
|
|
@@ -1429,7 +1466,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}
|
|
|
thedata = {};
|
|
|
} else {
|
|
|
- thedata.map(function (item, index) {
|
|
|
+ thedata.map(function(item, index) {
|
|
|
theArr.push({
|
|
|
key: index,
|
|
|
name: item.name,
|
|
@@ -1442,7 +1479,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1483,7 +1520,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
data: {
|
|
|
taskId: record.id
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
} else {
|
|
@@ -1494,7 +1531,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1510,6 +1547,16 @@ const MyTaskOutsource = React.createClass({
|
|
|
let departmentArr = this.state.departmentArr || [];
|
|
|
return (
|
|
|
<div className="user-content">
|
|
|
+ {this.state.resVisible ? (
|
|
|
+ <ResolutionDetail
|
|
|
+ cancel={this.resCancel}
|
|
|
+ detail={this.state.resRecord}
|
|
|
+ visible={this.state.resVisible}
|
|
|
+ id={this.state.resRecord.orderNo}
|
|
|
+ />
|
|
|
+ ) : (
|
|
|
+ ""
|
|
|
+ )}
|
|
|
<ShowModalDiv ShowModal={this.state.showModal} />
|
|
|
<div className="content-title" style={{ marginBottom: 10 }}>
|
|
|
<span style={{ fontWeight: 900, fontSize: 16 }}>我的外包项目</span>
|
|
@@ -1564,7 +1611,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
this.setState({ departmenttSearch: e });
|
|
|
}}
|
|
|
>
|
|
|
- {departmentArr.map(function (item) {
|
|
|
+ {departmentArr.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.id}>{item.name}</Select.Option>
|
|
|
);
|
|
@@ -1579,7 +1626,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
console.log(this.state.projectStatusSearch);
|
|
|
}}
|
|
|
>
|
|
|
- {projectStatus.map(function (item) {
|
|
|
+ {projectStatus.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.value}>{item.key}</Select.Option>
|
|
|
);
|
|
@@ -1664,7 +1711,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
roleName={this.state.nub}
|
|
|
requestMethod={"post"}
|
|
|
flag={this.state.flag}
|
|
|
- isZhuan={this.state.isZhuan}//是否转交
|
|
|
+ isZhuan={this.state.isZhuan} //是否转交
|
|
|
/>
|
|
|
<Modal
|
|
|
className="customeDetails"
|
|
@@ -1735,7 +1782,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
this.setState({ projectStatus: e });
|
|
|
}}
|
|
|
>
|
|
|
- {projectStatus.map(function (item) {
|
|
|
+ {projectStatus.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.value}>
|
|
|
{item.key}
|
|
@@ -2053,7 +2100,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
this.setState({ taskStatus: e });
|
|
|
}}
|
|
|
>
|
|
|
- {taskStatus.map(function (item) {
|
|
|
+ {taskStatus.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.value}>
|
|
|
{item.key}
|
|
@@ -2134,7 +2181,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.startDate
|
|
|
? moment(this.state.startDate)
|
|
@@ -2158,7 +2205,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.endDate
|
|
|
? moment(this.state.endDate)
|
|
@@ -2182,7 +2229,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.acceptDate
|
|
|
? moment(this.state.acceptDate)
|
|
@@ -2206,7 +2253,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.reviewDate
|
|
|
? moment(this.state.reviewDate)
|
|
@@ -2230,7 +2277,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.publicityDate
|
|
|
? moment(this.state.publicityDate)
|
|
@@ -2254,7 +2301,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
}}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.licenceDate
|
|
|
? moment(this.state.licenceDate)
|
|
@@ -2348,8 +2395,8 @@ const MyTaskOutsource = React.createClass({
|
|
|
添加项目明细
|
|
|
</Button>
|
|
|
) : (
|
|
|
- ""
|
|
|
- )}
|
|
|
+ ""
|
|
|
+ )}
|
|
|
</div>
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.loading}>
|
|
@@ -2554,7 +2601,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
style={{ marginTop: "2px", width: "200px", height: "32px" }}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.taskDate ? moment(this.state.taskDate) : null
|
|
|
}
|
|
@@ -2728,7 +2775,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
this.setState({ projectStatus: e });
|
|
|
}}
|
|
|
>
|
|
|
- {projectStatus.map(function (item) {
|
|
|
+ {projectStatus.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.value}>
|
|
|
{item.key}
|
|
@@ -3003,7 +3050,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
this.setState({ taskStatus: e });
|
|
|
}}
|
|
|
>
|
|
|
- {taskStatus.map(function (item) {
|
|
|
+ {taskStatus.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.value}>
|
|
|
{item.key}
|
|
@@ -3083,7 +3130,7 @@ const MyTaskOutsource = React.createClass({
|
|
|
style={{ marginTop: "5px" }}
|
|
|
showTime
|
|
|
format="YYYY-MM-DD"
|
|
|
- onOk={() => { }}
|
|
|
+ onOk={() => {}}
|
|
|
value={
|
|
|
this.state.startDate ? moment(this.state.startDate) : null
|
|
|
}
|