Commit ae171605 authored by Marcus's avatar Marcus

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

http://zentao.jdshangmen.com/bug-view-319.html
parent bf78f9f0
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
体积:{{ row.warehouseInInfoVO.volume }}<br> 体积:{{ row.warehouseInInfoVO.volume }}<br>
重量:{{ row.warehouseInInfoVO.weight }}Kg 重量:{{ row.warehouseInInfoVO.weight }}Kg
</template> </template>
<span v-else>展示没有入库信息</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -87,8 +88,8 @@ ...@@ -87,8 +88,8 @@
</el-table> </el-table>
<div style="text-align: center;margin-top: 80px"> <div style="text-align: center;margin-top: 80px">
<el-button type="primary" @click="toweight">申请重货优惠</el-button> <el-button type="primary" @click="toweight" v-if="hasWarehouseInInfo && order.transportId === 1">申请重货优惠</el-button>
<el-button type="primary" @click="tolight" >申请泡货优惠</el-button> <el-button type="primary" @click="tolight" v-if="hasWarehouseInInfo && order.transportId === 2">申请泡货优惠</el-button>
<el-button type="primary">关闭窗口</el-button> <el-button type="primary">关闭窗口</el-button>
</div> </div>
</el-card> </el-card>
...@@ -133,6 +134,7 @@ export default { ...@@ -133,6 +134,7 @@ export default {
unitList:[], unitList:[],
currencyList:[], currencyList:[],
productAttrList:[], productAttrList:[],
hasWarehouseInInfo: false
}; };
}, },
created() { created() {
...@@ -150,6 +152,11 @@ export default { ...@@ -150,6 +152,11 @@ export default {
getOrder(this.orderId).then(response => { getOrder(this.orderId).then(response => {
this.loading = false this.loading = false
this.order = response.data this.order = response.data
this.order.orderItemVOList.forEach(e => {
if (e.warehouseInInfoVO){
this.hasWarehouseInInfo = true
}
})
}) })
}, },
toweight(){ 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