|
|
|
|
@ -27,6 +27,8 @@ |
|
|
|
|
v-model="scope.row.craftAbilityId" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
style="width: 100%" |
|
|
|
|
filterable |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in capabilityData" |
|
|
|
|
@ -53,6 +55,7 @@ |
|
|
|
|
v-model="scope.row.prodMarkId" |
|
|
|
|
placeholder="请选择生产标识" |
|
|
|
|
style="width: 100%" |
|
|
|
|
filterable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in identificationData" |
|
|
|
|
@ -137,6 +140,8 @@ |
|
|
|
|
v-model="scope.row.oemId" |
|
|
|
|
placeholder="请选择外协厂商" |
|
|
|
|
style="width: 100%" |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option v-for="item in companyData" :label="item.ocName" :key="item.id" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
@ -153,6 +158,8 @@ |
|
|
|
|
v-model="scope.row.centerId" |
|
|
|
|
placeholder="请选择作业中心" |
|
|
|
|
style="width: 100%" |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option v-for="item in workCenterData" :label="item.wcName" :key="item.id" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
@ -204,6 +211,7 @@ export default { |
|
|
|
|
form:{ |
|
|
|
|
tableData:[] |
|
|
|
|
}, |
|
|
|
|
craftloading:false, |
|
|
|
|
formRules:{ |
|
|
|
|
craftAbilityId:[ |
|
|
|
|
{ required: true, message: '请选择工艺能力', trigger: ['change', 'submit'] } |
|
|
|
|
@ -253,6 +261,16 @@ export default { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
// remoteMethodCraft(query){ |
|
|
|
|
// console.log('query', query) |
|
|
|
|
// if(query){ |
|
|
|
|
|
|
|
|
|
// }else{ |
|
|
|
|
// getCapability().then(res =>{ |
|
|
|
|
// this.capabilityData = res.data.data |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// }, |
|
|
|
|
getPointRule(){ |
|
|
|
|
getPointRule().then(res =>{ |
|
|
|
|
this.pointRule = res.data.data |
|
|
|
|
@ -311,16 +329,16 @@ export default { |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.form.tableData.map(item =>{ |
|
|
|
|
if(item.pointType == 1 && (!item.oemId || item.oemId == '')){ |
|
|
|
|
this.formError = '指定类型为外协时,请选择外协厂商'; |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if(item.pointType == 0 && (!item.centerId || item.centerId == '')){ |
|
|
|
|
this.formError = '指定类型为厂内时,请选择作业中心'; |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// this.form.tableData.map(item =>{ |
|
|
|
|
// if(item.pointType == 1 && (!item.oemId || item.oemId == '')){ |
|
|
|
|
// this.formError = '指定类型为外协时,请选择外协厂商'; |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
// if(item.pointType == 0 && (!item.centerId || item.centerId == '')){ |
|
|
|
|
// this.formError = '指定类型为厂内时,请选择作业中心'; |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
console.log('form----------',this.form.tableData) |
|
|
|
|
// 校验通过:准备提交数据(过滤无用字段) |
|
|
|
|
|