重订货点击空白显示对象问题 位置模块编辑查看的时候点击当前库存跳转到位置报表并且把当前位置商品列出来
6个文件已修改
56 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/FormBtnsView.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/reorderRules/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportForm/locationReport/index.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouseManage/position/AddDialog.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouseManage/position/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -205,7 +205,9 @@
              <!-- 产品 -->
              <el-form-item v-else-if="item.product" label=" " :prop="'tableData.' + scope.$index + '.' + item.prop">
                <div class="custom-name">
                  <span v-if="scope.row.isEdit || scope.row.editable">{{ scope.row[item.prop] }}</span>
                  <span v-if="scope.row.isEdit || scope.row.editable">{{
                    scope.row[item.prop]?.label ?? scope.row[item.prop]
                  }}</span>
                  <el-select
                    v-else
                    v-model="scope.row[item.prop]"
src/components/makepager/FormBtnsView.vue
@@ -87,7 +87,7 @@
        <div class="right-label">已售</div>
      </div>
    </div> -->
    <div v-if="showPosition" class="sub-number no-cursor">
    <div v-if="showPosition" :class="showPositionCursor?'sub-number yes-cursor':'no-cursor sub-number'" @click="positionReport">
      <div class="left"><i class="el-icon-help"></i></div>
      <div class="right">
        <div class="right-one">当前库存</div>
@@ -129,6 +129,10 @@
      type: Boolean,
      default: true
    },
    showPositionCursor:{
      type: Boolean,
      default: false,
    },
    countObject: {
      type: Object,
      default: () => {
@@ -147,6 +151,9 @@
    return {}
  },
  methods: {
    positionReport(){
      this.$emit("positionReport")
    },
    // 进出
    inOutBoundClick() {
      this.$emit("inOutBoundClick")
src/views/productManage/reorderRules/index.vue
@@ -134,7 +134,7 @@
            }
            return {
              ...item,
              productName: item.product.name,
              productName: { label: item.product.name, value: item.product.id },
              locationName: item.location.name,
              isSet: false,
              isEdit: true,
src/views/reportForm/locationReport/index.vue
@@ -106,7 +106,8 @@
      },
      productId: this.$route.params.id,
      productName: this.$route.params.name,
      metaTitle: this.$route.meta.title
      metaTitle: this.$route.meta.title,
      keyWord:''
    }
  },
  created() {
@@ -218,20 +219,22 @@
        pageSize: this.pagerOptions.pageSize
      })
      }else{
        this.getLocationData({
        let params={
          page: this.pagerOptions.currPage,
          pageSize: this.pagerOptions.pageSize
        })
          pageSize: this.pagerOptions.pageSize,
          keyWord:this.keyWord,
        }
        if(this.$route.params.positionId){
          params.positionId=this.$route.params.positionId
        }
        this.getLocationData(params)
      }
    },
    // 搜索
    getList(val) {
      this.getLocationData({
        page: 1,
        pageSize: this.pagerOptions.pageSize,
        keyWord: val
      })
      this.keyWord=val
      this.getData()
    },
    // 行点击
    tableRowClick(row) {
src/views/warehouseManage/position/AddDialog.vue
@@ -32,7 +32,7 @@
        size="mini"
      >
        <div class="content-number-bg">
          <FormBtnsView :showPosition="true" :showWarehouse="false" @productClick="productClick" />
          <FormBtnsView :showPosition="true" :showPositionCursor="this.editConfig.title != '新建'?true:false" @positionReport="positionReport" :showWarehouse="false" @productClick="productClick" />
        </div>
        <div class="basic-info">
          <div class="basic-info-view">
@@ -241,6 +241,17 @@
        callback()
      }
    },
    // 当前库存
    positionReport(){
      if(this.editConfig.title != '新建'){
        this.$router.push({
          name: "locationReport",
          params: {
            positionId: this.editConfig.infomation.id
          }
        })
      }
    },
    // 路线
    productClick() {},
    // 设置删除/打印/编辑是否显示
src/views/warehouseManage/position/index.vue
@@ -124,12 +124,13 @@
    },
    // 请求数据
    async getData() {
      await getLocationList({
      let params={
        type: this.type,
        keyword: this.keyword,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        pageSize: this.pagerOptions.pageSize,
      }
      await getLocationList(params).then((res) => {
        if (res.code === 200) {
          const list = res.data ? res.data : []
          this.tableList.tableInfomation = list