Commit ae171605 authored by Marcus's avatar Marcus

后台订单特价申请页面,未入仓时应该隐藏“申请重货优惠”和“申请泡货优惠”按钮

http://zentao.jdshangmen.com/bug-view-319.html
parent bf78f9f0
......@@ -36,6 +36,7 @@
体积:{{ row.warehouseInInfoVO.volume }}<br>
重量:{{ row.warehouseInInfoVO.weight }}Kg
</template>
<span v-else>展示没有入库信息</span>
</template>
</el-table-column>
<el-table-column
......@@ -87,8 +88,8 @@
</el-table>
<div style="text-align: center;margin-top: 80px">
<el-button type="primary" @click="toweight">申请重货优惠</el-button>
<el-button type="primary" @click="tolight" >申请泡货优惠</el-button>
<el-button type="primary" @click="toweight" v-if="hasWarehouseInInfo && order.transportId === 1">申请重货优惠</el-button>
<el-button type="primary" @click="tolight" v-if="hasWarehouseInInfo && order.transportId === 2">申请泡货优惠</el-button>
<el-button type="primary">关闭窗口</el-button>
</div>
</el-card>
......@@ -133,6 +134,7 @@ export default {
unitList:[],
currencyList:[],
productAttrList:[],
hasWarehouseInInfo: false
};
},
created() {
......@@ -150,6 +152,11 @@ export default {
getOrder(this.orderId).then(response => {
this.loading = false
this.order = response.data
this.order.orderItemVOList.forEach(e => {
if (e.warehouseInInfoVO){
this.hasWarehouseInInfo = true
}
})
})
},
toweight(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment