|
|
@@ -12,8 +12,8 @@
|
|
|
ref="crud" :key="key" @on-load="onLoad" @selection-change="selectionChange" :before-open="beforeOpen"
|
|
|
@row-update="rowUpdate" @search-change="searchChange" @search-reset="resetChange"
|
|
|
@refresh-change="refreshChange" @row-del="rowDel"
|
|
|
- @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 273)"
|
|
|
- @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 273)" :page.sync="page">
|
|
|
+ @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 426)"
|
|
|
+ @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 426)" :page.sync="page">
|
|
|
<template slot="filesListForm">
|
|
|
<span style="font-size: 12px;">(图片文件像素推荐700X700,有且只允许有一张主图,其余均为副图)</span>
|
|
|
<c-upload :data="form.filesList" display basic deleteUrl="/api/blade-sales-part/productLaunchFiles/remove"
|
|
|
@@ -98,7 +98,7 @@
|
|
|
<el-input v-model="row.priceTwo" size="small" @change="selectChangefun($event, row)"></el-input>
|
|
|
<!-- <span v-else>{{ row.refreshChange | IntegerFormat }}</span> -->
|
|
|
</template>
|
|
|
- <!--花纹-->
|
|
|
+ <!--规格-->
|
|
|
<template slot-scope="{row}" slot="brandItem">
|
|
|
<!--<el-select-->
|
|
|
<!-- v-model="row.brandItem"-->
|
|
|
@@ -152,8 +152,8 @@
|
|
|
<el-button @click="dialogVisibles = false" :loading="saveLoading">取 消</el-button>
|
|
|
<el-button type="primary" @click="importGoods" v-if="commodityData !== true"
|
|
|
:loading="saveLoading">导入</el-button>
|
|
|
- <el-button type="primary" @click="importChoice" v-if="commodityData === true" :loading="saveLoading"
|
|
|
- :disabled="tableData.length !== 1">导入</el-button>
|
|
|
+ <!-- <el-button type="primary" @click="importChoice" v-if="commodityData === true" :loading="saveLoading"
|
|
|
+ :disabled="tableData.length !== 1">导入</el-button> -->
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="添加产品" v-if="excelBox" append-to-body :visible.sync="excelBox" :close-on-click-modal="false"
|
|
|
@@ -208,6 +208,7 @@ import {
|
|
|
getDetail,
|
|
|
remove,
|
|
|
productLaunch,
|
|
|
+ productLaunchPoints,
|
|
|
deptList, listAllP, groundingListZero
|
|
|
} from "@/api/tirePartsMall/basicData/listingManagement/index.js";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
@@ -339,16 +340,8 @@ export default {
|
|
|
disabled: true,
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
- }, {
|
|
|
- label: '花纹',
|
|
|
- prop: 'brandItem',
|
|
|
- disabled: true,
|
|
|
- search: true, // 是否搜索
|
|
|
- // type: 'select',
|
|
|
- // remote:true, // 是否为远程搜索
|
|
|
- // dicUrl:'/api/blade-sales-part/productLaunch/list?brandItem={{key}}', //key为当前输入值
|
|
|
- overHidden: true,
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '公司',
|
|
|
prop: 'salesCompanyName',
|
|
|
disabled: true,
|
|
|
@@ -362,7 +355,7 @@ export default {
|
|
|
}, {
|
|
|
label: '库存',
|
|
|
prop: 'inventory',
|
|
|
- disabled: true,
|
|
|
+ // disabled: true,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
@@ -391,8 +384,9 @@ export default {
|
|
|
label: 'cname',
|
|
|
value: 'id'
|
|
|
},
|
|
|
- dicUrl: '/api/blade-sales-part/brandDesc/listAll?type=PP&enableOrNot=1',
|
|
|
+ dicUrl: '/api/blade-sales-part/brandDesc/listAll?type=PP&enableOrNot=1&&whetherIntegral=1',
|
|
|
hide: true,
|
|
|
+ filterable: true,
|
|
|
disabled: true,
|
|
|
overHidden: false,
|
|
|
}, {
|
|
|
@@ -402,22 +396,22 @@ export default {
|
|
|
overHidden: false,
|
|
|
},
|
|
|
{
|
|
|
- label: "售价1",
|
|
|
+ label: "积分1",
|
|
|
prop: "priceOne",
|
|
|
hide: false,
|
|
|
overHidden: true,
|
|
|
}, {
|
|
|
- label: "售价2",
|
|
|
+ label: "积分2",
|
|
|
prop: "priceTwo",
|
|
|
hide: false,
|
|
|
overHidden: true,
|
|
|
}, {
|
|
|
- label: "售价3",
|
|
|
+ label: "积分3",
|
|
|
prop: "priceThree",
|
|
|
hide: false,
|
|
|
overHidden: true,
|
|
|
}, {
|
|
|
- label: "售价4",
|
|
|
+ label: "积分4",
|
|
|
prop: "priceFour",
|
|
|
hide: false,
|
|
|
overHidden: true,
|
|
|
@@ -446,55 +440,6 @@ export default {
|
|
|
overHidden: true,
|
|
|
span: 24,
|
|
|
}, {
|
|
|
- label: "防爆",
|
|
|
- prop: "explosionProof",
|
|
|
- display: false,
|
|
|
- search: true,
|
|
|
- hide: false,
|
|
|
- showColumn: true,
|
|
|
- span: 8,
|
|
|
- type: 'select',
|
|
|
- dicData: [{
|
|
|
- label: '否',
|
|
|
- value: 0
|
|
|
- }, {
|
|
|
- label: '是',
|
|
|
- value: 1
|
|
|
- }],
|
|
|
- }, {
|
|
|
- label: "静音棉",
|
|
|
- prop: "originalFactory",
|
|
|
- display: false,
|
|
|
- search: true,
|
|
|
- hide: false,
|
|
|
- showColumn: true,
|
|
|
- span: 8,
|
|
|
- type: 'select',
|
|
|
- dicData: [{
|
|
|
- label: '否',
|
|
|
- value: "0"
|
|
|
- }, {
|
|
|
- label: '是',
|
|
|
- value: "1"
|
|
|
- }],
|
|
|
- },
|
|
|
- {
|
|
|
- label: "自修补",
|
|
|
- prop: "selfRecovery",
|
|
|
- display: false,
|
|
|
- search: true,
|
|
|
- hide: false,
|
|
|
- showColumn: true,
|
|
|
- span: 8,
|
|
|
- type: 'select',
|
|
|
- dicData: [{
|
|
|
- label: '否',
|
|
|
- value: "0"
|
|
|
- }, {
|
|
|
- label: '是',
|
|
|
- value: "1"
|
|
|
- }],
|
|
|
- }, {
|
|
|
label: "商品详情",
|
|
|
prop: "detailsText",
|
|
|
hide: true,
|
|
|
@@ -509,15 +454,15 @@ export default {
|
|
|
// getCorpTypes().then(res=>{
|
|
|
// this.treeData = res.data.data
|
|
|
// })
|
|
|
- listAllP({whetherIntegral:"1"}).then(res => {
|
|
|
+ listAllP({ whetherIntegral: "1" }).then(res => {
|
|
|
this.treeData = res.data.data
|
|
|
})
|
|
|
this.onLoad(this.page, this.search)
|
|
|
},
|
|
|
async created() {
|
|
|
- this.option = await this.getColumnData(this.getColumnName(273), this.optionList);
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(426), this.optionList);
|
|
|
this.optionTwo = await this.getColumnData(
|
|
|
- this.getColumnName(280),
|
|
|
+ this.getColumnName(427),
|
|
|
this.optionTwo
|
|
|
);
|
|
|
isProcurement({ "param": "whether.model" }).then(res => {
|
|
|
@@ -554,17 +499,17 @@ export default {
|
|
|
// 导入
|
|
|
excelBoxfun(name) {
|
|
|
if (name == '名称') {
|
|
|
- this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/productLaunch/import-productLaunch'
|
|
|
+ this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/productLaunch/import-productLaunch?whetherIntegral=1'
|
|
|
this.templateUrl = '/api/blade-sales-part/productLaunch/export-productLaunch'
|
|
|
} else if (name == 'code') {
|
|
|
- this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/productLaunch/import-productLaunch-code'
|
|
|
+ this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/productLaunch/import-productLaunch-code?whetherIntegral=1'
|
|
|
this.templateUrl = '/api/blade-sales-part/productLaunch/export-productLaunch-code'
|
|
|
}
|
|
|
this.excelBox = true
|
|
|
},
|
|
|
// 导出
|
|
|
outExport() {
|
|
|
- let config = { params: { ...this.search } }
|
|
|
+ let config = { params: { ...this.search, whetherIntegral: 1 } }
|
|
|
if (config.params) {
|
|
|
for (const propName of Object.keys(config.params)) {
|
|
|
const value = config.params[propName];
|
|
|
@@ -667,7 +612,7 @@ export default {
|
|
|
derivation() {
|
|
|
window.open(
|
|
|
`${this.templateUrl}?${this.website.tokenHeader
|
|
|
- }=${getToken()}`
|
|
|
+ }=${getToken()}&whetherIntegral=1`
|
|
|
);
|
|
|
},
|
|
|
uploadAfter(res, done, loading, column) {
|
|
|
@@ -828,7 +773,7 @@ export default {
|
|
|
this.$message.error('请选择')
|
|
|
}
|
|
|
if (this.goodsListSave.some(item => item.priceOne == undefined || item.priceTwo == undefined || item.priceThree == undefined || item.priceFour == undefined)) {
|
|
|
- this.$message.error('请填写所有售价');
|
|
|
+ this.$message.error('请填写所有积分');
|
|
|
} else {
|
|
|
if (this.goodsListSave.length > 0) {
|
|
|
this.goodsListSaveHandle()
|
|
|
@@ -845,9 +790,9 @@ export default {
|
|
|
// item.sharedCompany = JSON.stringify(item.sharedCompany)
|
|
|
})
|
|
|
|
|
|
- productLaunch(this.goodsListSave).then(res => {
|
|
|
+ productLaunchPoints(this.goodsListSave).then(res => {
|
|
|
this.dialogVisibles = !this.dialogVisibles
|
|
|
-
|
|
|
+ this.onLoad(this.page, this.search)
|
|
|
})
|
|
|
},
|
|
|
//导入商品触发
|
|
|
@@ -964,7 +909,7 @@ export default {
|
|
|
...Object.assign(params, search),
|
|
|
// ...Object.assign(params, this.search),
|
|
|
billType: 0,
|
|
|
- whetherIntegral:"1"
|
|
|
+ whetherIntegral: "1"
|
|
|
}
|
|
|
this.loading = true
|
|
|
getList(params).then(res => {
|
|
|
@@ -981,8 +926,9 @@ export default {
|
|
|
this.loading = true
|
|
|
|
|
|
groundingListZero({
|
|
|
- whether: params.whether ? params.whether : 0,
|
|
|
...params,
|
|
|
+ whetherIntegral: '1',
|
|
|
+ whether: 1
|
|
|
}).then(res => {
|
|
|
this.goodsListShow = res.data.data.records
|
|
|
this.data = res.data.data.records;
|
|
|
@@ -997,7 +943,7 @@ export default {
|
|
|
},
|
|
|
async saveGoodsColumn() {
|
|
|
const inSave = await this.saveColumnData(
|
|
|
- this.getColumnName(280),
|
|
|
+ this.getColumnName(427),
|
|
|
this.optionTwo
|
|
|
);
|
|
|
if (inSave) {
|
|
|
@@ -1012,7 +958,7 @@ export default {
|
|
|
async resetGoodsColumn() {
|
|
|
this.optionTwo = commodity;
|
|
|
const inSave = await this.delColumnData(
|
|
|
- this.getColumnName(280),
|
|
|
+ this.getColumnName(427),
|
|
|
commodity
|
|
|
);
|
|
|
if (inSave) {
|