|
@@ -52,9 +52,9 @@
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="预警提示">
|
|
|
<v-select
|
|
|
- v-model="queryParam.warnTip"
|
|
|
- ref="warnTip"
|
|
|
- id="inventoryWarningList-warnTip"
|
|
|
+ v-model="queryParam.stockState"
|
|
|
+ ref="stockState"
|
|
|
+ id="inventoryWarningList-stockState"
|
|
|
code="STOCK_WARN_TIP"
|
|
|
placeholder="请选择预警提示"
|
|
|
allowClear
|
|
@@ -111,8 +111,8 @@
|
|
|
<span v-if="record.freezeQty">(冻结{{ record.freezeQty }})</span>
|
|
|
</template>
|
|
|
<!-- 预警提示 -->
|
|
|
- <template slot="warnTip" slot-scope="text, record">
|
|
|
- <span v-if="record.warnTipDictValue" :class="[record.warnTip=='OVERFLOW'?'yellow':record.warnTip=='NOT_ENOUGH'?'red':record.warnTip=='LACK'?'blue':record.warnTip=='NORMAL'?'green':'']">{{ record.warnTipDictValue }}</span>
|
|
|
+ <template slot="stockState" slot-scope="text, record">
|
|
|
+ <span v-if="record.stockStateDictValue" :class="[record.stockState=='OVERFLOW'?'yellow':record.stockState=='NOT_ENOUGH'?'red':record.stockState=='LACK'?'blue':record.stockState=='NORMAL'?'green':'']">{{ record.stockStateDictValue }}</span>
|
|
|
<span v-else>--</span>
|
|
|
</template>
|
|
|
<!-- 在途数 -->
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
productTypeSn1: undefined,
|
|
|
productTypeSn2: undefined,
|
|
|
productTypeSn3: undefined,
|
|
|
- warnTip: undefined
|
|
|
+ stockState: undefined
|
|
|
},
|
|
|
exportLoading: false, // 导出loading
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
{ title: '最大库存数(个)', scopedSlots: { customRender: 'upperLimit' }, width: 130, align: 'center' },
|
|
|
{ title: '最小库存数(个)', scopedSlots: { customRender: 'lowerLimit' }, width: 130, align: 'center' },
|
|
|
{ title: '差异数量', dataIndex: 'differenceNum', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '预警提示', scopedSlots: { customRender: 'warnTip' }, width: 100, align: 'center' },
|
|
|
+ { title: '预警提示', scopedSlots: { customRender: 'stockState' }, width: 100, align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
loadData: [],
|
|
@@ -340,7 +340,7 @@ export default {
|
|
|
this.queryParam.productTypeSn1 = undefined
|
|
|
this.queryParam.productTypeSn2 = undefined
|
|
|
this.queryParam.productTypeSn3 = undefined
|
|
|
- this.queryParam.warnTip = undefined
|
|
|
+ this.queryParam.stockState = undefined
|
|
|
this.pageNo = 1
|
|
|
this.pageSize = 10
|
|
|
this.paginationProps.total = 0
|