Browse Source

Merge branch 'master' of http://git.jishutao.com/jishutao/kede-client

anderx 4 years ago
parent
commit
b41b51da93

+ 0 - 27
js/component/manageCenter/order/orderNew/addService.jsx

@@ -1234,33 +1234,6 @@ const NewService = Form.create()(
                     this.state.getLoad && record.sortName ? true : false
                   }
                   onChange={(e) => {
-                    // let num = e.lastIndexOf("-");
-                    // let ctid = e.substr(num + 1);
-                    // record.sortName = e.substring(0, num);
-                    // dataArr.forEach((item) => {
-                    //   if (
-                    //     item.commodityName == record.sortName &&
-                    //     ctid == item.id
-                    //   ) {
-                    //     record.cname = item.cname;
-                    //     record.ctid = item.id;
-                    //     record.isSave = true;
-                    //     record.sort = item.cSort;
-                    //     cuiJieDian.forEach((item) => {
-                    //       if (item.value == record.sort) {
-                    //         record.arr = item.children;
-                    //         let yearFlag = true;
-                    //         if (record.sort == 6) {
-                    //           yearFlag = false;
-                    //         }
-                    //         this.setState({
-                    //           getLoad: true,
-                    //           yearFlag,
-                    //         });
-                    //       }
-                    //     });
-                    //   }
-                    // });
                     let proData = dataArr[e];
                     record.cname = proData.cname;
                     record.ctid = proData.id;

File diff suppressed because it is too large
+ 1491 - 1001
js/component/manageCenter/project/task/myTask.jsx


+ 104 - 76
js/component/tools.js

@@ -121,8 +121,8 @@ module.exports = {
           name: name,
           url: url + item,
           response: {
-            data: item
-          }
+            data: item,
+          },
         });
       });
     }
@@ -333,10 +333,10 @@ module.exports = {
   downloadFile: function (path, fileName) {
     window.open(
       globalConfig.context +
-      "/open/downloadFile?path=" +
-      path +
-      "&fileName=" +
-      fileName
+        "/open/downloadFile?path=" +
+        path +
+        "&fileName=" +
+        fileName
     );
   },
   techDownloadFile: function (url, id) {
@@ -352,13 +352,13 @@ module.exports = {
     if (type) {
       window.open(
         globalConfig.context +
-        url +
-        "?id=" +
-        id +
-        "&sign=" +
-        sign +
-        "&type=" +
-        type
+          url +
+          "?id=" +
+          id +
+          "&sign=" +
+          sign +
+          "&type=" +
+          type
       );
     }
   },
@@ -373,20 +373,20 @@ module.exports = {
       dataType: "json",
       crossDomain: false,
       url: globalConfig.context + "/open/html/json/vacations" + theYear,
-      success: data => {
+      success: (data) => {
         if (data) {
           ccccc(data);
         }
-      }
+      },
     });
   },
   getInUrgentTime(date, inUrgent, vocations) {
     if (vocations && vocations.length) {
       let now = new Date(date);
-      for (var i = 1; i <= inUrgent;) {
+      for (var i = 1; i <= inUrgent; ) {
         now.setDate(now.getDate() + 1);
         let thebool = true;
-        vocations.map(item => {
+        vocations.map((item) => {
           if (item == getKey(now)) {
             thebool = false;
           }
@@ -443,7 +443,7 @@ module.exports = {
             </Select.Option>
           );
         }
-      }
+      },
     });
     return theOption;
   },
@@ -470,7 +470,7 @@ module.exports = {
             </Select.Option>
           );
         }
-      }
+      },
     });
     return theOption;
   },
@@ -491,7 +491,7 @@ module.exports = {
           callback(data.data);
         }
         callback(data.data);
-      }
+      },
     });
   },
   //保存高企培育资料完成情况
@@ -505,7 +505,7 @@ module.exports = {
         id: id,
         uid: uid,
         sign: sign,
-        status: status
+        status: status,
       },
       success: function (data) {
         if (!data.data) {
@@ -514,7 +514,7 @@ module.exports = {
           }
           return;
         }
-      }
+      },
     });
   },
   //获取window.location.search传的值
@@ -546,7 +546,7 @@ module.exports = {
       url: globalConfig.context + "/api/admin/preview/" + url,
       data: {
         id: id,
-        sign: sign
+        sign: sign,
       },
       success: function (data) {
         if (!data.data) {
@@ -556,30 +556,30 @@ module.exports = {
         }
         callback(
           "https://view.officeapps.live.com/op/view.aspx?src=" +
-          encodeURIComponent(
-            location.origin +
-            globalConfig.context +
-            "/open/preview?" +
-            data.data
-          )
+            encodeURIComponent(
+              location.origin +
+                globalConfig.context +
+                "/open/preview?" +
+                data.data
+            )
         );
         console.log(
           "https://view.officeapps.live.com/op/view.aspx?src=" +
-          (location.origin +
-            globalConfig.context +
-            "/open/preview?" +
-            data.data)
+            (location.origin +
+              globalConfig.context +
+              "/open/preview?" +
+              data.data)
         );
         console.log(
           "https://view.officeapps.live.com/op/view.aspx?src=" +
-          encodeURIComponent(
-            location.origin +
-            globalConfig.context +
-            "/open/preview?" +
-            data.data
-          )
+            encodeURIComponent(
+              location.origin +
+                globalConfig.context +
+                "/open/preview?" +
+                data.data
+            )
         );
-      }
+      },
     });
   },
   //预览接口
@@ -591,7 +591,7 @@ module.exports = {
       url: globalConfig.context + "/api/admin/customer/" + url,
       data: {
         id: id,
-        sign: sign
+        sign: sign,
       },
       success: function (data) {
         if (!data.data) {
@@ -601,30 +601,30 @@ module.exports = {
         }
         callback(
           "https://view.officeapps.live.com/op/view.aspx?src=" +
-          encodeURIComponent(
-            location.origin +
-            globalConfig.context +
-            "/open/preview?" +
-            data.data
-          )
+            encodeURIComponent(
+              location.origin +
+                globalConfig.context +
+                "/open/preview?" +
+                data.data
+            )
         );
         console.log(
           "https://view.officeapps.live.com/op/view.aspx?src=" +
-          (location.origin +
-            globalConfig.context +
-            "/open/preview?" +
-            data.data)
+            (location.origin +
+              globalConfig.context +
+              "/open/preview?" +
+              data.data)
         );
         console.log(
           "https://view.officeapps.live.com/op/view.aspx?src=" +
-          encodeURIComponent(
-            location.origin +
-            globalConfig.context +
-            "/open/preview?" +
-            data.data
-          )
+            encodeURIComponent(
+              location.origin +
+                globalConfig.context +
+                "/open/preview?" +
+                data.data
+            )
         );
-      }
+      },
     });
   },
   //获取企业规模
@@ -645,13 +645,13 @@ module.exports = {
     for (let i = 0; i < companyType.length; i++) {
       companyTypeList.push({
         value: companyType[i].value,
-        label: companyType[i].label
+        label: companyType[i].label,
       });
       if (companyType[i].children) {
         for (let j = 0; j < companyType[i].children.length; j++) {
           companyTypeList.push({
             value: companyType[i].children[j].value,
-            label: companyType[i].children[j].label
+            label: companyType[i].children[j].label,
           });
         }
       }
@@ -1628,11 +1628,11 @@ module.exports = {
   getApproval: function (e, flag) {
     if (flag) {
       if (e == 0) {
-        return "非特批"
+        return "非特批";
       } else if (e == 1) {
-        return "特批"
+        return "特批";
       } else {
-        return "未知"
+        return "未知";
       }
     }
     if (e || e == 0) {
@@ -1665,6 +1665,35 @@ module.exports = {
     }
   },
 
+  //第三方信息状态----是否有材料
+
+  getMaterialStatus: function (val) {
+    if (val == 0) {
+      return "无材料";
+    } else if (val == 1) {
+      return "有材料";
+    }
+  },
+  //第三方信息状态----加急
+  getUrgentStatus: function (val) {
+    if (val == 0) {
+      return "无加急";
+    } else if (val == 1) {
+      return "加急3天";
+    } else if (val == 2) {
+      return "加急4天";
+    } else if (val == 3) {
+      return "加急5-10天";
+    } else if (val == 4) {
+      return "加急11-15天";
+    } else if (val == 5) {
+      return "加急16-20天";
+    } else if (val == 6) {
+      return "加急21-25天";
+    } else if (val == 7) {
+      return "加急26-30天";
+    }
+  },
   //审核状态
   getStatus: function (val) {
     if (val == 0) {
@@ -1812,7 +1841,7 @@ module.exports = {
   //开票状态
   getInvoiceStatus: function (e, record) {
     if (record && record.approval == 1) {
-      return "特批待审核"
+      return "特批待审核";
     } else {
       if (e || e == 0) {
         let str = e.toString();
@@ -1825,7 +1854,6 @@ module.exports = {
         return theType;
       }
     }
-
   },
   getApprovalA: function (e) {
     if (e || e == 0) {
@@ -1879,11 +1907,11 @@ module.exports = {
       num = "通过";
     } else if (status == 3) {
       num = "驳回";
-      return num + "到" + str
+      return num + "到" + str;
     } else if (status == 4) {
       num = "完成";
-    } else if(status == 5) {
-      num = "取消变更"
+    } else if (status == 5) {
+      num = "取消变更";
     }
     if (pro == 7 && status == 2) {
       return "订单变更退票中";
@@ -1935,13 +1963,13 @@ module.exports = {
   },
   moneyVerify(e) {
     if (!/^\d{1,3}(,?\d{3})*(\.\d{1,4})?$/.test(e)) {
-      message.warning("输入金额不符合规范")
-      return true
+      message.warning("输入金额不符合规范");
+      return true;
     }
   },
   // 消息提醒函数接口
   ShowModal(fn) {
-    let flag = true
+    let flag = true;
     $.ajax({
       method: "get",
       dataType: "json",
@@ -1952,11 +1980,11 @@ module.exports = {
         if (data.data != 0) {
           console.log(data);
           fn.setState({
-            showModal: true
+            showModal: true,
           });
         }
-      }
-    })
+      },
+    });
     // return flag
   },
   getType(e) {
@@ -1974,6 +2002,6 @@ module.exports = {
   changeColor(e) {
     return (
       <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>{e}</span>
-    )
-  }
+    );
+  },
 };