zuozhengqing
2024-01-08 95b3446e38cc84c66883e4ae0e0c9985d6e3e722
src/components/makepager/CommonFormTableView.vue
@@ -185,7 +185,7 @@
                    style="width: 80%"
                    @change="
                      (val) => {
                        selLocationClick(val, item.prop)
                        selLocationClick(val, item.prop,scope.row)
                      }
                    "
                  >
@@ -479,6 +479,7 @@
      productId: "",
      initialPosition: "",
      formLocationList:[],
      toLocationList:[],
    }
  },
  created() {
@@ -640,19 +641,39 @@
        }
      })
    },
    // 设置子位置
    async setLocationList(jointName) {
      await getLocationList({
        jointName: jointName,
        page: 1,
        pageSize: 100
      }).then((res) => {
        if (res.code === 200) {
          // const list = res.data ? res.data : []
          this.selSonLocationOptions = res.data
          console.log(this.selSonLocationOptions,"看看变了没")
        }
      })
    // 设置子位置/源位置
    async setLocationList(jointName,tag) {
      if(tag==="fromLocation"){
        await getLocationList({
          jointName: jointName,
          page: 1,
          pageSize: 100
        }).then((res) => {
          if (res.code === 200) {
            this.selSonLocationOptions = res.data
          }
        })
      }else if(tag==="toLocation"){
        await getLocationList({
          jointName: jointName,
          page: 1,
          pageSize: 100
        }).then((res) => {
          if (res.code === 200) {
            this.selToLocationOptions = res.data
          }
        })
      }else{
        await getLocationList({
          jointName: jointName,
          page: 1,
          pageSize: 100
        }).then((res) => {
          if (res.code === 200) {
            this.selSonLocationOptions = res.data
          }
        })
      }
    },
    // 获取公司列表
    async getCompanyList() {