|
@@ -22,6 +22,7 @@ import OrderDesc from "../orderDetail/orderDesc";
|
|
|
import ResolutionDetail from "@/resolutionDetail";
|
|
|
import Receivable from "./receivable";
|
|
|
import Assign from "@/manageCenter/publicComponent/assign";
|
|
|
+import KaiPiaoModal from "./kaiPiaoModal";
|
|
|
import ReactToPrint from "react-to-print";
|
|
|
import {
|
|
|
getLiquidationStatus,
|
|
@@ -32,7 +33,8 @@ import {
|
|
|
getTaskStatus,
|
|
|
getNewOrderStatus,
|
|
|
getProjectStatus,
|
|
|
- getjiedian
|
|
|
+ getjiedian,
|
|
|
+ splitUrl,
|
|
|
} from "@/tools";
|
|
|
import { ChooseList } from "../../order/orderNew/chooseList"
|
|
|
import Project from "../../../../component/project"
|
|
@@ -52,7 +54,7 @@ const ShouKuang = 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) {
|
|
@@ -60,20 +62,20 @@ const ShouKuang = 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,
|
|
|
- id: item.id
|
|
|
+ id: item.id,
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
this.setState({
|
|
|
- departmentArr: theArr
|
|
|
+ departmentArr: theArr,
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
// this.setState({
|
|
|
// loading: false
|
|
|
// });
|
|
@@ -88,7 +90,7 @@ const ShouKuang = React.createClass({
|
|
|
// selectedRowKey: [],
|
|
|
page: pageNo || this.state.pageNo,
|
|
|
loadingA: true,
|
|
|
- pagination: this.state.pagination
|
|
|
+ pagination: this.state.pagination,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -108,9 +110,9 @@ const ShouKuang = React.createClass({
|
|
|
processStatus: this.state.processStatusSearch,
|
|
|
contractNo: this.state.contractNoSearch,
|
|
|
liquidationStatus: this.state.liquidationStatus,
|
|
|
- amountStatus: this.state.amountStatus
|
|
|
+ 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) {
|
|
@@ -164,14 +166,14 @@ const ShouKuang = React.createClass({
|
|
|
dataSource: theArr,
|
|
|
pagination: this.state.pagination,
|
|
|
totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
|
|
|
- hui: data.data.count ? data.data.count.actuallyTotalAmount : 0
|
|
|
+ hui: data.data.count ? data.data.count.actuallyTotalAmount : 0,
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
// window.setTimeout(() => {
|
|
|
this.setState({
|
|
|
- loadingA: false
|
|
|
+ loadingA: false,
|
|
|
});
|
|
|
// },5000)
|
|
|
}.bind(this)
|
|
@@ -411,9 +413,9 @@ const ShouKuang = React.createClass({
|
|
|
title: "催收科目",
|
|
|
dataIndex: "type",
|
|
|
key: "type",
|
|
|
- render: text => {
|
|
|
- return "按时触发应收欠款"
|
|
|
- }
|
|
|
+ render: (text) => {
|
|
|
+ return "按时触发应收欠款";
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: "催款状态",
|
|
@@ -1084,7 +1086,7 @@ const ShouKuang = React.createClass({
|
|
|
|
|
|
changeWater(billNo) {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1092,9 +1094,9 @@ const ShouKuang = React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/financial/deleteMyBill",
|
|
|
data: {
|
|
|
- billNo
|
|
|
+ billNo,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -1103,11 +1105,11 @@ const ShouKuang = React.createClass({
|
|
|
this.waterData();
|
|
|
this.loadData();
|
|
|
}
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -1120,14 +1122,14 @@ const ShouKuang = React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/financial/financeApproval",
|
|
|
data: {
|
|
|
- orderNo: record.orderNo
|
|
|
- }
|
|
|
+ orderNo: record.orderNo,
|
|
|
+ },
|
|
|
}).done(
|
|
|
- function(data) {
|
|
|
+ function (data) {
|
|
|
if (!data.error.length) {
|
|
|
message.success("通过成功!");
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
this.loadData();
|
|
|
} else {
|
|
@@ -1140,7 +1142,7 @@ const ShouKuang = React.createClass({
|
|
|
evaluateX(recard) {
|
|
|
this.state.assignDataX = recard;
|
|
|
this.setState({
|
|
|
- assignVisibleX: true
|
|
|
+ assignVisibleX: true,
|
|
|
});
|
|
|
},
|
|
|
/* 转交 */
|
|
@@ -1148,7 +1150,7 @@ const ShouKuang = React.createClass({
|
|
|
this.state.assignDataY = recard;
|
|
|
this.setState({
|
|
|
nub,
|
|
|
- assignVisibleY: true
|
|
|
+ assignVisibleY: true,
|
|
|
});
|
|
|
},
|
|
|
/* 驳回 */
|
|
@@ -1156,12 +1158,12 @@ const ShouKuang = React.createClass({
|
|
|
this.setState({
|
|
|
bohuiData: recard,
|
|
|
boHuiVisible: true,
|
|
|
- content: ""
|
|
|
+ content: "",
|
|
|
});
|
|
|
},
|
|
|
boHuiOk() {
|
|
|
this.setState({
|
|
|
- boHuiVisible: false
|
|
|
+ boHuiVisible: false,
|
|
|
});
|
|
|
if (
|
|
|
this.state.pagination.current == this.state.totalPage &&
|
|
@@ -1174,7 +1176,7 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
boHuiCancel() {
|
|
|
this.setState({
|
|
|
- boHuiVisible: false
|
|
|
+ boHuiVisible: false,
|
|
|
});
|
|
|
},
|
|
|
componentWillMount() {
|
|
@@ -1184,7 +1186,7 @@ const ShouKuang = React.createClass({
|
|
|
tableRowClick(record) {
|
|
|
this.state.RowData = record;
|
|
|
this.setState({
|
|
|
- showDesc: true
|
|
|
+ showDesc: true,
|
|
|
});
|
|
|
},
|
|
|
closeDesc(e, s) {
|
|
@@ -1215,12 +1217,12 @@ const ShouKuang = React.createClass({
|
|
|
showRes(record) {
|
|
|
this.setState({
|
|
|
resVisible: true,
|
|
|
- resRecord: record
|
|
|
+ resRecord: record,
|
|
|
});
|
|
|
},
|
|
|
resCancel() {
|
|
|
this.setState({
|
|
|
- resVisible: false
|
|
|
+ resVisible: false,
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -1246,7 +1248,7 @@ const ShouKuang = React.createClass({
|
|
|
return false;
|
|
|
}
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "POST",
|
|
@@ -1255,14 +1257,14 @@ const ShouKuang = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/financial/reject",
|
|
|
data: {
|
|
|
orderNo: this.state.bohuiData.orderNo,
|
|
|
- reason: this.state.content
|
|
|
- }
|
|
|
+ reason: this.state.content,
|
|
|
+ },
|
|
|
}).done(
|
|
|
- function(data) {
|
|
|
+ function (data) {
|
|
|
if (!data.error.length) {
|
|
|
message.success("驳回成功!");
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
this.boHuiOk();
|
|
|
} else {
|
|
@@ -1273,20 +1275,20 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
searchSwitch() {
|
|
|
this.setState({
|
|
|
- searchMore: !this.state.searchMore
|
|
|
+ searchMore: !this.state.searchMore,
|
|
|
});
|
|
|
},
|
|
|
changeList(arr) {
|
|
|
const newArr = [];
|
|
|
- this.state.columns.forEach(item => {
|
|
|
- arr.forEach(val => {
|
|
|
+ this.state.columns.forEach((item) => {
|
|
|
+ arr.forEach((val) => {
|
|
|
if (val === item.title) {
|
|
|
newArr.push(item);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
this.setState({
|
|
|
- changeList: newArr
|
|
|
+ changeList: newArr,
|
|
|
});
|
|
|
},
|
|
|
callback(key) {
|
|
@@ -1306,12 +1308,12 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
inRecordCanl() {
|
|
|
this.setState({
|
|
|
- bvisible: false
|
|
|
+ bvisible: false,
|
|
|
});
|
|
|
},
|
|
|
inRecordData() {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1322,9 +1324,9 @@ const ShouKuang = React.createClass({
|
|
|
"/api/admin/orderInvoice/salesmanOrderInvoiceList",
|
|
|
data: {
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
- pageSize: 9999
|
|
|
+ pageSize: 9999,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let sum = 0;
|
|
|
if (!data.data) {
|
|
@@ -1341,19 +1343,19 @@ const ShouKuang = React.createClass({
|
|
|
amount: thisdata.amount, //签单金额
|
|
|
createTime: thisdata.createTime, //流程状态
|
|
|
status: thisdata.status, //结算状态
|
|
|
- rejectReason: thisdata.rejectReason
|
|
|
+ rejectReason: thisdata.rejectReason,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
this.setState({
|
|
|
recordData: theArr,
|
|
|
- sum: sum.toFixed(4)
|
|
|
+ sum: sum.toFixed(4),
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).done(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -1361,7 +1363,7 @@ const ShouKuang = React.createClass({
|
|
|
waterData() {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1371,9 +1373,9 @@ const ShouKuang = React.createClass({
|
|
|
data: {
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
pageSize: 9999,
|
|
|
- whoType: 1
|
|
|
+ whoType: 1,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let waterSum = 0;
|
|
|
if (!data.data || !data.data.list) {
|
|
@@ -1409,26 +1411,26 @@ const ShouKuang = React.createClass({
|
|
|
deleteSign: thisdata.deleteSign,
|
|
|
deleteTimes: thisdata.deleteTimes,
|
|
|
refundTimes: thisdata.refundTimes,
|
|
|
- remarks: thisdata.remarks
|
|
|
+ remarks: thisdata.remarks,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
this.setState({
|
|
|
waterData: theArr,
|
|
|
- waterSum: (Math.round(waterSum * 10000) / 10000).toFixed(4)
|
|
|
+ waterSum: (Math.round(waterSum * 10000) / 10000).toFixed(4),
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
waterCanl() {
|
|
|
this.setState({
|
|
|
- cvisible: false
|
|
|
+ cvisible: false,
|
|
|
});
|
|
|
},
|
|
|
exportKaip() {
|
|
@@ -1459,13 +1461,13 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
printAll() {
|
|
|
this.setState({
|
|
|
- dvisible: true
|
|
|
+ dvisible: true,
|
|
|
});
|
|
|
this.loadData(1, 9999);
|
|
|
},
|
|
|
timeData() {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1474,9 +1476,9 @@ const ShouKuang = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
|
|
|
data: {
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
- pageSize: 9999
|
|
|
+ pageSize: 9999,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.list) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1508,18 +1510,18 @@ const ShouKuang = React.createClass({
|
|
|
outsource: thisdata.outsource,
|
|
|
splitStatus: thisdata.splitStatus,
|
|
|
splitSuper: thisdata.splitSuper,
|
|
|
- splitId: thisdata.splitId
|
|
|
+ splitId: thisdata.splitId,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
this.setState({
|
|
|
- timeDataList: theArr
|
|
|
+ timeDataList: theArr,
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -1527,7 +1529,7 @@ const ShouKuang = React.createClass({
|
|
|
exportTime() {
|
|
|
const data = {
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
- pageSize: 9999
|
|
|
+ pageSize: 9999,
|
|
|
};
|
|
|
window.location.href =
|
|
|
globalConfig.context +
|
|
@@ -1536,7 +1538,7 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
exportPro() {
|
|
|
const data = {
|
|
|
- orderNo: this.state.selectedRowKeys[0]
|
|
|
+ orderNo: this.state.selectedRowKeys[0],
|
|
|
};
|
|
|
window.location.href =
|
|
|
globalConfig.context +
|
|
@@ -1549,7 +1551,7 @@ const ShouKuang = React.createClass({
|
|
|
? this.state.selectedRowKeys[0]
|
|
|
: undefined, //订单编号
|
|
|
// specially: 1,
|
|
|
- pageSize: 9999
|
|
|
+ pageSize: 9999,
|
|
|
};
|
|
|
window.location.href =
|
|
|
globalConfig.context +
|
|
@@ -1558,7 +1560,7 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
cuiData() {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1567,9 +1569,9 @@ const ShouKuang = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
|
|
|
data: {
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
- pageSize: 9999
|
|
|
+ pageSize: 9999,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data || !data.data.list) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1602,30 +1604,30 @@ const ShouKuang = React.createClass({
|
|
|
hours: thisdata.hours,
|
|
|
taskDistributionTime: thisdata.taskDistributionTime,
|
|
|
taskEndTime: thisdata.taskEndTime,
|
|
|
- dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发"
|
|
|
+ dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
this.setState({
|
|
|
- cuiDataList: theArr
|
|
|
+ cuiDataList: theArr,
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
cuiTabChange(index) {
|
|
|
this.setState({
|
|
|
- cuiTabKey: index
|
|
|
+ cuiTabKey: index,
|
|
|
});
|
|
|
- if(index == 2) {
|
|
|
+ if (index == 2) {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
- })
|
|
|
+ loading: true,
|
|
|
+ });
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
@@ -1664,7 +1666,7 @@ const ShouKuang = React.createClass({
|
|
|
},
|
|
|
proData() {
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1673,9 +1675,9 @@ const ShouKuang = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
|
|
|
data: {
|
|
|
orderNo: this.state.selectedRowKeys[0],
|
|
|
- pageSize: 9999
|
|
|
+ pageSize: 9999,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let totalWaibao = 0;
|
|
|
if (!data.data) {
|
|
@@ -1719,20 +1721,20 @@ const ShouKuang = React.createClass({
|
|
|
outsourceName: thisdata.outsourceName,
|
|
|
outsourcePrice: thisdata.outsourcePrice,
|
|
|
outsource: thisdata.outsource,
|
|
|
- splitStatus: thisdata.splitStatus
|
|
|
+ splitStatus: thisdata.splitStatus,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
totalWaibao = (Math.round(totalWaibao * 10000) / 10000).toFixed(4);
|
|
|
this.setState({
|
|
|
proDataList: theArr,
|
|
|
- totalWaibao
|
|
|
+ totalWaibao,
|
|
|
});
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -1740,7 +1742,7 @@ const ShouKuang = React.createClass({
|
|
|
checkRemark(record) {
|
|
|
this.setState({
|
|
|
checkVisible: true,
|
|
|
- checkOrderNo: record.orderNo
|
|
|
+ checkOrderNo: record.orderNo,
|
|
|
});
|
|
|
},
|
|
|
checkOk() {
|
|
@@ -1749,7 +1751,7 @@ const ShouKuang = React.createClass({
|
|
|
return;
|
|
|
}
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
@@ -1758,9 +1760,9 @@ const ShouKuang = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/financial/financeApproval",
|
|
|
data: {
|
|
|
orderNo: this.state.checkOrderNo,
|
|
|
- remarks: this.state.checkData
|
|
|
+ remarks: this.state.checkData,
|
|
|
},
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
if (!data.data) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -1771,14 +1773,14 @@ const ShouKuang = React.createClass({
|
|
|
this.loadData();
|
|
|
this.setState({
|
|
|
checkVisible: false,
|
|
|
- checkData: ""
|
|
|
+ checkData: "",
|
|
|
});
|
|
|
}
|
|
|
- }.bind(this)
|
|
|
+ }.bind(this),
|
|
|
}).always(
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -1786,13 +1788,83 @@ const ShouKuang = React.createClass({
|
|
|
tableRowClickPro(record) {
|
|
|
this.setState({
|
|
|
pvisible: true,
|
|
|
- record
|
|
|
+ record,
|
|
|
});
|
|
|
},
|
|
|
+ kaiPiaoData(record) {
|
|
|
+ this.setState({
|
|
|
+ avisible: true,
|
|
|
+ });
|
|
|
+ this.invoiceData(record.id)
|
|
|
+ },
|
|
|
+ invoiceData(id) {
|
|
|
+ this.setState({
|
|
|
+ loading: true,
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url:
|
|
|
+ globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
|
|
|
+ data: {
|
|
|
+ id,
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ let thisdata = data.data;
|
|
|
+ let obj = {
|
|
|
+ contractNo: thisdata.contractNo,
|
|
|
+ orderNo: thisdata.orderNo,
|
|
|
+ approval: thisdata.approval,
|
|
|
+ type: thisdata.type,
|
|
|
+ status: thisdata.status,
|
|
|
+ remarks: thisdata.remarks,
|
|
|
+ invoiceType: thisdata.invoiceType,
|
|
|
+ unitName: thisdata.unitName,
|
|
|
+ taxNumber: thisdata.taxNumber,
|
|
|
+ amount: thisdata.amount,
|
|
|
+ banks: thisdata.banks,
|
|
|
+ content: thisdata.content,
|
|
|
+ unitAddress: thisdata.unitAddress,
|
|
|
+ invoiceRemarks: thisdata.invoiceRemarks,
|
|
|
+ unitMobile: thisdata.unitMobile,
|
|
|
+ post: thisdata.post,
|
|
|
+ addressee: thisdata.addressee,
|
|
|
+ addresseeMobile: thisdata.addresseeMobile,
|
|
|
+ addresseeProvince: thisdata.addresseeProvince,
|
|
|
+ addresseeCity: thisdata.addresseeCity,
|
|
|
+ addresseeArea: thisdata.addresseeArea,
|
|
|
+ alreadyAmount: thisdata.alreadyAmount,
|
|
|
+ recipientAddress: thisdata.recipientAddress,
|
|
|
+ orgCodeUrl: thisdata.voucherUrl
|
|
|
+ ? splitUrl(
|
|
|
+ thisdata.voucherUrl,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
+ : [],
|
|
|
+ };
|
|
|
+ this.setState({
|
|
|
+ modalData: obj,
|
|
|
+ });
|
|
|
+ }.bind(this),
|
|
|
+ }).done(
|
|
|
+ function () {
|
|
|
+ this.setState({
|
|
|
+ loading: false,
|
|
|
+ });
|
|
|
+ }.bind(this)
|
|
|
+ );
|
|
|
+ },
|
|
|
+ visitCancels() {
|
|
|
+ this.setState({
|
|
|
+ avisible: false
|
|
|
+ })
|
|
|
+ },
|
|
|
render() {
|
|
|
const formItemLayout = {
|
|
|
labelCol: { span: 8 },
|
|
|
- wrapperCol: { span: 14 }
|
|
|
+ wrapperCol: { span: 14 },
|
|
|
};
|
|
|
const { RangePicker } = DatePicker;
|
|
|
var departmentArr = this.state.departmentArr || [];
|
|
@@ -1801,7 +1873,7 @@ const ShouKuang = React.createClass({
|
|
|
selectedRowKeys,
|
|
|
onChange: this.onSelectChange,
|
|
|
hideDefaultSelections: true,
|
|
|
- type: "radio"
|
|
|
+ type: "radio",
|
|
|
};
|
|
|
return (
|
|
|
<div className="user-content">
|
|
@@ -2282,6 +2354,7 @@ const ShouKuang = React.createClass({
|
|
|
<Table
|
|
|
columns={this.state.columnsDate}
|
|
|
dataSource={this.state.recordData}
|
|
|
+ onRowClick={this.kaiPiaoData}
|
|
|
pagination={false}
|
|
|
bordered
|
|
|
size="small"
|
|
@@ -2676,9 +2749,15 @@ const ShouKuang = React.createClass({
|
|
|
/>
|
|
|
</Modal>
|
|
|
</Spin>
|
|
|
+ <KaiPiaoModal
|
|
|
+ visible={this.state.avisible}
|
|
|
+ data={this.state.modalData}
|
|
|
+ onCancel={this.visitCancels}
|
|
|
+ loading={this.state.loading}
|
|
|
+ />
|
|
|
</div>
|
|
|
);
|
|
|
- }
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
export default ShouKuang;
|