zhongtianhaoyuan 3 éve
szülő
commit
f95295dd92

+ 34 - 21
src/views/houseSelfCollect/inspectInfo.vue

@@ -148,11 +148,11 @@
             </ws-form-item>
           </ws-info-table>
           <div class="but">
-            <el-button @click="cancel" v-if="this.types != 2" type="primary">取消</el-button>
-            <el-button @click="print" v-if="this.types ==3 || this.types ==4 ||this.types ==1" type="primary">保存
+            <el-button @click="cancel" v-if="types != 2" type="primary">取消</el-button>
+            <el-button @click="print" v-if="types ==3 || types ==1" type="primary">保存
             </el-button>
-            <el-button @click="print" v-if="this.types ==5 " type="primary">确认并打印</el-button>
-            <el-button @click="cancel" v-if="this.types == 2" type="primary">关闭</el-button>
+            <el-button @click="print" v-if="types == 5 || types==4" type="primary">确认并打印</el-button>
+            <el-button @click="cancel" v-if="types == 2" type="primary">关闭</el-button>
           </div>
         </div>
       </ws-form>
@@ -431,9 +431,18 @@
                 .toPromise()
                 .then((response) => {
                   this.$message.success('修改成功')
-                  this.$router.push({
-                    path: 'inspectionManagement'
-                  })
+                  
+                  // this.$router.push({
+                  //   path: 'inspectionManagement'
+                  // })
+                   getinspectLook({
+                      id: this.inspect.id
+                    })
+                    .toPromise()
+                    .then((response) => {
+                      this.inspect = response
+                    })
+                  this.isShowPrint = true
                 })
             })
             .catch(() => {
@@ -489,20 +498,21 @@
           })
           return
         }
-        if (!this.inspect.storageTagNo) {
-          this.$message({
-            message: '囤位号不能为空',
-            type: 'warning',
-          })
-          return
-        }
-
-        if (this.inspect.storageTagNo.length > 10) {
-          this.$message({
-            message: '囤位号不超过10个字符',
-            type: 'warning',
-          })
-          return
+        // if (!this.inspect.storageTagNo) {
+        //   this.$message({
+        //     message: '囤位号不能为空',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
+        if(this.inspect.storageTagNo){
+            if (this.inspect.storageTagNo.length > 10) {
+            this.$message({
+              message: '囤位号不超过10个字符',
+              type: 'warning',
+            })
+            return
+          }
         }
         if (!this.inspect.carNumber) {
           this.$message({
@@ -661,6 +671,7 @@
           })
           return
         }
+        if( this.information != "编辑复检"){
         if (!this.inspect.waterContent) {
           this.$message({
             message: '水分不能为空',
@@ -683,6 +694,8 @@
           })
           return
         }
+        }
+        
         if (!this.inspect.mildewGrain) {
           this.$message({
             message: '霉变粒不能为空',

+ 5 - 5
src/views/houseSelfCollect/weighingManagement.vue

@@ -45,7 +45,7 @@
       <el-table-column prop="number" width="150" label="编号"></el-table-column>
       <el-table-column prop="customer" label="客户"></el-table-column>
       <el-table-column prop="carNumber" label="车牌号"></el-table-column>
-      <el-table-column prop="boxNo" label="箱号-1">
+      <!-- <el-table-column prop="boxNo" label="箱号-1">
         <template slot-scope="scope">
           <div v-if='scope.row.qualityInspectionManagement.boxNo'>{{scope.row.qualityInspectionManagement.boxNo}}</div>
         </template>
@@ -69,7 +69,7 @@
             {{scope.row.qualityInspectionManagement.titleNoOther}}
           </div>
         </template>
-      </el-table-column>
+      </el-table-column> -->
       <el-table-column prop="goodsName" label="货名"></el-table-column>
       <el-table-column prop="type" label="类型"></el-table-column>
       <el-table-column prop="grossWeight" label="毛重(公斤)" width="120"></el-table-column>
@@ -96,7 +96,7 @@
         </template>
       </el-table-column>
       <el-table-column prop="status" label="状态"></el-table-column>
-      <el-table-column width="300" prop="contractNo1" label="操作">
+      <el-table-column width="270" prop="contractNo1" label="操作">
         <template slot-scope="scope">
           <el-button @click="weightCheck(scope.row, 1)" v-if=" scope.row.status == '已称毛重' || scope.row.status == '已质检' "
             v-hasPermission="`acquisitionManagement.acquisitionWeight.mao`">毛重</el-button>
@@ -411,8 +411,8 @@
         this.getList()
       },
       isConfirmQuality(val) {
-        if (val.qualityInspectionManagement.confirm == '1'&&val.qualityInspectionManagement.warehouseName=='哈尔滨依兰库') return true;
-        return false
+        if (val.qualityInspectionManagement.confirm == '1'&&val.qualityInspectionManagement.warehouseName=='哈尔滨依兰库') return false;
+        return true
       },
       weightCheck(row, num) {
         console.log(this.cangid)

+ 6 - 1
src/views/houseSelfCollect/weightCheck.vue

@@ -977,8 +977,13 @@
   }
 
   /deep/.el-table .el-table__header .cell,
-  .el-table .el-table__body .cell {
+  /deep/.el-table .el-table__body .cell {
     text-align: center;
+    font-size: 16px;
+    // background: #f6f7fc;
+  }
+  /deep/.el-table td{
+   background: #e7e8ef; 
   }
 
   /deep/.el-table--enable-row-transition .el-table__body td {

+ 4 - 4
src/views/tradeServicesManagement/inOutRecord.vue

@@ -77,9 +77,9 @@
       </el-table-column>
       <el-table-column prop="goodsName" label="货名"> </el-table-column>
       <el-table-column prop="grossWeight" label="毛重(吨)"> 
-        <template slot-scope="scope">{{scope.grossWeight.toF}}</template>
+        <template slot-scope="scope">{{scope.grossWeight}}</template>
       </el-table-column>
-      <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
+      <el-table-column prop="tare" label="皮重(吨)">  </el-table-column>
       <el-table-column prop="weight" label="扣重(吨)"> </el-table-column>
       <el-table-column prop="netWeight" label="净重(吨)"> </el-table-column>
       <el-table-column prop="inOutType" label="类型"> </el-table-column>
@@ -93,8 +93,7 @@
           <el-button
             @click="handleLook(2, scope.row)"
             v-if="scope.row.inOutType == '收购入库'"
-            >查看</el-button
-          >
+            >查看</el-button>
         </template>
       </el-table-column>
       <el-table-column prop="inOutDate" label="出入库日期"> </el-table-column>
@@ -452,6 +451,7 @@ export default {
     }
   },
   activated() {
+    localStorage.setItem("pageUp","1")
     this.deptBudgetList.baseId = this.$route.query.baseId
     this.deptBudgetList.positionId = this.$route.query.positionId
     this.deptBudgetList.warehouseName = this.$route.query.warehouseName

+ 23 - 10
src/views/tradeServicesManagement/warehouseReceiptAdd.vue

@@ -48,7 +48,7 @@
           </el-option>
         </el-select>
       </el-form-item>
-      <el-form-item prop="goodsName" label="品级">
+      <el-form-item prop="grade" label="品级">
         <el-select v-model="deptBudgetList.grade" placeholder="请选择品级">
           <el-option label="一等" value="一等"></el-option>
           <el-option label="二等" value="二等"></el-option>
@@ -128,7 +128,8 @@
           renown: '',
           grade: '',
           bank: '',
-          three: ''
+          three: '',
+          goodsName:"",
         },
         size: 10,
         compId: '',
@@ -149,8 +150,12 @@
     activated() {
       this.compId = localStorage.getItem('ws-pf_compId')
       this.deptBudgetList.compId = this.compId
+      let i = localStorage.getItem("pageUp")
+      if(i != 1){
       this.getcompList()
       this.getList()
+      }
+      
     },
     methods: {
       inputChange(e) {
@@ -208,18 +213,24 @@
                  this.deptBudgetList.baseId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].baseId : ''
               }
               if(response[0].goodsNameInfos){
+                this.goodsList = []
                 for(let i = 0 ; i < response[0].goodsNameInfos.length ; i++){
                   if(response[0].goodsNameInfos[i].binNumber ==  this.deptBudgetList.warehouseNo ){
                     this.goodsList.push(response[0].goodsNameInfos[i])
                   }
                 }
-                console.log(this.goodsList)
-            // this.goodsList = response[0].goodsNameInfos
-            this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
-            this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
-            // this.deptBudgetList.goodsName = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsName : ''
-            this.deptBudgetList.goodsName = this.goodsList[0].goodsName
-            this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
+                if(this.goodsList.length > 0 ){
+                  this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
+                  this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
+                  this.deptBudgetList.goodsName = this.goodsList[0].goodsName
+                  this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
+                }else {
+                    this.deptBudgetList.nowWeight = ""
+                  this.deptBudgetList.useWeight = ""
+                  this.deptBudgetList.goodsName =""
+                  this.deptBudgetList.goodsNameKey = ""
+                }
+            
               }
               
             this.deptBudgetList.warehouseId = response[0].id
@@ -235,7 +246,7 @@
             this.deptBudgetList.goodsNameKey = _data[i].goodsNameKey
             this.deptBudgetList.goodsName = _data[i].goodsName
             this.deptBudgetList.nowWeight = _data[i].storage
-            this.deptBudgetList.useWeight =  _data[i].useStorag
+            this.deptBudgetList.useWeight =  _data[i].useStorage                                       
             return
           }
         }
@@ -400,6 +411,7 @@
           }).then(() => {
             addList(this.deptBudgetList).toPromise().then((response) => {
               // this.tableData = response.records
+              localStorage.removeItem("pageUp")
               this.$message.success('提交成功')
               this.$router.push({
                 path: 'warehouseReceiptRegulation'
@@ -423,6 +435,7 @@
           })
       },
       cancel() {
+        localStorage.removeItem("pageUp")
         this.$router.push({
           path: 'warehouseReceiptRegulation'
         })

+ 2 - 1
src/views/tradeServicesManagement/warehouseReceiptEdit.vue

@@ -214,6 +214,7 @@ import {
     selectWarehouseSelf,
   } from '@/model/houseSelfCollect/index'
 import WsUpload from '@/components/WsUpload'
+import { lastEachIterate } from 'xe-utils/methods'
 export default {
   components: {
     WsUpload,
@@ -239,7 +240,7 @@ export default {
     }
   },
   activated() {
-    
+     localStorage.removeItem("pageUp")//删除出入库跳返回时数据刷新的问题
     this.getList()
     this.getcompList()
     this.getWarehouse()

+ 1 - 0
src/views/tradeServicesManagement/warehouseReceiptLook.vue

@@ -305,6 +305,7 @@ export default {
     }
   },
   activated() {
+    localStorage.removeItem("pageUp")
     this.getList(this.$route.query.id)
     // this.getcompList()
   },

+ 1 - 0
src/views/tradeServicesManagement/warehouseReceiptRegulation.vue

@@ -108,6 +108,7 @@
       }
     },
     activated() {
+        localStorage.removeItem("pageUp")//删除出入库跳返回时数据刷新的问题
       // debugger
       // let i = localStorage.getItem('warehouseReceiptRegulation_selectShowType')
       // console.log(i)