|
@@ -13,13 +13,14 @@
|
|
|
<a-collapse-panel key="1">
|
|
|
<template slot="header">
|
|
|
<span>基础信息</span>
|
|
|
- <a-button icon="edit" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="openInfoModal = true">编辑</a-button>
|
|
|
+ <a-button icon="edit" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'&&basicInfoData.state!='SUSPEND'" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="openInfoModal = true">编辑</a-button>
|
|
|
</template>
|
|
|
<a-descriptions :column="2">
|
|
|
<a-descriptions-item label="货架名称">
|
|
|
{{ basicInfoData&&basicInfoData.shelfName || '--' }}
|
|
|
<a-badge count="已注销" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='WRITE_OFF'"></a-badge>
|
|
|
<a-badge count="已停用" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='DISABLED'"></a-badge>
|
|
|
+ <a-badge count="已暂停" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='SUSPEND'"></a-badge>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item>
|
|
|
<template slot="label">
|
|
@@ -80,7 +81,7 @@
|
|
|
</a-form>
|
|
|
</div>
|
|
|
<!-- 操作按钮 -->
|
|
|
- <div class="table-operator" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'">
|
|
|
+ <div class="table-operator" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'&&basicInfoData.state!='SUSPEND'">
|
|
|
<a-button id="shelfSet-addHW" type="primary" class="button-error" @click="addHW(1)">新增货位</a-button>
|
|
|
<a-button id="shelfSet-impoort" type="primary" class="button-info" @click="addHW(0)">批量导入货位</a-button>
|
|
|
<a-button id="shelfSet-import" type="primary" class="button-error" @click="openGuideModal=true">导入绑定产品</a-button>
|
|
@@ -246,7 +247,7 @@ export default {
|
|
|
{ title: '最大库容', dataIndex: 'shelfProductApiEntity.maxQty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '当前库存', dataIndex: 'shelfProductApiEntity.qty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
]
|
|
|
- if(this.basicInfoData&&this.basicInfoData.state!='WRITE_OFF'){
|
|
|
+ if(this.basicInfoData&&this.basicInfoData.state!='WRITE_OFF'&&this.basicInfoData.state!='SUSPEND'){
|
|
|
ret.push({ title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' })
|
|
|
}
|
|
|
return ret
|