|
@@ -31,6 +31,26 @@
|
|
</template>
|
|
</template>
|
|
<custList ref="custList" :isEnabled="true" @change="custChange"></custList>
|
|
<custList ref="custList" :isEnabled="true" @change="custChange"></custList>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
|
+ <a-form-model-item prop="showPrice">
|
|
|
|
+ <template slot="label">
|
|
|
|
+ <a-tooltip placement="top">
|
|
|
|
+ <template slot="title">
|
|
|
|
+ 1、非铺货产品,是指不是货架上的产品<br>
|
|
|
|
+ 2、终端会员价,对于汽修厂来说,即进货价<br>
|
|
|
|
+ 3、如果该产品在销售单里有销售记录,则使用最近一次销售价,如果没有销售记录,则使用箭冠总公司的终端会员价
|
|
|
|
+ </template>
|
|
|
|
+ 价格显示<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
|
|
|
|
+ </a-tooltip>
|
|
|
|
+ </template>
|
|
|
|
+ <a-select v-model="form.showPrice" placeholder="请选择价格显示">
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
+ 非铺货产品——显示价格
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option value="0">
|
|
|
|
+ 非铺货产品——不显示价格
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-model-item>
|
|
</a-form-model>
|
|
</a-form-model>
|
|
<div class="btn-cont">
|
|
<div class="btn-cont">
|
|
<a-button type="primary" id="shelfSet-basicInfo-modal-save" @click="handleSave">保存</a-button>
|
|
<a-button type="primary" id="shelfSet-basicInfo-modal-save" @click="handleSave">保存</a-button>
|
|
@@ -76,11 +96,13 @@ export default {
|
|
},
|
|
},
|
|
form: {
|
|
form: {
|
|
customerSn: undefined,
|
|
customerSn: undefined,
|
|
- shelfName: ''
|
|
|
|
|
|
+ shelfName: '',
|
|
|
|
+ showPrice: undefined
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
shelfName: [{ required: true, message: '请输入货架名称', trigger: 'change' }],
|
|
shelfName: [{ required: true, message: '请输入货架名称', trigger: 'change' }],
|
|
- customerSn: [{ required: true, message: '请选择关联客户', trigger: 'change' }]
|
|
|
|
|
|
+ customerSn: [{ required: true, message: '请选择关联客户', trigger: 'change' }],
|
|
|
|
+ showPrice: [{ required: true, message: '请选择价格显示', trigger: 'change' }]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -131,6 +153,7 @@ export default {
|
|
const _this = this
|
|
const _this = this
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
_this.form.shelfName = _this.nowData.shelfName
|
|
_this.form.shelfName = _this.nowData.shelfName
|
|
|
|
+ _this.form.showPrice = _this.nowData.showPrice
|
|
const custome = _this.nowData.customerEntity
|
|
const custome = _this.nowData.customerEntity
|
|
if (custome) {
|
|
if (custome) {
|
|
_this.form.customerSn = custome.customerSn || ''
|
|
_this.form.customerSn = custome.customerSn || ''
|