保安监管系统-验收版本
shuishen
2021-12-02 903f91fce5972539ae87fe2d9377a665929d6fbc
Merge branch 'master' of http://192.168.0.105:10010/r/zhba_regulatory_ys
4 files modified
111 ■■■■■ changed files
src/views/licenseApproval/securityGuard.vue 30 ●●●● patch | view | raw | blame | history
src/views/licenseApproval/securityPermit.vue 29 ●●●● patch | view | raw | blame | history
src/views/securityUnitOperation/economicAnalysis.vue 28 ●●●●● patch | view | raw | blame | history
src/views/securityUnitOperation/operationAnalysis.vue 24 ●●●● patch | view | raw | blame | history
src/views/licenseApproval/securityGuard.vue
@@ -2,7 +2,7 @@
 * @Author: liu
 * @Date: 2021-08-26 16:57:58 
 * @Last Modified by: liu
 * @Last Modified time: 2021-11-25 17:38:08
 * @Last Modified time: 2021-12-02 17:04:32
 */
@@ -567,14 +567,36 @@
      var b = data;
      if (this.user_name == "派") {
        // 派出所审批
        b["stateOur"] = b.papprove == "0" ? "0" : b.papprove == "1" ? "1" : "2";
        b["stateOur"] =
          b.papprove == "0" || b.papprove == ""
            ? "0"
            : b.papprove == "1"
            ? "1"
            : "2";
      } else if (this.user_name == "县") {
        // 分局审批
        b["stateOur"] = b.xapprove == "0" ? "0" : b.xapprove == "1" ? "1" : "2";
        b["stateOur"] =
          b.xapprove == "0" || b.xapprove == ""
            ? "0"
            : b.xapprove == "1"
            ? "1"
            : "2";
      } else if (this.user_name == "市") {
        // 市局审批
        b["stateOur"] = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2";
        b["stateOur"] =
          b.sapprove == "0" || b.sapprove == ""
            ? "0"
            : b.sapprove == "1"
            ? "1"
            : "2";
      }
      console.log(
        b.papprove == "0" || b.papprove == ""
          ? "0"
          : b.papprove == "1"
          ? "1"
          : "2"
      );
      return b;
    },
    onLoad(page, params = {}) {
src/views/licenseApproval/securityPermit.vue
@@ -3,7 +3,7 @@
 * @Author: liu
 * @Date: 2021-08-26 16:22:20 
 * @Last Modified by: liu
 * @Last Modified time: 2021-11-25 18:49:29
 * @Last Modified time: 2021-12-02 17:14:20
 */
<template>
@@ -558,18 +558,35 @@
      return d;
    },
    changeState(data) {
      var b = data;
      var b = {
        ...data,
        stateOur: "",
      };
      if (this.user_name == "派") {
        // 派出所审批
        b["stateOur"] = b.papprove == "0" ? "0" : b.papprove == "1" ? "1" : "2";
        b["stateOur"] =
          b.papprove == "0" || b.papprove == ""
            ? "0"
            : b.papprove == "1"
            ? "1"
            : "2";
      } else if (this.user_name == "县") {
        // 分局审批
        b["stateOur"] = b.xapprove == "0" ? "0" : b.xapprove == "1" ? "1" : "2";
        b["stateOur"] =
          b.xapprove == "0" || b.xapprove == ""
            ? "0"
            : b.xapprove == "1"
            ? "1"
            : "2";
      } else if (this.user_name == "市") {
        // 市局审批
        b["stateOur"] = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2";
        b["stateOur"] =
          b.sapprove == "0" || b.sapprove == ""
            ? "0"
            : b.sapprove == "1"
            ? "1"
            : "2";
      }
      // console.log(this.user_name);
      return b;
    },
    onLoad(page, params = {}) {
src/views/securityUnitOperation/economicAnalysis.vue
@@ -506,27 +506,21 @@
      selectTo(params).then(res => {
        if (res.data.code === 200) {
          let data = res.data.data[0];
          this.socialSecurity.num = data.thismouth;
          this.socialSecurity.addNum = data.thismouth - data.lastmonth;
          this.socialSecurity.money = data.thisamount;
          this.socialSecurity.addMoney = data.thisamount - data.lastamount;
          this.socialSecurity.paiQ = data.userpcthismouth;
          this.socialSecurity.addPaiQ =
            data.userpcthismouth - data.userpclastmouth;
          this.socialSecurity.num = data.znum;
          this.socialSecurity.addNum = data.thismouth;
          this.socialSecurity.money = data.tamountnum.toFixed(0);
          this.socialSecurity.addMoney = data.thisamount.toFixed(0);
          this.socialSecurity.paiQ = data.userpcnum;
          this.socialSecurity.addPaiQ = data.userpcthismouth;
          this.socialSecurity.sheBPerson =
            data.userthismouth && (data.thismouth / data.userthismouth) * 100
              ? ((data.thismouth / data.userthismouth) * 100).toFixed(2) + "%"
            data.usernum && (data.znum / data.usernum) * 100
              ? ((data.znum / data.usernum) * 100).toFixed(2) + "%"
              : 0;
          this.socialSecurity.addSheBPerson =
            data.userthismouth &&
            data.userlastmouth &&
            (data.thismouth / data.userthismouth) * 100 &&
            (data.lastmonth / data.userlastmouth) * 100 &&
            (data.thismouth / data.userthismouth) * 100 -
              (data.lastmonth / data.userlastmouth) * 100
            data.thismouth && data.lastmonth && data.thismouth - data.lastmonth
              ? (
                  (data.thismouth / data.userthismouth) * 100 -
                  (data.lastmonth / data.userlastmouth) * 100
                  ((data.thismouth - data.lastmonth) / data.lastmonth) *
                  100
                ).toFixed(2) + "%"
              : 0;
        } else {
src/views/securityUnitOperation/operationAnalysis.vue
@@ -505,20 +505,20 @@
        if (res.data.code === 200) {
          let data = res.data.data[0];
          this.card = {
            baoanTotal: data.baoan.thisnum,
            addbaoanTotal: data.baoan.thisnum - data.baoan.lastnum,
            zcBaoan: data.zcbaoan.thisnum,
            addzcBaoan: data.zcbaoan.thisnum - data.zcbaoan.lastnum,
            czBaoan: data.czbaoan.thisnum,
            addczBaoan: data.czbaoan.thisnum - data.czbaoan.lastnum,
            baoanTotal: data.baoan.num,
            addbaoanTotal: data.baoan.thisnum,
            zcBaoan: data.zcbaoan.num,
            addzcBaoan: data.zcbaoan.thisnum,
            czBaoan: data.czbaoan.num,
            addczBaoan: data.czbaoan.thisnum,
            gkBaoan: 0,
            addgkBaoan: 0,
            kh: data.kh.thisnum,
            addkh: data.kh.thisnum - data.kh.lastnum,
            sheb: data.sheb.thisnum,
            addsheb: data.sheb.thisnum - data.sheb.lastnum,
            baoanPq: data.paiq.thisnum,
            addbaoanPq: data.paiq.thisnum - data.paiq.lastnum,
            kh: data.kh.num,
            addkh: data.kh.thisnum,
            sheb: data.sheb.num,
            addsheb: data.sheb.thisnum,
            baoanPq: data.paiq.num,
            addbaoanPq: data.paiq.thisnum,
          };
        }
      });