hyingbo
2025-07-09 2f519ead537a0b38019bbf64a6075cbb6e08f9b4
src/views/tms/modules/inboundOrder/JSelectSharpenListModal.vue
@@ -60,7 +60,11 @@
export default {
  name: 'JSelectToolingModal',
  components: {},
  props: {},
  props: {
    classifyId:{
        type:String
      }
  },
  data() {
    return {
      queryParam: {},
@@ -78,43 +82,37 @@
        {
          title: '工具编码',
          align: 'center',
          dataIndex: 'toolingNum',
          dataIndex: 'toolCode',
          sorter: true,
        },
        {
          title: '工具名称',
          align: 'center',
          dataIndex: 'toolingName',
          sorter: true,
        },
        {
          title: '唯一编码',
          title: '工具编号',
          align: 'center',
          dataIndex: 'onlyCode',
          sorter: true,
        },
        {
          title: '入库数量',
          title: '工具名称',
          align: 'center',
          dataIndex: 'inStorageQuantity',
          dataIndex: 'chineseName',
          sorter: true,
        },
        {
          title: '工具分类',
          title: '工具类型',
          align: 'center',
          dataIndex: 'toolingCategoryName',
          dataIndex: 'applicationTypeName',
          sorter: true,
        },
        {
          title: '规格型号',
          title: '型号/图号',
          align: 'center',
          dataIndex: 'model',
          dataIndex: 'toolModel',
          sorter: true,
        },
        {
          title: '单位',
         {
          title: '数量',
          align: 'center',
          dataIndex: 'unitName',
          dataIndex: 'quantity',
          sorter: true,
        },
      ],
@@ -135,17 +133,14 @@
        showSizeChanger: true,
        total: 0,
      },
      isorter: {
        column: 'num',
        order: 'desc',
      },
      departTree: [],
      visible: false,
      loading: false,
      url: {
        // list: '/base/tooling/list',
         list: '/sharpen/sharpenDetail/querySharpenList',
         list: '/tms/toolLedgerDetail/querySharpenTool',
      },
      classifyId:''
    }
  },
  computed: {
@@ -175,11 +170,12 @@
      let that = this
      this.loading = true
      let params = this.getQueryParams() //查询条件
      params["sharpenStatus"] = 1
      params.status = "5"
      params.classifyId = this.classifyId
      await getAction(this.url.list, params).then((res) => {
        if (res.success) {
          for (let i = 0; i < res.result.records.length; i++) {
            if (that.oldSlelectRows.indexOf(res.result.records[i].toolingId) > -1) {
            if (that.oldSlelectRows.indexOf(res.result.records[i].id) > -1) {
              res.result.records[i].distable = true
            } else {
              res.result.records[i].distable = false
@@ -200,7 +196,7 @@
      this.loadData(1)
    },
    getQueryParams() {
      let param = Object.assign({}, this.queryParam, this.isorter)
      let param = Object.assign({}, this.queryParam)
      param.field = this.getQueryField()
      param.pageNo = this.ipagination.current
      param.pageSize = this.ipagination.pageSize
@@ -228,10 +224,6 @@
    },
    handleTableChange(pagination, filters, sorter) {
      //TODO 筛选
      if (Object.keys(sorter).length > 0) {
        this.isorter.column = sorter.field
        this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc'
      }
      this.ipagination = pagination
      this.loadData()
    },