智慧农业后台管理页面
tangzy
2022-05-30 cd70224e0a8d45c76bfc93ae18ac04765a92c3c1
src/views/soldrecord/soldrecord.vue
@@ -32,7 +32,7 @@
</template>
<script>
  import {getList, getDetail, add, update, remove} from "@/api/soldrecord/soldrecord";
  import {getList, getDetail, add, update, remove,getListbg} from "@/api/soldrecord/soldrecord";
  import {mapGetters} from "vuex";
  export default {
@@ -80,9 +80,7 @@
            {
              label: "农资类型",
              prop: "stype",
              addDisplay: false,
              searchLabelWidth: 80,
              searchSpan: 4,
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=stockType",
              props: {
@@ -90,11 +88,15 @@
                value: "dictKey"
              },
              dataType: "number",
              search: true,
            },
            {
              label: "厂家名称",
              prop: "factoryName",
              addDisplay: false,
            },
            {
              label: "出库类型",
              prop: "dic3",
              addDisplay: false,
            },
            {
@@ -235,9 +237,10 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        var datas = this.$route.query.stockId;
        params.stockId1=datas;
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
        var datas = this.$route.query;
        console.log(datas)
        params.stockId1=datas.stockId1;
        getListbg(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
          this.data = data.records;