|
@@ -18,7 +18,7 @@
|
|
|
<el-button type="primary">查询</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item style="float: right;">
|
|
|
- <el-button type="primary" @click="showAllocation">分配云模</el-button>
|
|
|
+ <el-button type="primary" @click="showAllocation">新建</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-col>
|
|
@@ -40,7 +40,7 @@
|
|
|
<el-table-column prop="belongCompanyId" label="资产方" width="120" sortable></el-table-column>
|
|
|
<el-table-column prop="state" label="模具状态" width="100" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.state == false">未启用</span>
|
|
|
+ <span v-if="scope.row.isUse == 1">未启用</span>
|
|
|
<span v-else>已启用</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
equipmentName: "墨盒",
|
|
|
equipmentNo: "MUJU123456",
|
|
|
belongCompanyId: "南京火石闪信",
|
|
|
- state: true
|
|
|
+ isUse: 1
|
|
|
},
|
|
|
{
|
|
|
id: "7891011",
|
|
@@ -184,7 +184,7 @@ export default {
|
|
|
equipmentName: "墨盒2",
|
|
|
equipmentNo: "MUJU654321",
|
|
|
belongCompanyId: "南京火石闪信",
|
|
|
- state: false
|
|
|
+ isUse: 0
|
|
|
}
|
|
|
],
|
|
|
companies: {},
|
|
@@ -218,6 +218,33 @@ export default {
|
|
|
this.size = val;
|
|
|
// this.getMoulds();
|
|
|
},
|
|
|
+ //读取云模盒信息
|
|
|
+ getMould() {
|
|
|
+ this.http.post(
|
|
|
+ this.port.base.mouldeList,
|
|
|
+ {},
|
|
|
+ res => {
|
|
|
+ this.allocations = res.data.list;
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: "成功",
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
//添加界面
|
|
|
showAllocation() {
|
|
|
this.addFormVisible = true;
|
|
@@ -364,7 +391,6 @@ export default {
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.companies = res.data;
|
|
|
- console.log(this.companies);
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -379,6 +405,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
);
|
|
|
+ this.getMould();
|
|
|
}
|
|
|
};
|
|
|
</script>
|