gjy 2 年之前
父节点
当前提交
4f34fd71d2

+ 3 - 2
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -2600,8 +2600,7 @@ export default {
               this.deptBudgetList.warehouseName = this.warehouseName
               this.deptBudgetList.serviceManagementType = this.serviceManagementType
               this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
-              this.deptBudgetList.secretaryWeigher =
-                localStorage.getItem('ws-pf_staffName')
+              
               this.deptBudgetList.inOutFlag = 2
               this.deptBudgetList.pcFlag = 1
               this.deptBudgetList.statusFlag = 1
@@ -2610,6 +2609,8 @@ export default {
               }
               
               if (this.statusTypetext == '初检') {
+                this.deptBudgetList.agent =
+                localStorage.getItem('ws-pf_staffName')
                 addstorageputList(this.deptBudgetList)
                   .toPromise()
                   .then((response) => {

+ 2 - 0
src/views/houseSelfCollect/newWeighingManagement.vue

@@ -1463,6 +1463,8 @@
             }
             // 毛重
             if (this.tpyeNo == 1) {
+              this.deptBudgetList.secretaryWeigher =
+                localStorage.getItem('ws-pf_staffName')
               // console.log(this.weighingList)
               if (this.weighingList.customerNumberCard) {
                 //毛检保存前进行校验

+ 2 - 1
src/views/outboundManagement/newQualityInspectionManagement.vue

@@ -572,7 +572,8 @@
       print() {
         this.inspect.warehouseName = this.warehouseName
         // this.inspect.id = this.$route.query.id
-        this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
+        // 质检员
+        this.inspect.backOffice = localStorage.getItem('ws-pf_staffName')
         this.inspect.compId = localStorage.getItem('ws-pf_compId')
         // if (!this.inspect.grade) {
         //   this.$message({

+ 17 - 3
src/views/outboundManagement/weighingManagementNew.vue

@@ -1261,6 +1261,8 @@
             //   this.weighingList.buckleMiscellaneous = this.weighingList.buckleMiscellaneous / 1000
             // }
             if (this.tpyeNo == 1) {
+              this.deptBudgetList.skinInspector =
+                localStorage.getItem('ws-pf_staffName')
               //  this.weighingList.serviceManagementType=2
               this.weighingList.statusFlag = 1
               this.weighingList.relationId = this.relationId
@@ -1876,6 +1878,7 @@
           },
           inOutDate: ''
         }
+        this.getNowTime()
         this.weighingList.inOutTaskNo=e
         this.warehouseCount = this.warehouseCount1
         var data = null
@@ -1887,17 +1890,21 @@
             this.weighingList.goodsName = this.taskNolist[i].goodsName
             this.weighingList.tips = this.taskNolist[i].businessDescribe
             data = this.taskNolist[i]
+            
             if(this.taskNolist[i].inOutType=='移库出库'){
               this.weighingList.contractNo = this.taskNolist[i].moveTaskNo
               gettask({moveTaskNo:this.taskNolist[i].moveTaskNo,compId:localStorage.getItem('ws-pf_compId')}).toPromise().then((response) => {
-                console.log(response)
+                // console.log(response)
                 if(!response){
                   this.$message({
                       message: '联系内勤创建运输任务',
-                      type: 'warning'
+                      type: 'warning',
+                      
                     });
                 }
               })
+              this.carjudge=true
+              
               if(this.warehouseType == '1'){
                 this.recheckPrice = true
               }else{
@@ -1905,6 +1912,7 @@
               }
               
             }else{
+              this.carjudge=false
               if (this.taskNolist[i].contractNo) {
                 // console.log(this.taskNolist[i])
                 this.weighingList.contractNo = this.taskNolist[i].contractNo
@@ -1913,7 +1921,13 @@
               }
               this.recheckPrice = false
             }
-            
+            if (this.carjudge) {
+                this.weighingList.selfLoading = '1'
+                this.carChange1 = '识别下拉'
+              } else {
+                this.weighingList.selfLoading = '0'
+                this.carChange1 = '手动填写'
+              }
           }
         }
         // if (!data) return

+ 0 - 1
src/views/taskManagement/tranManagementWarehouseInOutTaskEdit.vue

@@ -926,7 +926,6 @@ export default {
             name: 'supplyofgoodsedit',
             query: {
               list: JSON.stringify(this.dataList.sourceRelationInfoList),
-              
             },
           })
         } else {

+ 38 - 23
src/views/warehousenew/inventoryCheck.vue

@@ -46,11 +46,11 @@
         <div>{{item.issuingTime}}</div>
         <div>{{item.warehouseName}}入库单<span v-if='item.warehouseType==2'>(临)</span></div>
         <div>
-          <ws-button type="primary" @click="profit(item.warehouseName)" v-hasPermission="
+          <ws-button type="primary" @click="profit(item.id)" v-hasPermission="
             `warehouseManagement.warehousingOrder.surplus`
           ">盘盈
         </ws-button>
-         <ws-button type="primary" @click="lose(item.warehouseName)" v-hasPermission="
+         <ws-button type="primary" @click="lose(item.id)" v-hasPermission="
             `warehouseManagement.warehousingOrder.loss`
           ">盘亏
         </ws-button>
@@ -59,7 +59,7 @@
       <el-table class="wenzi" :data="item.warehousingOrderList" style="width: 100%"   >
         <el-table-column  width="40">
           <template scope="scope">
-            <img v-if="!scope.row.select" style='width:15px;vertical-align: text-top;' @click='radiochange(index,scope.row)' src="../../../public/img/wxz.png" alt="">
+            <img v-if="!scope.row.select" style='width:15px;vertical-align: text-top;' @click='radiochange1(index,scope.row)' src="../../../public/img/wxz.png" alt="">
             <img v-if="scope.row.select" style='width:15px;vertical-align: text-top;' @click='radiochange(index,scope.row)' src="../../../public/img/xz.png" alt="">
             <!-- <el-radio @change='radiochange(scope.row)' :name='indexMethod()+index' v-model="scope.row.select" :label="scope.row.id"><span></span></el-radio> -->
              <!-- <el-radio :label="scope.row.id" v-model="scope.row.select" @change.native="radiochange(index,scope.row)">&nbsp;</el-radio> -->
@@ -332,23 +332,24 @@
         this.getList()
       },
       radiochange(index,row){
-        console.log(index,row)
+        console.log(index,row.select)
         var data=this.gainList[index].warehousingOrderList
-        
-        
-        if(row.select){
-          for (let i = 0; i < data.length; i++) {
+        for (let i = 0; i < data.length; i++) {
           data[i].select=false
           }
-          this.multipleSelection[row.warehouseName]=row
-        }else{
-          for (let i = 0; i < data.length; i++) {
+        row.select=!row.select
+        
+        console.log(this.multipleSelection)
+      },
+      radiochange1(index,row){
+        console.log(index,row.select)
+        var data=this.gainList[index].warehousingOrderList
+        for (let i = 0; i < data.length; i++) {
           data[i].select=false
           }
           row.select=!row.select
-        }
-        
-        // console.log(this.multipleSelection[row.warehouseName])
+        this.multipleSelection[row.id]=row
+        console.log(this.multipleSelection[row.id])
       },
        handleCurrentChange(val) {
         this.currentRow = val;
@@ -374,6 +375,7 @@
       },
       lose(ware){
         if(localStorage.getItem('ws-pf_roleName')=='销售内勤'||localStorage.getItem('ws-pf_roleName')=='采购内勤'){
+          console.log(this.multipleSelection[ware])
           if(this.multipleSelection[ware]){
             this.form.id=this.multipleSelection[ware].id
             this.form.workflowId=this.multipleSelection[ware].workflowId
@@ -381,10 +383,11 @@
             this.form.profitAndLoss=this.multipleSelection[ware].profitAndLoss
             this.title='盘亏'
             this.slecetwarehouseName=''
-            if(this.multipleSelection[ware].approveStatus){
+            // console.log(this.multipleSelection[ware].approveStatus,1111111111111)
+            if(this.multipleSelection[ware].inventoryStatus){
             this.$notify.warning({
               title: '警告',
-              message: '未选择要盘点的入库记录',
+              message: '当前数据审核中',
             })
             return
           }
@@ -396,6 +399,12 @@
               message: '未选择要盘点的入库记录',
             })
           }
+        }else{
+          this.$notify.warning({
+              title: '警告',
+              message: '暂无盘点权限',
+            })
+            return
         }
       },
       profit(ware){
@@ -406,10 +415,10 @@
           this.form.surplusWeight=this.multipleSelection[ware].surplusWeight
           this.form.profitAndLoss=this.multipleSelection[ware].profitAndLoss
           this.title='盘盈'
-          if(this.multipleSelection[ware].approveStatus){
+          if(this.multipleSelection[ware].inventoryStatus){
             this.$notify.warning({
               title: '警告',
-              message: '未选择要盘点的入库记录',
+              message: '当前数据审核中',
             })
             return
           }
@@ -421,6 +430,12 @@
               message: '未选择要盘点的入库记录',
             })
           }
+        }else{
+          this.$notify.warning({
+              title: '警告',
+              message: '暂无盘点权限',
+            })
+            return
         }
         
       },
@@ -604,13 +619,13 @@
               response.records[i].payshow=true
               var data=response.records[i].warehousingOrderList
               for (let q = 0; q < data.length; q++) {
-                if(data[q].inType=='收购入库'){
-                  data[q].inWarehouseWeight1=Number((data[q].inWarehouseWeight/1000).toFixed(3))
-                   data[q].surplusWeight=(data[q].inWarehouseWeight/1000)-data[q].outWarehouseWeight+data[q].profitAndLoss
-                }else{
+                // if(data[q].inType=='收购入库'){
+                //   data[q].inWarehouseWeight1=Number((data[q].inWarehouseWeight/1000).toFixed(3))
+                //    data[q].surplusWeight=(data[q].inWarehouseWeight/1000)-data[q].outWarehouseWeight+data[q].profitAndLoss
+                // }else{
                   data[q].inWarehouseWeight1=data[q].inWarehouseWeight.toFixed(3)
                   data[q].surplusWeight=data[q].inWarehouseWeight-data[q].outWarehouseWeight+data[q].profitAndLoss
-                }
+                // }
                 data[q].select=false
                 data[q].weightedit=false
                 data[q].warehouseType=response.records[i].warehouseType

+ 10 - 2
src/views/warehousenew/warehouseManagementRecord.vue

@@ -162,9 +162,17 @@
           </el-table-column>
           <el-table-column prop="wingNumberOther" label="车厢号-2">
           </el-table-column>
-          <el-table-column prop="agent" label="经办人">
+          <el-table-column prop="agent" label="检斤员">
+            <template slot-scope="scope">
+              <span v-if='scope.row.inOutFlag==2'>{{ scope.row.secretaryWeigher }}</span>
+              <span v-if='scope.row.inOutFlag==1'>{{ scope.row.skinInspector }}</span>
+            </template>
           </el-table-column>
-          <el-table-column prop="backOffice" label="操作人" width="120px">
+          <el-table-column prop="backOffice" label="质检员" width="120px">
+            <template slot-scope="scope">
+              <span v-if='scope.row.inOutFlag==2'>{{ scope.row.agent }}</span>
+              <span v-if='scope.row.inOutFlag==1'>{{ scope.row.backOffice }}</span>
+            </template>
           </el-table-column>
           <el-table-column prop="addressUrl" label="操作" width="100px">
             <template slot-scope="scope">