Procházet zdrojové kódy

物联网添加上传按钮

sunyize před 2 roky
rodič
revize
39744f8bad

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

@@ -157,6 +157,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'testCard')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 30px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
 
             <!-- swiper1 -->
             <swiper
@@ -282,6 +295,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'contract')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
 
             <!-- swiper1 -->
             <swiper
@@ -402,6 +428,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'handlingContract')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
             <!-- swiper1 -->
             <swiper
               class="swiper gallery-top"
@@ -524,6 +563,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'handlingCard')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
 
             <!-- swiper1 -->
             <swiper
@@ -648,6 +700,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'customerCardScanning')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
 
             <!-- swiper1 -->
             <swiper
@@ -777,6 +842,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'riskTable')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
             <!-- swiper1 -->
             <swiper
               class="swiper gallery-top"
@@ -901,6 +979,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'priceTable')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
             <!-- swiper1 -->
             <swiper
               class="swiper gallery-top"
@@ -1022,6 +1113,19 @@
         </div>
         <div style="height: 70%">
           <div class="thumb-example">
+            <a-upload
+              name="file"
+              :multiple="true"
+              :action="importMinioUploadAction"
+              :customRequest="e => selfUploadContract(e, 'commitment')"
+              :headers="tokenHeader"
+              :showUploadList="false"
+              :beforeUpload="importBeforeUpload"
+              @change="importHandleChange"
+              style='margin-left: 90px;line-height: 50px'
+            >
+              <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+            </a-upload>
             <!-- swiper1 -->
             <swiper
               class="swiper gallery-top"

+ 112 - 0
src/views/lotCheck/modules/TaskCheckAudit.vue

@@ -259,6 +259,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'testCard')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.testCardResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
 
               <!-- swiper1 -->
               <swiper
@@ -413,6 +427,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'contract')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.contractResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
 
               <!-- swiper1 -->
               <swiper
@@ -558,6 +586,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'handlingContract')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.handlingContractResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
               <!-- swiper1 -->
               <swiper
                 class="swiper gallery-top"
@@ -705,6 +747,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'handlingCard')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.handlingCardResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
 
               <!-- swiper1 -->
               <swiper
@@ -854,6 +910,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'customerCardScanning')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.customerCardScanningResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
 
               <!-- swiper1 -->
               <swiper
@@ -1008,6 +1078,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'riskTable')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.riskTableResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
               <!-- swiper1 -->
               <swiper
                 class="swiper gallery-top"
@@ -1157,6 +1241,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'priceTable')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.priceTableResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
               <!-- swiper1 -->
               <swiper
                 class="swiper gallery-top"
@@ -1303,6 +1401,20 @@
           </div>
           <div style="height: 70%">
             <div class="thumb-example">
+              <a-upload
+                name="file"
+                :multiple="true"
+                :action="importMinioUploadAction"
+                :customRequest="e => selfUploadContract(e, 'commitment')"
+                :headers="tokenHeader"
+                :showUploadList="false"
+                :beforeUpload="importBeforeUpload"
+                @change="importHandleChange"
+                v-if='checkState===4 && infoModel.commitmentResult==="2"'
+                style='margin-left: 90px;line-height: 50px'
+              >
+                <a-button> <a-icon type="upload" /> 上传文件 </a-button>
+              </a-upload>
               <!-- swiper1 -->
               <swiper
                 class="swiper gallery-top"