pages/caigouruku/form.vue
@@ -239,6 +239,9 @@
   import {
      CommonUtils
   } from '../../utils/common';
   import {
      getUserStockRelation
   } from "@/utils/userRelationManager.js"
   export default {
      data() {
         return {
@@ -337,13 +340,36 @@
            this.getNewData()
            this.HSourceBillNoFocus = true
         }
         this.getHBaseList()
         this.getHSupList()
         this.getHEmpList()
         this.getHDeptList()
         this.GetSourceBillType()
         this.getRelationStore()
      },
      methods: {
         async getRelationStore() {
            let {
               data,
               count
            } = await getUserStockRelation()
            if (count == 1) {
               this.arrayHWHName = []
               this.HWHNameList = []
               Array.from(data).forEach(elem => {
                  console.log(elem.HItemID);
                  this.arrayHWHName.push(elem.HName)
                  this.HWHNameList.push({
                     HItemID: elem.HItemID,
                     HName: elem.HName,
                     HNumber: elem.HNumber,
                     "仓库名称": elem.HName
                  })
               })
            } else {
               this.getHBaseList()
            }
         },
         async refreshHSourceBillState() {
            this.HSourceBillNoFocus = false
            await this.$nextTick(() => {
@@ -559,7 +585,7 @@
                     Message
                  } = res.data
                  if (count == 1) {
                     console.log('data: ', data);
                     // console.log('data: ', data);
                     this.arrayHMainSourceBillType = []
                     this.arrayHMainSourceBillValue = []
                     Array.from(data).forEach(e => {
@@ -569,7 +595,7 @@
                     this.arrayHMainSourceBillType.push('手工录入')
                     this.arrayHMainSourceBillValue.push('-1')
                     this.HMainSourceBillType = this.arrayHMainSourceBillType[0]
                     this.hform.HMainSourceBillType = this.arrayHMainSourceBillValue[0]
                  } else {