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