Explorar o código

物联网稽核模版

sunyize %!s(int64=2) %!d(string=hai) anos
pai
achega
84045f1673

+ 4 - 0
src/views/lotCheck/TaskUploadData.vue

@@ -1770,6 +1770,8 @@ export default {
           that.lotDataValue(data);
           that.infoModel.testCard= JSON.parse(result.testCard);
           that.infoModel.contract= JSON.parse(result.contract);
+          that.steps.current = 0;
+          that.steps.currentId = that.steps.stepsNow[0].id
           that.infoModel.handlingContract= JSON.parse(result.handlingContract);
           that.infoModel.handlingCard= JSON.parse(result.handlingCard);
           that.infoModel.customerCardScanning= JSON.parse(result.customerCardScanning);
@@ -1870,6 +1872,8 @@ export default {
         this.steps.stepsNow = this.steps.stepsTest;
       }
       this.current = 0;
+      this.steps.current = 0;
+      this.steps.currentId = this.steps.stepsNow[0].id
       for (var i in this.steps.stepsNow) {
         for (var j in this.infoModel[this.steps.stepsNow[i].id]){
           if (this.infoModel[this.steps.stepsNow[i].id][0].urlBase!==undefined){

+ 16 - 14
src/views/lotCheck/modules/TaskCheckAudit.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <a-spin :spinning="this.uploading" size="large" tip="正在提交资料,请勿关闭当前网页...">
     <!--  客户信息-->
     <a-page-header
       style="background-color: #FFFFFF;margin-bottom:10px"
@@ -31,6 +31,11 @@
         <a-descriptions-item label="合同到期时间">{{ infoModel.contractDate }}</a-descriptions-item>
         <a-descriptions-item label="营业执照到期时间">{{ infoModel.businessLicenseDate }}</a-descriptions-item>
       </a-descriptions>
+      <a-form-model
+        ref="form"
+        :model="infoModel"
+        :rules="rules"
+      >
 
       <a-card v-if='checkState===4'  style="margin-bottom:10px;color: #000000d9;font-size: 15px;line-height: 2.5;">
         <div>
@@ -179,6 +184,7 @@
           </template>
         </a-list>
       </div>
+      </a-form-model>
     </a-page-header>
 
 
@@ -1404,7 +1410,7 @@
 
     <!--  合同资料-->
 
-  </div>
+  </a-spin>
 
 </template>
 
@@ -1544,6 +1550,7 @@ export default {
         { title: '修改内容', width: 100, dataIndex: 'context', key: 'context' },
       ],
       checkState:"",
+      uploading:false,
       loading: false,
       infoModel: {
         stepsNow:{},
@@ -2019,17 +2026,7 @@ export default {
       };
       console.log(stringToHTML('<h1>Hello world!</h1><p>How are you today?</p>'));
       if (info==="no"){
-        this.$warning({
-          title: '提示',
-          dangerouslyUseHTMLString: true,
-          content:(h) => {
-            return h('div', {
-              domProps: {
-                innerHTML: text
-              },
-            }, []);
-          }
-        })
+        this.uploading = false;
         return
       }
       var that = this;
@@ -2155,6 +2152,7 @@ export default {
     },
     /**获取物联网文件数据*/
     lotInfoById(id) {
+
       let that = this;
       let url = this.url.getInfoDataByInfoId;
       let params = {
@@ -2173,6 +2171,8 @@ export default {
           that.dataList=result.history;
           that.infoModel.testCard= JSON.parse(result.testCard);
           that.infoModel.contract= JSON.parse(result.contract);
+          that.steps.current = 0;
+          that.steps.currentId = that.steps.stepsNow[0].id
           that.infoModel.handlingContract= JSON.parse(result.handlingContract);
           that.infoModel.handlingCard= JSON.parse(result.handlingCard);
           that.infoModel.customerCardScanning= JSON.parse(result.customerCardScanning);
@@ -2301,6 +2301,7 @@ export default {
     },
     /**卡类型及价格管控监听事件*/
     controlChange(a, event) {
+
       let blockType = this.infoModel.blockType;
       let control = this.infoModel.control;
       //是否突破价格管控
@@ -2313,7 +2314,8 @@ export default {
       }
       this.current = 0;
       //this.currentFileType(this.current);
-
+      this.steps.current = 0;
+      this.steps.currentId = this.steps.stepsNow[0].id
       //待整改
       if (this.checkState===4){
         for (var i in this.steps.stepsNow) {

+ 4 - 4
src/views/smscheck/modules/TaskImport.vue

@@ -196,9 +196,9 @@ export default {
     getTask(id){
       var that = this;
       var data = {
-        "id": id,
+        id: id,
       }
-      postAction('/smsTurck/customerData/query/getTaskType', data).then((res) => {
+      getAction('/smsTurck/customerData/query/getTaskType', data).then((res) => {
         if (res.success) {
           // Line("1", "行短稽核"),
           //   Business("2", "物联网业务稽核"),
@@ -243,11 +243,11 @@ export default {
     /**下载模版*/
     downloadTemplat(){
       const a = document.createElement('a')
-      if (this.type==='2'){
+      if (this.type===2){
         a.href = '/web/tnc/static/lotExcel.xlsx'
         a.setAttribute('download', '物联网稽核模版.xlsx')
       }
-      if (this.type==='1'){
+      if (this.type===1){
         a.href = '/web/tnc/static/taskModel.xlsx'
         a.setAttribute('download', '行短稽核模版.xlsx')
       }

+ 13 - 13
src/views/truckCheck/TaskUploadData.vue

@@ -25,10 +25,10 @@
             <span style="display: block">2.请选择使用场景</span>
             <a-radio-group style="position: relative;left: 30px;"
                            @change="controlChange" v-model:value="infoModel.scene"  prop='scene'>
-              <a-radio :value="0">办公自用</a-radio>
-              <a-radio :value="1">自用型呼叫中心</a-radio>
-              <a-radio :value="2">经营型呼叫中心</a-radio>
-              <a-radio :value="3">经营型会议电话</a-radio>
+              <a-radio :value="'0'">办公自用</a-radio>
+              <a-radio :value="'1'">自用型呼叫中心</a-radio>
+              <a-radio :value="'2'">经营型呼叫中心</a-radio>
+              <a-radio :value="'3'">经营型会议电话</a-radio>
             </a-radio-group>
           </div>
         </a-card>
@@ -2755,7 +2755,7 @@ export default {
         //客户类型
         customType: 0,
         //使用场景
-        scene: 0,
+        scene:'0',
         houseDate:"",
         zZBusinessLicenseDate:"",
         businessLicenseDateIs:"",
@@ -3206,30 +3206,30 @@ export default {
       let customType = this.infoModel.customType;
       let scene = this.infoModel.scene;
       if (customType ===0) {
-        if (scene ===0) {
+        if (scene ==='0') {
           this.steps.stepsNow = this.steps.steps00
         }
-        if (scene ===1) {
+        if (scene ==='1') {
           this.steps.stepsNow = this.steps.steps01
         }
-        if (scene ===2) {
+        if (scene ==='2') {
           this.steps.stepsNow= this.steps.steps02
         }
-        if (scene ===3) {
+        if (scene ==='3') {
           this.steps.stepsNow = this.steps.steps02
         }
       }
       if (customType ===1) {
-        if (scene ===0) {
+        if (scene ==='0') {
           this.steps.stepsNow = this.steps.steps10
         }
-        if (scene ===1) {
+        if (scene ==='1') {
           this.steps.stepsNow = this.steps.steps11
         }
-        if (scene ===2) {
+        if (scene ==='2') {
           this.steps.stepsNow = this.steps.steps12
         }
-        if (scene ===3) {
+        if (scene ==='3') {
           this.steps.stepsNow = this.steps.steps12
         }
       }

+ 46 - 20
src/views/truckCheck/modules/TaskCheckAudit.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <a-spin :spinning="this.uploading" size="large" tip="正在提交资料,请勿关闭当前网页...">
     <!--  客户信息-->
     <a-page-header
       style="background-color: #FFFFFF;margin-bottom:10px"
@@ -2764,7 +2764,7 @@
     </div>
 
 
-  </div>
+  </a-spin>
 
 </template>
 
@@ -2862,6 +2862,7 @@ export default {
       checkState:"",
       history:"",
       dataList:[],
+      uploading:false,
       infoModel:{
         applySignResult:"",
         applySignResultRemark:"",
@@ -2921,7 +2922,7 @@ export default {
         //客户类型
         customType: 0,
         //使用场景
-        scene: 0,
+        scene: '0',
         houseDate:"",
         zZBusinessLicenseDate:"",
         businessLicenseDateIs:"",
@@ -3587,30 +3588,30 @@ export default {
       let customType = this.infoModel.customType;
       let scene = this.infoModel.scene;
       if (customType ===0) {
-        if (scene ===0) {
+        if (scene ==='0') {
           this.steps.stepsNow = this.steps.steps00
         }
-        if (scene ===1) {
+        if (scene ==='1') {
           this.steps.stepsNow = this.steps.steps01
         }
-        if (scene ===2) {
+        if (scene ==='2') {
           this.steps.stepsNow= this.steps.steps02
         }
-        if (scene ===3) {
+        if (scene ==='3') {
           this.steps.stepsNow = this.steps.steps02
         }
       }
       if (customType ===1) {
-        if (scene ===0) {
+        if (scene ==='0') {
           this.steps.stepsNow = this.steps.steps10
         }
-        if (scene ===1) {
+        if (scene ==='1') {
           this.steps.stepsNow = this.steps.steps11
         }
-        if (scene ===2) {
+        if (scene ==='2') {
           this.steps.stepsNow = this.steps.steps12
         }
-        if (scene ===3) {
+        if (scene ==='3') {
           this.steps.stepsNow = this.steps.steps12
         }
       }
@@ -3625,6 +3626,30 @@ export default {
           }
         }
       }
+      //待整改
+      if (this.checkState===4){
+        for (var i in this.steps.stepsNow) {
+          for (var j in this.infoModel[this.steps.stepsNow[i].id]){
+            if (this.infoModel[this.steps.stepsNow[i].id+'Result']!==null&&  this.infoModel[this.steps.stepsNow[i].id+'Result']!==undefined && this.infoModel[this.steps.stepsNow[i].id+'Result'][0]!==undefined){
+              if (  this.infoModel[this.steps.stepsNow[i].id+'Result'][0]==='1'){
+                this.steps.stepsNow[i].status = "finish"
+              }else {
+                this.steps.stepsNow[i].status = "error"
+              }
+            }
+          }
+        }
+        if (this.infoModel.infoResult==="2"){
+          var element = document.getElementById('directRequirements');
+          element.style.color = 'red';
+          this.isShow=false
+        }
+        if (this.infoModel.infoResult==="1"){
+          var element = document.getElementById('directRequirements');
+          element.style.color = 'black';
+          this.isShow=true
+        }
+      }
       //
       // for (var i in this.steps.stepsNow) {
       //     if ( this.steps.stepsNow[i].urlBase!==undefined){
@@ -3822,31 +3847,31 @@ export default {
             var customType =result.customType;
             var scene =result.scene;
             if (customType ===0) {
-              if (scene ===0) {
+              if (scene ==='0') {
                 that.steps.stepsNow = that.steps.steps00
               }
-              if (scene ===1) {
+              if (scene ==='1') {
                 that.steps.stepsNow = that.steps.steps01
               }
-              if (scene ===2) {
+              if (scene ==='2') {
                 that.steps.stepsNow= that.steps.steps02
               }
-              if (scene ===3) {
+              if (scene ==='3') {
                 that.steps.stepsNow = that.steps.steps02
               }
             }
             if (customType ===1) {
-              if (scene ===0) {
+              if (scene ==='0') {
                 that.steps.stepsNow = that.steps.steps10
               }
-              if (scene ===1) {
+              if (scene ==='1') {
                 that.steps.stepsNow = that.steps.steps11
               }
-              if (scene ===2) {
+              if (scene ==='2') {
                 that.steps.stepsNow = that.steps.steps12
               }
-              if (scene ===3) {
-                this.that.stepsNow = that.steps.steps12
+              if (scene ==='3') {
+                that.steps.stepsNow = that.steps.steps12
               }
             }
             //待稽核
@@ -3971,6 +3996,7 @@ export default {
       }
       var that = this;
       var data=that.infoModel ;
+      data.stepsNow=that.steps.stepsNow;
       //var dataToStr =this.dataListToStr(data);
       //data=dataToStr;
       postAction("/smsTurck/customerData/addLog", data).then((res) => {