王震
2023-11-29 5fdedc928cd6970423cf024c43a99e522a44dbcf
src/views/warehouse/pallettransports/index.vue
@@ -573,14 +573,14 @@
              if (resData.code === 0) {
                this.innerVisible = false
                this.$message.success('添加移库明细成功')
                this.MobileLibrary()
                this.$emit('refreshDataList')
              } else {
                this.$message.error('添加移库明细失败')
              }
              this.palletTransportsMaterialSelectionChange()
            })
            .catch(() => {
            })
            // .catch(() => {
            // })
        }
    },
    // 添加ifs物料库存回调
@@ -710,20 +710,21 @@
      this.palletTransportsMaterialMultipleSelection.forEach(el =>{ids.push(el.id)})
      let pId = ids[ids.length - 1];
      console.log(pId);
      if(pId){
      this.palletTransportsDetailData = []
      this.datalistAPI = pId
      this.MobileLibrary()
    },
    MobileLibrary(){
      if(this.datalistAPI){
        selectAll({
            transportsId:this.currPalletTransportsRow.id,
            transportsMaterialId: pId
            transportsMaterialId: this.datalistAPI
          }).then((res) =>{
            console.log(res);
            if(res.data.data){
              this.palletTransportsDetailData.push(res.data.data)
            }else{
              this.palletTransportsDetailData = []
            }
            })
         }else{
          this.palletTransportsDetailData = []
         }
    },
    palletTransportsDetailSelectionChange(val) {