|
@@ -50,6 +50,7 @@ export default {
|
|
drawer: false,
|
|
drawer: false,
|
|
direction: 'rtl',
|
|
direction: 'rtl',
|
|
inputText:"",
|
|
inputText:"",
|
|
|
|
+ materialTypeId:"",
|
|
options:{
|
|
options:{
|
|
requestUrl:"/api/v1/rms/getMaterialTypeList?apiId=376",
|
|
requestUrl:"/api/v1/rms/getMaterialTypeList?apiId=376",
|
|
selectionType:"radio",
|
|
selectionType:"radio",
|
|
@@ -61,28 +62,25 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
currentRadioChange(selection){
|
|
currentRadioChange(selection){
|
|
this.mapList=selection,
|
|
this.mapList=selection,
|
|
|
|
+ this.materialTypeId = this.mapList.materialTypeId;
|
|
console.log(this.mapList)
|
|
console.log(this.mapList)
|
|
this.materialTypeName=this.mapList.materialTypeName
|
|
this.materialTypeName=this.mapList.materialTypeName
|
|
},
|
|
},
|
|
onclick(){
|
|
onclick(){
|
|
this.options.requestUrl="/api/v1/rms/getMaterialTypeList?apiId=376&con=" +this.inputText;
|
|
this.options.requestUrl="/api/v1/rms/getMaterialTypeList?apiId=376&con=" +this.inputText;
|
|
},
|
|
},
|
|
- makeSure() {
|
|
|
|
|
|
+ makeSure() {
|
|
|
|
+
|
|
let RmsMaterial = {
|
|
let RmsMaterial = {
|
|
materialName:this.form1.materialName,
|
|
materialName:this.form1.materialName,
|
|
materialSpecification:this.form1.materialSpecification,
|
|
materialSpecification:this.form1.materialSpecification,
|
|
materialModel:this.form1.materialModel,
|
|
materialModel:this.form1.materialModel,
|
|
- materialTypeId:this.mapList.materialTypeId,
|
|
|
|
|
|
+ materialTypeId:this.materialTypeId,
|
|
unitOfMeasureId:this.form1.unitOfMeasureId,
|
|
unitOfMeasureId:this.form1.unitOfMeasureId,
|
|
materialTheoreticalWeight:this.form1.materialTheoreticalWeight,
|
|
materialTheoreticalWeight:this.form1.materialTheoreticalWeight,
|
|
};
|
|
};
|
|
- if(
|
|
|
|
- RmsMaterial.materialName==null ||
|
|
|
|
- RmsMaterial.materialSpecification==null ||
|
|
|
|
- RmsMaterial.materialModel==null ||
|
|
|
|
- RmsMaterial.materialTypeId==null ||
|
|
|
|
- RmsMaterial.unitOfMeasureId==null ||
|
|
|
|
- RmsMaterial.materialTheoreticalWeight==null
|
|
|
|
|
|
+ if(
|
|
|
|
+ RmsMaterial.materialName==null
|
|
)this.$message.error("存在空值!");
|
|
)this.$message.error("存在空值!");
|
|
else
|
|
else
|
|
this.axios
|
|
this.axios
|
|
@@ -101,7 +99,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$message.error("新增失败");
|
|
this.$message.error("新增失败");
|
|
}
|
|
}
|
|
- this.$refs['table'].resetField();
|
|
|
|
|
|
+ //this.$refs['table'].resetField();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 取消
|
|
// 取消
|