|
@@ -9,11 +9,7 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="t('product.productName')" prop="store_name">
|
|
<el-form-item :label="t('product.productName')" prop="store_name">
|
|
|
- <el-input
|
|
|
|
|
- v-model="formValidate.store_name"
|
|
|
|
|
- class="input-width"
|
|
|
|
|
- :placeholder="t('common.enterProductName')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-input v-model="formValidate.store_name" class="input-width" :placeholder="t('common.enterProductName')" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="t('product.productCategory')" prop="cate_id">
|
|
<el-form-item :label="t('product.productCategory')" prop="cate_id">
|
|
|
<el-select v-model="formValidate.cate_id" :placeholder="t('common.selectCategory')">
|
|
<el-select v-model="formValidate.cate_id" :placeholder="t('common.selectCategory')">
|
|
@@ -32,6 +28,12 @@
|
|
|
<el-form-item :label="t('product.marketPrice')" prop="otPrice">
|
|
<el-form-item :label="t('product.marketPrice')" prop="otPrice">
|
|
|
<el-input v-model="formValidate.otPrice" class="input-width" :placeholder="t('common.enterMarketPrice')" />
|
|
<el-input v-model="formValidate.otPrice" class="input-width" :placeholder="t('common.enterMarketPrice')" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="商品税前价格" prop="priceBeforeTax">
|
|
|
|
|
+ <el-input v-model="formValidate.priceBeforeTax" class="input-width" placeholder="" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="税率" prop="taxRate">
|
|
|
|
|
+ <el-input v-model="formValidate.taxRate" class="input-width" placeholder="" />
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item :label="t('product.stock')" prop="stock">
|
|
<el-form-item :label="t('product.stock')" prop="stock">
|
|
|
<el-input v-model="formValidate.stock" class="input-width" :placeholder="t('common.enterStock')" />
|
|
<el-input v-model="formValidate.stock" class="input-width" :placeholder="t('common.enterStock')" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -48,12 +50,7 @@
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="t('product.productDescription')" prop="store_info">
|
|
<el-form-item :label="t('product.productDescription')" prop="store_info">
|
|
|
- <el-input
|
|
|
|
|
- type="textarea"
|
|
|
|
|
- rows="5"
|
|
|
|
|
- v-model="formValidate.store_info"
|
|
|
|
|
- :placeholder="t('common.enterProductDescription')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-input type="textarea" rows="5" v-model="formValidate.store_info" :placeholder="t('common.enterProductDescription')" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane :label="t('product.productSpec')" name="two">
|
|
<el-tab-pane :label="t('product.productSpec')" name="two">
|
|
@@ -69,9 +66,7 @@
|
|
|
<el-form-item :label="t('product.selectSpec')" prop="">
|
|
<el-form-item :label="t('product.selectSpec')" prop="">
|
|
|
<div class="acea-row row-middle">
|
|
<div class="acea-row row-middle">
|
|
|
<el-select v-model="formValidate.selectRule">
|
|
<el-select v-model="formValidate.selectRule">
|
|
|
- <el-option v-for="(item, index) in ruleList" :value="item.ruleName" :key="index">{{
|
|
|
|
|
- item.ruleName
|
|
|
|
|
- }}</el-option>
|
|
|
|
|
|
|
+ <el-option v-for="(item, index) in ruleList" :value="item.ruleName" :key="index">{{ item.ruleName }}</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
<el-button type="primary" class="mr20" @click="confirm">{{ t('common.confirm') }}</el-button>
|
|
<el-button type="primary" class="mr20" @click="confirm">{{ t('common.confirm') }}</el-button>
|
|
|
</div>
|
|
</div>
|
|
@@ -96,11 +91,7 @@
|
|
|
@close="handleRemove2(item.detail, indexn)"
|
|
@close="handleRemove2(item.detail, indexn)"
|
|
|
>{{ j }}</el-tag
|
|
>{{ j }}</el-tag
|
|
|
>
|
|
>
|
|
|
- <el-input
|
|
|
|
|
- :placeholder="t('common.enterSpecName')"
|
|
|
|
|
- v-model="item.detail.attrsVal"
|
|
|
|
|
- style="width: 150px"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-input :placeholder="t('common.enterSpecName')" v-model="item.detail.attrsVal" style="width: 150px">
|
|
|
<template #append>
|
|
<template #append>
|
|
|
<el-button type="primary" @click="createAttr(item.detail.attrsVal, index)">{{
|
|
<el-button type="primary" @click="createAttr(item.detail.attrsVal, index)">{{
|
|
|
t('common.addAttribute')
|
|
t('common.addAttribute')
|
|
@@ -113,9 +104,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="24" v-if="createBnt">
|
|
<el-col :span="24" v-if="createBnt">
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="md-add" @click="addBtn" class="mr15">{{
|
|
|
|
|
- t('common.addNewSpec')
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" icon="md-add" @click="addBtn" class="mr15">{{ t('common.addNewSpec') }}</el-button>
|
|
|
<el-button type="success" @click="generate">{{ t('common.generateNow') }}</el-button>
|
|
<el-button type="success" @click="generate">{{ t('common.generateNow') }}</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -225,12 +214,7 @@
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane :label="t('product.productDetails')" name="three">
|
|
<el-tab-pane :label="t('product.productDetails')" name="three">
|
|
|
<el-form-item :label="t('product.productDescription')">
|
|
<el-form-item :label="t('product.productDescription')">
|
|
|
- <vue-ueditor-wrap
|
|
|
|
|
- v-model="formValidate.description"
|
|
|
|
|
- :config="myConfig"
|
|
|
|
|
- @before-init="addCustomDialog"
|
|
|
|
|
- style="width: 90%"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <vue-ueditor-wrap v-model="formValidate.description" :config="myConfig" @before-init="addCustomDialog" style="width: 90%" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<!-- <el-tab-pane label="物流设置" name="four">
|
|
<!-- <el-tab-pane label="物流设置" name="four">
|
|
@@ -266,9 +250,7 @@
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<el-button v-if="activeName !== 'one'" @click="upTab">{{ t('common.previousStep') }}</el-button>
|
|
<el-button v-if="activeName !== 'one'" @click="upTab">{{ t('common.previousStep') }}</el-button>
|
|
|
<el-button type="primary" v-if="activeName !== 'four'" @click="downTab">{{ t('common.nextStep') }}</el-button>
|
|
<el-button type="primary" v-if="activeName !== 'four'" @click="downTab">{{ t('common.nextStep') }}</el-button>
|
|
|
- <el-button v-if="activeName == 'four'" @click="submitForm" type="primary" :disabled="formLoading">{{
|
|
|
|
|
- t('common.save')
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="activeName == 'four'" @click="submitForm" type="primary" :disabled="formLoading">{{ t('common.save') }}</el-button>
|
|
|
<el-button @click="dialogVisible = false">{{ t('common.cancel') }}</el-button>
|
|
<el-button @click="dialogVisible = false">{{ t('common.cancel') }}</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</Dialog>
|
|
</Dialog>
|
|
@@ -345,6 +327,8 @@ const formValidate = ref({
|
|
|
is_show: 1,
|
|
is_show: 1,
|
|
|
price: 0,
|
|
price: 0,
|
|
|
otPrice: 0,
|
|
otPrice: 0,
|
|
|
|
|
+ priceBeforeTax: 0,
|
|
|
|
|
+ taxRate: 0,
|
|
|
stock: 0,
|
|
stock: 0,
|
|
|
is_new: 0,
|
|
is_new: 0,
|
|
|
postage: 0,
|
|
postage: 0,
|
|
@@ -628,6 +612,8 @@ const resetForm = () => {
|
|
|
price: undefined,
|
|
price: undefined,
|
|
|
vipPrice: undefined,
|
|
vipPrice: undefined,
|
|
|
otPrice: undefined,
|
|
otPrice: undefined,
|
|
|
|
|
+ priceBeforeTax: undefined,
|
|
|
|
|
+ taxRate: undefined,
|
|
|
postage: undefined,
|
|
postage: undefined,
|
|
|
unitName: undefined,
|
|
unitName: undefined,
|
|
|
sort: undefined,
|
|
sort: undefined,
|
|
@@ -672,6 +658,8 @@ const resetForm = () => {
|
|
|
is_show: 1,
|
|
is_show: 1,
|
|
|
price: 0,
|
|
price: 0,
|
|
|
otPrice: 0,
|
|
otPrice: 0,
|
|
|
|
|
+ priceBeforeTax: 0,
|
|
|
|
|
+ taxRate: 0,
|
|
|
stock: 0,
|
|
stock: 0,
|
|
|
is_new: 0,
|
|
is_new: 0,
|
|
|
postage: 0,
|
|
postage: 0,
|
|
@@ -910,7 +898,7 @@ const clearAttr = () => {
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
-<style scoped >
|
|
|
|
|
|
|
+<style scoped>
|
|
|
.input-width {
|
|
.input-width {
|
|
|
width: 40%;
|
|
width: 40%;
|
|
|
}
|
|
}
|