|
@@ -161,15 +161,14 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- getList,
|
|
|
|
- groundingList,
|
|
|
|
- submit,
|
|
|
|
- batchOperationProductLaunch,
|
|
|
|
- getDetail,
|
|
|
|
- listAll,
|
|
|
|
- remove,
|
|
|
|
- productLaunch,
|
|
|
|
- deptList
|
|
|
|
|
|
+ getList,
|
|
|
|
+ groundingList,
|
|
|
|
+ submit,
|
|
|
|
+ batchOperationProductLaunch,
|
|
|
|
+ getDetail,
|
|
|
|
+ remove,
|
|
|
|
+ productLaunch,
|
|
|
|
+ deptList, listAllP
|
|
} from "@/api/tirePartsMall/basicData/listingManagement/index.js";
|
|
} from "@/api/tirePartsMall/basicData/listingManagement/index.js";
|
|
import { getToken } from "@/util/auth";
|
|
import { getToken } from "@/util/auth";
|
|
import commodity from "./commodity.json"
|
|
import commodity from "./commodity.json"
|
|
@@ -435,7 +434,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
- listAll().then(res => {
|
|
|
|
|
|
+ listAllP({type:'PP'}).then(res => {
|
|
this.treeData = res.data.data
|
|
this.treeData = res.data.data
|
|
})
|
|
})
|
|
this.onLoad(this.page, this.search)
|
|
this.onLoad(this.page, this.search)
|
|
@@ -471,7 +470,6 @@ export default {
|
|
done();
|
|
done();
|
|
},
|
|
},
|
|
nodeClick(data) {
|
|
nodeClick(data) {
|
|
- console.log(data);
|
|
|
|
this.search.brandId = data.id
|
|
this.search.brandId = data.id
|
|
this.page.currentPage = 1;
|
|
this.page.currentPage = 1;
|
|
this.onLoad(this.page, this.search);
|
|
this.onLoad(this.page, this.search);
|
|
@@ -487,8 +485,6 @@ export default {
|
|
this.onLoad(this.page);
|
|
this.onLoad(this.page);
|
|
},
|
|
},
|
|
searchChange(params, done) {
|
|
searchChange(params, done) {
|
|
- console.log(params);
|
|
|
|
- console.log(params.$salesCompanyName);
|
|
|
|
// sharedCompanyList
|
|
// sharedCompanyList
|
|
// this.search.sharedCompanyList = params.sharedCompany;
|
|
// this.search.sharedCompanyList = params.sharedCompany;
|
|
// Vue.delete(params, 'sharedCompany');
|
|
// Vue.delete(params, 'sharedCompany');
|
|
@@ -501,7 +497,6 @@ export default {
|
|
},
|
|
},
|
|
selectionChangeCost(list) {
|
|
selectionChangeCost(list) {
|
|
this.goodsListSave = list
|
|
this.goodsListSave = list
|
|
- console.log(list);
|
|
|
|
this.tableData = list
|
|
this.tableData = list
|
|
},
|
|
},
|
|
//新增
|
|
//新增
|
|
@@ -525,7 +520,6 @@ export default {
|
|
},
|
|
},
|
|
// 标签页切换
|
|
// 标签页切换
|
|
tabHandle(data) {
|
|
tabHandle(data) {
|
|
- console.log(data);
|
|
|
|
if (data.name == 'searchList') {
|
|
if (data.name == 'searchList') {
|
|
this.goodsListShow = this.data;
|
|
this.goodsListShow = this.data;
|
|
this.page.total = this.pageList.total
|
|
this.page.total = this.pageList.total
|
|
@@ -571,7 +565,6 @@ export default {
|
|
},
|
|
},
|
|
//编辑确定
|
|
//编辑确定
|
|
rowUpdate(form, index, done, loading) {
|
|
rowUpdate(form, index, done, loading) {
|
|
- console.log(this.form.filesList,574)
|
|
|
|
if (this.form.filesList.length > 0) {
|
|
if (this.form.filesList.length > 0) {
|
|
// 循环把编辑状态变成保存状态
|
|
// 循环把编辑状态变成保存状态
|
|
this.form.filesList.map((item)=>{
|
|
this.form.filesList.map((item)=>{
|
|
@@ -616,8 +609,6 @@ export default {
|
|
let selected = document.getElementsByClassName("is-current")[0]
|
|
let selected = document.getElementsByClassName("is-current")[0]
|
|
selected.classList.remove("is-current")
|
|
selected.classList.remove("is-current")
|
|
}
|
|
}
|
|
- console.log(213213);
|
|
|
|
- console.log(this.$refs.treeRef);
|
|
|
|
},
|
|
},
|
|
check(row) {
|
|
check(row) {
|
|
batchOperationProductLaunch({
|
|
batchOperationProductLaunch({
|
|
@@ -629,7 +620,6 @@ export default {
|
|
},
|
|
},
|
|
// 确认导入
|
|
// 确认导入
|
|
importGoods() {
|
|
importGoods() {
|
|
- console.log(this.goodsListSave);
|
|
|
|
if (!this.goodsListSave.length) {
|
|
if (!this.goodsListSave.length) {
|
|
this.$message.error('请选择')
|
|
this.$message.error('请选择')
|
|
}
|
|
}
|
|
@@ -649,18 +639,15 @@ export default {
|
|
this.goodsListSave.specificationAndModel = item.typeno
|
|
this.goodsListSave.specificationAndModel = item.typeno
|
|
delete this.goodsListSave.typeno
|
|
delete this.goodsListSave.typeno
|
|
// item.sharedCompany = JSON.stringify(item.sharedCompany)
|
|
// item.sharedCompany = JSON.stringify(item.sharedCompany)
|
|
- // console.log();
|
|
|
|
})
|
|
})
|
|
|
|
|
|
productLaunch(this.goodsListSave).then(res => {
|
|
productLaunch(this.goodsListSave).then(res => {
|
|
- console.log(res);
|
|
|
|
this.dialogVisibles = !this.dialogVisibles
|
|
this.dialogVisibles = !this.dialogVisibles
|
|
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//导入商品触发
|
|
//导入商品触发
|
|
importChoice() {
|
|
importChoice() {
|
|
- console.log(1);
|
|
|
|
return
|
|
return
|
|
// this.contactsData = this.contactsData.concat(this.tableData)
|
|
// this.contactsData = this.contactsData.concat(this.tableData)
|
|
if (this.tableData.length === 1) {
|
|
if (this.tableData.length === 1) {
|
|
@@ -752,7 +739,6 @@ export default {
|
|
//新增搜索
|
|
//新增搜索
|
|
goodsSearchCost(params, done) {
|
|
goodsSearchCost(params, done) {
|
|
this.treeDeptId = ''
|
|
this.treeDeptId = ''
|
|
- console.log(params);
|
|
|
|
params = {
|
|
params = {
|
|
...params,
|
|
...params,
|
|
// artsVision: this.form.belongToCorpId
|
|
// artsVision: this.form.belongToCorpId
|
|
@@ -761,8 +747,6 @@ export default {
|
|
done()
|
|
done()
|
|
},
|
|
},
|
|
onLoad(page, params = {}) {
|
|
onLoad(page, params = {}) {
|
|
- console.log(this.search);
|
|
|
|
- console.log(params);
|
|
|
|
// 深拷贝一份防止弹出框的搜索参数和外面表格的搜索参数一样
|
|
// 深拷贝一份防止弹出框的搜索参数和外面表格的搜索参数一样
|
|
let search = JSON.parse(JSON.stringify(this.search))
|
|
let search = JSON.parse(JSON.stringify(this.search))
|
|
search.cname = params.cname
|
|
search.cname = params.cname
|
|
@@ -780,7 +764,6 @@ export default {
|
|
}
|
|
}
|
|
this.loading = true
|
|
this.loading = true
|
|
getList(params).then(res => {
|
|
getList(params).then(res => {
|
|
- console.log(res.data.data,712);
|
|
|
|
this.dataList = res.data.data.records
|
|
this.dataList = res.data.data.records
|
|
this.page.total = res.data.data.total
|
|
this.page.total = res.data.data.total
|
|
this.pageList.total = res.data.data.total
|
|
this.pageList.total = res.data.data.total
|
|
@@ -794,7 +777,6 @@ export default {
|
|
this.loading = true
|
|
this.loading = true
|
|
|
|
|
|
groundingList(params).then(res => {
|
|
groundingList(params).then(res => {
|
|
- console.log(res.data.data.total);
|
|
|
|
this.goodsListShow = res.data.data.records
|
|
this.goodsListShow = res.data.data.records
|
|
this.data = res.data.data.records;
|
|
this.data = res.data.data.records;
|
|
this.pages.total = res.data.data.total
|
|
this.pages.total = res.data.data.total
|
|
@@ -803,7 +785,6 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
deptList().then(res => {
|
|
deptList().then(res => {
|
|
- console.log(res);
|
|
|
|
this.sharedCompanyoptions = res.data.data
|
|
this.sharedCompanyoptions = res.data.data
|
|
})
|
|
})
|
|
},
|
|
},
|