|
@@ -53,6 +53,7 @@
|
|
|
<template slot="shelfName" slot-scope="text, record">
|
|
|
{{record.shelfName}}
|
|
|
<a-badge count="已注销" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="record.state=='WRITE_OFF'"></a-badge>
|
|
|
+ <a-badge count="已暂停" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="record.state=='SUSPEND'"></a-badge>
|
|
|
</template>
|
|
|
<!-- 货位数量 -->
|
|
|
<template slot="shelfPlaceNum" slot-scope="text, record">
|
|
@@ -67,7 +68,8 @@
|
|
|
<a-switch
|
|
|
checkedChildren="是"
|
|
|
unCheckedChildren="否"
|
|
|
- v-if="record.finishFlag!=undefined&&record.state!='WRITE_OFF'&&record.state!='SUSPEND'"
|
|
|
+ :disabled="record.state=='WRITE_OFF'||record.state=='SUSPEND'"
|
|
|
+ v-if="record.finishFlag!=undefined"
|
|
|
@change="changeStatus(record)"
|
|
|
:checked="record.finishFlag == 1"
|
|
|
/>
|
|
@@ -80,7 +82,8 @@
|
|
|
<a-switch
|
|
|
checkedChildren="启用"
|
|
|
unCheckedChildren="停用"
|
|
|
- v-if="record.state!=undefined&&record.state!='WRITE_OFF'&&record.state!='SUSPEND'"
|
|
|
+ :disabled="record.state=='WRITE_OFF'||record.state=='SUSPEND'"
|
|
|
+ v-if="record.state!=undefined"
|
|
|
@change="enableShelf(record)"
|
|
|
:checked="record.state == 'ENABLE'"
|
|
|
/>
|