|
@ -165,7 +165,7 @@ |
|
|
end-placeholder="结束日期" |
|
|
end-placeholder="结束日期" |
|
|
></el-date-picker> |
|
|
></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="单据状态" prop="State"> |
|
|
<el-form-item label="单据状态" prop="State" v-show="isShowState"> |
|
|
<el-checkbox-group v-model="listQuery.state"> |
|
|
<el-checkbox-group v-model="listQuery.state"> |
|
|
<el-checkbox v-for="(item, index) in billState" :key="item.id" :label="item.id" @change="checkedListChange(index)"> |
|
|
<el-checkbox v-for="(item, index) in billState" :key="item.id" :label="item.id" @change="checkedListChange(index)"> |
|
|
{{ item.name }} |
|
|
{{ item.name }} |
|
@ -385,6 +385,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"; |
|
@ -488,7 +489,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
listPLQuery:{ |
|
|
listPLQuery:{ |
|
|
BillType: 2, |
|
|
BillType: 2, |
|
|
//UserId: "00000000-0000-0000-0000-000000000000", |
|
|
//UserId: this.userinfo.UserId, |
|
|
}, |
|
|
}, |
|
|
hostSNQuery:{ |
|
|
hostSNQuery:{ |
|
|
productLine:undefined, |
|
|
productLine:undefined, |
|
@ -541,6 +542,7 @@ export default { |
|
|
productTypeList:[{id:1,name:'门板'},{id:2,name:'柱护板'}], |
|
|
productTypeList:[{id:1,name:'门板'},{id:2,name:'柱护板'}], |
|
|
isShowHostSN : false, |
|
|
isShowHostSN : false, |
|
|
isShowVin : false, |
|
|
isShowVin : false, |
|
|
|
|
|
isShowState:true, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
@ -562,7 +564,6 @@ export default { |
|
|
this.listQuery.state.push(element.id); |
|
|
this.listQuery.state.push(element.id); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
this.getList(); |
|
|
|
|
|
this.getProductLine(); |
|
|
this.getProductLine(); |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -623,13 +624,14 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return tempsTabs; |
|
|
return tempsTabs; |
|
|
}, |
|
|
}, |
|
|
|
|
|
...mapGetters(['userInfo'])//获取当前用户信息 |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
//抽屉 |
|
|
//抽屉 |
|
|
handleDrawerOpen(param) { |
|
|
handleDrawerOpen(param) { |
|
|
this.drawer = true; |
|
|
this.drawer = true; |
|
|
console.log(510) |
|
|
//console.log(510) |
|
|
console.log(param) |
|
|
//console.log(param) |
|
|
var parentId = param.assemblyID; //主键id |
|
|
var parentId = param.assemblyID; //主键id |
|
|
this.customerInfos = [ |
|
|
this.customerInfos = [ |
|
|
{ |
|
|
{ |
|
@ -700,7 +702,7 @@ export default { |
|
|
/** 搜索按钮操作 */ |
|
|
/** 搜索按钮操作 */ |
|
|
handleQuery() { |
|
|
handleQuery() { |
|
|
this.listQuery.SkipCount = 1; |
|
|
this.listQuery.SkipCount = 1; |
|
|
this.getList(); |
|
|
//this.getList(); |
|
|
}, |
|
|
}, |
|
|
selectValue(params) { |
|
|
selectValue(params) { |
|
|
//版本下拉选择 |
|
|
//版本下拉选择 |
|
@ -736,7 +738,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); |
|
|
}, |
|
|
}, |
|
@ -801,7 +803,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) |
|
@ -823,7 +825,10 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
valueselectChange(){this.$forceUpdate();}, |
|
|
valueselectChange(){ |
|
|
|
|
|
this.$forceUpdate(); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
handleImportSAP(){}, |
|
|
handleImportSAP(){}, |
|
|
|
|
|
|
|
|
handleFilter() { |
|
|
handleFilter() { |
|
@ -1351,6 +1356,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 |
|
@ -1359,6 +1365,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(() => { |
|
@ -1378,12 +1386,16 @@ export default { |
|
|
this.$refs.btn1.$el.innerText = "打印门板发货排序单"; |
|
|
this.$refs.btn1.$el.innerText = "打印门板发货排序单"; |
|
|
this.$refs.btn2.$el.innerText = "重新打印门板发货排序单"; |
|
|
this.$refs.btn2.$el.innerText = "重新打印门板发货排序单"; |
|
|
this.$refs.btn3.$el.innerText = "补打门板发货排序单"; |
|
|
this.$refs.btn3.$el.innerText = "补打门板发货排序单"; |
|
|
|
|
|
this.listQuery.state.push(this.billState[0].id); |
|
|
|
|
|
this.isShowState = true; |
|
|
} |
|
|
} |
|
|
else if(this.listQuery.productType === 2) |
|
|
else if(this.listQuery.productType === 2) |
|
|
{ |
|
|
{ |
|
|
this.$refs.btn1.$el.innerText = "打印柱护板发货排序单"; |
|
|
this.$refs.btn1.$el.innerText = "打印柱护板发货排序单"; |
|
|
this.$refs.btn2.$el.innerText = "重新打印柱护板发货排序单"; |
|
|
this.$refs.btn2.$el.innerText = "重新打印柱护板发货排序单"; |
|
|
this.$refs.btn3.$el.innerText = "补打柱护板发货排序单"; |
|
|
this.$refs.btn3.$el.innerText = "补打柱护板发货排序单"; |
|
|
|
|
|
this.listQuery.state = []; |
|
|
|
|
|
this.isShowState = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|