|
@@ -65,10 +65,19 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="detail">
|
|
<el-col :span="24" class="detail">
|
|
生产方:
|
|
生产方:
|
|
- <span class="info" v-for="(item, index) in customCompany">
|
|
|
|
|
|
+ <!-- <span class="info" v-for="(item, index) in customCompany">
|
|
{{item.companyName}}
|
|
{{item.companyName}}
|
|
<span v-if="index != customCompany.length-1">、</span>
|
|
<span v-if="index != customCompany.length-1">、</span>
|
|
- </span>
|
|
|
|
|
|
+ </span> -->
|
|
|
|
+ <span class="info">{{moldDetail.produceCompany}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="detail">
|
|
|
|
+ 生产方地址:
|
|
|
|
+ <!-- <span class="info" v-for="(item, index) in customCompany">
|
|
|
|
+ {{item.companyName}}
|
|
|
|
+ <span v-if="index != customCompany.length-1">、</span>
|
|
|
|
+ </span> -->
|
|
|
|
+ <span class="info">{{moldDetail.area}}</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -380,14 +389,27 @@
|
|
<el-form-item label="模具名称" prop="modelName">
|
|
<el-form-item label="模具名称" prop="modelName">
|
|
<el-input v-model="editForm.modelName" autocomplete="off" placeholder="请输入模具名称"></el-input>
|
|
<el-input v-model="editForm.modelName" autocomplete="off" placeholder="请输入模具名称"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="模具编号" prop="modelNo">
|
|
|
|
+ <el-input v-model="editForm.modelNo" autocomplete="off" placeholder="请输入模具编号"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="云模盒编号" prop="equipmentId">
|
|
|
|
+ <el-select v-model="editForm.equipmentId" clearable filterable placeholder="请选择云模盒编号" style="width:202px">
|
|
|
|
+ <el-option v-for="item in boxes" :key="item.id" :label="item.equipmentNo" :value="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="初始模次">
|
|
<el-form-item label="初始模次">
|
|
- <el-input v-model="editForm.initialModulus" autocomplete="off" placeholder="请输入初始模次"></el-input>
|
|
|
|
|
|
+ <el-input v-model="editForm.initialModulus" autocomplete="off" placeholder="请输入初始模次"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="模次寿命">
|
|
<el-form-item label="模次寿命">
|
|
- <el-input v-model="editForm.settingLife" autocomplete="off" placeholder="请输入模次寿命"></el-input>
|
|
|
|
|
|
+ <el-input v-model="editForm.settingLife" autocomplete="off" placeholder="请输入模次寿命"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="RIFD码">
|
|
<el-form-item label="RIFD码">
|
|
- <el-input v-model="editForm.rfid" autocomplete="off" placeholder="请输入RIFD码"></el-input>
|
|
|
|
|
|
+ <el-input v-model="editForm.rfid" autocomplete="off" placeholder="请输入RIFD码"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="所属生产方" v-if="moldDetail.projectId != null">
|
|
|
|
+ <el-select v-model="editForm.produceCompanyId" clearable filterable placeholder="请选择所属生产方" style="width:202px">
|
|
|
|
+ <el-option v-for="item in customCompany" :key="item.companyId" :label="item.companyName" :value="item.companyId"></el-option>
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -407,10 +429,21 @@
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
moldDetail: {},
|
|
moldDetail: {},
|
|
customCompany: [],
|
|
customCompany: [],
|
|
|
|
+ boxes: [],
|
|
|
|
|
|
formRules: {
|
|
formRules: {
|
|
|
|
+ modelNo: [
|
|
|
|
+ { required: true, message: "请输入模具编号", trigger: "blur" }
|
|
|
|
+ ],
|
|
modelName: [
|
|
modelName: [
|
|
- { required: true, message: "请输入模具名称", trigger: "blur" }
|
|
|
|
|
|
+ { required: true, message: "请输入模具名称", trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ equipmentId: [
|
|
|
|
+ {
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择云模盒编号",
|
|
|
|
+ trigger: ["blur", "change"]
|
|
|
|
+ }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
|
|
|
|
@@ -454,9 +487,12 @@
|
|
editForm: {
|
|
editForm: {
|
|
id: 0,
|
|
id: 0,
|
|
modelName: "",
|
|
modelName: "",
|
|
|
|
+ modelNo: "",
|
|
|
|
+ equipmentId: "",
|
|
initialModulus: "",
|
|
initialModulus: "",
|
|
settingLife: "",
|
|
settingLife: "",
|
|
rfid: "",
|
|
rfid: "",
|
|
|
|
+ produceCompanyId: "",
|
|
flag: 1
|
|
flag: 1
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -476,6 +512,30 @@
|
|
this.getOperationRecord(this.activeTab);
|
|
this.getOperationRecord(this.activeTab);
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ getMsg() {
|
|
|
|
+ this.http.post( this.port.base.moulds, {
|
|
|
|
+ belongCompanyId: this.user.companyId,
|
|
|
|
+ mouldId: this.detailId
|
|
|
|
+ },
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.boxes = res.data;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.listLoading = false;
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
//模具详情
|
|
//模具详情
|
|
getDetail() {
|
|
getDetail() {
|
|
this.http.post( this.port.mold.moldDetail, {
|
|
this.http.post( this.port.mold.moldDetail, {
|
|
@@ -522,9 +582,12 @@
|
|
this.editForm = {
|
|
this.editForm = {
|
|
id: this.moldDetail.id,
|
|
id: this.moldDetail.id,
|
|
modelName: this.moldDetail.modelName,
|
|
modelName: this.moldDetail.modelName,
|
|
|
|
+ modelNo: this.moldDetail.modelNo,
|
|
|
|
+ equipmentId: this.moldDetail.equipmentId,
|
|
initialModulus: this.moldDetail.initialModulus,
|
|
initialModulus: this.moldDetail.initialModulus,
|
|
settingLife: this.moldDetail.settingLife,
|
|
settingLife: this.moldDetail.settingLife,
|
|
rfid: this.moldDetail.rfid,
|
|
rfid: this.moldDetail.rfid,
|
|
|
|
+ produceCompanyId: this.moldDetail.produceCompanyId,
|
|
flag: 1
|
|
flag: 1
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -539,7 +602,7 @@
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.editFormVisible = false;
|
|
this.editFormVisible = false;
|
|
this.$message({
|
|
this.$message({
|
|
- message: "创建成功",
|
|
|
|
|
|
+ message: "修改成功",
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
this.getDetail();
|
|
this.getDetail();
|
|
@@ -785,6 +848,7 @@
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ this.getMsg();
|
|
this.getDetail();
|
|
this.getDetail();
|
|
}
|
|
}
|
|
};
|
|
};
|