5个文件已修改
45 ■■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/SearchCommonView.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/pager/PagerView.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/components/AddPurchase.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -494,7 +494,7 @@
      }
    },
    commonInputChange(val, prop, row, scope) {
      if (prop === "amount") {
      if (prop === "amount"||prop=='purchasePrice') {
        this.tableList.tableData.map((ite) => {
          if (ite.name === row.name) {
            ite.total = row.amount * row.purchasePrice
src/components/makepager/SearchCommonView.vue
@@ -174,7 +174,7 @@
  }
  .el-input__prefix,
  .el-input__suffix {
    height: 30px;
    // height: 30px;
  }
  .el-input__icon {
    line-height: 30px;
@@ -188,13 +188,13 @@
    }
    .el-input__suffix {
      // 处理前缀图标不垂直居中的问题
      height: auto;
      font-size: 15px;
      &-inner {
        flex-direction: row-reverse;
        -webkit-flex-direction: row-reverse;
        display: flex;
      }
      // height: auto;
      // font-size: 15px;
      // &-inner {
      //   flex-direction: row-reverse;
      //   -webkit-flex-direction: row-reverse;
      //   display: flex;
      // }
    }
    .el-input--suffix .el-input__inner {
      padding-right: 45px;
src/components/makepager/pager/PagerView.vue
@@ -4,6 +4,7 @@
      background
      :current-page="pagerOptions.currPage"
      :page-sizes="pageSizes"
      :pager-count="pagerCount"
      :page-size="pagerOptions.pageSize"
      :layout="layout"
      :total="pagerOptions.totalCount"
@@ -31,6 +32,11 @@
      type: Array,
      default: () => [5, 10, 20, 30, 40]
    },
     // 需要时奇数
     pagerCount:{
      type: Number,
      default: 7
    },
    layout: {
      type: String,
      default: "total, sizes, prev, pager, next, jumper"
src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -339,7 +339,7 @@
<script>
import CommonFormTableView from "@/components/makepager/CommonFormTableView"
import BomDialog from "@/components/makepager/BomDialog"
import { getProductList } from "@/api/productManage/product"
import { getProductListTwo } from "@/api/productManage/product"
import {
  addPurchase,
  updatePurchase,
@@ -637,7 +637,7 @@
              }
            } else {
              // 编辑
              getProductList({
              getProductListTwo({
                supplierId: this.editConfig.infomation.supplierId,
                page: 1,
                pageSize: 100
@@ -761,7 +761,7 @@
        this.supplierId = item.id
        this.editConfig.infomation.supplierId = item.id
      }
      await getProductList({
      await getProductListTwo({
        supplierId: item.id,
        page: 1,
        pageSize: 100
@@ -778,7 +778,7 @@
    },
    async selClient(row) {
      this.$refs.tableRef.supplierId=row.id
      await getProductList({
      await getProductListTwo({
        supplierId: row.id,
        page: 1,
        pageSize: 100
@@ -800,7 +800,7 @@
        this.$set(this.editConfig.infomation, "supplierName", "")
        this.supplierId = null
        this.$forceUpdate()
        await getProductList({
        await getProductListTwo({
        page: 1,
        pageSize: 100
      }).then((res) => {
src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue
@@ -32,7 +32,7 @@
        </TableCommonView>
        <div slot="footer" class="dialog-footer">
          <div class="btn-pager">
            <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
            <PagerView class="page" :pagerCount="5"  :layout="'total, sizes, prev, pager, next'" :pager-options="pagerOptions" v-on="pagerEvents" />
          </div>
        </div>
      </div>
@@ -123,11 +123,11 @@
      this.editConfig.editVisible = false
    },
    // 请求数据
    async getData(val, content) {
    async getData(val) {
      this.loading = true
      await getSupplierList({
        [val]: content,
        keyword: val,
        status:1,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
@@ -162,8 +162,9 @@
      this.$emit("selClient", row)
    },
    // 搜索
    searchClick(val, content) {
      this.getData(val.value, content)
    searchClick(val) {
      this.pagerOptions.currPage=1
      this.getData(val)
    },
    resetClick() {
      this.getData()