<!--同步库存(全量)-->
<template class="syncStock">
  <div></div>
</template>

<script>
  export default {
    name: 'syncStock',
    props: {
      objList: {
        type: Array,
        defalut: () => []
      },
      idArray: {
        type: Array,
        defalut: () => []
      },
      webid: {
        type: Number
      },
      tablename: {
        type: String
      },
      selectRowData: {
        type: Array,
        defalut: () => []
      }
    },
    async created() {
      const query = {
        id: this.idArray[0],
        type: 1,
      };
      const res = await this.service.storageContent.syncStockByPeople(query);
      console.log('syncStockIncrease::res', res);
      if (res.data.Code == 0) {
        this.$Message.success(res.data.Message || '同步库存(增量)成功!');
        this.$emit('closeActionDialog', true);
      } else {
        this.$Message.error(res.data.Message || '同步库存(增量)失败!');
        this.$emit('closeActionDialog', false);
      }
    }
  };
</script>

<style scoped>

</style>
