|
@@ -37,7 +37,8 @@ import {
|
|
|
boutique,
|
|
|
ssalesType,
|
|
|
qsalesType,
|
|
|
-} from "../../../dataDic.js";
|
|
|
+ cuiJieDian,
|
|
|
+} from "@/dataDic.js";
|
|
|
import {
|
|
|
splitUrl,
|
|
|
getProcessStatus,
|
|
@@ -50,7 +51,6 @@ import {
|
|
|
moneyVerify,
|
|
|
getProcessStatusNew,
|
|
|
} from "../../../tools.js";
|
|
|
-import { cuiJieDian } from "@/dataDic.js";
|
|
|
import PicturesWall from "./changeComponent/picturesWall.js";
|
|
|
import { changeType, getChangeType } from "./changeComponent/changeDetailYxgly";
|
|
|
import ImgList from "../../../common/imgList";
|
|
@@ -58,6 +58,7 @@ import OrderItemStatus from "../../../common/orderItemStatus";
|
|
|
import EnterpriseNameChange from "../../../common/enterpriseNameChange";
|
|
|
import ProjectOperation from ".././../../common/projectOperation";
|
|
|
import { instanceOf } from "prop-types";
|
|
|
+import UpdateSales from './updatesales';
|
|
|
const Option = AutoComplete.Option;
|
|
|
const confirm = Modal.confirm;
|
|
|
|
|
@@ -766,7 +767,6 @@ const NewService = Form.create()(
|
|
|
key: "createDate",
|
|
|
},
|
|
|
],
|
|
|
-
|
|
|
contactList: [],
|
|
|
ContactsLists: [
|
|
|
{
|
|
@@ -1718,6 +1718,7 @@ const NewService = Form.create()(
|
|
|
},
|
|
|
},
|
|
|
],
|
|
|
+ updatas: {},//销售类型修改数据
|
|
|
};
|
|
|
},
|
|
|
getpatentTypeList() {
|
|
@@ -1905,11 +1906,12 @@ const NewService = Form.create()(
|
|
|
let api = this.props.userDetaile
|
|
|
? "/api/admin/newOrder/updateServiceOrderNew"
|
|
|
: "/api/admin/newOrder/createOrder";
|
|
|
- const { selectSales, other, channelid, channelname } = this.state
|
|
|
+ const { selectSales, other, channelid, channelname, userType } = this.state
|
|
|
let datas = {
|
|
|
uid: this.state.autoId,//用户id
|
|
|
orderType: this.state.orderType,//订单类型
|
|
|
salesType: selectSales,//销售类型
|
|
|
+ userType: userType,//客户所属类型
|
|
|
};
|
|
|
if (selectSales == "3") { //传渠道编号 other里面传渠道名称
|
|
|
datas = Object.assign(datas, {
|
|
@@ -2092,6 +2094,15 @@ const NewService = Form.create()(
|
|
|
outsource: thisData.outsource,
|
|
|
deleteSign: thisData.deleteSign,
|
|
|
orderUid: thisData.uid,
|
|
|
+ salesType: thisData.salesType,//销售类型
|
|
|
+ userType: thisData.userType,//客户所属类型
|
|
|
+ updatas: {
|
|
|
+ salesType: thisData.salesType,//销售类型
|
|
|
+ userType: thisData.userType,//客户所属类型
|
|
|
+ other: thisData.other,//3渠道名 4,5描述
|
|
|
+ },
|
|
|
+ channelName: thisData.salesType == "3" ? thisData.other : "",//销售类型为渠道的时候给编辑出的渠道名称赋值
|
|
|
+
|
|
|
});
|
|
|
// 判断状态
|
|
|
if (this.state.processStatus === 0) {
|
|
@@ -2858,7 +2869,7 @@ const NewService = Form.create()(
|
|
|
data: state
|
|
|
? {
|
|
|
name: e,
|
|
|
- type: this.state.customType,
|
|
|
+ type: this.state.userType,
|
|
|
}
|
|
|
: {
|
|
|
businessName: e,
|
|
@@ -3041,7 +3052,7 @@ const NewService = Form.create()(
|
|
|
},
|
|
|
//客户名称自动补全
|
|
|
customerChange(e) {
|
|
|
- if (this.state.customType) {
|
|
|
+ if (this.state.userType) {
|
|
|
this.state.autoId = "";
|
|
|
if (e.length >= 2) {
|
|
|
this.supervisor(e, true);
|
|
@@ -3381,7 +3392,7 @@ const NewService = Form.create()(
|
|
|
customerArr: [],
|
|
|
contractType: undefined,
|
|
|
bussStats: false,
|
|
|
- customType: undefined,
|
|
|
+ userType: undefined,
|
|
|
channelName: "",
|
|
|
channelid: "",
|
|
|
channelArr: [],
|
|
@@ -4834,10 +4845,10 @@ const NewService = Form.create()(
|
|
|
<Select
|
|
|
placeholder="请选择客户所属类型"
|
|
|
style={{ width: "200px" }}
|
|
|
- value={this.state.customType}
|
|
|
+ value={this.state.userType}
|
|
|
onChange={(e) => {
|
|
|
this.setState({
|
|
|
- customType: e,
|
|
|
+ userType: e,
|
|
|
customerArr: [],
|
|
|
autoId: "",
|
|
|
customerName: "",
|
|
@@ -4865,8 +4876,8 @@ const NewService = Form.create()(
|
|
|
});
|
|
|
}}
|
|
|
>
|
|
|
- {(this.state.customType == "0"
|
|
|
- ? ssalesType : this.state.customType == "1"
|
|
|
+ {(this.state.userType == "0"
|
|
|
+ ? ssalesType : this.state.userType == "1"
|
|
|
? qsalesType : []).map(function (item) {
|
|
|
return (
|
|
|
<Select.Option key={item.value}>
|
|
@@ -4996,6 +5007,31 @@ const NewService = Form.create()(
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
{...formItemLayout}
|
|
|
+ label="销售类型"
|
|
|
+ >
|
|
|
+ <span>{(["私有客户", "签单客户"][this.state.userType] || " ") + "-" +
|
|
|
+ ([
|
|
|
+ "电话新开发",
|
|
|
+ "电话自带资源",
|
|
|
+ "网络",
|
|
|
+ "渠道",
|
|
|
+ "转介绍",
|
|
|
+ "其他",
|
|
|
+ "高新复购",
|
|
|
+ "其他复购",
|
|
|
+ ][this.state.salesType] || "")}</span>
|
|
|
+ {
|
|
|
+ this.state.processStatus === 0 &&
|
|
|
+ <UpdateSales
|
|
|
+ orderNo={this.state.orderNo}
|
|
|
+ updatas={this.state.updatas}
|
|
|
+ onRefresh={this.loaduser.bind(this, { orderNo: this.state.orderNo })}
|
|
|
+ />
|
|
|
+ }
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="结算状态"
|
|
|
>
|
|
|
<span>
|
|
@@ -5021,17 +5057,7 @@ const NewService = Form.create()(
|
|
|
this.setState({ approval: e });
|
|
|
}}
|
|
|
>
|
|
|
- {/* {tepi.map(function(item) {
|
|
|
- // if(item.key == "特批通过" || item.key == "特批驳回")
|
|
|
- return (
|
|
|
- <Select.Option key={item.value}>
|
|
|
- {item.key}
|
|
|
- </Select.Option>
|
|
|
- );
|
|
|
- })} */}
|
|
|
- <Select.Option key={0}>
|
|
|
- 非特批
|
|
|
- </Select.Option>
|
|
|
+ <Select.Option key={0}>非特批</Select.Option>
|
|
|
<Select.Option key={1}>特批</Select.Option>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
@@ -5071,7 +5097,7 @@ const NewService = Form.create()(
|
|
|
label="订单部门"
|
|
|
>
|
|
|
<Select
|
|
|
- placeholder="请输入订单部门"
|
|
|
+ placeholder="请选择订单部门"
|
|
|
style={{ width: 240 }}
|
|
|
value={this.state.organizationSearch}
|
|
|
onChange={(e) => {
|
|
@@ -5152,7 +5178,6 @@ const NewService = Form.create()(
|
|
|
}}
|
|
|
style={{ width: "240px" }}
|
|
|
/>
|
|
|
- {/* <span className="mandatory">*</span> */}
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -5170,7 +5195,6 @@ const NewService = Form.create()(
|
|
|
}}
|
|
|
style={{ width: "240px" }}
|
|
|
/>
|
|
|
- {/* <span className="mandatory">*</span> */}
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -5405,17 +5429,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="合同扫描件"
|
|
|
>
|
|
|
- {/*<Upload*/}
|
|
|
- {/* className="demandDetailShow-upload"*/}
|
|
|
- {/* listType="picture-card"*/}
|
|
|
- {/* fileList={this.state.orgCodeUrl}*/}
|
|
|
- {/* onPreview={(file) => {*/}
|
|
|
- {/* this.setState({*/}
|
|
|
- {/* previewImage: file.url || file.thumbUrl,*/}
|
|
|
- {/* previewVisible: true,*/}
|
|
|
- {/* });*/}
|
|
|
- {/* }}*/}
|
|
|
- {/*/>*/}
|
|
|
<div
|
|
|
style={{
|
|
|
paddingTop: "10px",
|
|
@@ -5503,17 +5516,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="补充协议"
|
|
|
>
|
|
|
- {/*<Upload*/}
|
|
|
- {/* className="demandDetailShow-upload"*/}
|
|
|
- {/* listType="picture-card"*/}
|
|
|
- {/* fileList={this.state.replenishUrl}*/}
|
|
|
- {/* onPreview={(file) => {*/}
|
|
|
- {/* this.setState({*/}
|
|
|
- {/* previewImage: file.url || file.thumbUrl,*/}
|
|
|
- {/* previewVisibles: true,*/}
|
|
|
- {/* });*/}
|
|
|
- {/* }}*/}
|
|
|
- {/*/>*/}
|
|
|
<div
|
|
|
style={{
|
|
|
paddingTop: "10px",
|
|
@@ -5847,7 +5849,6 @@ const NewService = Form.create()(
|
|
|
})
|
|
|
: "无"}
|
|
|
</div>
|
|
|
- {/* <div style={{opacity:'0'}}>1213131132</div> */}
|
|
|
</div>
|
|
|
<div
|
|
|
style={{
|
|
@@ -6058,7 +6059,6 @@ const NewService = Form.create()(
|
|
|
onChange={(e) => {
|
|
|
this.setState({
|
|
|
contentView: e.target.value,
|
|
|
- // contentViewLength:this.state.contentView.length+1
|
|
|
}, () => {
|
|
|
if (!this.state.contentView) {
|
|
|
this.setState({
|
|
@@ -6073,7 +6073,6 @@ const NewService = Form.create()(
|
|
|
}}
|
|
|
maxLength={500}
|
|
|
>
|
|
|
- {/* <span>{this.state.contentViewLength}</span> */}
|
|
|
</TextArea>
|
|
|
<div style={{ position: 'absolute', right: '20px', bottom: '-5px', zIndex: '10' }}>{this.state.contentViewLength + '/500'}</div>
|
|
|
</Form.Item>
|
|
@@ -6140,7 +6139,6 @@ const NewService = Form.create()(
|
|
|
</div>
|
|
|
</Modal>
|
|
|
</div>
|
|
|
- {/* */}
|
|
|
<div>
|
|
|
<span
|
|
|
style={{ marginLeft: "50px", fontSize: "20px" }}
|
|
@@ -6302,7 +6300,7 @@ const NewService = Form.create()(
|
|
|
</Form>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- {this.state.processStatus == 0 ? (
|
|
|
+ {this.state.processStatus == 0 &&
|
|
|
<div
|
|
|
className="addSave"
|
|
|
style={{ marginTop: "15px" }}
|
|
@@ -6336,9 +6334,7 @@ const NewService = Form.create()(
|
|
|
取消
|
|
|
</Button>
|
|
|
</div>
|
|
|
- ) : (
|
|
|
- ""
|
|
|
- )}
|
|
|
+ }
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="合同变更发起" key="2">
|
|
@@ -6373,11 +6369,7 @@ const NewService = Form.create()(
|
|
|
{...formItemLayout}
|
|
|
label="申请变更部门"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<span>{this.state.depName}</span>
|
|
|
- {/* ) : (
|
|
|
- <span>{contractData.depName}</span>
|
|
|
- )} */}
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -6393,7 +6385,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="变更类型"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<Select
|
|
|
placeholder="选择合同变更类型"
|
|
|
style={{ width: 200 }}
|
|
@@ -6508,7 +6499,6 @@ const NewService = Form.create()(
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
- {/* <Button type="danger" >取消本次变更</Button> */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
@@ -6517,7 +6507,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="合同额(万元)"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<Input
|
|
|
placeholder="请输入合同额"
|
|
|
disabled={this.state.hetongFlag}
|
|
@@ -6530,9 +6519,6 @@ const NewService = Form.create()(
|
|
|
}}
|
|
|
style={{ width: "240px" }}
|
|
|
/>
|
|
|
- {/* ) : (
|
|
|
- <span>{contractData.totalAmount}</span>
|
|
|
- )} */}
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
@@ -6552,7 +6538,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="申请退款(万元)"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<Input
|
|
|
placeholder="请输入申请退款"
|
|
|
ref="signTotalAmount"
|
|
@@ -6565,12 +6550,8 @@ const NewService = Form.create()(
|
|
|
}}
|
|
|
style={{ width: "240px" }}
|
|
|
/>
|
|
|
- {/* ) : (
|
|
|
- <span>{contractData.changeAmount}</span>
|
|
|
- )} */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- {/* 动态展示项目以及催款节点 */}
|
|
|
<div
|
|
|
style={{
|
|
|
display: this.state.isCaoGao ? "block" : "none",
|
|
@@ -6637,15 +6618,6 @@ const NewService = Form.create()(
|
|
|
<span style={{ color: "red" }}>
|
|
|
(注:节点删除后,无论节点是否触发,均会删除,请谨慎删除!双击可修改对应金额!)
|
|
|
</span>
|
|
|
- {/* <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginLeft: 10,
|
|
|
- color: "red"
|
|
|
- }}
|
|
|
- >
|
|
|
- 金额总计(万元): {this.state.totalCui}
|
|
|
- </span> */}
|
|
|
<Button
|
|
|
type="primary"
|
|
|
onClick={(e) => {
|
|
@@ -6696,7 +6668,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="变更原因"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<TextArea
|
|
|
rows={4}
|
|
|
placeholder="请输入变更原因"
|
|
@@ -6709,9 +6680,6 @@ const NewService = Form.create()(
|
|
|
});
|
|
|
}}
|
|
|
/>
|
|
|
- {/* ) : (
|
|
|
- <span>{contractData.remarks}</span>
|
|
|
- )} */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
@@ -6721,7 +6689,6 @@ const NewService = Form.create()(
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="备注"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<TextArea
|
|
|
rows={4}
|
|
|
placeholder="请输入备注"
|
|
@@ -6734,20 +6701,14 @@ const NewService = Form.create()(
|
|
|
});
|
|
|
}}
|
|
|
/>
|
|
|
- {/* ) : (
|
|
|
- <span>{contractData.startRemarks}</span>
|
|
|
- )} */}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
-
|
|
|
- {/* ---- */}
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="变更凭证"
|
|
|
>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<PicturesWall
|
|
|
domId={"addService5"}
|
|
|
fileList={this.getVoucherUrl}
|
|
@@ -6755,42 +6716,9 @@ const NewService = Form.create()(
|
|
|
url="/api/admin/orderChange/uploadFile"
|
|
|
sign="order_change_file"
|
|
|
/>
|
|
|
- {/* ) : (
|
|
|
- <div>
|
|
|
- <Upload
|
|
|
- className="demandDetailShow-upload"
|
|
|
- listType="picture-card"
|
|
|
- fileList={this.state.voucherUrl}
|
|
|
- onPreview={file => {
|
|
|
- this.setState({
|
|
|
- previewImage:
|
|
|
- file.url || file.thumbUrl,
|
|
|
- previewVisible: true
|
|
|
- });
|
|
|
- }}
|
|
|
- />
|
|
|
- <Modal
|
|
|
- maskClosable={false}
|
|
|
- footer={null}
|
|
|
- visible={this.state.previewVisible}
|
|
|
- onCancel={() => {
|
|
|
- this.setState({
|
|
|
- previewVisible: false
|
|
|
- });
|
|
|
- }}
|
|
|
- >
|
|
|
- <img
|
|
|
- alt=""
|
|
|
- style={{ width: "100%" }}
|
|
|
- src={this.state.previewImage || ""}
|
|
|
- />
|
|
|
- </Modal>
|
|
|
- </div>
|
|
|
- )} */}
|
|
|
<p>图片建议:要清晰。</p>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- {/* {!this.state.mark ? ( */}
|
|
|
<div className="clearfix">
|
|
|
<Button
|
|
|
type="primary"
|