Ver Fonte

前端oss图片缓存问题下载链接添加随机数

gjy há 2 anos atrás
pai
commit
81ef024a49

+ 1 - 1
src/components/WsUpload/index.vue

@@ -434,7 +434,7 @@ export default {
         this.isShowPdf = true
         return
       }
-      downloadNow(file.url, file.name, this.vesselBankFlag, type)
+      downloadNow(file.url+'?s=' + Math.random().toString(), file.name, this.vesselBankFlag, type)
     },
 
     _handleBeforeUpload(file) {

+ 55 - 1
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -68,7 +68,7 @@
                       :value="item.inOutTaskNo" />
                   </el-select>
                 </ws-form-item>
-                <ws-form-item  label="已完成量" span="1" prop="donecount">
+                <ws-form-item v-if='serviceManagementType == 3 && qyJurisdiction&&statusTypetext == "初检"||serviceManagementType == 1 && statusTypetext == "初检"'  label="已完成量" span="1" prop="donecount">
                   <ws-input v-model="deptBudgetList.donecount" placeholder="自动获取,不可编辑" maxlength="100" disabled
                     size="small" />
                 </ws-form-item>
@@ -3292,6 +3292,60 @@ export default {
         this.outType = ''
         this.contractFlag=7
       }
+      this.deptBudgetList = {
+                          type: '',
+                          freight: 0,
+                          cost: '',
+                          addressUrl: '',
+                          tidalGrainPrice: 0,
+                          buckleWeightRatio: 0,
+                          natureOfGrainPurchase: '贸易粮',
+                          buckleMiscellaneous: 0,
+                          paramType: 1,
+                          warehouseInOutDetail: {
+                            grade: '',
+                            reGrade: '',
+                            imperfectGrain: '',
+                            reImperfectGrain: '',
+                            impurity: '',
+                            reImpurity: '',
+                            jiaorenli: '',
+                            reJiaorenli: '',
+                            bulkDensity: '',
+                            reBulkDensity: '',
+                            mildewGrain: '',
+                            reMildewGrain: '',
+                          },
+                          disablednotarize: false,
+                          deductionAmount: 0,
+                          deductionWeight: 0,
+                          grossWeight: 0,
+                          tare: 0,
+                          grade: '',
+                          inOutDate: '',
+                          netWeight: 0,
+                          pureWeight: 0,
+                          waterContent: '',
+                          reWaterContent: '',
+                          reGrade: '',
+                          imperfectGrain: '',
+                          reImperfectGrain: '',
+                          impurity: '',
+                          reImpurity: '',
+                          jiaorenli: '',
+                          reJiaorenli: '',
+                          bulkDensity: '',
+                          reBulkDensity: '',
+                          reMemo: '',
+                          storageTagNo: '',
+                          mildewGrain: '',
+                          reMildewGrain: '',
+                          boxNo: '',
+                          boxNoOther: '',
+                          titleNo: '',
+                          titleNoOther: '',
+                          carNo:''
+                        }
       console.log(this.taskflag,22222222)
       getReceiptTaskNo({
             flag: this.taskflag,