gjy 3 년 전
부모
커밋
1e96ed30ab

+ 13 - 3
src/views/warehouse/warehouseManagementDelivery.vue

@@ -251,7 +251,7 @@
             accept=".jpg, .jpeg, .png, .gif"
             accept=".jpg, .jpeg, .png, .gif"
             ><el-button size="small" type="primary">点击上传</el-button>
             ><el-button size="small" type="primary">点击上传</el-button>
           </el-upload>
           </el-upload>
-          <div v-if='deptBudgetList.addressUrl!=""'>
+          <div @click='imgBig(deptBudgetList.addressUrl)' v-if='deptBudgetList.addressUrl!=""'>
             <img style='width:100px;height:100px;' :src="deptBudgetList.addressUrl" alt="">
             <img style='width:100px;height:100px;' :src="deptBudgetList.addressUrl" alt="">
           </div>
           </div>
       <div class="small-title">化验数据(选填)</div>
       <div class="small-title">化验数据(选填)</div>
@@ -359,6 +359,9 @@
         >
         >
       </div>
       </div>
     </ws-form>
     </ws-form>
+    <!-- <div >
+      <img :src="img" alt="">
+    </div> -->
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
@@ -403,6 +406,8 @@ export default {
       // 年
       // 年
       year: '',
       year: '',
       deptBudgetTotal: 0,
       deptBudgetTotal: 0,
+      img:'',
+      imgshow:false,
       currentPage: 1,
       currentPage: 1,
       pageSize: 10,
       pageSize: 10,
       searchType: 1,
       searchType: 1,
@@ -468,6 +473,11 @@ export default {
   
   
   },
   },
   methods: {
   methods: {
+    imgBig(item){
+      console.log(item)
+      this.img=item
+      this.imgshow=true
+    },
       qualityInspectorChange(e){
       qualityInspectorChange(e){
       console.log(e)
       console.log(e)
     },
     },
@@ -1294,14 +1304,14 @@ export default {
       if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
       if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
         this.deptBudgetList.netWeight = Number(
         this.deptBudgetList.netWeight = Number(
           this.deptBudgetList.grossWeight - this.deptBudgetList.tare
           this.deptBudgetList.grossWeight - this.deptBudgetList.tare
-        )
+        ).toFixed(2)
       }
       }
     },
     },
     grossWeightchange(e) {
     grossWeightchange(e) {
       if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
       if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
         this.deptBudgetList.netWeight = Number(
         this.deptBudgetList.netWeight = Number(
           this.deptBudgetList.grossWeight - this.deptBudgetList.tare
           this.deptBudgetList.grossWeight - this.deptBudgetList.tare
-        )
+        ).toFixed(2)
       }
       }
     },
     },
     selectgoodsName(e) {
     selectgoodsName(e) {

+ 2 - 2
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -1254,14 +1254,14 @@
         if (this.dataList.grossWeight && this.dataList.tare) {
         if (this.dataList.grossWeight && this.dataList.tare) {
           this.dataList.netWeight = Number(
           this.dataList.netWeight = Number(
             this.dataList.grossWeight - this.dataList.tare
             this.dataList.grossWeight - this.dataList.tare
-          )
+          ).toFixed(2)
         }
         }
       },
       },
       grossWeightchange(e) {
       grossWeightchange(e) {
         if (this.dataList.grossWeight && this.dataList.tare) {
         if (this.dataList.grossWeight && this.dataList.tare) {
           this.dataList.netWeight = Number(
           this.dataList.netWeight = Number(
             this.dataList.grossWeight - this.dataList.tare
             this.dataList.grossWeight - this.dataList.tare
-          )
+          ).toFixed(2)
         }
         }
       },
       },
       selectgoodsName(e) {
       selectgoodsName(e) {

+ 2 - 2
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -1007,14 +1007,14 @@
         if (this.dataList.grossWeight && this.dataList.tare) {
         if (this.dataList.grossWeight && this.dataList.tare) {
           this.dataList.netWeight = Number(
           this.dataList.netWeight = Number(
             this.dataList.grossWeight - this.dataList.tare
             this.dataList.grossWeight - this.dataList.tare
-          )
+          ).toFixed(2)
         }
         }
       },
       },
       grossWeightchange(e) {
       grossWeightchange(e) {
         if (this.dataList.grossWeight && this.dataList.tare) {
         if (this.dataList.grossWeight && this.dataList.tare) {
           this.dataList.netWeight = Number(
           this.dataList.netWeight = Number(
             this.dataList.grossWeight - this.dataList.tare
             this.dataList.grossWeight - this.dataList.tare
-          )
+          ).toFixed(2)
         }
         }
       },
       },
       selectgoodsName(e) {
       selectgoodsName(e) {

+ 17 - 2
src/views/warehouse/warehouseManagementPerfectDelivery.vue

@@ -244,8 +244,8 @@
             accept=".jpg, .jpeg, .png, .gif"
             accept=".jpg, .jpeg, .png, .gif"
             ><el-button size="small" type="primary">点击上传</el-button>
             ><el-button size="small" type="primary">点击上传</el-button>
           </el-upload>
           </el-upload>
-          <div v-if='dataList.addressUrl!=""'>
-            <img style='width:100px;height:100px;' :src="dataList.addressUrl" alt="">
+          <div @click='imgBig(dataList.addressUrl)' v-if='dataList.addressUrl!=""'>
+            <img  style='width:100px;height:100px;' :src="dataList.addressUrl" alt="">
           </div>
           </div>
       <div class="small-title">化验数据(选填)</div>
       <div class="small-title">化验数据(选填)</div>
       <div class="inspector">
       <div class="inspector">
@@ -334,6 +334,13 @@
         >
         >
       </div>
       </div>
     </ws-form>
     </ws-form>
+  <el-dialog
+  title="提示"
+  :visible.sync="imgshow"
+  width="30%"
+  :before-close="handleClose">
+  <img :src="img" alt="">
+</el-dialog>
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
@@ -423,6 +430,8 @@ export default {
         month: dayjs().format('MM'),
         month: dayjs().format('MM'),
       },
       },
       contractList: [],
       contractList: [],
+      img:'',
+      imgshow:false,
       dataList: {
       dataList: {
         id: '',
         id: '',
         grossWeight: '',
         grossWeight: '',
@@ -431,6 +440,7 @@ export default {
         netWeight: '',
         netWeight: '',
         grade: '',
         grade: '',
         agent: '',
         agent: '',
+        
         carNo: '',
         carNo: '',
         inOutDate: '',
         inOutDate: '',
         inOutType: '',
         inOutType: '',
@@ -486,6 +496,11 @@ export default {
     console.log(this.dataList)
     console.log(this.dataList)
   },
   },
   methods: {
   methods: {
+    imgBig(item){
+      console.log(item)
+      this.img=item
+      this.imgshow=true
+    },
     pureweight(status){
     pureweight(status){
       console.log(this.deptBudgetList)
       console.log(this.deptBudgetList)
       if(this.deptBudgetList.netWeight&&this.deptBudgetList.tidalGrainWater&&this.deptBudgetList.solidGrainWater&&this.deptBudgetList.buckleWeightRatio){
       if(this.deptBudgetList.netWeight&&this.deptBudgetList.tidalGrainWater&&this.deptBudgetList.solidGrainWater&&this.deptBudgetList.buckleWeightRatio){

+ 2 - 2
src/views/warehouse/warehouseManagementPerfectput.vue

@@ -1275,14 +1275,14 @@ export default {
       if (this.dataList.grossWeight && this.dataList.tare) {
       if (this.dataList.grossWeight && this.dataList.tare) {
         this.dataList.netWeight = Number(
         this.dataList.netWeight = Number(
           this.dataList.grossWeight - this.dataList.tare
           this.dataList.grossWeight - this.dataList.tare
-        )
+        ).toFixed(2)
       }
       }
     },
     },
     grossWeightchange(e) {
     grossWeightchange(e) {
       if (this.dataList.grossWeight && this.dataList.tare) {
       if (this.dataList.grossWeight && this.dataList.tare) {
         this.dataList.netWeight = Number(
         this.dataList.netWeight = Number(
           this.dataList.grossWeight - this.dataList.tare
           this.dataList.grossWeight - this.dataList.tare
-        )
+        ).toFixed(2)
       }
       }
     },
     },
     selectgoodsName(e) {
     selectgoodsName(e) {

+ 1 - 1
src/views/warehouse/warehouseManagementPut.vue

@@ -1789,7 +1789,7 @@ export default {
           this.deptBudgetList.grossWeight -
           this.deptBudgetList.grossWeight -
             this.deptBudgetList.tare -
             this.deptBudgetList.tare -
             this.deptBudgetList.deductionWeight
             this.deptBudgetList.deductionWeight
-        )
+        ).toFixed(2)
       }
       }
     },
     },
     grossWeightchange(e) {
     grossWeightchange(e) {

+ 2 - 2
src/views/warehouse/warehouseManagementTare.vue

@@ -1317,14 +1317,14 @@
         if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
         if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
           this.deptBudgetList.netWeight = Number(
           this.deptBudgetList.netWeight = Number(
             this.deptBudgetList.grossWeight - this.deptBudgetList.tare
             this.deptBudgetList.grossWeight - this.deptBudgetList.tare
-          )
+          ).toFixed(2)
         }
         }
       },
       },
       grossWeightchange(e) {
       grossWeightchange(e) {
         if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
         if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
           this.deptBudgetList.netWeight = Number(
           this.deptBudgetList.netWeight = Number(
             this.deptBudgetList.grossWeight - this.deptBudgetList.tare
             this.deptBudgetList.grossWeight - this.deptBudgetList.tare
-          )
+          ).toFixed(2)
         }
         }
       },
       },
       selectgoodsName(e) {
       selectgoodsName(e) {