Commit 2a050bb2 authored by Marcus's avatar Marcus

显示优惠详情

parent f90f686b
......@@ -88,3 +88,12 @@ export function createOfferSpecial(data) {
data: data
})
}
// 特价详情
export function getOfferSpecial(offerProdId) {
return request({
url: '/ecw/offer/special/info/' + offerProdId + '?offerProdId=' + offerProdId,
method: 'get'
})
}
......@@ -6,10 +6,23 @@
<div slot="header" class="clearfix">
<span>优惠申请</span>
</div>
offerId: {{ form.offerId }}<br>
offerProdId: {{ form.offerProdId }}<br>
clearanceFreight: {{ form.clearanceFreight }}<br>
seaFreight: {{ form.seaFreight }}
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="offerId">
<el-input v-model="form.offerId" placeholder="placeholder"></el-input>
</el-form-item>
<el-form-item label="offerProdId">
<el-input v-model="form.offerProdId" placeholder="placeholder"></el-input>
</el-form-item>
<el-form-item label="clearanceFreight">
<el-input v-model="form.clearanceFreight" placeholder="placeholder"></el-input>
</el-form-item>
<el-form-item label="seaFreight">
<el-input v-model="form.seaFreight" placeholder="placeholder"></el-input>
</el-form-item>
</el-form>
<h3>
{{ JSON.stringify(follow) }}
</h3>
<div>
<el-button type="primary" @click="handleSubmit">提交</el-button>
</div>
......@@ -20,7 +33,7 @@
</template>
<script>
import {createOfferSpecial, getOffer} from "@/api/ecw/offer"
import {createOfferSpecial, getOffer, getOfferSpecial} from "@/api/ecw/offer"
export default {
name: "specialDiscount",
......@@ -46,6 +59,7 @@ export default {
seaFreight
}
})
this.getOfferSpecial()
},
data() {
return {
......@@ -56,7 +70,8 @@ export default {
"offerId": 0,
"offerProdId": 0,
"seaFreight": 0
}
},
follow: {}
}
},
methods: {
......@@ -64,6 +79,11 @@ export default {
createOfferSpecial(this.form).then(r => {
this.$message.success(r.msg || '提交成功')
})
},
getOfferSpecial(){
getOfferSpecial(this.form.offerProdId).then(r => {
this.follow = r.data
})
}
}
}
......
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