Browse Source

开单 未填项聚焦

HW 3 years ago
parent
commit
f2daead0e8

+ 4 - 4
js/component/dataDic.js

@@ -3928,22 +3928,22 @@ module.exports = {
     {
       value: "1",
       key: "已触发剩余90天提醒",
-      color:'#30f306'
+      color:'#186f07'
     },
     {
       value: "2",
       key: "已触发剩余30天提醒",
-      color:'#27aa06'
+      color:'#5084d2'
     },
     {
       value: "3",
       key: "已触发剩余20天提醒",
-      color:'#196607'
+      color:'#665107'
     },
     {
       value: "4",
       key: "已触发剩余10天提醒",
-      color:'#0d4405'
+      color:'#2d7d59'
     },
     {
       value: "5",

+ 5 - 5
js/component/manageCenter/customerService/administration/customerServiceRecord.jsx

@@ -187,10 +187,10 @@ class CustomerServiceRecord extends Component{
             message.warning('请选择续签情况');
             return;
         }
-        // if(this.state.situation === 6 && !this.state.releaseDate){
-        //     message.warning('请选择续签时间');
-        //     return;
-        // }
+        if(this.state.situation === 6 && !this.state.releaseDate){
+            message.warning('请选择续签时间');
+            return;
+        }
         if(!this.state.comment){
             message.warning('请填写备注');
             return;
@@ -405,7 +405,7 @@ class CustomerServiceRecord extends Component{
                             </Select>
                         </div>
                         {this.state.situation === 6 ? <div style={{display:'flex',alignItems:"center",paddingBottom:"10px"}}>
-                            <div style={{fontWeight:"bolder",paddingRight:'10px'}}>续签时间:</div>
+                            <div style={{fontWeight:"bolder",paddingRight:'10px'}}><span style={{color:'#f00'}}>*</span>续签时间:</div>
                             <DatePicker
                                 value={this.state.releaseDate ? moment(this.state.releaseDate) : null}
                                 onChange={(data, dataString) => {

+ 12 - 9
js/component/manageCenter/order/orderNew/addService.jsx

@@ -18,7 +18,7 @@ import {
   Radio,
   Group,
 } from "antd";
-import $ from "jquery/src/ajax";
+// import $ from "jquery/src/ajax";
 import "../userMangagement.less";
 import "../billing.less";
 import moment from "moment";
@@ -27,6 +27,7 @@ import Picture from "@/manageCenter/publicComponent/picture";
 import ResolutionDetail from "@/resolutionDetail";
 import quxiao from "../../../../../image/quxiao.png";
 import tongguo from "../../../../../image/tongguo.png";
+import $ from 'jquery';
 
 import OrderRiZi from "@/orderRiZi.jsx";
 import {
@@ -1703,14 +1704,14 @@ const NewService = Form.create()(
         theReplenishUrl = picArr.join(",");
       }
       if (this.props.userDetaile) {
-        if (this.state.totalAmount === "") {
+        if (isNaN(parseInt(this.state.totalAmount))) {
           message.warning("签单金额不能为空");
-          this.refs.signFirstPayment.focus();
+          this.refs.totalAmountRef.focus();
           return false;
         }
-        if (this.state.firstAmount === "") {
+        if (isNaN(parseInt(this.state.firstAmount))) {
           message.warning("首付金额不能为空");
-          this.refs.signFirstPayment.focus();
+          this.refs.firstAmountRef.focus();
           return false;
         }
         if (moneyVerify(this.state.firstAmount)) {
@@ -1726,12 +1727,12 @@ const NewService = Form.create()(
         }
         if (!this.state.signDate) {
           message.warning("签单日期不能为空");
-          this.refs.signFirstPayment.focus();
+          $('.signDateRef input').focus()
           return false;
         }
         if (!this.state.orderRemarks) {
           message.warning("订单留言不能为空");
-          this.refs.signFirstPayment.focus();
+          this.refs.orderRemarksRef.focus();
           return false;
         }
       }
@@ -4552,6 +4553,7 @@ const NewService = Form.create()(
                                   label="合同签订时间"
                                 >
                                   <DatePicker
+                                      className='signDateRef'
                                     style={{
                                       marginTop: "2px",
                                       // width: "240px",
@@ -4654,7 +4656,7 @@ const NewService = Form.create()(
                               >
                                 <Input
                                   placeholder="签单金额"
-                                  ref="signTotalAmount"
+                                  ref="totalAmountRef"
                                   value={this.state.totalAmount}
                                   onChange={(e) => {
                                     this.setState({
@@ -4672,7 +4674,7 @@ const NewService = Form.create()(
                               >
                                 <Input
                                   placeholder="请输入实签首款金额"
-                                  ref="signFirstPayment"
+                                  ref="firstAmountRef"
                                   value={this.state.firstAmount}
                                   onChange={(e) => {
                                     this.setState({
@@ -5076,6 +5078,7 @@ const NewService = Form.create()(
                                   label="订单留言"
                                 >
                                   <Input
+                                      ref='orderRemarksRef'
                                     type="textarea"
                                     placeholder="请输入订单留言"
                                     rows={4}