|
@@ -21,6 +21,7 @@ import {
|
|
|
import Receivable from "./receivable";
|
|
|
import Assign from "@/manageCenter/publicComponent/assign";
|
|
|
import ReactToPrint from "react-to-print";
|
|
|
+import ResolutionDetail from "@/resolutionDetail";
|
|
|
import OrderRiZi from "@/orderRiZi.jsx";
|
|
|
import {
|
|
|
getjiedian,
|
|
@@ -51,7 +52,7 @@ const approvedOutsourcing = 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) {
|
|
@@ -59,7 +60,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
|
} else {
|
|
|
- thedata.map(function (item, index) {
|
|
|
+ thedata.map(function(item, index) {
|
|
|
theArr.push({
|
|
|
key: index,
|
|
|
name: item.name,
|
|
@@ -72,7 +73,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -106,7 +107,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
liquidationStatus: this.state.liquidationStatus,
|
|
|
amountStatus: this.state.amountStatus
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.pagination.list) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -165,7 +166,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loadingA: false
|
|
|
});
|
|
@@ -197,10 +198,10 @@ const approvedOutsourcing = React.createClass({
|
|
|
defaultPageSize: 10,
|
|
|
showQuickJumper: true,
|
|
|
pageSize: 10,
|
|
|
- onChange: function (page) {
|
|
|
+ onChange: function(page) {
|
|
|
this.loadData(page);
|
|
|
}.bind(this),
|
|
|
- showTotal: function (total) {
|
|
|
+ showTotal: function(total) {
|
|
|
return "共" + total + "条数据";
|
|
|
}
|
|
|
},
|
|
@@ -212,14 +213,14 @@ const approvedOutsourcing = React.createClass({
|
|
|
dataIndex: "contractNo",
|
|
|
key: "contractNo",
|
|
|
className: "title-table",
|
|
|
- fixed: 'left',
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
title: "客户名称",
|
|
|
dataIndex: "buyerName",
|
|
|
key: "buyerName",
|
|
|
className: "title-table",
|
|
|
- fixed: 'left',
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
title: "订单编号",
|
|
@@ -359,7 +360,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
收款
|
|
|
</Button>
|
|
|
)} */}
|
|
|
- {recard.backStatus == 3 ? (<Tag>已驳回</Tag>) : ("")}
|
|
|
+ {recard.backStatus == 3 ? <Tag>已驳回</Tag> : ""}
|
|
|
{recard.processStatus == 3 ? (
|
|
|
<Button
|
|
|
type="primary"
|
|
@@ -372,22 +373,26 @@ const approvedOutsourcing = React.createClass({
|
|
|
通过
|
|
|
</Button>
|
|
|
) : (
|
|
|
- ""
|
|
|
- )}
|
|
|
+ ""
|
|
|
+ )}
|
|
|
{!(
|
|
|
recard.actuallyTotalAmount &&
|
|
|
Number(recard.actuallyTotalAmount) > 0
|
|
|
) && (
|
|
|
- <Button
|
|
|
- type="danger"
|
|
|
- style={{ marginLeft: "5px", display: recard.processStatus == 3 ? "inline-block" : "none" }}
|
|
|
- onClick={e => {
|
|
|
- e.stopPropagation(), this.reject(recard);
|
|
|
- }}
|
|
|
- >
|
|
|
- 驳回
|
|
|
- </Button>
|
|
|
- )}
|
|
|
+ <Button
|
|
|
+ type="danger"
|
|
|
+ style={{
|
|
|
+ marginLeft: "5px",
|
|
|
+ display:
|
|
|
+ recard.processStatus == 3 ? "inline-block" : "none"
|
|
|
+ }}
|
|
|
+ onClick={e => {
|
|
|
+ e.stopPropagation(), this.reject(recard);
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 驳回
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
{
|
|
|
// <Button
|
|
|
// type="primary"
|
|
@@ -452,7 +457,27 @@ const approvedOutsourcing = 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: "服务市价",
|
|
@@ -769,9 +794,9 @@ const approvedOutsourcing = React.createClass({
|
|
|
key: "outsource",
|
|
|
render: text => {
|
|
|
if (text == 0) {
|
|
|
- return "否"
|
|
|
+ return "否";
|
|
|
} else if (text == 1) {
|
|
|
- return "是"
|
|
|
+ return "是";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -883,6 +908,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
+ resVisible: false,
|
|
|
columnsX: [
|
|
|
{
|
|
|
title: "业务项目名称",
|
|
@@ -892,8 +918,8 @@ const approvedOutsourcing = React.createClass({
|
|
|
return text && text.length > 6 ? (
|
|
|
<span title={text}>{text.substr(0, 8)}...</span>
|
|
|
) : (
|
|
|
- text
|
|
|
- );
|
|
|
+ text
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -902,9 +928,29 @@ const approvedOutsourcing = React.createClass({
|
|
|
key: "cname"
|
|
|
},
|
|
|
{
|
|
|
- title: "项目数量(个)",
|
|
|
+ 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: "服务市价(万元)",
|
|
@@ -940,8 +986,8 @@ const approvedOutsourcing = React.createClass({
|
|
|
return text && text.length > 8 ? (
|
|
|
<span title={text}>{text.substr(0, 8)}...</span>
|
|
|
) : (
|
|
|
- text
|
|
|
- );
|
|
|
+ text
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
],
|
|
@@ -1016,10 +1062,10 @@ const approvedOutsourcing = React.createClass({
|
|
|
return test[0] === null
|
|
|
? ""
|
|
|
: getprovince(test[0]) +
|
|
|
- "/" +
|
|
|
- getprovince(test[1]) +
|
|
|
- "/" +
|
|
|
- getprovince(test[2]);
|
|
|
+ "/" +
|
|
|
+ getprovince(test[1]) +
|
|
|
+ "/" +
|
|
|
+ getprovince(test[2]);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -1238,15 +1284,11 @@ const approvedOutsourcing = React.createClass({
|
|
|
okText="删除"
|
|
|
cancelText="不删除"
|
|
|
>
|
|
|
- <Button>
|
|
|
- 删除
|
|
|
- </Button>
|
|
|
+ <Button>删除</Button>
|
|
|
</Popconfirm>
|
|
|
- )
|
|
|
+ );
|
|
|
} else {
|
|
|
- return (
|
|
|
- <Tag>已删除</Tag>
|
|
|
- )
|
|
|
+ return <Tag>已删除</Tag>;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1267,17 +1309,17 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
billNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
} else {
|
|
|
- message.warning("删除流水成功!")
|
|
|
- this.waterData()
|
|
|
+ message.warning("删除流水成功!");
|
|
|
+ this.waterData();
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1295,7 +1337,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderNo: record.orderNo
|
|
|
}
|
|
|
}).done(
|
|
|
- function (data) {
|
|
|
+ function(data) {
|
|
|
if (!data.error.length) {
|
|
|
message.success("通过成功!");
|
|
|
this.setState({
|
|
@@ -1318,7 +1360,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: orderNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let thisData = data.data;
|
|
|
if (!thisData.length) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1332,7 +1374,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1404,7 +1446,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
}
|
|
|
if (this.state.pictureUrl.length) {
|
|
|
let picArr = [];
|
|
|
- this.state.pictureUrl.map(function (item) {
|
|
|
+ this.state.pictureUrl.map(function(item) {
|
|
|
if (item.response && item.response.data && item.response.data.length) {
|
|
|
picArr.push(item.response.data);
|
|
|
}
|
|
@@ -1427,7 +1469,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: this.state.orderNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let thisdata = data.data;
|
|
|
this.setState({
|
|
|
id: thisdata.id,
|
|
@@ -1436,17 +1478,17 @@ const approvedOutsourcing = React.createClass({
|
|
|
remarks: thisdata.remarks,
|
|
|
attachmentUrl: thisdata.attachmentUrl
|
|
|
? splitUrl(
|
|
|
- thisdata.attachmentUrl,
|
|
|
- ",",
|
|
|
- globalConfig.avatarHost + "/upload"
|
|
|
- )
|
|
|
+ thisdata.attachmentUrl,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
: [],
|
|
|
pictureUrl: thisdata.pictureUrl
|
|
|
? splitUrl(
|
|
|
- thisdata.pictureUrl,
|
|
|
- ",",
|
|
|
- globalConfig.avatarHost + "/upload"
|
|
|
- )
|
|
|
+ thisdata.pictureUrl,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
: [], //图片地址
|
|
|
amount: thisdata.amount,
|
|
|
companyName: thisdata.companyName,
|
|
@@ -1457,7 +1499,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1465,6 +1507,20 @@ const approvedOutsourcing = React.createClass({
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ // 拆分详细
|
|
|
+ showRes(record) {
|
|
|
+ this.setState({
|
|
|
+ resVisible: true,
|
|
|
+ resRecord: record
|
|
|
+ });
|
|
|
+ },
|
|
|
+ resCancel() {
|
|
|
+ this.setState({
|
|
|
+ resVisible: false
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
//外包详情
|
|
|
loadWaiBao() {
|
|
|
$.ajax({
|
|
@@ -1477,7 +1533,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: this.state.orderNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (data.error.length || data.data.list == "") {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1515,11 +1571,11 @@ const approvedOutsourcing = React.createClass({
|
|
|
{
|
|
|
dataSourceW: theArr
|
|
|
},
|
|
|
- () => { }
|
|
|
+ () => {}
|
|
|
);
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1539,7 +1595,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: record.orderNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1563,7 +1619,8 @@ const approvedOutsourcing = React.createClass({
|
|
|
cname: thisdata.cname,
|
|
|
certificateNumber: thisdata.certificateNumber,
|
|
|
projectStatus: thisdata.projectStatus,
|
|
|
- sort: thisdata.cSort
|
|
|
+ sort: thisdata.cSort,
|
|
|
+ splitStatus: thisdata.splitStatus
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1572,7 +1629,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1589,7 +1646,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: record.orderNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let thisData = data.data;
|
|
|
if (!thisData) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1607,10 +1664,10 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderRemarks: thisData.orderRemarks,
|
|
|
orgCodeUrl: thisData.contractPictureUrl
|
|
|
? splitUrl(
|
|
|
- thisData.contractPictureUrl,
|
|
|
- ",",
|
|
|
- globalConfig.avatarHost + "/upload"
|
|
|
- )
|
|
|
+ thisData.contractPictureUrl,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
: [],
|
|
|
orderNo: thisData.orderNo, //订单编号
|
|
|
buyerId: thisData.buyerId,
|
|
@@ -1618,7 +1675,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1637,7 +1694,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: this.state.orderNo
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
let thisData = data.data;
|
|
|
if (!thisData.length) {
|
|
@@ -1661,7 +1718,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1766,7 +1823,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
reason: this.state.reason
|
|
|
}
|
|
|
}).done(
|
|
|
- function (data) {
|
|
|
+ function(data) {
|
|
|
if (!data.error.length) {
|
|
|
message.success("驳回成功!");
|
|
|
this.setState({
|
|
@@ -1825,7 +1882,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
pageSize: 9999
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
let sum = 0;
|
|
|
if (!data.data) {
|
|
@@ -1852,7 +1909,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).done(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -1879,7 +1936,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
pageSize: 9999,
|
|
|
whoType: 1
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
let waterSum = 0;
|
|
|
if (!data.data || !data.data.list) {
|
|
@@ -1906,11 +1963,16 @@ const approvedOutsourcing = React.createClass({
|
|
|
createrName: thisdata.createrName,
|
|
|
saleName: thisdata.saleName,
|
|
|
createTimes: thisdata.createTimes,
|
|
|
- type: thisdata.type == 0 ? "手工" : thisdata.type == 1 ? "批量" : "合同变更退款",
|
|
|
+ type:
|
|
|
+ thisdata.type == 0
|
|
|
+ ? "手工"
|
|
|
+ : thisdata.type == 1
|
|
|
+ ? "批量"
|
|
|
+ : "合同变更退款",
|
|
|
deleteSign: thisdata.deleteSign,
|
|
|
deleteTimes: thisdata.deleteTimes,
|
|
|
refundTimes: thisdata.refundTimes,
|
|
|
- remarks: thisdata.remarks,
|
|
|
+ remarks: thisdata.remarks
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1920,7 +1982,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2022,7 +2084,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
pageSize: 9999
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.list) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -2060,7 +2122,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2113,7 +2175,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
pageSize: 9999
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.list) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -2155,7 +2217,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2175,7 +2237,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
pageSize: 9999
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
let totalWaibao = 0;
|
|
|
if (!data.data) {
|
|
@@ -2216,7 +2278,8 @@ const approvedOutsourcing = React.createClass({
|
|
|
certificateNumber: thisdata.certificateNumber,
|
|
|
taskComment: thisdata.taskComment,
|
|
|
outsourceName: thisdata.outsourceName,
|
|
|
- outsourcePrice: thisdata.outsourcePrice
|
|
|
+ outsourcePrice: thisdata.outsourcePrice,
|
|
|
+ splitStatus: thisdata.splitStatus
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -2227,7 +2290,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2257,7 +2320,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
orderNo: this.state.checkOrderNo,
|
|
|
remarks: this.state.checkData
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -2273,7 +2336,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2289,7 +2352,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: orderNos
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
let theArr = [];
|
|
|
let thisData = [];
|
|
|
if (data.error.length || data.data.list == "") {
|
|
@@ -2316,7 +2379,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2334,7 +2397,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
data: {
|
|
|
orderNo: orderNos
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function(data) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
} else {
|
|
@@ -2375,7 +2438,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
}
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
|
- function () {
|
|
|
+ function() {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -2403,6 +2466,16 @@ const approvedOutsourcing = React.createClass({
|
|
|
const jsDate = this.state.jsDate || [];
|
|
|
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}
|
|
|
+ />
|
|
|
+ ) : (
|
|
|
+ ""
|
|
|
+ )}
|
|
|
<div className="content-title" style={{ marginBottom: 10 }}>
|
|
|
<span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
|
|
|
</div>
|
|
@@ -2442,7 +2515,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
this.setState({ departmenttList: e });
|
|
|
}}
|
|
|
>
|
|
|
- {departmentArr.map(function (item) {
|
|
|
+ {departmentArr.map(function(item) {
|
|
|
return (
|
|
|
<Select.Option key={item.id}>{item.name}</Select.Option>
|
|
|
);
|
|
@@ -2772,7 +2845,7 @@ const approvedOutsourcing = React.createClass({
|
|
|
<span>
|
|
|
{`合同额总计(万元):${
|
|
|
this.state.totalHui ? this.state.totalHui : "0"
|
|
|
- }`}
|
|
|
+ }`}
|
|
|
</span>
|
|
|
}
|
|
|
</p>
|