|
@ -277,6 +277,7 @@ import permission from "@/directive/permission/index.js"; |
|
|
import CRMTableHead from "../../components/CRMTableHead"; |
|
|
import CRMTableHead from "../../components/CRMTableHead"; |
|
|
import importExcel from "@/components/ImportExcel-vw"; |
|
|
import importExcel from "@/components/ImportExcel-vw"; |
|
|
import Lockr from "lockr"; |
|
|
import Lockr from "lockr"; |
|
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
import Detail from "./detail.vue"; |
|
|
import Detail from "./detail.vue"; |
|
|
import { downloadFile } from "@/utils/crmindex.js"; |
|
|
import { downloadFile } from "@/utils/crmindex.js"; |
|
@ -295,7 +296,7 @@ const projectTypeKeyValue = bomUnit.reduce((acc, cur) => { |
|
|
}, {}); |
|
|
}, {}); |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "M100Online", |
|
|
name: "R100Online", |
|
|
components: { Pagination, CRMTableHead, importExcel , Detail}, |
|
|
components: { Pagination, CRMTableHead, importExcel , Detail}, |
|
|
directives: { permission }, |
|
|
directives: { permission }, |
|
|
filters: { |
|
|
filters: { |
|
@ -318,7 +319,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
return { |
|
|
return { |
|
|
crmType: "M100Online", |
|
|
crmType: "R100Online", |
|
|
rules: { |
|
|
rules: { |
|
|
erpAssemblyName: [ |
|
|
erpAssemblyName: [ |
|
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
|
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
|
@ -416,7 +417,6 @@ export default { |
|
|
this.listQuery.state.push(element.id); |
|
|
this.listQuery.state.push(element.id); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
this.getList(); |
|
|
|
|
|
this.getProductLine(); |
|
|
this.getProductLine(); |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -481,6 +481,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return tempsTabs; |
|
|
return tempsTabs; |
|
|
}, |
|
|
}, |
|
|
|
|
|
...mapGetters(['userInfo'])//获取当前用户信息 |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
//抽屉 |
|
|
//抽屉 |
|
@ -546,7 +547,7 @@ export default { |
|
|
/** 搜索按钮操作 */ |
|
|
/** 搜索按钮操作 */ |
|
|
handleQuery() { |
|
|
handleQuery() { |
|
|
this.listQuery.SkipCount = 1; |
|
|
this.listQuery.SkipCount = 1; |
|
|
this.getList(); |
|
|
//this.getList(); |
|
|
}, |
|
|
}, |
|
|
selectValue(params) { |
|
|
selectValue(params) { |
|
|
//版本下拉选择 |
|
|
//版本下拉选择 |
|
@ -582,7 +583,7 @@ export default { |
|
|
obj.isKey = false; |
|
|
obj.isKey = false; |
|
|
obj.description = ""; |
|
|
obj.description = ""; |
|
|
|
|
|
|
|
|
console.log(this.form.details); |
|
|
//console.log(this.form.details); |
|
|
this.form.details.push(obj); |
|
|
this.form.details.push(obj); |
|
|
//console.log(688); |
|
|
//console.log(688); |
|
|
}, |
|
|
}, |
|
@ -647,7 +648,7 @@ export default { |
|
|
this.$axios |
|
|
this.$axios |
|
|
.gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) |
|
|
.gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
console.log(partCode) |
|
|
//console.log(partCode) |
|
|
if(partCode !== "" && partCode !== undefined) |
|
|
if(partCode !== "" && partCode !== undefined) |
|
|
{ |
|
|
{ |
|
|
//console.log(partCode) |
|
|
//console.log(partCode) |
|
@ -669,7 +670,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
valueselectChange(){}, |
|
|
valueselectChange(){this.$forceUpdate();}, |
|
|
handleImportSAP(){}, |
|
|
handleImportSAP(){}, |
|
|
|
|
|
|
|
|
handleFilter() { |
|
|
handleFilter() { |
|
@ -713,6 +714,7 @@ export default { |
|
|
//获取所有产线 |
|
|
//获取所有产线 |
|
|
getProductLine() |
|
|
getProductLine() |
|
|
{ |
|
|
{ |
|
|
|
|
|
this.listPLQuery.UserId = this.userInfo.userId; |
|
|
this.$axios |
|
|
this.$axios |
|
|
.gets( |
|
|
.gets( |
|
|
"/api/newjit/product-line/list",this.listPLQuery |
|
|
"/api/newjit/product-line/list",this.listPLQuery |
|
@ -721,6 +723,8 @@ export default { |
|
|
//console.log(response); |
|
|
//console.log(response); |
|
|
this.PLList = response.item; |
|
|
this.PLList = response.item; |
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); |
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); |
|
|
|
|
|
this.listQuery.productLine = this.PLChildList[0].productLineCode; |
|
|
|
|
|
this.getList(); |
|
|
//console.log(this.PLList) |
|
|
//console.log(this.PLList) |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|