Commit 2a050bb2 authored by Marcus's avatar Marcus

显示优惠详情

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