|
@@ -119,6 +119,20 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="23">
|
|
|
+ <el-form-item label="回收折扣:" prop="discountRate">
|
|
|
+ <el-input v-model="addData.discountRate" type="number" placeholder="请输入回收折扣">
|
|
|
+ <template slot="append">%</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="23">
|
|
|
+ <el-form-item label="盲豆划线价:" >
|
|
|
+ <el-input v-model="addData.originPrice" type="number" placeholder="请输入盲豆数量">
|
|
|
+ <template slot="append">盲豆</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="23">
|
|
|
<el-form-item label="采购价格:" prop="cost">
|
|
|
<el-input v-model="addData.cost" type="number" placeholder="请输入商品采购价格">
|
|
@@ -192,7 +206,8 @@ export default {
|
|
|
goodsTagItemsList: [],
|
|
|
addData: {
|
|
|
multiSku: 0,
|
|
|
- description: ''
|
|
|
+ description: '',
|
|
|
+ originPrice: 0
|
|
|
},
|
|
|
createShow:false,
|
|
|
rules: {
|
|
@@ -210,6 +225,15 @@ export default {
|
|
|
{ required: true,message:'请输入盲豆数量', trigger: 'blur' },
|
|
|
{ pattern: /^([1-9]\d*)$/, message: "请输入正确盲豆数量", trigger: ["blur", "change"] }
|
|
|
],
|
|
|
+ discountRate: [
|
|
|
+ { required: true,message:'请输入回收折扣', trigger: 'blur' },
|
|
|
+ {
|
|
|
+ pattern:
|
|
|
+ /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
|
|
|
+ message: "请输入合法的数字,最多两位小数",
|
|
|
+ trigger: ["blur", "change"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
cost: [
|
|
|
{ required: false, message: '请输入采购价格', trigger: 'blur' },
|
|
|
{ pattern: /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/, message: "请输入正确的金额,最多两位小数", trigger: ["blur", "change"] }
|
|
@@ -254,11 +278,11 @@ export default {
|
|
|
this.getGoodsTagItems()
|
|
|
if (this.id) {
|
|
|
getGoodsDetail(this.id).then(res => {
|
|
|
- const { goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, value, exchangePrice, cost, quantity, description, skuList, categoryId, supplierId, shoppingLink, tagIds } = res.data
|
|
|
+ const { goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, value, exchangePrice, originPrice, discountRate, cost, quantity, description, skuList, categoryId, supplierId, shoppingLink, tagIds } = res.data
|
|
|
this.addData = {
|
|
|
value: accDiv(value, 100),
|
|
|
cost: cost == '' || cost == null ? '' : accDiv(cost, 100),
|
|
|
- goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, supplierId, shoppingLink, tagIds
|
|
|
+ goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, exchangePrice, discountRate, originPrice, quantity, description, skuList, categoryId, supplierId, shoppingLink, tagIds
|
|
|
}
|
|
|
if(description) {
|
|
|
this.$refs.editor.setContent(description)
|