MrShi
2025-01-24 d1f08bfc65d459b893fb6d5134927e0c078d32e5
admin/src/views/stock/components/AssetSel.vue
@@ -1,5 +1,5 @@
<template>
  <GlobalWindow title="选择物料" :visible.sync="isShowModal" :confirm-working="isLoading" width="900px" @close="close"
  <GlobalWindow title="选择物料" :visible.sync="isShowModal" :confirm-working="isLoading" width="1000px" @close="close"
    @confirm="confirm">
    <el-form ref="searchForm" :model="searchForm" label-width="100px" inline>
      <el-form-item prop="code" label="物料信息">
@@ -10,7 +10,8 @@
          :options="cateList" :props="{
            label: 'name',
            value: 'id',
            children: 'childCategoryList'
            children: 'childCategoryList',
            checkStrictly: true
          }"></el-cascader>
      </el-form-item>
      <span>
@@ -87,7 +88,7 @@
      fn({
        capacity: pagination.pageSize,
        page: pagination.page,
        model: {...searchForm}
        model: {...searchForm,status: 0}
      }).then((res) => {
        this.listLoading = false
        this.list = res.records
@@ -120,6 +121,10 @@
    changeSel(e) {
      if (e && e.length == 2) {
        this.$set(this.searchForm, 'cateId', e[1])
        this.$set(this.searchForm, 'parentCateId', '')
      }else if((e && e.length == 1)){
        this.$set(this.searchForm, 'parentCateId', e[0])
        this.$set(this.searchForm, 'cateId', '')
      } else {
        this.$set(this.searchForm, 'cateId', '')
      }