|
@@ -92,7 +92,9 @@ const NewService = Form.create()(
|
|
|
this.departmentList();
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
- pagination: false
|
|
|
+ pagination: false,
|
|
|
+ // 禁用变更类型
|
|
|
+ changeFlag: false
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
@@ -156,9 +158,15 @@ const NewService = Form.create()(
|
|
|
orgCodeUrl: [],
|
|
|
voucherUrl: [],
|
|
|
customerArr: [],
|
|
|
+ // 禁用变更类型转换
|
|
|
+ changeFlag: false,
|
|
|
+ // 合同额禁用
|
|
|
+ hetongFlag: true,
|
|
|
+ // 项目及催款禁用
|
|
|
+ listFlag: true,
|
|
|
mark: false,
|
|
|
activeKey: "1",
|
|
|
- typeChange: 0,
|
|
|
+ typeChange: [],
|
|
|
bussStats: false,
|
|
|
checkedKeys: [],
|
|
|
lookflowList: [],
|
|
@@ -1643,6 +1651,10 @@ const NewService = Form.create()(
|
|
|
this.setState({
|
|
|
activeKey: key
|
|
|
});
|
|
|
+ if(key === "1") {
|
|
|
+ this.jiedian(this.props.datauser.orderNo);
|
|
|
+ this.jiedianNew(this.props.datauser.orderNo);
|
|
|
+ }
|
|
|
if (key === "2") {
|
|
|
let url = window.location.href.substring(7);
|
|
|
$.ajax({
|
|
@@ -2194,7 +2206,7 @@ const NewService = Form.create()(
|
|
|
changeAmount: "0",
|
|
|
applicant: undefined,
|
|
|
depNameChange: undefined,
|
|
|
- typeChange: 0,
|
|
|
+ typeChange: [],
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -2554,7 +2566,9 @@ const NewService = Form.create()(
|
|
|
{...formItemLayout}
|
|
|
label="是否外包"
|
|
|
>
|
|
|
- <span>{this.state.outsource == 0 ? "否" : "是"}</span>
|
|
|
+ <span>
|
|
|
+ {this.state.outsource == 0 ? "否" : "是"}
|
|
|
+ </span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
)}
|
|
@@ -3063,7 +3077,15 @@ const NewService = Form.create()(
|
|
|
>
|
|
|
新催款节点
|
|
|
</span>
|
|
|
- <span style={{ display: "inline-block", marginLeft: 10, color: "red" }}>金额总计(万元): {this.state.totalCui}</span>
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginLeft: 10,
|
|
|
+ color: "red"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 金额总计(万元): {this.state.totalCui}
|
|
|
+ </span>
|
|
|
<Button
|
|
|
type="primary"
|
|
|
disabled={this.state.addFlag ? true : false}
|
|
@@ -3178,6 +3200,7 @@ const NewService = Form.create()(
|
|
|
placeholder="请输入变更部门"
|
|
|
style={{ width: 240 }}
|
|
|
value={this.state.depName}
|
|
|
+ disabled
|
|
|
onChange={e => {
|
|
|
this.setState({ depName: e });
|
|
|
// console.log("5454", e);
|
|
@@ -3207,6 +3230,7 @@ const NewService = Form.create()(
|
|
|
<Input
|
|
|
placeholder="请输入申请人"
|
|
|
ref="signTotalAmount"
|
|
|
+ disabled
|
|
|
value={this.state.salesmanName}
|
|
|
onChange={e => {
|
|
|
this.setState({
|
|
@@ -3230,10 +3254,34 @@ const NewService = Form.create()(
|
|
|
<Select
|
|
|
placeholder="选择合同变更类型"
|
|
|
style={{ width: 200 }}
|
|
|
+ disabled={this.state.changeFlag}
|
|
|
onChange={e => {
|
|
|
this.setState({
|
|
|
- typeChange: e
|
|
|
+ typeChange: e,
|
|
|
+ changeFlag: true
|
|
|
});
|
|
|
+ if (e == 1) {
|
|
|
+ this.setState({
|
|
|
+ hetongFlag: false,
|
|
|
+ listFlag: false
|
|
|
+ });
|
|
|
+ } else if (e == 2) {
|
|
|
+ this.setState({
|
|
|
+ listFlag: false
|
|
|
+ });
|
|
|
+ } else if (e == 3) {
|
|
|
+ this.setState({
|
|
|
+ hetongFlag: false
|
|
|
+ });
|
|
|
+ } else if (e == 4) {
|
|
|
+ this.setState({
|
|
|
+ listFlag: false
|
|
|
+ });
|
|
|
+ } else if (e == 5) {
|
|
|
+ this.setState({
|
|
|
+ listFlag: false
|
|
|
+ });
|
|
|
+ }
|
|
|
}}
|
|
|
value={this.state.typeChange}
|
|
|
>
|
|
@@ -3260,6 +3308,7 @@ const NewService = Form.create()(
|
|
|
{!this.state.mark ? (
|
|
|
<Input
|
|
|
placeholder="请输入合同额"
|
|
|
+ disabled={this.state.hetongFlag}
|
|
|
ref="signTotalAmount"
|
|
|
value={this.state.totalAmount}
|
|
|
onChange={e => {
|
|
@@ -3283,6 +3332,7 @@ const NewService = Form.create()(
|
|
|
placeholder="请输入已收款"
|
|
|
ref="signTotalAmount"
|
|
|
value={this.state.settlementAmount}
|
|
|
+ disabled
|
|
|
onChange={e => {
|
|
|
this.setState({
|
|
|
settlementAmount: e.target.value
|
|
@@ -3316,6 +3366,100 @@ const NewService = Form.create()(
|
|
|
)}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
+ <div>
|
|
|
+ <span
|
|
|
+ style={{ marginLeft: "50px", fontSize: "20px" }}
|
|
|
+ >
|
|
|
+ 项目业务
|
|
|
+ </span>
|
|
|
+ {this.state.processStatus == 0 ? (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={this.changeAddPro}
|
|
|
+ disabled={this.listFlag}
|
|
|
+ style={{
|
|
|
+ float: "right",
|
|
|
+ marginRight: "50px",
|
|
|
+ marginBottom: "15px"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 添加项目明细
|
|
|
+ </Button>
|
|
|
+ ) : (
|
|
|
+ ""
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ className="patent-table"
|
|
|
+ style={{ marginBottom: 10 }}
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Table
|
|
|
+ columns={this.state.columns}
|
|
|
+ dataSource={this.state.dataSource}
|
|
|
+ pagination={this.state.pagination}
|
|
|
+ onRowClick={this.tableRowClick}
|
|
|
+ bordered
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ marginLeft: "50px",
|
|
|
+ fontSize: "20px"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 催款节点
|
|
|
+ </span>
|
|
|
+ {/* <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginLeft: 10,
|
|
|
+ color: "red"
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 金额总计(万元): {this.state.totalCui}
|
|
|
+ </span> */}
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ disabled={this.state.addFlag ? true : false}
|
|
|
+ // onClick={this.addcontact}
|
|
|
+ onClick={e => {
|
|
|
+ this.changeAdd();
|
|
|
+ }}
|
|
|
+ disabled={this.state.listFlag}
|
|
|
+ style={{
|
|
|
+ float: "right",
|
|
|
+ marginRight: "50px",
|
|
|
+ marginBottom: "15px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 添加催款节点
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ className="clearfix"
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Form layout="horizontal">
|
|
|
+ <Table
|
|
|
+ pagination={false}
|
|
|
+ columns={this.state.ContactsListsNew}
|
|
|
+ dataSource={this.state.contactListNew}
|
|
|
+ scroll={{ x: "max-content", y: 0 }}
|
|
|
+ bordered
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
+ <Col
|
|
|
+ span={24}
|
|
|
+ offset={9}
|
|
|
+ style={{ marginTop: "15px" }}
|
|
|
+ ></Col>
|
|
|
+ </Form>
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
style={{ height: "auto" }}
|
|
@@ -3342,6 +3486,22 @@ const NewService = Form.create()(
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ style={{ height: "auto" }}
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="测试按钮"
|
|
|
+ >
|
|
|
+ {!this.state.mark ? (
|
|
|
+ <Button disabled={this.state.listFlag}>
|
|
|
+ 123
|
|
|
+ </Button>
|
|
|
+ ) : (
|
|
|
+ <span>{contractData.remarks}</span>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
{/*----- */}
|
|
|
|
|
|
<div className="clearfix">
|