|
@@ -12,8 +12,9 @@
|
|
allowClear
|
|
allowClear
|
|
>
|
|
>
|
|
<a-spin v-if="fetching" slot="notFoundContent" size="small" />
|
|
<a-spin v-if="fetching" slot="notFoundContent" size="small" />
|
|
- <a-select-option v-for="item in data" :key="item.customerSn" :value="item.customerSn">
|
|
|
|
|
|
+ <a-select-option v-for="item in data" :key="item.customerSn" :value="item.customerSn" :disabled="isValidateEnabled ? item.enabledFlag=='0' : false">
|
|
{{ item.customerName }}
|
|
{{ item.customerName }}
|
|
|
|
+ <span v-if="isValidateEnabled && item.enabledFlag=='0'">(已禁用)</span>
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</template>
|
|
</template>
|
|
@@ -22,6 +23,10 @@ import debounce from 'lodash/debounce'
|
|
import { custList } from '@/api/customer'
|
|
import { custList } from '@/api/customer'
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
|
|
+ isValidateEnabled: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
this.lastFetchId = 0
|
|
this.lastFetchId = 0
|