add
This commit is contained in:
parent
264c157bd7
commit
8abd1c7f17
|
@ -223,7 +223,7 @@
|
||||||
<el-button v-if="scope.row.paid === 0 && scope.row.is_del===0 && scope.row.activity_type != 2" type="text" size="small" @click="edit(scope.row.order_id)">编辑</el-button>
|
<el-button v-if="scope.row.paid === 0 && scope.row.is_del===0 && scope.row.activity_type != 2" type="text" size="small" @click="edit(scope.row.order_id)">编辑</el-button>
|
||||||
<el-button v-if="(scope.row.order_type == 0 || scope.row.order_type == 2) && scope.row.status === 0 && scope.row.paid === 1" type="text" size="small" @click="send(scope.row,scope.row.order_id)">发送货</el-button>
|
<el-button v-if="(scope.row.order_type == 0 || scope.row.order_type == 2) && scope.row.status === 0 && scope.row.paid === 1" type="text" size="small" @click="send(scope.row,scope.row.order_id)">发送货</el-button>
|
||||||
<el-button v-if="scope.row.is_del !== 0" type="text" size="small" @click.native="handleDelete(scope.row, scope.$index)">删除</el-button>
|
<el-button v-if="scope.row.is_del !== 0" type="text" size="small" @click.native="handleDelete(scope.row, scope.$index)">删除</el-button>
|
||||||
<el-button type="text" size="small" @click="onOrderOpenRefund(scope.row.order_id)">开启退款</el-button>
|
<el-button type="text" size="small" @click="onOrderOpenRefund(scope.row.order_id)">开启售后</el-button>
|
||||||
<el-button v-if="scope.row.order_type == 1 && scope.row.status === 0 && scope.row.paid === 1" type="text" size="small" @click.native="orderCancellation(scope.row.verify_code)">去核销</el-button>
|
<el-button v-if="scope.row.order_type == 1 && scope.row.status === 0 && scope.row.paid === 1" type="text" size="small" @click.native="orderCancellation(scope.row.verify_code)">去核销</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -703,9 +703,9 @@ export default {
|
||||||
this.getStoreList()
|
this.getStoreList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 开启退款
|
// 开启售后
|
||||||
onOrderOpenRefund(id) {
|
onOrderOpenRefund(id) {
|
||||||
this.$confirm('此操作将开启退款, 是否继续?', '提示', {
|
this.$confirm('此操作将开启售后, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
@ -714,7 +714,7 @@ export default {
|
||||||
if(res.status == '200'){
|
if(res.status == '200'){
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '开启退款!'
|
message: '开启售后!'
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
<el-form-item label="商品关键字:">
|
<el-form-item label="商品关键字:">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formValidate.keyword"
|
v-model="formValidate.keyword"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请输入商品关键字"
|
placeholder="请输入商品关键字"
|
||||||
size="small"
|
size="small"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
|
@ -70,6 +71,7 @@
|
||||||
<el-form-item label="是否为惠美乡村:">
|
<el-form-item label="是否为惠美乡村:">
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="formValidate.is_huimei"
|
v-model="formValidate.is_huimei"
|
||||||
|
:disabled='virStatus'
|
||||||
>
|
>
|
||||||
<el-radio :label="1" class="radio">是</el-radio>
|
<el-radio :label="1" class="radio">是</el-radio>
|
||||||
<el-radio :label="0">否</el-radio>
|
<el-radio :label="0">否</el-radio>
|
||||||
|
@ -195,6 +197,7 @@
|
||||||
v-model="videoLink"
|
v-model="videoLink"
|
||||||
size="small"
|
size="small"
|
||||||
class="perW50"
|
class="perW50"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请输入MP4格式的视频链接"
|
placeholder="请输入MP4格式的视频链接"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
|
@ -208,6 +211,7 @@
|
||||||
icon="ios-cloud-upload-outline"
|
icon="ios-cloud-upload-outline"
|
||||||
class="uploadVideo"
|
class="uploadVideo"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled='virStatus'
|
||||||
@click="zh_uploadFile"
|
@click="zh_uploadFile"
|
||||||
>
|
>
|
||||||
{{ videoLink ? "确认添加" : "上传视频" }}
|
{{ videoLink ? "确认添加" : "上传视频" }}
|
||||||
|
@ -244,12 +248,13 @@
|
||||||
size="small"
|
size="small"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
/> -->
|
/> -->
|
||||||
<el-select v-model="formValidate.unit_name" placeholder="请选择" class="perW50 mr10" clearable filterable="">
|
<el-select :disabled='virStatus' v-model="formValidate.unit_name" placeholder="请选择" class="perW50 mr10" clearable filterable="">
|
||||||
<el-option v-for="item in unitList" :key="item.label" :label="item.label" :value="item.label" />
|
<el-option v-for="item in unitList" :key="item.label" :label="item.label" :value="item.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled='virStatus'
|
||||||
@click="addUnit"
|
@click="addUnit"
|
||||||
>
|
>
|
||||||
添加单位
|
添加单位
|
||||||
|
@ -263,6 +268,7 @@
|
||||||
v-model="formValidate.store_info"
|
v-model="formValidate.store_info"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="3"
|
:rows="3"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请输入商品简介"
|
placeholder="请输入商品简介"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -299,6 +305,7 @@
|
||||||
v-model="formValidate.qualification.brands_name"
|
v-model="formValidate.qualification.brands_name"
|
||||||
placeholder="请输入品牌商标"
|
placeholder="请输入品牌商标"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled='virStatus'
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -306,6 +313,7 @@
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="商品来源:">
|
<el-form-item label="商品来源:">
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
|
:disabled='virStatus'
|
||||||
v-model="formValidate.qualification.commodity_type"
|
v-model="formValidate.qualification.commodity_type"
|
||||||
@input="handlCommodity('formValidate')"
|
@input="handlCommodity('formValidate')"
|
||||||
>
|
>
|
||||||
|
@ -320,6 +328,7 @@
|
||||||
<el-form-item label="企业名称:" prop="qualification.production_name">
|
<el-form-item label="企业名称:" prop="qualification.production_name">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formValidate.qualification.production_name"
|
v-model="formValidate.qualification.production_name"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请输入生产企业名称"
|
placeholder="请输入生产企业名称"
|
||||||
size="small"
|
size="small"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
|
@ -388,9 +397,9 @@
|
||||||
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
||||||
:id="'image' + file.uid"
|
:id="'image' + file.uid"
|
||||||
class="el-upload-list__item-thumbnail"
|
class="el-upload-list__item-thumbnail"
|
||||||
:src="file.response.data.src"
|
:src="file.url"
|
||||||
:ref="file.uid"
|
:ref="file.uid"
|
||||||
:preview-src-list="[file.response.data.src]"
|
:preview-src-list="[file.url]"
|
||||||
/>
|
/>
|
||||||
<span class="el-upload-list__item-actions">
|
<span class="el-upload-list__item-actions">
|
||||||
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
||||||
|
@ -428,9 +437,9 @@
|
||||||
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
||||||
:id="'image' + file.uid"
|
:id="'image' + file.uid"
|
||||||
class="el-upload-list__item-thumbnail"
|
class="el-upload-list__item-thumbnail"
|
||||||
:src="file.response.data.src"
|
:src="file.url"
|
||||||
:ref="file.uid"
|
:ref="file.uid"
|
||||||
:preview-src-list="[file.response.data.src]"
|
:preview-src-list="[file.url]"
|
||||||
/>
|
/>
|
||||||
<span class="el-upload-list__item-actions">
|
<span class="el-upload-list__item-actions">
|
||||||
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
||||||
|
@ -467,9 +476,9 @@
|
||||||
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
||||||
:id="'image' + file.uid"
|
:id="'image' + file.uid"
|
||||||
class="el-upload-list__item-thumbnail"
|
class="el-upload-list__item-thumbnail"
|
||||||
:src="file.response.data.src"
|
:src="file.url"
|
||||||
:ref="file.uid"
|
:ref="file.uid"
|
||||||
:preview-src-list="[file.response.data.src]"
|
:preview-src-list="[file.url]"
|
||||||
/>
|
/>
|
||||||
<span class="el-upload-list__item-actions">
|
<span class="el-upload-list__item-actions">
|
||||||
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
||||||
|
@ -507,9 +516,9 @@
|
||||||
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
|
||||||
:id="'image' + file.uid"
|
:id="'image' + file.uid"
|
||||||
class="el-upload-list__item-thumbnail"
|
class="el-upload-list__item-thumbnail"
|
||||||
:src="file.response.data.src"
|
:src="file.url"
|
||||||
:ref="file.uid"
|
:ref="file.uid"
|
||||||
:preview-src-list="[file.response.data.src]"
|
:preview-src-list="[file.url]"
|
||||||
/>
|
/>
|
||||||
<span class="el-upload-list__item-actions">
|
<span class="el-upload-list__item-actions">
|
||||||
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
||||||
|
@ -571,6 +580,7 @@
|
||||||
<el-form-item label="企业名称:" prop="qualification.import_name">
|
<el-form-item label="企业名称:" prop="qualification.import_name">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formValidate.qualification.import_name"
|
v-model="formValidate.qualification.import_name"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请输入进口/企业境内总代企业名称"
|
placeholder="请输入进口/企业境内总代企业名称"
|
||||||
size="small"
|
size="small"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
|
@ -814,6 +824,7 @@
|
||||||
<el-form-item label="商品规格:" props="spec_type">
|
<el-form-item label="商品规格:" props="spec_type">
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="formValidate.spec_type"
|
v-model="formValidate.spec_type"
|
||||||
|
:disabled='virStatus'
|
||||||
@change="onChangeSpec(formValidate.spec_type)"
|
@change="onChangeSpec(formValidate.spec_type)"
|
||||||
>
|
>
|
||||||
<el-radio :label="0" class="radio">单规格</el-radio>
|
<el-radio :label="0" class="radio">单规格</el-radio>
|
||||||
|
@ -1031,10 +1042,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-input
|
<el-input
|
||||||
v-if="formThead[iii].title === '商品编号'"
|
v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接' || formThead[iii].title === '售价' || formThead[iii].title === '市场价'"
|
||||||
v-model="scope.row[iii]"
|
v-model="scope.row[iii]"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled="virStatus&&formThead[iii].title === '依据链接'"
|
||||||
|
@input="handleCost(scope.row,iii,$event)"
|
||||||
class="priceBox"
|
class="priceBox"
|
||||||
/>
|
/>
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -1051,6 +1064,7 @@
|
||||||
type="number"
|
type="number"
|
||||||
min="0"
|
min="0"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled="formThead[iii].title === '成本价'"
|
||||||
class="priceBox"
|
class="priceBox"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
/>
|
/>
|
||||||
|
@ -1199,7 +1213,7 @@
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-input
|
<el-input
|
||||||
v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接' || formThead[iii].title === '售价'"
|
v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接' || formThead[iii].title === '售价' || formThead[iii].title === '市场价'"
|
||||||
v-model="scope.row[iii]"
|
v-model="scope.row[iii]"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -1211,6 +1225,7 @@
|
||||||
v-else
|
v-else
|
||||||
v-model="scope.row[iii]"
|
v-model="scope.row[iii]"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
type="number"
|
||||||
size="small"
|
size="small"
|
||||||
:disabled="formThead[iii].title === '成本价'"
|
:disabled="formThead[iii].title === '成本价'"
|
||||||
class="priceBox"
|
class="priceBox"
|
||||||
|
@ -1366,12 +1381,21 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-input
|
<!-- <el-input
|
||||||
v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接'"
|
v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接'"
|
||||||
v-model="scope.row[iii]"
|
v-model="scope.row[iii]"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
class="priceBox"
|
class="priceBox"
|
||||||
|
/> -->
|
||||||
|
<el-input
|
||||||
|
v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接' || formThead[iii].title === '售价' || formThead[iii].title === '市场价'"
|
||||||
|
v-model="scope.row[iii]"
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
:disabled="virStatus&&formThead[iii].title === '依据链接'"
|
||||||
|
@input="handleCost(scope.row,iii,$event)"
|
||||||
|
class="priceBox"
|
||||||
/>
|
/>
|
||||||
<el-input
|
<el-input
|
||||||
v-else-if="formThead[iii].title === '库存' && formValidate.type == 2"
|
v-else-if="formThead[iii].title === '库存' && formValidate.type == 2"
|
||||||
|
@ -1385,8 +1409,10 @@
|
||||||
v-else
|
v-else
|
||||||
v-model="scope.row[iii]"
|
v-model="scope.row[iii]"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
type="number"
|
||||||
size="small"
|
size="small"
|
||||||
class="priceBox"
|
class="priceBox"
|
||||||
|
:disabled="formThead[iii].title === '成本价'"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1480,6 +1506,7 @@
|
||||||
<el-checkbox-group
|
<el-checkbox-group
|
||||||
v-model="checkboxGroup"
|
v-model="checkboxGroup"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled='virStatus'
|
||||||
@change="onChangeGroup"
|
@change="onChangeGroup"
|
||||||
>
|
>
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
|
@ -1523,6 +1550,7 @@
|
||||||
<el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:">
|
<el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:">
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="deduction_set"
|
v-model="deduction_set"
|
||||||
|
:disabled='virStatus'
|
||||||
@change="changeIntergral(deduction_set)"
|
@change="changeIntergral(deduction_set)"
|
||||||
>
|
>
|
||||||
<el-radio :label="1" class="radio">单独设置</el-radio>
|
<el-radio :label="1" class="radio">单独设置</el-radio>
|
||||||
|
@ -1583,7 +1611,7 @@
|
||||||
<el-col v-if="deliveryList.length > 0" :span="24">
|
<el-col v-if="deliveryList.length > 0" :span="24">
|
||||||
<el-form-item label="送货方式:" prop="delivery_way">
|
<el-form-item label="送货方式:" prop="delivery_way">
|
||||||
<div class="acea-row">
|
<div class="acea-row">
|
||||||
<el-checkbox-group v-model="formValidate.delivery_way">
|
<el-checkbox-group :disabled='virStatus' v-model="formValidate.delivery_way">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="item in deliveryList"
|
v-for="item in deliveryList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
|
@ -1605,7 +1633,7 @@
|
||||||
:span="24"
|
:span="24"
|
||||||
>
|
>
|
||||||
<el-form-item label="是否包邮:">
|
<el-form-item label="是否包邮:">
|
||||||
<el-radio-group v-model="formValidate.delivery_free">
|
<el-radio-group :disabled='virStatus' v-model="formValidate.delivery_free">
|
||||||
<el-radio :label="0" class="radio">否</el-radio>
|
<el-radio :label="0" class="radio">否</el-radio>
|
||||||
<el-radio :label="1">是</el-radio>
|
<el-radio :label="1">是</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
@ -1626,6 +1654,7 @@
|
||||||
<el-select
|
<el-select
|
||||||
v-model="formValidate.temp_id"
|
v-model="formValidate.temp_id"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
>
|
>
|
||||||
|
@ -1638,6 +1667,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button
|
<el-button
|
||||||
class="ml15"
|
class="ml15"
|
||||||
|
:disabled='virStatus'
|
||||||
size="small"
|
size="small"
|
||||||
@click="addTem"
|
@click="addTem"
|
||||||
>添加运费模板</el-button>
|
>添加运费模板</el-button>
|
||||||
|
@ -1648,6 +1678,7 @@
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-form-item label="最少购买件数:">
|
<el-form-item label="最少购买件数:">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
|
:disabled='virStatus'
|
||||||
v-model="formValidate.once_min_count"
|
v-model="formValidate.once_min_count"
|
||||||
:min="0"
|
:min="0"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -1660,7 +1691,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="限购类型:">
|
<el-form-item label="限购类型:">
|
||||||
<el-radio-group v-model="formValidate.pay_limit">
|
<el-radio-group :disabled='virStatus' v-model="formValidate.pay_limit">
|
||||||
<el-radio :label="0" class="radio">不限购</el-radio>
|
<el-radio :label="0" class="radio">不限购</el-radio>
|
||||||
<el-radio :label="1">单次限购</el-radio>
|
<el-radio :label="1">单次限购</el-radio>
|
||||||
<el-radio :label="2">长期限购</el-radio>
|
<el-radio :label="2">长期限购</el-radio>
|
||||||
|
@ -1674,6 +1705,7 @@
|
||||||
v-model="formValidate.once_max_count"
|
v-model="formValidate.once_max_count"
|
||||||
:min="formValidate.once_min_count"
|
:min="formValidate.once_min_count"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled='virStatus'
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
placeholder="请输入购买件数"
|
placeholder="请输入购买件数"
|
||||||
/>
|
/>
|
||||||
|
@ -1686,6 +1718,7 @@
|
||||||
<el-form-item label="排序:">
|
<el-form-item label="排序:">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="formValidate.sort"
|
v-model="formValidate.sort"
|
||||||
|
:disabled='virStatus'
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -1886,6 +1919,7 @@
|
||||||
<el-form-item label="商品提报备注:">
|
<el-form-item label="商品提报备注:">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formValidate.remark"
|
v-model="formValidate.remark"
|
||||||
|
:disabled='virStatus'
|
||||||
placeholder="请输入商品提报备注"
|
placeholder="请输入商品提报备注"
|
||||||
size="small"
|
size="small"
|
||||||
class="pageWidth"
|
class="pageWidth"
|
||||||
|
@ -2174,6 +2208,7 @@ export default {
|
||||||
imageUrlPrefix: '',
|
imageUrlPrefix: '',
|
||||||
imageActionName: 'upfile',
|
imageActionName: 'upfile',
|
||||||
imageMaxSize: 2048000,
|
imageMaxSize: 2048000,
|
||||||
|
readonly:false,
|
||||||
imageAllowFiles: ['.png', '.jpg', '.jpeg', '.gif', '.bmp']
|
imageAllowFiles: ['.png', '.jpg', '.jpeg', '.gif', '.bmp']
|
||||||
},
|
},
|
||||||
optionsCate: {
|
optionsCate: {
|
||||||
|
@ -2284,16 +2319,16 @@ export default {
|
||||||
// required: true, message: '请上传生产许可证图片或者PDF', trigger: 'blur'
|
// required: true, message: '请上传生产许可证图片或者PDF', trigger: 'blur'
|
||||||
// }
|
// }
|
||||||
// ],
|
// ],
|
||||||
'qualification.trademarkList': [
|
// 'qualification.trademarkList': [
|
||||||
{
|
// {
|
||||||
required: true, message: '请上传商标注册证图片或者PDF', trigger: 'blur'
|
// required: true, message: '请上传商标注册证图片或者PDF', trigger: 'blur'
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
'qualification.authorizedList': [
|
// 'qualification.authorizedList': [
|
||||||
{
|
// {
|
||||||
required: true, message: '请上传销售授权及其他图片或者PDF', trigger: 'blur'
|
// required: true, message: '请上传销售授权及其他图片或者PDF', trigger: 'blur'
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
'qualification.commodityList': [
|
'qualification.commodityList': [
|
||||||
{
|
{
|
||||||
required: true, message: '请上传商品检测报告及相关文件图片或者PDF', trigger: 'blur'
|
required: true, message: '请上传商品检测报告及相关文件图片或者PDF', trigger: 'blur'
|
||||||
|
@ -2574,9 +2609,20 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleCost(val,i,e){
|
handleCost(val,i,e){
|
||||||
|
// console.log(val);
|
||||||
if(i=='price'){
|
if(i=='price'){
|
||||||
|
val.price=val.price.replace(/[^\d|\.]/g, '')
|
||||||
val.cost = (e * 0.6).toFixed(2)
|
val.cost = (e * 0.6).toFixed(2)
|
||||||
}
|
}
|
||||||
|
if(i=='ot_price'){
|
||||||
|
val.ot_price=val.ot_price.replace(/[^\d|\.]/g, '')
|
||||||
|
if(!val.price){
|
||||||
|
this.$message.error('成本价低于0')
|
||||||
|
}
|
||||||
|
if(+val.ot_price<val.price){
|
||||||
|
this.$message.error('市场价需大于或等于售价')
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handlCommodity(name) {
|
handlCommodity(name) {
|
||||||
console.log(this.importBusinessList);
|
console.log(this.importBusinessList);
|
||||||
|
@ -2863,6 +2909,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 选择店铺推荐商品
|
// 选择店铺推荐商品
|
||||||
openRecommend() {
|
openRecommend() {
|
||||||
|
if(this.virStatus) return this.$message.error('无法编辑')
|
||||||
this.recommendVisible = true
|
this.recommendVisible = true
|
||||||
},
|
},
|
||||||
getRecommend(selected) {
|
getRecommend(selected) {
|
||||||
|
@ -2874,6 +2921,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 删除店铺推荐商品
|
// 删除店铺推荐商品
|
||||||
deleteRecommend(index) {
|
deleteRecommend(index) {
|
||||||
|
if(this.virStatus) return this.$message.error('无法编辑')
|
||||||
this.goodList.splice(index, 1)
|
this.goodList.splice(index, 1)
|
||||||
},
|
},
|
||||||
addCoupon() {
|
addCoupon() {
|
||||||
|
@ -3410,6 +3458,7 @@ export default {
|
||||||
if (this.oneFormBatch[0].bar_code != null && this.oneFormBatch[0].bar_code != '') this.$set(val, 'bar_code', this.oneFormBatch[0].bar_code)
|
if (this.oneFormBatch[0].bar_code != null && this.oneFormBatch[0].bar_code != '') this.$set(val, 'bar_code', this.oneFormBatch[0].bar_code)
|
||||||
if (this.oneFormBatch[0].weight != null && this.oneFormBatch[0].weight != '') this.$set(val, 'weight', this.oneFormBatch[0].weight)
|
if (this.oneFormBatch[0].weight != null && this.oneFormBatch[0].weight != '') this.$set(val, 'weight', this.oneFormBatch[0].weight)
|
||||||
if (this.oneFormBatch[0].volume != null && this.oneFormBatch[0].volume != '') this.$set(val, 'volume', this.oneFormBatch[0].volume)
|
if (this.oneFormBatch[0].volume != null && this.oneFormBatch[0].volume != '') this.$set(val, 'volume', this.oneFormBatch[0].volume)
|
||||||
|
if (this.oneFormBatch[0].gist_url != null && this.oneFormBatch[0].gist_url != '') this.$set(val, 'gist_url', this.oneFormBatch[0].gist_url)
|
||||||
if (this.oneFormBatch[0].extension_one != null && this.oneFormBatch[0].extension_one != '') this.$set(val, 'extension_one', this.oneFormBatch[0].extension_one)
|
if (this.oneFormBatch[0].extension_one != null && this.oneFormBatch[0].extension_one != '') this.$set(val, 'extension_one', this.oneFormBatch[0].extension_one)
|
||||||
if (this.oneFormBatch[0].extension_two != null && this.oneFormBatch[0].extension_two != '') this.$set(val, 'extension_two', this.oneFormBatch[0].extension_two)
|
if (this.oneFormBatch[0].extension_two != null && this.oneFormBatch[0].extension_two != '') this.$set(val, 'extension_two', this.oneFormBatch[0].extension_two)
|
||||||
if (this.formValidate.type == 2) {
|
if (this.formValidate.type == 2) {
|
||||||
|
@ -3548,7 +3597,10 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
infoData(info) {
|
infoData(info) {
|
||||||
|
if(info.is_show){
|
||||||
|
this.myConfig.readonly = true
|
||||||
this.virStatus = true
|
this.virStatus = true
|
||||||
|
}
|
||||||
this.deduction_set = info.integral_rate == -1 ? -1 : 1;
|
this.deduction_set = info.integral_rate == -1 ? -1 : 1;
|
||||||
this.goodList = info.goodList || [];
|
this.goodList = info.goodList || [];
|
||||||
this.attrs = info.attr || [];
|
this.attrs = info.attr || [];
|
||||||
|
@ -3651,7 +3703,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 点击商品图
|
// 点击商品图
|
||||||
modalPicTap(tit, num, i) {
|
modalPicTap(tit, num, i) {
|
||||||
if(this.virStatus) return
|
if(tit !== "1" && this.virStatus) return
|
||||||
const _this = this;
|
const _this = this;
|
||||||
const attr = [];
|
const attr = [];
|
||||||
this.$modalUpload(function(img) {
|
this.$modalUpload(function(img) {
|
||||||
|
|
|
@ -231,7 +231,7 @@
|
||||||
复制商品
|
复制商品
|
||||||
</router-link>
|
</router-link>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item v-if="tableFrom.type !== '5'" @click.native="onEditLabel(scope.row)">编辑标签</el-dropdown-item>
|
<!-- <el-dropdown-item v-if="tableFrom.type !== '5'" @click.native="onEditLabel(scope.row)">编辑标签</el-dropdown-item> -->
|
||||||
<el-dropdown-item v-if="tableFrom.type != 5">
|
<el-dropdown-item v-if="tableFrom.type != 5">
|
||||||
<router-link :to="{path: roterPre + '/product/reviews/?product_id=' + scope.row.product_id}">
|
<router-link :to="{path: roterPre + '/product/reviews/?product_id=' + scope.row.product_id}">
|
||||||
查看评价
|
查看评价
|
||||||
|
|
|
@ -598,7 +598,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="商品操作记录" name="records">
|
<!-- <el-tab-pane label="商品操作记录" name="records">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<el-form size="small" label-width="80px">
|
<el-form size="small" label-width="80px">
|
||||||
<div class="acea-row">
|
<div class="acea-row">
|
||||||
|
@ -673,7 +673,7 @@
|
||||||
<el-pagination :page-size="recordForm.limit" :current-page="recordForm.page" layout="prev, pager, next, jumper" :total="recordData.total" @size-change="handleSizeChange" @current-change="pageChange" />
|
<el-pagination :page-size="recordForm.limit" :current-page="recordForm.page" layout="prev, pager, next, jumper" :total="recordData.total" @size-change="handleSizeChange" @current-change="pageChange" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane> -->
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
<div>
|
<div>
|
||||||
<!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
|
<!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
|
||||||
<!-- <div class="pay_type">请使用微信扫码支付</div> -->
|
<!-- <div class="pay_type">请使用微信扫码支付</div> -->
|
||||||
<div class="pay_price">¥{{ merData.margin }}元</div>
|
<div class="pay_price">¥{{ merData.service_cost }}元</div>
|
||||||
<div class="pay_time">支付账户名称: {{ merData.bank_info.bank_account_name }}</div>
|
<div class="pay_time">支付账户名称: {{ merData.bank_info.bank_account_name }}</div>
|
||||||
<div class="pay_time">开户银行: {{ merData.bank_info.bank_name }}</div>
|
<div class="pay_time">开户银行: {{ merData.bank_info.bank_name }}</div>
|
||||||
<div class="pay_time">银行卡号: {{ merData.bank_info.bank_account_code }}</div>
|
<div class="pay_time">银行卡号: {{ merData.bank_info.bank_account_code }}</div>
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
<div>
|
<div>
|
||||||
<!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
|
<!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
|
||||||
<!-- <div class="pay_type">请使用微信扫码支付</div> -->
|
<!-- <div class="pay_type">请使用微信扫码支付</div> -->
|
||||||
<div class="pay_price">¥{{ merData.margin }}元</div>
|
<div class="pay_price">¥{{ merData.goods_cost }}元</div>
|
||||||
<div class="pay_time">支付账户名称: {{ merData.bank_info.bank_account_name }}</div>
|
<div class="pay_time">支付账户名称: {{ merData.bank_info.bank_account_name }}</div>
|
||||||
<div class="pay_time">开户银行: {{ merData.bank_info.bank_name }}</div>
|
<div class="pay_time">开户银行: {{ merData.bank_info.bank_name }}</div>
|
||||||
<div class="pay_time">银行卡号: {{ merData.bank_info.bank_account_code }}</div>
|
<div class="pay_time">银行卡号: {{ merData.bank_info.bank_account_code }}</div>
|
||||||
|
|
Loading…
Reference in New Issue