|
@@ -63,6 +63,11 @@
|
|
|
:status="DictCache.COLOR.DELFLAG[text]"
|
|
|
:text="delFlagMap[text]" />
|
|
|
</span>
|
|
|
+ <span slot="status" slot-scope="text">
|
|
|
+ <badge
|
|
|
+ :status="DictCache.COLOR.SPARE_WARN_STATUS[text]"
|
|
|
+ :text="warnStatusMap[text]" />
|
|
|
+ </span>
|
|
|
</s-table>
|
|
|
<base-form ref="baseModal" @ok="handleOk"/>
|
|
|
<detail ref="detailModal"/>
|
|
@@ -96,12 +101,8 @@ export default {
|
|
|
type: Number,
|
|
|
default: -1
|
|
|
},
|
|
|
- minStock: {
|
|
|
- type: Boolean,
|
|
|
- default: true
|
|
|
- },
|
|
|
- maxStock: {
|
|
|
- type: Boolean,
|
|
|
+ warnStatusList: {
|
|
|
+ type: Array,
|
|
|
default: null
|
|
|
}
|
|
|
},
|
|
@@ -109,12 +110,12 @@ export default {
|
|
|
return {
|
|
|
companyList: {},
|
|
|
projectList: {},
|
|
|
+ warnStatusMap: {},
|
|
|
spareTypeTreeData: [],
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
filter: this.filter,
|
|
|
- minStock: this.minStock,
|
|
|
- maxStock: this.maxStock
|
|
|
+ warnStatusList: this.warnStatusList
|
|
|
},
|
|
|
// 表头
|
|
|
columns: [
|
|
@@ -173,6 +174,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '状态',
|
|
|
+ checked: true,
|
|
|
+ dataIndex: 'warnStatus',
|
|
|
+ scopedSlots: { customRender: 'status' }
|
|
|
+ },
|
|
|
{
|
|
|
title: '操作',
|
|
|
checked: true,
|
|
@@ -212,6 +219,7 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
// 下拉框map
|
|
|
+ this.warnStatusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.STORE_SPARE_WARN_STATUS)
|
|
|
this.delFlagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.DELFLAG)
|
|
|
this.tableOption()
|
|
|
queryDept({ nature: this.DictCache.VALUE.SYS_DEPT_NATURE.FEN_GONG_SI }).then(res => {
|
|
@@ -303,8 +311,7 @@ export default {
|
|
|
resetSearchForm () {
|
|
|
this.queryParam = {
|
|
|
filter: this.filter,
|
|
|
- minStock: this.minStock,
|
|
|
- maxStock: this.maxStock
|
|
|
+ warnStatusList: this.warnStatusList
|
|
|
}
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|