소스 검색

增加附件

zhanglu 4 년 전
부모
커밋
96417983bb
6개의 변경된 파일4053개의 추가작업 그리고 3290개의 파일을 삭제
  1. 3994 3263
      package-lock.json
  2. 16 16
      package.json
  3. 1 1
      public/index.html
  4. 36 9
      src/components/detauils.vue
  5. 1 1
      src/components/reception.vue
  6. 5 0
      src/store/modules/values.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3994 - 3263
package-lock.json


+ 16 - 16
package.json

@@ -8,30 +8,30 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
-    "core-js": "^2.6.5",
-    "iview": "^3.0.1",
+    "core-js": "^2.6.12",
+    "iview": "^3.5.4",
     "js-md5": "^0.7.3",
-    "md5": "^2.2.1",
+    "md5": "^2.3.0",
     "ps": "^1.0.0",
-    "vue": "^2.6.10",
-    "vue-pdf": "^4.0.7",
-    "vue-router": "^3.0.3",
-    "vue-wechat-title": "^2.0.5",
-    "vuex": "^3.0.1"
+    "vue": "^2.6.12",
+    "vue-pdf": "^4.2.0",
+    "vue-router": "^3.4.9",
+    "vue-wechat-title": "^2.0.7",
+    "vuex": "^3.6.0"
   },
   "devDependencies": {
-    "@vue/cli-plugin-babel": "^3.11.0",
-    "@vue/cli-plugin-eslint": "^3.11.0",
-    "@vue/cli-service": "^3.11.0",
+    "@vue/cli-plugin-babel": "^3.12.1",
+    "@vue/cli-plugin-eslint": "^3.12.1",
+    "@vue/cli-service": "^3.12.1",
     "axios": "^0.18.0",
-    "babel-eslint": "^10.0.1",
-    "copy-webpack-plugin": "^5.1.1",
-    "crypto-js": "^3.1.9-1",
+    "babel-eslint": "^10.1.0",
+    "copy-webpack-plugin": "^5.1.2",
+    "crypto-js": "^3.3.0",
     "eslint": "^5.16.0",
     "eslint-plugin-vue": "^5.0.0",
     "vue-cli-plugin-axios": "0.0.4",
     "vue-cli-plugin-iview": "^1.0.6",
-    "vue-template-compiler": "^2.6.10"
+    "vue-template-compiler": "^2.6.12"
   },
   "eslintConfig": {
     "root": true,
@@ -43,7 +43,7 @@
       "eslint:recommended"
     ],
     "rules": {
-      "no-console":"off"
+      "no-console": "off"
     },
     "parserOptions": {
       "parser": "babel-eslint"

+ 1 - 1
public/index.html

@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <link rel="icon" href="<%= BASE_URL %>bitbug_favicon.ico">
+    <!-- <link rel="icon" href="<%= BASE_URL %>bitbug_favicon.ico"> -->
     <title>移动审批</title>
   </head>
   <body>

+ 36 - 9
src/components/detauils.vue

@@ -19,6 +19,10 @@
             <p @click="model1 = 3" :style="model1==3?'color:blue;':'color:black;'" class="headdtwo">流向</p>
             <hr :style="model1==3?'border:0.5px solid blue;':'display:none;'" align="center">
         </div>
+        <div :style="model1==4?'background-color:#fff;color:blue;':''" class="headdoneheadd">
+            <p @click="model1 = 4" :style="model1==4?'color:blue;':'color:black;'" class="headdtwo">附件</p>
+            <hr :style="model1==4?'border:0.5px solid blue;':'display:none;'" align="center">
+        </div>
         <Button :style="modal3?'margin:0px 0px 10px 0px;height:40px;':'display:none;'" @click="openQainShou" type="primary" long>签收</Button>
         <ButtonGroup :style="modal3?'display:none;':'width:100%;margin:0px 0px 10px 0px;'">
             <Button @click="openReturn" :style="modal7?'width:50%;height:40px;':'display:none;'" type="primary">
@@ -75,6 +79,18 @@
                 </TimelineItem>
              </Timeline>
         </div>
+        <!--附件 -->
+        <div :style="model1==4?'':'display:none;'">
+            <Timeline style="margin:0px 0px 0px 34px;">
+                <TimelineItem color="green" v-for="i in files" :key="i.id">
+                    <Icon type="md-document" slot="dot"></Icon>
+                    <Card style="width:95%;" shadow>
+                        <span style="font-weight:bold;font-size:16px;width:50%;color:black;">{{i.filename}}</span>
+                        
+                    </Card>
+                </TimelineItem>
+             </Timeline>
+        </div>
     </div>
 </template>
 
@@ -90,9 +106,10 @@ export default {
             model1:1,
             user:JSON.parse(sessionStorage.getItem('usercode')),
             code:JSON.parse(sessionStorage.getItem('actCode')),
-            userid:JSON.parse(sessionStorage.getItem('userId')),
+            userid:JSON.parse(sessionStorage.getItem('userid')),
             detauils:[],
             directions:[],
+            files:[],
             pSrc:'',
             opinionText:'',
             pdfs:'',
@@ -107,15 +124,25 @@ export default {
             this.$router.push('daiban');
             return;
         }
-        if(this.userid==null){
-            let uservm = {
-                                actUserName:this.user,
-                            }
-                            this.$store.dispatch('GetUserVM',uservm).then(r4=>{
-                                this.userid = r4.userID;})
+        
+
+        this.$store.dispatch('GetWorkFlowFile',this.code).then(rfile=>{
+            let count0 =1;
+            for (let i of rfile){
+                let a = {
+                    id:count0,
+                    filename:i.filename,
+                    
+                    filecontenttype:i.filecontenttype,
+
+                }
+                count0 ++;
+                this.files.push(a);
+            }
+
+        })
 
 
-        }
         let FWQ ={
             taskActorName:'第三方注册系统编码',
             actUserName:'调取地产云地址',
@@ -238,7 +265,7 @@ export default {
     padding:13px 0px 0px 10px;height:45px;font-size:13px;
     }
     .headdoneheadd{
-    width:33%;display: inline-block;text-align:center;height:40px;
+    width:25%;display: inline-block;text-align:center;height:40px;
     }
     .headdtwo:hover{
     cursor: pointer;

+ 1 - 1
src/components/reception.vue

@@ -50,7 +50,7 @@ export default {
                                
             
                 }
-                console.log(Wopinions);
+                
                 this.$store.dispatch('GetUserVM',Wopinions).then(restPwd=>{
                   console.log(restPwd.userID);
                   sessionStorage.setItem('userid',JSON.stringify(restPwd.userID));

+ 5 - 0
src/store/modules/values.js

@@ -41,6 +41,11 @@ const actions ={
             return r.data;
         })
     },
+    GetWorkFlowFile({commit},actcode){
+        return api.Get('GetWorkFlowFile',actcode).then(r=>{
+            return r.data;
+        })
+    },
     GetDongLong({commit},url){
         return api.Get('GetDongLong',url).then(r=>{
             return r.data;