diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue
index 384a3fd..8e33258 100644
--- a/hb_client/src/views/mtm/material.vue
+++ b/hb_client/src/views/mtm/material.vue
@@ -2,7 +2,7 @@
-
+
新增物料
检查表
编辑
diff --git a/hb_client/src/views/mtm/process.vue b/hb_client/src/views/mtm/process.vue
index 75d69ca..a32c419 100644
--- a/hb_client/src/views/mtm/process.vue
+++ b/hb_client/src/views/mtm/process.vue
@@ -2,7 +2,7 @@
-
+
新增工序
@@ -46,6 +46,7 @@
>
diff --git a/hb_client/src/views/mtm/productprocess.vue b/hb_client/src/views/mtm/productprocess.vue
index 5608a46..431e799 100644
--- a/hb_client/src/views/mtm/productprocess.vue
+++ b/hb_client/src/views/mtm/productprocess.vue
@@ -42,25 +42,28 @@
- 工艺流程
-
-
+
- 流程分解
- 新增
+
+ 新增
{{ scope.row.sort }}
-
-
-
编辑
-
+ 编辑
+
删除
-
+ 删除
+
-
-
@@ -137,7 +135,6 @@
:value="item.value">
-
@@ -149,8 +146,6 @@
:max="2147483647"
>
-
-
取消
@@ -160,8 +155,13 @@
- 新增
+
+ 新增
编辑
+ >
+ 编辑
删除
+ >
+ 删除
@@ -244,8 +246,13 @@
- 新增
+
+ 新增
- 是
+ 是
否
@@ -279,16 +286,18 @@
>
编辑
+ >
+ 编辑
删除
+ >
+ 删除
@@ -336,8 +345,13 @@
- 新增
+
+ 新增
编辑
+ >
+ 编辑
删除
+ >
+ 删除
@@ -418,8 +434,13 @@
- 新增
+
+ 新增
-
检验
不检验
@@ -447,20 +467,24 @@
>
编辑
+ >
+ 编辑
查看
+ >
+ 查看
删除
+ >
+ 删除
@@ -503,8 +527,13 @@
- 新增
+
+ 新增
编辑
+ >
+ 编辑
删除
+ >
+ 删除
@@ -628,7 +659,7 @@
deleteOthermaterial,
updateOthermaterial
} from "@/api/mtm";
- import { getEquipmentAll } from "@/api/equipment";
+ import {getEquipmentAll} from "@/api/equipment";
import {quillEditor} from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
@@ -641,8 +672,8 @@
const defaultinputmaterial = {};
const defaultoutputmaterial = {};
const defaultother = {};
- const defaultusedstep = {need_test:false};
- const defaulttechdoc = {enabled: false,name:""};
+ const defaultusedstep = {need_test: false};
+ const defaulttechdoc = {enabled: false, name: ""};
const defaultsubproducation = {
need_combtest: false,
};
@@ -831,11 +862,11 @@
})
.then(async () => {
await deletesubproducation(scope.row.id);
- this.getsubproducationList()
+ this.getsubproducationList();
this.$message.success("成功");
})
.catch((err) => {
- console.error(err);
+ this.$message.error(err);
});
},
@@ -847,7 +878,7 @@
this.subproducation.product = this.product;
updatesubproducation(this.subproducation.id, this.subproducation).then((res) => {
if (res.code >= 200) {
- this.getsubproducationList()
+ this.getsubproducationList();
this.dialogVisiblesp = false;
this.$message.success("成功");
}
@@ -856,7 +887,7 @@
this.subproducation.product = this.product;
createsubproducation(this.subproducation).then((res) => {
if (res.code >= 200) {
- this.getsubproducationList()
+ this.getsubproducationList();
this.dialogVisiblesp = false;
this.$message.success("成功");
}
@@ -906,11 +937,11 @@
})
.then(async () => {
await deleteInputmaterial(scope.row.id);
- this.getInputmaterialLists()
+ this.getInputmaterialLists();
this.$message.success("成功");
})
.catch((err) => {
- console.error(err);
+ this.$message.error(err);
});
},
@@ -922,7 +953,7 @@
this.inputmaterial.subproduction = this.subproduction;
updateInputmaterial(this.inputmaterial.id, this.inputmaterial).then((res) => {
if (res.code >= 200) {
- this.getInputmaterialLists()
+ this.getInputmaterialLists();
this.dialogVisible = false;
this.$message.success("成功");
}
@@ -931,7 +962,7 @@
this.inputmaterial.subproduction = this.subproduction;
createInputmaterial(this.inputmaterial).then((res) => {
if (res.code >= 200) {
- this.getInputmaterialLists()
+ this.getInputmaterialLists();
this.dialogVisible = false;
this.$message.success("成功");
}
@@ -980,11 +1011,11 @@
})
.then(async () => {
await deleteOutputmaterial(scope.row.id);
- this.getOutputmaterialLists()
+ this.getOutputmaterialLists();
this.$message.success("成功");
})
.catch((err) => {
- console.error(err);
+ this.$message.error(err);
});
},
async outputconfirm(form) {
@@ -995,7 +1026,7 @@
this.outputmaterial.subproduction = this.subproduction;
updateOutputmaterial(this.outputmaterial.id, this.outputmaterial).then((res) => {
if (res.code >= 200) {
- this.getOutputmaterialLists()
+ this.getOutputmaterialLists();
this.dialogVisible1 = false;
this.$message.success("成功");
}
@@ -1004,7 +1035,7 @@
this.outputmaterial.subproduction = this.subproduction;
createOutputmaterial(this.outputmaterial).then((res) => {
if (res.code >= 200) {
- this.getOutputmaterialLists()
+ this.getOutputmaterialLists();
this.dialogVisible1 = false;
this.$message.success("成功");
}
@@ -1056,7 +1087,7 @@
this.$message.success("成功");
})
.catch((err) => {
- console.error(err);
+ this.$message.error(err);
});
},
@@ -1068,7 +1099,7 @@
this.othermaterial.subproduction = this.subproduction;
updateOthermaterial(this.othermaterial.id, this.othermaterial).then((res) => {
if (res.code >= 200) {
- this.getOthermaterialLists()
+ this.getOthermaterialLists();
this.dialogVisibleother = false;
this.$message.success("成功");
}
@@ -1077,7 +1108,7 @@
this.othermaterial.subproduction = this.subproduction;
createOthermaterial(this.othermaterial).then((res) => {
if (res.code >= 200) {
- this.getOthermaterialLists()
+ this.getOthermaterialLists();
this.dialogVisibleother = false;
this.$message.success("成功");
}
@@ -1125,9 +1156,9 @@
});
},
//编辑子工序
- handleEdit(scope){
- this.subProcessId = scope.row.id;
- this.usedstep = Object.assign({}, scope.row);
+ handleEdit(scope) {
+ this.subProcessId = scope.row.id;
+ this.usedstep = Object.assign({}, scope.row);
this.dialogTypes = "edit";
this.dialogVisibleusedstep = true;
},
@@ -1141,11 +1172,11 @@
})
.then(async () => {
await deleteUsedstep(scope.row.id);
- this.getUsedstepLists()
+ this.getUsedstepLists();
this.$message.success("成功");
})
.catch((err) => {
- console.error(err);
+ this.$message.error(err);
});
},
@@ -1153,11 +1184,11 @@
async usedstepconfirm(form) {
let that = this;
this.usedstep.subproduction = this.subproduction;
- if(that.dialogTypes === 'edit'){
+ if (that.dialogTypes === 'edit') {
let obj = new Object();
- obj.remark =this.usedstep.remark;
- obj.need_test =this.usedstep.need_test;
- updateUsedstep(that.subProcessId,obj).then((res) => {
+ obj.remark = this.usedstep.remark;
+ obj.need_test = this.usedstep.need_test;
+ updateUsedstep(that.subProcessId, obj).then((res) => {
if (res.code >= 200) {
this.getUsedstepLists();
this.getMaterial();
@@ -1165,7 +1196,7 @@
this.$message.success("成功");
}
});
- }else{
+ } else {
createUsedstep(this.usedstep).then((res) => {
if (res.code >= 200) {
this.getUsedstepLists();
@@ -1208,11 +1239,11 @@
handleUpSuccess(res, file, filelist) {
this.techdoc.file = res.data.id;
- console.log(res.data);
+ // console.log(res.data);
this.techdoc.name = res.data.name;
},
- handleRemove(file, filelist) {
+ handleRemove() {
this.techdoc.file = null;
},
@@ -1245,7 +1276,7 @@
this.$message.success("成功");
})
.catch((err) => {
- console.error(err);
+ this.$message.error(err);
});
},
diff --git a/hb_client/src/views/pm/management.vue b/hb_client/src/views/pm/management.vue
index caa5cb6..5ee4808 100644
--- a/hb_client/src/views/pm/management.vue
+++ b/hb_client/src/views/pm/management.vue
@@ -3,31 +3,30 @@
生产任务列表
-
-
+
搜索
+ 搜索
+
重置
-
+ 重置
+
-
-
-
-
- {{ scope.row.number }}
+
+
{{ scope.row.order_.number }}
- {{
- scope.row.order_.contract_.number
- }}
+
+ {{scope.row.order_.contract_.number}}
+
-
-
+
{{ scope.row.product_.name }}
- {{
- scope.row.product_.specification
- }}
+
+ {{scope.row.product_.specification}}
+
{{ scope.row.product_.unit }}
-
- {{ scope.row.count }}
+
{{ state_[scope.row.state] }}
-
- {{ scope.row.start_date }}
+
-
- {{ scope.row.end_date }}
+
- {{
- scope.row.order_.delivery_date
- }}
+
+ {{scope.row.order_.delivery_date}}
+
-
详情
+ >
+ 详情
@@ -107,79 +99,157 @@
甘特图
//样式文件
diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue
index b434ba8..8ed58f7 100644
--- a/hb_client/src/views/pm/plan.vue
+++ b/hb_client/src/views/pm/plan.vue
@@ -16,14 +16,16 @@
type="primary"
icon="el-icon-search"
@click="handleFilter"
- >搜索
+ >
+ 搜索
重置
+ >
+ 重置
-
-
- {{ scope.row.number }}
+
+
{{ scope.row.order_.number }}
- {{
- scope.row.order_.contract_.number
- }}
+
+ {{scope.row.order_.contract_.number }}
+
{{ scope.row.product_.name }}
- {{
- scope.row.product_.specification
- }}
+
+ {{scope.row.product_.specification}}
+
{{ scope.row.product_.unit }}
-
- {{ scope.row.count }}
+
{{ state_[scope.row.state] }}
-
- {{ scope.row.start_date }}
+
-
- {{ scope.row.end_date }}
+
- {{
- scope.row.order_.delivery_date
- }}
+
+ {{scope.row.order_.delivery_date}}
+
-
否
是
-
- {{ scope.row.create_time }}
+
- 暂停
+
+ 暂停
启用
+ >
+ 启用
终止
+ >
+ 终止
查看子计划
+ >
+ 查看子计划
- 生成子计划
+
+ 生成子计划
@@ -161,7 +166,8 @@
{{
scope.row.product_.specification
- }}
+ }}
+
{{ scope.row.count }}
@@ -182,10 +188,12 @@
width="80px"
>
- 排产
+
+ 排产
@@ -229,10 +237,18 @@
- 取消
- 确认
+ 取消
+
+
+ 确认
+
@@ -243,264 +259,264 @@
diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue
index 4b433cc..d0d9363 100644
--- a/hb_client/src/views/pm/resources.vue
+++ b/hb_client/src/views/pm/resources.vue
@@ -6,10 +6,16 @@
合同订单列表
- 计算物料
+
+ 计算物料
+
-
+
{{ scope.row.number }}
@@ -26,7 +32,8 @@
{{
scope.row.product_.name
- }}
+ }}
+
@@ -35,38 +42,45 @@
{{
scope.row.planed_count
- }}
+ }}
+
{{
scope.row.product_.specification
- }}
+ }}
+
{{
scope.row.customer_.name
- }}
+ }}
+
{{
scope.row.contract_.number
- }}
+ }}
+
{{
scope.row.contract_.name
- }}
+ }}
+
{{
scope.row.delivery_date
- }}
+ }}
+
{{
scope.row.create_time
- }}
+ }}
+
@@ -99,12 +113,13 @@
物料配置
半成品折合
+ 半成品折合
+
-
-
+
+
{{ scope.row.name }}
- {{ options_[scope.row.type] }}
+ {{ options_[scope.row.type] }}
+
{{ scope.row.number }}
@@ -142,30 +157,26 @@
- {{ scope.row.count }}
+ {{ scope.row.count }}
+
- {{ scope.row.inv_count - scope.row.count }}
+ {{ scope.row.inv_count - scope.row.count }}
+
- {{ scope.row.inv_count - scope.row.count }}
+ {{ scope.row.inv_count - scope.row.count }}
+
- {{
- scope.row.count_safe
- }}
+
+ {{scope.row.count_safe }}
+
@@ -185,41 +196,41 @@
style="width: 100%"
height="280"
>
-
+
{{ scope.row.name }}
-
-
- 禁用
-
-
- 合格
-
-
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
- {{ state_[scope.row.state] }}
-
-
-
+
+
+ 禁用
+
+
+ 合格
+
+
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+
- {{ scope.row.number }}
+ {{ scope.row.number }}
+
{{ scope.row.model }}
@@ -239,152 +250,152 @@
-
\ No newline at end of file
+ };
+