work
Find a file
2019-03-05 17:35:30 +08:00
build first commit 2019-02-12 17:46:33 +08:00
config first commit 2019-02-12 17:46:33 +08:00
src 新增商品 2019-03-05 17:35:30 +08:00
static 经销商完成 2019-03-05 15:24:46 +08:00
.babelrc first commit 2019-02-12 17:46:33 +08:00
.editorconfig first commit 2019-02-12 17:46:33 +08:00
.eslintignore employee add 2019-02-26 09:13:20 +08:00
.eslintrc.js first commit 2019-02-12 17:46:33 +08:00
.gitignore first commit 2019-02-12 17:46:33 +08:00
.postcssrc.js first commit 2019-02-12 17:46:33 +08:00
.travis.yml first commit 2019-02-12 17:46:33 +08:00
favicon.ico first commit 2019-02-12 17:46:33 +08:00
index.html 2019/3/1客户和仓库部分 2019-03-01 18:00:24 +08:00
LICENSE edit 2019-03-05 09:00:42 +08:00
package.json edit 2019-03-05 09:00:42 +08:00
README.md write readem 2019-03-05 08:49:46 +08:00

ERP

work for nwow

ERP project

2019/2/12 add topmenu

2019/2/25 遇到的一些问题以及解决方案

tagsview的页面关闭操作
const view = { 
path: '/EmployeeInformation/NewEmployeeInformation',
 name: 'NewEmployeeInformation',
  fullPath: '/EmployeeInformation/NewEmployeeInformation',
   title: 'NewEmployeeInformation' 
   }  
   
this.$store.dispatch('delView', view).then(({ visitedViews }) => {})
拼接json 方法
         var resultJsonObject = {}
         for (const attr in jsonbject1) {
           resultJsonObject[attr] = jsonbject1[attr]
         }
         for (const attr in jsonbject2) {
           resultJsonObject[attr] = jsonbject2[attr]
         }
         return resultJsonObject} 

2019/2/26 遇到的一些问题以及解决方案

axios 向后端发送请求数据时如果为空或者underfined时判断一下
     var params = new URLSearchParams()
     // 判断是否为空值
     if (query.jobnumber !== '') {
       params.append('jobnumber', query.jobnumber) // 你要传给后台的参数值 key/value
     }
     return request({
       url: 'xxxx',
       method: 'post',
       data: params
     })
   }

2019/2/26

用map取用数组中的莫一项并且把这一项变成字符串组
 ids =  [{id: 2, name: xxx},{id: 3, name: xxx}, {id: 4, name: xxx}, {id: 5, name: xxx}]
 const ids = this.moreaction.map(item => item.id).join()
 ids = 2, 3, 4, 5, 6
导出功能中名字拼接还有点问题待解决!!!!!

2019/2/28

select 回显问题
      this.employeeName = String( row.empName)
      this.contractNumber =String(row.contractNumber) 
     // 需要把Number类型的数据转化成String类型这样回显才没问题

2019/03/01

客户和仓库问题 批量导入
this.tableHeader = ['门店名称', '地址', '经度', '纬度', '管理员id', '开业时间', '状态', '描述', '所属区域', '种类id', '小区经理id', '属性id', '国家id']
      this.uploadHead = results.map(function(item) {
        return {
          repositoryName: item.门店名称,
          address: item.地址,
          longitude: item.经度,
          latitude: item.纬度,
          managerPeopleId: item.管理员id,
          createTime: item.开业时间,
          stat: item.状态,
          description: item.描述,
          regionId: item.所属区域,
          type: item.种类id,
          regionManagerId: item.小区经理id,
          attributes: item.属性id,
          countryId: item.国家id
        }
      })
      需要更改一下头部文件显示和表格内部数据

2019/3/5

vue组件的封装
@close="$emit('update:control', false)" 控制父组件的更新
:control.sync="editVisible" :editdata.sync="customerForm" @rest="refreshlist"
.sync的控制符通过props传递
通过 this.$emit('rest', true) 子组件向父组件传值