Commit 1b3aa40d authored by Marcus's avatar Marcus

特价组件流程测试 readonly

parent 9eee52fe
......@@ -8,22 +8,22 @@
</div>
<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-input v-model="form.offerId" placeholder="placeholder" :readonly="readonly"></el-input>
</el-form-item>
<el-form-item label="offerProdId">
<el-input v-model="form.offerProdId" placeholder="placeholder"></el-input>
<el-input v-model="form.offerProdId" placeholder="placeholder" :readonly="readonly"></el-input>
</el-form-item>
<el-form-item label="clearanceFreight">
<el-input v-model="form.clearanceFreight" placeholder="placeholder"></el-input>
<el-input v-model="form.clearanceFreight" placeholder="placeholder" :readonly="readonly"></el-input>
</el-form-item>
<el-form-item label="seaFreight">
<el-input v-model="form.seaFreight" placeholder="placeholder"></el-input>
<el-input v-model="form.seaFreight" placeholder="placeholder" :readonly="readonly"></el-input>
</el-form-item>
</el-form>
<h3>
{{ JSON.stringify(follow) }}
</h3>
<div>
<div v-if="!readonly">
<el-button type="primary" @click="handleSubmit">提交</el-button>
</div>
</el-card>
......@@ -38,7 +38,11 @@ import {createOfferSpecial, getOffer, getOfferSpecial} from "@/api/ecw/offer"
export default {
name: "specialDiscount",
props: {
id: Number
id: Number,
readonly: {
type: Boolean,
default: false
}
},
created() {
// if(this.offerId){
......
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