diff --git a/src/config/route.js b/src/config/route.js
index 6bc0891c..52b72bbd 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -1045,6 +1045,16 @@ const routes = [
},
component: "enm_energy/water",
},
+ {
+ name: "air_consume",
+ path: "/enm_energy/",
+ meta: {
+ title: "压缩空气报表",
+ // icon: "el-icon-grid",
+ perms: ["air_base"],
+ },
+ component: "enm_energy/air_consume",
+ },
// {
// name: "ct_elec",
// path: "/enm_energy/ct_elec",
diff --git a/src/views/bigScreen/index_enm.vue b/src/views/bigScreen/index_enm.vue
index f4f25a18..4c423b7f 100644
--- a/src/views/bigScreen/index_enm.vue
+++ b/src/views/bigScreen/index_enm.vue
@@ -286,6 +286,11 @@ BABYLON.DracoCompression.Configuration.decoder.fallbackUrl =
import "babylonjs-loaders";
import "animate.css";
export default {
+ beforeRouteLeave(to, from, next) {
+// 页面离开时刷新页面
+ window.location.reload();
+ next();
+ },
components: { value },
data() {
return {
@@ -428,21 +433,21 @@ export default {
new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
- color: "rgb(243, 84, 9)",
+ color: "rgb(246, 5, 213)",
},
{
offset: 1,
- color: "rgb(191, 69, 12)",
+ color: "rgb(244, 130, 9 )",
},
]),
new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
- color: "rgb(213, 9, 241)",
+ color: "rgb(18, 6, 248)",
},
{
offset: 1,
- color: "rgb(138, 34, 153)",
+ color: "rgb(6, 248, 80)",
},
]),
],
@@ -641,11 +646,11 @@ export default {
[
{
offset: 0,
- color: "rgb(223, 65, 19)",
+ color: "rgb(241, 56, 4)",
},
{
offset: 1,
- color: "rgb(223, 20, 20)",
+ color: "rgb(12, 35, 196)",
},
]
),
@@ -892,7 +897,7 @@ export default {
index2++;
} else {
index2 = 0;
- clearInterval(intervalId);
+ // clearInterval(intervalId);
}
}, 1000);
});
@@ -1093,7 +1098,7 @@ export default {
index3++;
} else {
index3 = 0;
- clearInterval(intervalId);
+ // clearInterval(intervalId);
}
}, 1000);
});
@@ -1190,7 +1195,6 @@ export default {
this.$API.enm.enstat.req(params).then((ress) => {
that.hotData.bz_elec_consume_unit =
ress[0].elec_consume_unit;
- that.hotData.sn_cen_consume_unit = ress[0].cen_consume_unit;
});
});
},
@@ -1376,7 +1380,7 @@ export default {
index3++;
} else {
index3 = 0;
- clearInterval(intervalId);
+ // clearInterval(intervalId);
}
}, 1000);
});
@@ -2026,9 +2030,9 @@ export default {
beforeUnmount() {
let that = this;
this.scene = null;
- clearInterval(that.timerTime);
- clearInterval(that.timerData);
- clearInterval(that.qualityTimer);
+ // clearInterval(that.timerTime);
+ // clearInterval(that.timerData);
+ // clearInterval(that.qualityTimer);
that.timerTime = null;
that.timerData = null;
that.qualityTimer = null;
@@ -2036,9 +2040,9 @@ export default {
beforeDestoryed() {
let that = this;
this.scene = null;
- clearInterval(that.timerTime);
- clearInterval(that.timerData);
- clearInterval(that.qualityTimer);
+ // clearInterval(that.timerTime);
+ // clearInterval(that.timerData);
+ // clearInterval(that.qualityTimer);
that.timerTime = null;
that.timerData = null;
that.qualityTimer = null;
diff --git a/src/views/enm_coal/report.vue b/src/views/enm_coal/report.vue
index 9a3fe106..c992449d 100644
--- a/src/views/enm_coal/report.vue
+++ b/src/views/enm_coal/report.vue
@@ -74,9 +74,9 @@
>
{{ item[5] }}
-
{{ item[6].toFixed(2) }} |
+ {{ item[6]}} |
{{ item[7] }} |
- {{ item[8].toFixed(2) }} |
+ {{ item[8]}} |
{{ item[9] }} |
@@ -271,7 +271,7 @@ export default {
["运转时间", "运转时间(h)", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%)", "/", 0, 0, 0, 0, 0, 0, 0],
["能耗", "煤磨分布电耗(KW·h/t)", 0, 0, 0, 0, 0, 0, 0, 0],
- ["能耗", "总电耗(KW·h)", 0, 0, 0, 0, 0, 0, 0, 0]
+ ["能耗", "总电耗(KW·h)", 0, 0, 0, 0, "/", "/", "/", "/"]
],
tableName: "生产报告",
modelValue: true,
diff --git a/src/views/enm_energy/air_consume.vue b/src/views/enm_energy/air_consume.vue
new file mode 100644
index 00000000..e072279d
--- /dev/null
+++ b/src/views/enm_energy/air_consume.vue
@@ -0,0 +1,751 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/enm_energy/electric_peak.vue b/src/views/enm_energy/electric_peak.vue
index 59dbd467..77970170 100644
--- a/src/views/enm_energy/electric_peak.vue
+++ b/src/views/enm_energy/electric_peak.vue
@@ -54,7 +54,7 @@
:loading="exportLoading"
>导出xlsx
- 打印
+
@@ -82,9 +82,11 @@
+
diff --git a/src/views/wpm_bx/check_form.vue b/src/views/wpm_bx/check_form.vue
new file mode 100644
index 00000000..27426bf1
--- /dev/null
+++ b/src/views/wpm_bx/check_form.vue
@@ -0,0 +1,743 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 取消
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/handover.vue b/src/views/wpm_bx/handover.vue
new file mode 100644
index 00000000..9b7da4f9
--- /dev/null
+++ b/src/views/wpm_bx/handover.vue
@@ -0,0 +1,450 @@
+
+
+
+
+ 新增
+ 返工
+ 打印机
+ 检验
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.batch}}
+
+
+ {{item.count}}
+
+
+ {{item.notok_sign_name}}
+
+
+
+
+
+
+
+
+
+ {{scope.row.handoverb.length}}批
+
+
+
+
+
+ 交送
+ 接收
+
+
+ 交送
+ 接收
+
+
+
+
+ 正常
+ 返工
+ 检验
+ 报废
+
+
+
+
+
+
+
+ 打印
+ 接收
+ 查看
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue
new file mode 100644
index 00000000..a2cb92c3
--- /dev/null
+++ b/src/views/wpm_bx/handover_form.vue
@@ -0,0 +1,616 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 手动添加
+
+
+
+
+
+
+
+
+ {{ item.batch }}
+
+ {{ item.count }}
+
+ ({{ item.notok_sign_name }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ listItem.count_cando }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 总计:{{ totalCount }}
+
+
+
+ 确定
+ 取消
+
+
+
+
+
diff --git a/src/views/wpm_bx/inm.vue b/src/views/wpm_bx/inm.vue
new file mode 100644
index 00000000..fd48c6ea
--- /dev/null
+++ b/src/views/wpm_bx/inm.vue
@@ -0,0 +1,387 @@
+
+
+
+
+ 领料
+ 入库
+
+ 报废
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{wmState[scope.row.state]?.text}}
+
+
+
+
+
+ {{ scope.row.material_name }}
+ ({{ scope.row.material_origin_name }})
+
+
+
+
+
+ {{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}}
+
+
+
+
+
+
+
+
+ 检验
+
+
+ 检验记录
+
+ 物料标签
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/inm_record.vue b/src/views/wpm_bx/inm_record.vue
new file mode 100644
index 00000000..508be431
--- /dev/null
+++ b/src/views/wpm_bx/inm_record.vue
@@ -0,0 +1,506 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 下一步
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.material_name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一步
+ 提交
+
+
+
+ 打印
+
+
+ {{form.number}}
+
+
+ {{typeDict[form.type]}}
+
+
+ {{stateDict[form.state]}}
+
+
+ {{form.belong_dept_name}}-{{ form.mgroup_name }}
+
+
+ {{form.do_user_name}}
+
+
+ {{form.create_time}}
+
+
+
+
+
+
+ {{ scope.row.material_name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.material_name }}
+ 批:{{ item.batch }}
+ 比:{{ item.rate }}
+
+
+
+
+
+
+
+
+
+
+
+ 物料标签
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/inm_record_form.vue b/src/views/wpm_bx/inm_record_form.vue
new file mode 100644
index 00000000..8b2236e0
--- /dev/null
+++ b/src/views/wpm_bx/inm_record_form.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+ {{ item.full_name }}
+ 隐
+
+
+
+
+
+
+ {{item.material_.name}}|{{ item.batch }}
+ {{ item.count }}
+
+
+
+
+
+
+
+ {{ item.batch }}
+ {{ item.count }} -- {{ item.warehouse_name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+ 取消
+
+
+
+
+
diff --git a/src/views/wpm_bx/mlog_bx.vue b/src/views/wpm_bx/mlog_bx.vue
new file mode 100644
index 00000000..281fe1d7
--- /dev/null
+++ b/src/views/wpm_bx/mlog_bx.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue
new file mode 100644
index 00000000..4be32377
--- /dev/null
+++ b/src/views/wpm_bx/mlog_detail.vue
@@ -0,0 +1,730 @@
+
+
+
+
+ 打印
+
+ {{
+ mlogItem.routepack_name
+ }}
+ {{
+ mlogItem.material_in_name
+ }}
+ {{
+ mlogItem.material_out_name
+ }}
+ {{
+ mlogItem.mgroup_name
+ }}
+ {{
+ mlogItem.equipment_name
+ }}
+ {{
+ mlogItem.hour_work
+ }}
+ {{
+ mlogItem.belong_dept_name
+ }}
+ {{
+ mlogItem.handle_user_name
+ }}
+ {{
+ mlogItem.work_start_time
+ }}
+ {{
+ mlogItem.create_time
+ }}
+
+ {{act_states[mlogItem.ticket_.act_state]}}
+
+
+ {{mlogItem.test_file}}
+
+
+
+
+ 编辑
+
+ 提交
+
+ 放行审批
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保 存
+
+
+
+
+
+
+
+
+
+
+
+ {{item.floor}}
+
+
+ {{item.count_sampling}}
+
+
+ {{item.count}}
+
+
+
+
+
+ {{
+ props.row.count_n_hs
+ }}
+ {{
+ props.row.count_n_qp
+ }}
+ {{
+ props.row.count_n_swen
+ }}
+ {{
+ props.row.count_n_bb
+ }}
+ {{
+ props.row.count_n_xbb
+ }}
+ {{
+ props.row.count_n_wm
+ }}
+ {{
+ props.row.count_n_md
+ }}
+ {{
+ props.row.count_n_xh
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 检验
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 物料标签
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ min
+
+
+
+
+
+ °C
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ :退火后直径23.5±0.2;黑圈内径:5.9±0.1;外径7.6-7.77
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue
new file mode 100644
index 00000000..87c6030e
--- /dev/null
+++ b/src/views/wpm_bx/mlog_form.vue
@@ -0,0 +1,425 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.routepack_name }}-{{
+ item.process_name
+ }}
+
+
+
+
+
+
+
+
+ {{item.name}}
+ {{item.number}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (min)
+
+
+
+
+ (min)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mlogb_check.vue b/src/views/wpm_bx/mlogb_check.vue
new file mode 100644
index 00000000..04fdc151
--- /dev/null
+++ b/src/views/wpm_bx/mlogb_check.vue
@@ -0,0 +1,445 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue
new file mode 100644
index 00000000..d2700323
--- /dev/null
+++ b/src/views/wpm_bx/mlogb_form.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.batch }}{{ item.count }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue
new file mode 100644
index 00000000..53ab5740
--- /dev/null
+++ b/src/views/wpm_bx/mlogs.vue
@@ -0,0 +1,386 @@
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{customMethod(scope.row,3)}}
+
+
+
+
+ {{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}}
+
+
+
+
+
+ {{ getRemaTime(scope.row) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 删除
+ 撤回
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mtask.vue b/src/views/wpm_bx/mtask.vue
new file mode 100644
index 00000000..469cd07e
--- /dev/null
+++ b/src/views/wpm_bx/mtask.vue
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.mtaskb.length}}
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+ 提交
+
+ 分配
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.material_name }}
+ ({{ scope.row.material_origin_name }})
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/mtask_deliver.vue b/src/views/wpm_bx/mtask_deliver.vue
new file mode 100644
index 00000000..2a814cda
--- /dev/null
+++ b/src/views/wpm_bx/mtask_deliver.vue
@@ -0,0 +1,213 @@
+
+
+
+ 打印
+
+
+ {{
+ mtaskObj.material_out_name
+ }}
+ {{
+ mtaskObj.number
+ }}
+ {{
+ mtaskObj.count
+ }}
+ {{
+ mtaskObj.start_date
+ }}
+ {{
+ mtaskObj.end_date
+ }}
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_bx/print.vue b/src/views/wpm_bx/print.vue
new file mode 100644
index 00000000..fa52432f
--- /dev/null
+++ b/src/views/wpm_bx/print.vue
@@ -0,0 +1,140 @@
+
+
+
+
+ 光芯科技
+ 交接单
+
+
+
物料:{{ name }}
+
批次号:{{ batch }}
+
数量:{{ count }}
+
+
打印
+
+
+
+
diff --git a/src/views/wpm_gx/check_form.vue b/src/views/wpm_gx/check_form.vue
index 27426bf1..652006df 100644
--- a/src/views/wpm_gx/check_form.vue
+++ b/src/views/wpm_gx/check_form.vue
@@ -51,7 +51,7 @@
controls-position="right"
v-model="form.count"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountNotokChange"
>
@@ -68,7 +68,7 @@
controls-position="right"
v-model="form.count_sampling"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountNotokChange"
>
@@ -80,7 +80,7 @@
v-model="form.count_sampling_ok"
style="width: 100%"
disabled
- precision="0"
+ :precision="0"
>
@@ -90,7 +90,7 @@
controls-position="right"
v-model="form.count_notok"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountNotokChange"
>
@@ -101,7 +101,7 @@
controls-position="right"
v-model="count_ok_rate"
style="width: 100%"
- precision="0"
+ :precision="0"
>
@@ -143,7 +143,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hqnj"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -154,7 +154,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hqnjyd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -165,7 +165,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hqwj"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -176,7 +176,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hqwjyd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -187,7 +187,7 @@
controls-position="right"
v-model="count_notok_json.count_n_wj"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -198,7 +198,7 @@
controls-position="right"
v-model="count_notok_json.count_n_yd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -209,7 +209,7 @@
controls-position="right"
v-model="count_notok_json.count_n_txd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -220,7 +220,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -231,7 +231,7 @@
controls-position="right"
v-model="count_notok_json.count_n_zhg"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -242,7 +242,7 @@
controls-position="right"
v-model="count_notok_json.count_n_yz"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -256,7 +256,7 @@
controls-position="right"
v-model="count_notok_json.count_n_z"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -267,7 +267,7 @@
controls-position="right"
v-model="count_notok_json.count_n_qp"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -278,7 +278,7 @@
controls-position="right"
v-model="count_notok_json.count_n_swen"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -289,7 +289,7 @@
controls-position="right"
v-model="count_notok_json.count_n_bb"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -300,7 +300,7 @@
controls-position="right"
v-model="count_notok_json.count_n_zb"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -311,7 +311,7 @@
controls-position="right"
v-model="count_notok_json.count_n_zq"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -322,7 +322,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hs"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -333,7 +333,7 @@
controls-position="right"
v-model="count_notok_json.count_n_md"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -344,7 +344,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hqbx"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -355,7 +355,7 @@
controls-position="right"
v-model="count_notok_json.count_n_dj"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -367,7 +367,7 @@
controls-position="right"
v-model="count_notok_json.count_n_ps"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -378,7 +378,7 @@
controls-position="right"
v-model="count_notok_json.count_n_lq"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -392,7 +392,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -403,7 +403,7 @@
controls-position="right"
v-model="count_notok_json.count_n_wj"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -414,7 +414,7 @@
controls-position="right"
v-model="count_notok_json.count_n_yd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -425,7 +425,7 @@
controls-position="right"
v-model="count_notok_json.count_n_txd"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -436,7 +436,7 @@
controls-position="right"
v-model="count_notok_json.count_n_qp"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -447,7 +447,7 @@
controls-position="right"
v-model="count_notok_json.count_n_swen"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -458,7 +458,7 @@
controls-position="right"
v-model="count_notok_json.count_n_bb"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -469,7 +469,7 @@
controls-position="right"
v-model="count_notok_json.count_n_xbb"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -480,7 +480,7 @@
controls-position="right"
v-model="count_notok_json.count_n_hs"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -491,7 +491,7 @@
controls-position="right"
v-model="count_notok_json.count_n_md"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -503,7 +503,7 @@
controls-position="right"
v-model="count_notok_json.count_n_ps"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -514,7 +514,7 @@
controls-position="right"
v-model="count_notok_json.count_n_qt"
style="width: 100%"
- precision="0"
+ :precision="0"
@change="handleCountChange"
>
@@ -522,8 +522,23 @@
-
-
+ {{ item.name }}
+ 取消
+
+
+ 提交
取消
@@ -559,7 +574,8 @@ export default {
batch: "",
count: null,
count_ok: 0,
- count_sampling_ok:'',
+ count_sampling_ok:0,
+ count_sampling:0,
count_notok: 0,
count_notok_json:{}
},
@@ -591,6 +607,7 @@ export default {
{name:'全检',value:20},
{name:'抽检',value:10},
],
+ initForm: {},
selectionFilters: [],
batchCount:null,
formCount:null,
@@ -601,6 +618,7 @@ export default {
};
},
mounted() {
+ console.log('mgroupName',this.mgroupName);
this.batchCount = this.itemObj.count_cando;
this.form.batch = this.itemObj.batch;
this.form.wm = this.itemObj.id;
@@ -608,6 +626,7 @@ export default {
this.form.supplier = this.itemObj.supplier;
this.deptID = this.$TOOL.data.get('gx_deptID');
this.getUsers();
+ this.getInit();
},
methods: {
//显示
@@ -633,6 +652,14 @@ export default {
});
});
},
+ //渲染工单提交按钮
+ getInit() {
+ let that = this;
+ that.$API.wf.workflow.initkey.req("baipaopiantest").then((res) => {
+ that.initForm = res;
+ console.log('that.initForm',that.initForm);
+ });
+ },
handleCountChange(type){
this.form.count_notok =
this.count_notok_json.count_n_wj+
@@ -664,11 +691,29 @@ export default {
let obj = {page: 0, count__gte: 0, count_xtest__gte: 0};
//工段
obj.mgroupx = that.mgroup;
- that.$API.wpm.wmaterial.list
- .req(obj)
- .then((res) => {
- that.options = res;
- });
+ that.$API.wpm.wmaterial.list.req(obj).then((res) => {
+ that.options = res;
+ });
+ },
+ //提交白片抛抽检信息,创建工单
+ submitTicketCreate(id) {
+ this.transition = id;
+ this.submit();
+ // let that = this;
+ // let ticket = {};
+ // that.isSaveing = true;
+ // ticket.title = '白片抛抽检审批单';
+ // ticket.workflow = that.initForm.workflow;
+ // ticket.ticket_data = {t_id: that.mlogItem.id};
+ // ticket.transition = id;
+ // that.$API.wf.ticket.create.req(ticket).then((res) => {
+ // that.isSaveing = false;
+ // that.ticketDialog = false;
+ // that.visible = false;
+ // that.$message.success("提交成功");
+ // }).catch((e) => {
+ // that.isSaveing = false;
+ // });
},
//提交
submit() {
@@ -707,15 +752,30 @@ export default {
}
that.form.count_notok_json = that.count_notok_json;
console.log('that.form',that.form)
- that.$API.qm.ftestwork.create.req(that.form)
- .then((res) => {
- that.$API.qm.ftestwork.submit.req(res.id)
- .then((res) => {
+ that.$API.qm.ftestwork.create.req(that.form).then((res) => {
+ if(that.mgroupName=='白片抛'){
+ let ticket = {};
+ that.isSaveing = true;
+ ticket.title = '白片抛抽检审批单';
+ ticket.workflow = that.initForm.workflow;
+ ticket.ticket_data = {t_id: res.id};
+ ticket.transition = that.transition;
+ that.$API.wf.ticket.create.req(ticket).then((res) => {
+ that.isSaveing = false;
+ that.ticketDialog = false;
+ that.visible = false;
+ that.$message.success("提交成功");
+ }).catch((e) => {
+ that.isSaveing = false;
+ });
+ }else{
+ that.$API.qm.ftestwork.submit.req(res.id).then((res) => {
that.isSaveing = false;
that.visible = false;
that.$emit("success");
that.$message.success("操作成功");
})
+ }
}).catch( err=>{
//可以处理校验错误
that.isSaveing = false;
diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue
index 9b7da4f9..616d7e8b 100644
--- a/src/views/wpm_gx/handover.vue
+++ b/src/views/wpm_gx/handover.vue
@@ -14,7 +14,7 @@
icon="el-icon-plus"
@click="table_add(20)"
v-auth="'handover.create'"
- v-if="mgroup_name!=='切片'&&mgroup_name!=='拉单丝'&&mgroup_name!=='一次复丝'&&mgroup_name!=='二次复丝'&&mgroup_name!=='切丝排版'"
+ v-if="mgroupName!=='切片'"
>返工
检验
@@ -104,7 +104,7 @@
-
+
交送
接收
@@ -211,7 +211,7 @@
v-if="dialog.save"
ref="saveDialog"
:type="type"
- :mgroupName="mgroup_name"
+ :mgroupName="mgroupName"
:mgroupId="mgroupId"
@success="handleSaveSuccess"
@closed="dialog.save = false"
@@ -279,29 +279,15 @@ export default {
printer_name: "",
printVisible:false,
setNameVisible: false,
- mgroup_name:'',
};
},
- watch: {
- mgroupName: {
- handler: function (newval,odlval) {
- let that = this;
- that.params.dept = "";
- that.params.mgroup = "";
- that.apiObj = null;
- that.mgroup_name = newval;
- that.getMgroupInfo();
- },
- },
- },
mounted() {
- // this.getMgroupInfo();
+ this.getMgroupInfo();
},
methods: {
getMgroupInfo(){
let that = this;
- console.log('that.mgroup_name',that.mgroup_name);
- if(that.mgroup_name=="size"){//尺寸检验
+ if(that.mgroupName=="size"){//尺寸检验
// that.params.material__process__name="一次超洗";
that.$API.system.dept.list.req({name__contains:'尺寸',page:0}).then((res) => {
if(res.length>0){
@@ -311,7 +297,7 @@ export default {
that.apiObj = that.$API.wpm.handover.list;
that.$refs.table.refresh();
})
- }else if(that.mgroup_name=="facade"){//外观检验
+ }else if(that.mgroupName=="facade"){//外观检验
// that.params.material__process__name="二次超洗";
that.$API.system.dept.list.req({name__contains:'外观',page:0}).then((res) => {
if(res.length>0){
@@ -324,7 +310,7 @@ export default {
}else{//工段交接
that.printer_name = localStorage.getItem("printer_name");
that.$API.mtm.mgroup.list
- .req({ page: 0, name: that.mgroup_name })
+ .req({ page: 0, name: that.mgroupName })
.then((res) => {
if (res.length < 1) {
that.$message.error("获取工段错误");
@@ -388,7 +374,7 @@ export default {
searchTypeQuery() {
let that = this;
if (that.searchType == "send") {
- if(that.mgroup_name=="size"||that.mgroup_name=="facade"){
+ if(that.mgroupName=="size"||that.mgroupName=="facade"){
that.query.send_dept = that.deptId;
that.query.recive_dept = "";
}else{
@@ -396,7 +382,7 @@ export default {
that.query.recive_mgroup = "";
}
} else if (that.searchType == "recive") {
- if(that.mgroup_name=="size"||that.mgroup_name=="facade"){
+ if(that.mgroupName=="size"||that.mgroupName=="facade"){
that.query.send_dept = "";
that.query.recive_dept =that.deptId;
}else{
diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue
index fd48c6ea..b8a6ef88 100644
--- a/src/views/wpm_gx/inm.vue
+++ b/src/views/wpm_gx/inm.vue
@@ -139,7 +139,7 @@
v-if="dialog.save"
ref="saveDialog"
:mgroup="mgroupId"
- :mgroupName="mgroup_name"
+ :mgroupName="mgroupName"
:itemObj = "checkItem"
@success="handleSaveSuccess"
@closed="dialog.save = false"
@@ -149,7 +149,7 @@
v-if="dialog.scrap"
ref="scrapDialog"
:type="type"
- :mgroupName="mgroup_name"
+ :mgroupName="mgroupName"
:mgroupId="mgroupId"
@success="handleScrapSuccess"
@closed="dialog.scrap = false"
@@ -245,20 +245,10 @@ export default {
visibleDrawer: false,
apiObjPrint:this.$API.cm.labelmat.fromWm,
wmId:'',
- mgroup_name:''
};
},
- mounted() {},
- watch: {
- mgroupName: {
- handler: function (newval,odlval) {
- let that = this;
- that.params.mgroupx = "";
- that.apiObj = null;
- that.mgroup_name = newval;
- that.getMgroupInfo();
- },
- },
+ mounted() {
+ this.getMgroupInfo();
},
methods: {
getMgroupInfo(){
diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue
index 6282588f..d97c8339 100644
--- a/src/views/wpm_gx/mlog_form.vue
+++ b/src/views/wpm_gx/mlog_form.vue
@@ -216,6 +216,7 @@ const defaultForm = {
work_start_time: "",
work_end_time:null,
note:'',
+ mgroup:'',
reminder_interval_list: [0,0],
};
diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue
index ce321a34..44abed4f 100644
--- a/src/views/wpm_gx/mlogs.vue
+++ b/src/views/wpm_gx/mlogs.vue
@@ -54,7 +54,7 @@
prop="equipment_name"
min-width="150"
>
-
+
{{customMethod(scope.row,3)}}
@@ -72,7 +72,7 @@
prop="handle_user_name"
width="80"
>
-
+
{{ getRemaTime(scope.row) }}
@@ -146,7 +146,7 @@
:process="processId"
:mgroup="mgroupId"
:dept="deptId"
- :mgroup_name = "mgroup_name"
+ :mgroupName = "mgroupName"
@success="handleSaveSuccess"
@closed="dialog.save = false"
>
@@ -193,27 +193,15 @@ export default {
deptId: null,
processId: "",
processCate: "",
- mgroup_name:''
};
},
- watch: {
- mgroupName: {
- handler: function (newval,odlval) {
- let that = this;
- that.params.mgroup = "";
- that.apiObj = null;
- that.mgroup_name = newval;
- that.getMgroupInfo();
- },
- },
- },
mounted() {
- // this.getMgroupInfo();
+ this.getMgroupInfo();
},
methods: {
getMgroupInfo(){
let that = this;
- that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroup_name }).then((res) => {
+ that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => {
if (res.length < 1) {
that.$message.error("获取工段错误");
return;
diff --git a/src/views/wpm_gx/mtask.vue b/src/views/wpm_gx/mtask.vue
index 469cd07e..d7d40ab2 100644
--- a/src/views/wpm_gx/mtask.vue
+++ b/src/views/wpm_gx/mtask.vue
@@ -27,7 +27,7 @@
-
+
{
if(res.length>0){
that.mgroupId = res[0].id;