Commit 1b3aa40d authored by Marcus's avatar Marcus

特价组件流程测试 readonly

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