|
@@ -4,7 +4,22 @@ import moment from 'moment';
|
|
|
import '../../order/userMangagement.less';
|
|
|
import {boutique} from '../../../dataDic.js';
|
|
|
import '@/manageCenter/financialManage/distribute/public.less';
|
|
|
-import { Button,Form, Input, Select, Spin, Table, Switch,Tag, message, DatePicker, Modal,AutoComplete,Tabs} from 'antd';
|
|
|
+import {
|
|
|
+ Button,
|
|
|
+ Form,
|
|
|
+ Input,
|
|
|
+ Select,
|
|
|
+ Spin,
|
|
|
+ Table,
|
|
|
+ Switch,
|
|
|
+ Tag,
|
|
|
+ message,
|
|
|
+ DatePicker,
|
|
|
+ Modal,
|
|
|
+ AutoComplete,
|
|
|
+ Tabs,
|
|
|
+ Radio
|
|
|
+} from 'antd';
|
|
|
import Assign from '@/manageCenter/publicComponent/assign';
|
|
|
import ResolutionDetail from "@/resolutionDetail";
|
|
|
import {
|
|
@@ -408,6 +423,7 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
tableRowClick(record) {
|
|
|
this.state.RowData = record;
|
|
|
this.setState({
|
|
|
+ displayFees: "block",
|
|
|
visible: true,
|
|
|
modKey: "1"
|
|
|
});
|
|
@@ -710,6 +726,16 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
message.warning("服务名称不匹配!");
|
|
|
return false;
|
|
|
}
|
|
|
+ if (this.state.displayFees=='block') {
|
|
|
+ if(this.state.officialCost==''){
|
|
|
+ message.warning("请选择官费!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.state.costReduction == "") {
|
|
|
+ message.warning("请选择费减!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!this.state.commodityPrice) {
|
|
|
message.warning("请输入金额!");
|
|
|
this.refs.commodityPrice.focus();
|
|
@@ -743,7 +769,9 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
commodityQuantity: this.state.commodityQuantity, //商品数量
|
|
|
commodityPrice: this.state.commodityPrice, //签单总价
|
|
|
taskComment: this.state.taskComment, //服务说明
|
|
|
- main: this.state.main //是否为主要项目
|
|
|
+ main: this.state.main, //是否为主要项目
|
|
|
+ officialCost: this.state.officialCost, //是否有官费
|
|
|
+ costReduction: this.state.costReduction, //是否有费减
|
|
|
}
|
|
|
}).done(
|
|
|
function(data) {
|
|
@@ -910,6 +938,15 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
kid = item;
|
|
|
}
|
|
|
});
|
|
|
+ if (kid.type === 1) {
|
|
|
+ this.setState({
|
|
|
+ displayFees: "block",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.setState({
|
|
|
+ displayFees: "none",
|
|
|
+ });
|
|
|
+ }
|
|
|
this.setState({
|
|
|
commodityName: value,
|
|
|
gid: kid.id,
|
|
@@ -917,7 +954,6 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
commodityFirstPayment:
|
|
|
kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment
|
|
|
});
|
|
|
- console.log(this.state.commodityName, "jjjj", this.state.gid);
|
|
|
},
|
|
|
|
|
|
//点击添加项目明细
|
|
@@ -932,7 +968,10 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
main: undefined,
|
|
|
commodityPrice: "",
|
|
|
addState: 1,
|
|
|
- addserviceVisible: true
|
|
|
+ addserviceVisible: true,
|
|
|
+ displayFees: "none",
|
|
|
+ officialCost: "",
|
|
|
+ costReduction: "",
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -1057,7 +1096,10 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
nextCancel() {
|
|
|
this.setState({
|
|
|
addserviceVisible: false,
|
|
|
- addnextVisible: false
|
|
|
+ addnextVisible: false,
|
|
|
+ displayFees: "none",
|
|
|
+ officialCost: "", //是否有官费
|
|
|
+ costReduction: "", //是否有费减
|
|
|
});
|
|
|
},
|
|
|
//点击打卡项目详情
|
|
@@ -1724,7 +1766,52 @@ const zxsglyOutSourcingPaiDan = React.createClass({
|
|
|
/>
|
|
|
<span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
|
-
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ labelCol={{ span: 3 }}
|
|
|
+ wrapperCol={{ span: 14 }}
|
|
|
+ label="官费:"
|
|
|
+ style={{
|
|
|
+ display: this.state.displayFees,
|
|
|
+ marginLeft: "55px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span style={{ color: "red", marginRight: "27px" }}>
|
|
|
+ *
|
|
|
+ </span>
|
|
|
+ <Radio.Group
|
|
|
+ value={this.state.officialCost}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ officialCost: e.target.value });
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Radio value="1">含官费</Radio>
|
|
|
+ <Radio value="0">不含官费</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ labelCol={{ span: 3 }}
|
|
|
+ wrapperCol={{ span: 14 }}
|
|
|
+ label="费减:"
|
|
|
+ style={{
|
|
|
+ display: this.state.displayFees,
|
|
|
+ marginLeft: "55px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span style={{ color: "red", marginRight: "27px" }}>
|
|
|
+ *
|
|
|
+ </span>
|
|
|
+ <Radio.Group
|
|
|
+ value={this.state.costReduction}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ costReduction: e.target.value });
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Radio value="1">有费减</Radio>
|
|
|
+ <Radio value="0">无费减</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
{...formItemLayout}
|