|
@ -19,9 +19,11 @@ |
|
|
style="margin-right: 15px" |
|
|
style="margin-right: 15px" |
|
|
@change="ptypeselectChange" |
|
|
@change="ptypeselectChange" |
|
|
> |
|
|
> |
|
|
<el-option label="0" value="0"></el-option> |
|
|
<el-option |
|
|
<el-option label="1" value="1"></el-option> |
|
|
v-for="item in productTypeList" |
|
|
<el-option label="2" value="2"></el-option> |
|
|
:key="item.id" |
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
:value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="" prop="productLine"> |
|
|
<el-form-item label="" prop="productLine"> |
|
@ -34,10 +36,10 @@ |
|
|
@change="valueselectChange" |
|
|
@change="valueselectChange" |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in PLList" |
|
|
v-for="item in PLChildList" |
|
|
:key="item.productLineCode" |
|
|
:key="item.id" |
|
|
:label="item.productLineName" |
|
|
:label="item.productLineName" |
|
|
:value="item.productLineCode"/> |
|
|
:value="item.id"/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
@ -269,10 +271,10 @@ |
|
|
> |
|
|
> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="KNR:" prop="erpAssemblyCode" required > |
|
|
<el-form-item label="KNR:" prop="knr" required > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 350px" |
|
|
style="width: 350px" |
|
|
v-model="form.erpAssemblyCode" |
|
|
v-model="form.knr" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
placeholder="请选择添加M100信息对应的KNR号" |
|
|
placeholder="请选择添加M100信息对应的KNR号" |
|
|
/> |
|
|
/> |
|
@ -282,19 +284,25 @@ |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="车型:" prop="vehicleModel" required > |
|
|
<el-form-item label="车型:" prop="vehicleModelCode" required > |
|
|
<el-select |
|
|
<el-select |
|
|
style="width: 350px" |
|
|
style="width: 350px" |
|
|
v-model="form.model" |
|
|
v-model="form.vehicleModelCode" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
/> |
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in vehicleModelList" |
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
:label="item.dicItemName" |
|
|
|
|
|
:value="item.dicItemCode"/> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="底盘号:" prop="erpAssemblyCode" required > |
|
|
<el-form-item label="底盘号:" prop="vin" required > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 350px" |
|
|
style="width: 350px" |
|
|
v-model="form.erpAssemblyCode" |
|
|
v-model="form.vin" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -303,10 +311,10 @@ |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="大众顺序号:" prop="vehicleModel" required > |
|
|
<el-form-item label="大众顺序号:" prop="hostSN" required > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 350px" |
|
|
style="width: 350px" |
|
|
v-model="form.model" |
|
|
v-model="form.hostSN" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -341,7 +349,7 @@ |
|
|
element-loading-text="拼命加载中..." |
|
|
element-loading-text="拼命加载中..." |
|
|
element-loading-spinner="el-icon-loading" |
|
|
element-loading-spinner="el-icon-loading" |
|
|
class="cr-table" |
|
|
class="cr-table" |
|
|
:data="form.details" |
|
|
:data="form.leftdetails" |
|
|
:height="detailTableHeight" |
|
|
:height="detailTableHeight" |
|
|
:cell-style="cellStyle" |
|
|
:cell-style="cellStyle" |
|
|
:header-cell-style="headerRowStyle" |
|
|
:header-cell-style="headerRowStyle" |
|
@ -353,15 +361,15 @@ |
|
|
@row-click="handleRowClick" |
|
|
@row-click="handleRowClick" |
|
|
> |
|
|
> |
|
|
<!-- <el-table-column type="selection" width="44px"></el-table-column> --> |
|
|
<!-- <el-table-column type="selection" width="44px"></el-table-column> --> |
|
|
<el-table-column prop="partCode" label="ERP总成编号" width="150px" > |
|
|
<el-table-column prop="erpAssemblyCode" label="ERP总成编号" width="150px" > |
|
|
<template slot-scope="scope"> |
|
|
<!-- <template slot-scope="scope"> |
|
|
<el-input v-model="scope.row.partCode" size="mini" style="width:135px"></el-input> |
|
|
<el-input v-model="scope.row.erpAssemblyCode" size="mini" style="width:135px"></el-input> |
|
|
</template> |
|
|
</template> --> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="partName" label="ERP总成名称"> |
|
|
<el-table-column prop="erpAssemblyName" label="ERP总成名称"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- <template slot-scope="scope"> |
|
|
<el-input v-model="scope.row.partName" size="mini"></el-input> |
|
|
<el-input v-model="scope.row.erpAssemblyName" size="mini"></el-input> |
|
|
</template> |
|
|
</template> --> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="description" width="35px"> |
|
|
<el-table-column prop="description" width="35px"> |
|
|
<template slot="header"> |
|
|
<template slot="header"> |
|
@ -375,7 +383,7 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-divider class="divider2" content-position="left">添加ERP总成</el-divider> |
|
|
<el-divider class="divider2" content-position="left">添加ERP总成</el-divider> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="ERP总成编码:" prop="erpAssemblyCode" required > |
|
|
<el-form-item label="ERP总成编码:" prop="erpAssemblyCode" > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 315px" |
|
|
style="width: 315px" |
|
|
v-model="form.erpAssemblyCode" |
|
|
v-model="form.erpAssemblyCode" |
|
@ -385,7 +393,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="ERP总成名称:" prop="erpAssemblyName" required > |
|
|
<el-form-item label="ERP总成名称:" prop="erpAssemblyName" > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 315px" |
|
|
style="width: 315px" |
|
|
v-model="form.erpAssemblyName" |
|
|
v-model="form.erpAssemblyName" |
|
@ -395,17 +403,23 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="车型:" prop="erpAssemblyName" required > |
|
|
<el-form-item label="车型:" prop="vehicleModel" > |
|
|
<el-select |
|
|
<el-select |
|
|
style="width: 315px" |
|
|
style="width: 315px" |
|
|
v-model="form.erpAssemblyName" |
|
|
v-model="form.vehicleModel" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
placeholder="请输入总成名称" |
|
|
placeholder="请输入总成名称" |
|
|
/> |
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in vehicleModelList" |
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
:label="item.dicItemName" |
|
|
|
|
|
:value="item.dicItemCode"/> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<div style="text-align:center;margin: 0px;margin-bottom: 15px;"> |
|
|
<div style="text-align:center;margin: 0px;margin-bottom: 15px;"> |
|
|
<el-button type="primary">添加总成</el-button> |
|
|
<el-button type="primary" @click="leftclick">添加总成</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -423,7 +437,7 @@ |
|
|
element-loading-text="拼命加载中..." |
|
|
element-loading-text="拼命加载中..." |
|
|
element-loading-spinner="el-icon-loading" |
|
|
element-loading-spinner="el-icon-loading" |
|
|
class="cr-table" |
|
|
class="cr-table" |
|
|
:data="form.details" |
|
|
:data="form.rightdetails" |
|
|
:height="detailTableHeight" |
|
|
:height="detailTableHeight" |
|
|
:cell-style="cellStyle" |
|
|
:cell-style="cellStyle" |
|
|
:header-cell-style="headerRowStyle" |
|
|
:header-cell-style="headerRowStyle" |
|
@ -462,27 +476,27 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-divider class="divider2" content-position="left">添加ERP结算件</el-divider> |
|
|
<el-divider class="divider2" content-position="left">添加ERP结算件</el-divider> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="客户零件代码:" prop="customerPartCode" required > |
|
|
<el-form-item label="客户零件代码:" prop="customerPartCode" > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 315px" |
|
|
style="width: 315px" |
|
|
v-model="form.erpAssemblyCode" |
|
|
v-model="form.customerPartCode" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
placeholder="请输入客户零件代码" |
|
|
placeholder="请输入客户零件代码" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="客户零件名称:" prop="customerPartName" required > |
|
|
<el-form-item label="客户零件名称:" prop="customerPartName" > |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 315px" |
|
|
style="width: 315px" |
|
|
v-model="form.erpAssemblyName" |
|
|
v-model="form.customerPartName" |
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
placeholder="请输入总成名称" |
|
|
placeholder="请输入总成名称" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="数量:" prop="partQty" required > |
|
|
<el-form-item label="数量:" prop="partQty" > |
|
|
<el-input-number |
|
|
<el-input-number |
|
|
style="width: 315px" |
|
|
style="width: 315px" |
|
|
v-model="form.partQty" |
|
|
v-model="form.partQty" |
|
@ -634,11 +648,12 @@ export default { |
|
|
erpAssemblyName: undefined, |
|
|
erpAssemblyName: undefined, |
|
|
}, |
|
|
}, |
|
|
listPLQuery:{ |
|
|
listPLQuery:{ |
|
|
BillType: 1, |
|
|
BillType: 2, |
|
|
//UserId: "00000000-0000-0000-0000-000000000000", |
|
|
//UserId: "00000000-0000-0000-0000-000000000000", |
|
|
}, |
|
|
}, |
|
|
form:{ |
|
|
form:{ |
|
|
details:[] |
|
|
leftdetails:[], |
|
|
|
|
|
rightdetails:[], |
|
|
}, |
|
|
}, |
|
|
page: 1, |
|
|
page: 1, |
|
|
// 显示搜索条件 |
|
|
// 显示搜索条件 |
|
@ -654,6 +669,12 @@ export default { |
|
|
detailTableHeight:250, |
|
|
detailTableHeight:250, |
|
|
details:[], //修改子表数据源 |
|
|
details:[], //修改子表数据源 |
|
|
PLList:[],//产线下拉 |
|
|
PLList:[],//产线下拉 |
|
|
|
|
|
PLChildList:[],//筛选后产线下拉 |
|
|
|
|
|
vehicleModelQuery:{ |
|
|
|
|
|
dicTypeName:"派格车型", |
|
|
|
|
|
}, |
|
|
|
|
|
vehicleModelList:[],//车型list |
|
|
|
|
|
productTypeList:[{id:1,name:'门板'},{id:2,name:'柱护板'}] |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -790,6 +811,7 @@ export default { |
|
|
this.isEdit = false; |
|
|
this.isEdit = false; |
|
|
this.form = {}; |
|
|
this.form = {}; |
|
|
this.details = []; |
|
|
this.details = []; |
|
|
|
|
|
this.getvehicleModel(); |
|
|
this.dialogFormVisible = true; |
|
|
this.dialogFormVisible = true; |
|
|
}, |
|
|
}, |
|
|
/** 修改 */ |
|
|
/** 修改 */ |
|
@ -797,6 +819,7 @@ export default { |
|
|
this.formTitle = "修改"; |
|
|
this.formTitle = "修改"; |
|
|
this.isEdit = true; |
|
|
this.isEdit = true; |
|
|
this.details = []; |
|
|
this.details = []; |
|
|
|
|
|
this.getvehicleModel(); |
|
|
if (this.multipleSelection.length != 1) { |
|
|
if (this.multipleSelection.length != 1) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: "编辑必须选择单行", |
|
|
message: "编辑必须选择单行", |
|
@ -987,7 +1010,7 @@ export default { |
|
|
this.listLoading = true; |
|
|
this.listLoading = true; |
|
|
this.listQuery.SkipCount = (this.page - 1) * 10; |
|
|
this.listQuery.SkipCount = (this.page - 1) * 10; |
|
|
this.$axios |
|
|
this.$axios |
|
|
.gets("/api/newjit/assembly-cfg-erp/list", this.listQuery) |
|
|
.gets("/api/newjit/bill-r100/list", this.listQuery) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
this.list = response.items; |
|
|
this.list = response.items; |
|
|
this.totalCount = response.totalCount; |
|
|
this.totalCount = response.totalCount; |
|
@ -1080,6 +1103,7 @@ export default { |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
//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)); |
|
|
//console.log(this.PLList); |
|
|
//console.log(this.PLList); |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
@ -1088,10 +1112,43 @@ export default { |
|
|
//产线类型变更 |
|
|
//产线类型变更 |
|
|
ptypeselectChange() |
|
|
ptypeselectChange() |
|
|
{ |
|
|
{ |
|
|
|
|
|
this.$forceUpdate(); |
|
|
|
|
|
this.listQuery.productLine = ""; |
|
|
//console.log(this.listQuery.productType); |
|
|
//console.log(this.listQuery.productType); |
|
|
this.PLList = this.PLList.filter(u => u.productType === this.listQuery.productType); |
|
|
//console.log(this.PLChildList) |
|
|
|
|
|
this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)); |
|
|
//console.log(this.PLList) |
|
|
//console.log(this.PLList) |
|
|
|
|
|
//console.log(this.listQuery.productType) |
|
|
|
|
|
//console.log(this.PLChildList) |
|
|
|
|
|
}, |
|
|
|
|
|
getvehicleModel() |
|
|
|
|
|
{ |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.gets( |
|
|
|
|
|
"/api/newjit/dic/list",this.vehicleModelQuery |
|
|
|
|
|
) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
//console.log(response); |
|
|
|
|
|
this.vehicleModelList = response.item; |
|
|
|
|
|
//console.log() |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
leftclick() |
|
|
|
|
|
{ |
|
|
|
|
|
this.$forceUpdate(); |
|
|
|
|
|
let obj = {}; |
|
|
|
|
|
obj.erpAssemblyCode = this.form.erpAssemblyCode; |
|
|
|
|
|
obj.erpAssemblyName = this.form.erpAssemblyName; |
|
|
|
|
|
obj.vehicleModel = this.form.vehicleModel; |
|
|
|
|
|
|
|
|
|
|
|
if (this.form.leftdetails === undefined) { |
|
|
|
|
|
this.form.leftdetails = []; |
|
|
|
|
|
} |
|
|
|
|
|
this.form.leftdetails.push(obj); |
|
|
}, |
|
|
}, |
|
|
|
|
|
rightclick(){}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|