diff --git a/.env.development b/.env.development
index e6ab5abd..58b17e13 100644
--- a/.env.development
+++ b/.env.development
@@ -6,7 +6,7 @@ NODE_ENV = development
VUE_APP_TITLE = '托克逊能源管理平台'
# VUE_APP_TITLE = '中建材光子科技有限公司'
# VUE_APP_TITLE = '超低排放系统'
-VUE_APP_PJ = 'gx'
+VUE_APP_PJ = 'pf'
# 接口地址
#VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
@@ -16,10 +16,10 @@ VUE_APP_PJ = 'gx'
# VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
#测试环境
-# VUE_APP_API_BASEURL = http://49.232.14.174:2226/api
-VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
-# VUE_APP_BASEURL = http://49.232.14.174:2226
-VUE_APP_BASEURL = http://127.0.0.1:2226
+ VUE_APP_API_BASEURL = http://49.232.14.174:2226/api
+#VUE_APP_API_BASEURL = http://127.0.0.1:2226/api
+ VUE_APP_BASEURL = http://49.232.14.174:2226
+#VUE_APP_BASEURL = http://127.0.0.1:2226
# #光子
# VUE_APP_API_BASEURL = http://49.232.14.174:2250/api
diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js
index f4d1883a..56f64454 100644
--- a/src/api/model/wpm.js
+++ b/src/api/model/wpm.js
@@ -369,8 +369,8 @@ export default {
prints: {
name: "打印",
req: async function (data) {
- return await http.post(`${config.API_URL}/prints/`, data);
- // return await http.post("http://localhost:8080/prints/", data);
+ // return await http.post(`${config.API_URL}/prints/`, data);
+ return await http.post("http://localhost:8080/prints/", data);
},
},
};
diff --git a/src/assets/icons/Env.vue b/src/assets/icons/Env.vue
new file mode 100644
index 00000000..38519596
--- /dev/null
+++ b/src/assets/icons/Env.vue
@@ -0,0 +1,5 @@
+
+
+
diff --git a/src/assets/icons/index.js b/src/assets/icons/index.js
index a85f299c..d8fa74ea 100644
--- a/src/assets/icons/index.js
+++ b/src/assets/icons/index.js
@@ -21,4 +21,5 @@ export { default as Shenpi } from './Shenpi.vue'
export { default as Shebei } from './Shebei.vue'
export { default as Xiaoshou } from './Xiaoshou.vue'
export { default as Zhixing } from './Zhixing.vue'
-export { default as Zhizao } from './Zhizao.vue'
\ No newline at end of file
+export { default as Zhizao } from './Zhizao.vue'
+export { default as Env } from './Env.vue'
\ No newline at end of file
diff --git a/src/config/route.js b/src/config/route.js
index 20f6eb4c..baae874f 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -898,7 +898,7 @@ const routes = [
path: "/enp",
meta: {
title: "环保模块",
- icon: "el-icon-grid",
+ icon: "sc-icon-env",
type: "menu",
perms: ["enm_hb"],
},
@@ -1401,11 +1401,21 @@ const routes = [
},
component: "wpm_gx/qiepian",
},
+ {
+ name: "baipianpao",
+ path: "/wpm_gx/baipianpao",
+ meta: {
+ title: "白片抛",
+ // icon: "el-icon-files",
+ perms: ["wpm_bpp"],
+ },
+ component: "wpm_gx/baipianpao",
+ },
{
name: "saobian",
path: "/wpm_gx/saobian",
meta: {
- title: "扫边",
+ title: "扫边A",
// icon: "el-icon-cellphone",
perms: ["wpm_sb"],
},
@@ -1422,25 +1432,45 @@ const routes = [
component: "wpm_gx/heihua",
},
{
- name: "shaojie",
- path: "/wpm_gx/shaojie",
+ name: "tuihuo",
+ path: "/wpm_gx/tuihuo",
meta: {
- title: "烧结",
+ title: "退火",
// icon: "el-icon-cellphone",
perms: ["wpm_sj"],
},
- component: "wpm_gx/shaojie",
+ component: "wpm_gx/tuihuo",
},
{
name: "jianbo",
path: "/wpm_gx/jianbo",
meta: {
- title: "减薄",
+ title: "减薄A",
// icon: "el-icon-cellphone",
perms: ["wpm_jb"],
},
component: "wpm_gx/jianbo",
},
+ {
+ name: "jianbob",
+ path: "/wpm_gx/jianbob",
+ meta: {
+ title: "减薄B",
+ // icon: "el-icon-cellphone",
+ perms: ["wpm_jbb"],
+ },
+ component: "wpm_gx/jianbob",
+ },
+ {
+ name: "pingmo",
+ path: "/wpm_gx/pingmo",
+ meta: {
+ title: "平磨",
+ // icon: "el-icon-cellphone",
+ perms: ["wpm_mp"],
+ },
+ component: "wpm_gx/pingmo",
+ },
{
name: "jingdiao",
path: "/wpm_gx/jingdiao",
@@ -1452,14 +1482,34 @@ const routes = [
component: "wpm_gx/jingdiao",
},
{
- name: "mopao",
- path: "/wpm_gx/mopao",
+ name: "yicipao",
+ path: "/wpm_gx/yicipao",
meta: {
- title: "磨抛",
+ title: "一次抛",
// icon: "el-icon-cellphone",
- perms: ["wpm_mp"],
+ perms: ["wpm_ycp"],
},
- component: "wpm_gx/mopao",
+ component: "wpm_gx/yicipao",
+ },
+ {
+ name: "saobianb",
+ path: "/wpm_gx/saobianb",
+ meta: {
+ title: "扫边B",
+ // icon: "el-icon-cellphone",
+ perms: ["wpm_sbb"],
+ },
+ component: "wpm_gx/saobianb",
+ },
+ {
+ name: "chengpinpao",
+ path: "/wpm_gx/chengpinpao",
+ meta: {
+ title: "成品抛",
+ // icon: "el-icon-cellphone",
+ perms: ["wpm_cpp"],
+ },
+ component: "wpm_gx/chengpinpao",
},
{
name: "daojiao",
@@ -1543,14 +1593,14 @@ const routes = [
component: "qm/process",
},
{
- name: "qmProcess",
- path: "/qm/qmProcess",
+ name: "qmProcess2",
+ path: "/qm/qmProcess2",
meta: {
title: "过程抽检",
// icon: "el-icon-cellphone",
perms: ["ptest"],
},
- component: "qm/process",
+ component: "qm/process2",
},
{
name: "qmInm",
diff --git a/src/style/dark.scss b/src/style/dark.scss
index 805614cf..e02a6954 100644
--- a/src/style/dark.scss
+++ b/src/style/dark.scss
@@ -10,6 +10,14 @@ html.dark {
--el-color-primary-light-5: var(--el-color-primary-dark-4) !important;
--el-color-primary-light-3: var(--el-color-primary-dark-3) !important;
--el-menu-active-color: #ffffff !important;
+ // --el-bg-color: #1e789a;
+ // --el-text-color-regular: #ffffff;
+ .el-dialog__close {
+ color: #ffffff;
+ }
+ .el-dialog__title {
+ color: #ffffff;
+ }
.el-tag {
background-color: #f8f5f5 !important;
diff --git a/src/style/fix.scss b/src/style/fix.scss
index ab8212f4..58629f17 100644
--- a/src/style/fix.scss
+++ b/src/style/fix.scss
@@ -375,4 +375,28 @@ body .el-table th.gutter {
.el-dialog__footer {
padding: 6px 6px 6px;
+}
+
+.aside_one,
+.aside_side {
+ height: 100%;
+ background: var(--el-bg-color-overlay);
+ border-color: var(--el-border-color-light);
+ // border-radius: 4px;
+ background: rgb(4, 50, 83);
+ background-color: rgb(4, 50, 83);
+ box-shadow: inset 0px 0px 30px 15px rgb(7, 79, 109);
+ border: 1px solid #1279c3;
+}
+.el-aside:has(> .aside_one) {
+ padding: 8px;
+ border-right: none;
+}
+
+.infoLine {
+ color: #ffffff;
+}
+
+.typeLine {
+ color: #ffffff;
}
\ No newline at end of file
diff --git a/src/utils/enum.js b/src/utils/enum.js
index cf04fb8e..06ddce2f 100644
--- a/src/utils/enum.js
+++ b/src/utils/enum.js
@@ -184,4 +184,12 @@ export const schedulePeriodEnum = new EnumFactory({
'minutes': '分钟',
'hours': '小时',
'days': '天',
-})
\ No newline at end of file
+})
+
+export const wmState = new EnumFactory({
+ 10: { text: '合格', type: 'success' },
+ 20: { text: '不合格', type: 'warning' },
+ 30: { text: '返修', type: 'warning' },
+ 40: { text: '检验', type: 'primary' },
+ 50: { text: '报废', type: 'danger' },
+}, parseInt)
\ No newline at end of file
diff --git a/src/views/bigScreen/enpComponents/carlist.vue b/src/views/bigScreen/enpComponents/carlist.vue
new file mode 100644
index 00000000..0edd325a
--- /dev/null
+++ b/src/views/bigScreen/enpComponents/carlist.vue
@@ -0,0 +1,166 @@
+
+
+
+
+ 车辆清单
+
+
+
+ 返回地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/bigScreen/enpComponents/envirqualmonitor.vue b/src/views/bigScreen/enpComponents/envirqualmonitor.vue
index 9d5000c9..d11f2d98 100644
--- a/src/views/bigScreen/enpComponents/envirqualmonitor.vue
+++ b/src/views/bigScreen/enpComponents/envirqualmonitor.vue
@@ -14,7 +14,7 @@
-
@@ -28,7 +28,7 @@
-
+
@@ -83,6 +83,7 @@
export default {
data() {
return {
+ tableLoading: false,
tableData: [],
metricOptions: [
{ label: 'PM2.5', value: 'pm25' },
@@ -131,13 +132,15 @@ export default {
} else if (that.time_bucket == 'hour') {
exec_search = 'enp_edata_hour_nodrain';
}
+ that.tableLoading = true;
that.$API.bi.dataset.exec.req(exec_search, {
query: that.query,
raise_exception: true
}).then(res => {
console.log(res.data2.ds0);
this.tableData = res.data2.ds0;
- })
+ that.tableLoading = false;
+ }).catch(e=>{that.tableLoading = false;})
},
},
diff --git a/src/views/bigScreen/enpComponents/innerclean.vue b/src/views/bigScreen/enpComponents/innerclean.vue
index 4cf13841..6bd199c1 100644
--- a/src/views/bigScreen/enpComponents/innerclean.vue
+++ b/src/views/bigScreen/enpComponents/innerclean.vue
@@ -53,7 +53,7 @@ export default {
query: {},
params: { type: 30, tags: 'carwash' },
cateOptions: [
- { id: 'inner_car', name: '场内运输车辆' },
+ { id: 'inner_car', name: '厂内运输车辆' },
{ id: 'inner_car2', name: '非路道移动机械' },
],
apiObj: this.$API.em.equipment.list,
diff --git a/src/views/bigScreen/enpComponents/orgwryList.vue b/src/views/bigScreen/enpComponents/orgwryList.vue
index 868dd389..b5e02dc9 100644
--- a/src/views/bigScreen/enpComponents/orgwryList.vue
+++ b/src/views/bigScreen/enpComponents/orgwryList.vue
@@ -69,13 +69,13 @@
排放口及关联设备静态信息
-
+
{{ detailItem.name }}
@@ -478,6 +478,7 @@ export default {
})
},
resizeChart(name) {
+ console.log(name)
var myChart = echarts.getInstanceByDom(
document.getElementById(name)
);
@@ -487,10 +488,7 @@ export default {
},
addListener() {
var that = this;
- if (this.resizeTimeout) {
- clearTimeout(this.resizeTimeout);
- }
- this.resizeTimeout = setTimeout(function () {
+ setTimeout(function () {
that.resizeChart("dataChart");
that.resizeChart("dataChart2");
that.resizeChart("dataChart3");
diff --git a/src/views/bigScreen/enpComponents/pollutant.vue b/src/views/bigScreen/enpComponents/pollutant.vue
index 08c2181f..4330aaac 100644
--- a/src/views/bigScreen/enpComponents/pollutant.vue
+++ b/src/views/bigScreen/enpComponents/pollutant.vue
@@ -27,15 +27,72 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ drainTypeEnum[scope.row.cate]?.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ runningStateEnum[item.running_state]?.text }}|
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+ {{
+ runningStateEnum[item.running_state]?.text }}|
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+ {{
+ runningStateEnum[item.running_state]?.text }}|
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+ {{
+ runningStateEnum[item.running_state]?.text }}|
+ {{ item.name }}
+
+
+
+
+
@@ -100,8 +157,8 @@
生产能力:
{{
- eqs.parameter_json.生产能力
- }}
+ eqs.parameter_json.生产能力
+ }}
@@ -119,22 +176,22 @@
风量:
{{
- eqz.parameter_json.风量
- }}m³/h
+ eqz.parameter_json.风量
+ }}m³/h
过滤面积:
{{
- eqz.parameter_json.过滤面积
- }} m²
+ eqz.parameter_json.过滤面积
+ }} m²
布袋材质:
{{
- eqz.parameter_json.布袋材质
- }}
+ eqz.parameter_json.布袋材质
+ }}
@@ -188,9 +245,11 @@
\ No newline at end of file
+
diff --git a/src/views/bigScreen/enpComponents/transport_old.vue b/src/views/bigScreen/enpComponents/transport_old.vue
new file mode 100644
index 00000000..426cef56
--- /dev/null
+++ b/src/views/bigScreen/enpComponents/transport_old.vue
@@ -0,0 +1,115 @@
+
+
+
+
+ 厂外运输
+
+
+
+ 返回地图
+
+
+
+
+
+
+
+ 车辆进出次数:{{ count }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ type_[scope.row.type] }}
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/bigScreen/index_enp_blue.vue b/src/views/bigScreen/index_enp_blue.vue
index dec3753f..68252ea5 100644
--- a/src/views/bigScreen/index_enp_blue.vue
+++ b/src/views/bigScreen/index_enp_blue.vue
@@ -114,10 +114,12 @@
command="transport"
>厂外运输
+
@@ -161,9 +163,12 @@
-
+
+
+
+
+
+
@@ -460,6 +471,10 @@
v-else-if="activeDrawerName == 'eqments'"
@close="closeDialog"
>
+
-
+
巡检
@@ -91,13 +91,13 @@
-
- 新增
导出
@@ -117,7 +117,7 @@
-
+
删除
@@ -310,6 +310,17 @@ export default {
this.$refs.saveDialog.open("show", 10).setData(row);
});
},
+ //删除检验
+ record_del(row) {
+ let that = this;
+ that.$API.em.einspect.delete.req(row.id).then((res) => {
+ that.$message.success("删除成功");
+ that.$refs.drawer_table.refresh();
+ that.$refs.table.refresh();
+ }).catch((err) => {
+ return err;
+ });
+ },
table_record(row) {
this.item = row;
this.form.equipment = row.id;
@@ -325,26 +336,29 @@ export default {
},
//提交巡检记录
submit() {
- this.$refs.dialogForm.validate(async (valid) => {
+ let that = this;
+ that.$refs.dialogForm.validate(async (valid) => {
if (valid) {
- this.isSaveing = true;
- this.$API.em.einspect.create.req(this.form).then(res => {
- this.visible = false;
- this.isSaveing = false;
- this.$message.success("操作成功");
- this.$refs.drawer_table.refresh();
+ that.isSaveing = true;
+ that.$API.em.einspect.create.req(that.form).then(res => {
+ that.visible = false;
+ that.isSaveing = false;
+ that.$message.success("操作成功");
+ that.$refs.drawer_table.refresh();
}).catch(() => {
- this.isSaveing = false;
+ that.isSaveing = false;
})
}
});
},
//删除
async table_del(row) {
- this.$API.em.equipment.delete
+ let that = this;
+ that.$API.em.equipment.delete
.req(row.id)
.then((res) => {
- this.$message.success("删除成功");
+ that.$message.success("删除成功");
+ that.$refs.table.refresh();
return res;
})
.catch((err) => {
@@ -354,11 +368,7 @@ export default {
//本地更新数据
handleSaveSuccess(data, mode) {
- if (mode == "add") {
- this.$refs.table.refresh();
- } else if (mode == "edit") {
- this.$refs.table.refresh();
- }
+ this.$refs.table.refresh();
},
handleCheckSuccess() { },
handleQuery() {
diff --git a/src/views/em/equipment_form.vue b/src/views/em/equipment_form.vue
index 56a4e673..a6ba7a4c 100644
--- a/src/views/em/equipment_form.vue
+++ b/src/views/em/equipment_form.vue
@@ -199,6 +199,12 @@ import { genTree } from "@/utils/verificate";
import { iMEnum } from "@/utils/enum";
export default {
emits: ["success", "closed"],
+ props:{
+ eqtype:{
+ type:String,
+ default: ''
+ },
+ },
data() {
return {
iMEnum,
@@ -211,7 +217,7 @@ export default {
show: "查看",
},
form: {
- type: 10
+ type: 10,
},
rules: {
name: [{ required: true, message: "请输入", trigger: "blur" }],
@@ -257,11 +263,13 @@ export default {
this.getGroup();
this.getBaseInfo();
this.getCateOptions();
+ this.form.type = this.eqtype;
},
methods: {
getCateOptions() {
- this.$API.em.ecate.list.req({page:0}).then(res => {
- this.cateOptions = res
+ let that = this;
+ that.$API.em.ecate.list.req({page:0,type:that.eqtype}).then(res => {
+ that.cateOptions = res;
})
},
getBaseInfo() {
diff --git a/src/views/em/equipmentjc.vue b/src/views/em/equipmentjc.vue
index 16369e08..f1f65989 100644
--- a/src/views/em/equipmentjc.vue
+++ b/src/views/em/equipmentjc.vue
@@ -91,7 +91,7 @@
-
diff --git a/src/views/em/equipmentjk.vue b/src/views/em/equipmentjk.vue
index 805a4d26..5c861c27 100644
--- a/src/views/em/equipmentjk.vue
+++ b/src/views/em/equipmentjk.vue
@@ -91,7 +91,7 @@
-
diff --git a/src/views/em/equipmentjl.vue b/src/views/em/equipmentjl.vue
index 89af9e4d..f93fe51d 100644
--- a/src/views/em/equipmentjl.vue
+++ b/src/views/em/equipmentjl.vue
@@ -60,7 +60,7 @@
+ v-auth="'echeckrecord.create'">
检定记录
@@ -109,7 +109,7 @@
-
@@ -127,7 +127,7 @@
-
+
删除
@@ -138,7 +138,7 @@
-
diff --git a/src/views/qm/products_form.vue b/src/views/qm/products_form.vue
index 30cb17ea..8da06396 100644
--- a/src/views/qm/products_form.vue
+++ b/src/views/qm/products_form.vue
@@ -88,9 +88,27 @@
>
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ that.userList = res;
+ });
+ },
handleCheckChange(){
this.form.count_ok = this.form.count-this.form.count_notok;
},
@@ -433,7 +501,10 @@ export default {
this.count_notok_json.count_n_yd+
this.count_notok_json.count_n_txd+
this.count_notok_json.count_n_hd+
+ this.count_notok_json.count_n_zhg+
+ this.count_notok_json.count_n_yz+
this.count_notok_json.count_n_qp+
+ this.count_notok_json.count_n_z+
this.count_notok_json.count_n_swen+
this.count_notok_json.count_n_zb+
this.count_notok_json.count_n_hs+
@@ -511,7 +582,6 @@ export default {
setData(data) {
Object.assign(this.form, data);
this.formCount = this.form.count;
- // this.form.test_group = this.form.split(",");
},
//设置过滤项
setFilters(filters) {
diff --git a/src/views/userCenter/user/pushSettings.vue b/src/views/userCenter/user/pushSettings.vue
index 2196f475..1bdf28d5 100644
--- a/src/views/userCenter/user/pushSettings.vue
+++ b/src/views/userCenter/user/pushSettings.vue
@@ -13,7 +13,7 @@
必须提供当前登录用户密码才能进行更改
-
@@ -56,7 +56,7 @@ export default {
if (reg1.test(value)) {
callback();
}else{
- callback(new Error('请输入包含英文、数字、特殊符号( @#$%^&.+=! )的8位以上密码'));
+ callback(new Error('请输入包含英文、数字、特殊符号( @#$%^&+=! )的8位以上密码'));
}
}}
],
diff --git a/src/views/wf/ticketdetail.vue b/src/views/wf/ticketdetail.vue
index 4f61558f..ded02abf 100644
--- a/src/views/wf/ticketdetail.vue
+++ b/src/views/wf/ticketdetail.vue
@@ -732,7 +732,7 @@ export default {
this.$API.mtm.routepack.item.req(this.projectId).then((res) => {
console.log("routepackitem", res);
this.$API.mtm.route.list
- .req({ page: 0, material: res.material })
+ .req({ page: 0, material: res.material,routepack:res.id})
.then((res) => {
that.routepackes = res;
});
diff --git a/src/views/wpm_gx/baipianpao.vue b/src/views/wpm_gx/baipianpao.vue
new file mode 100644
index 00000000..310eb320
--- /dev/null
+++ b/src/views/wpm_gx/baipianpao.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_gx/check_form.vue b/src/views/wpm_gx/check_form.vue
index bec81734..eb777ba6 100644
--- a/src/views/wpm_gx/check_form.vue
+++ b/src/views/wpm_gx/check_form.vue
@@ -95,6 +95,24 @@
/>
+
+
+
+
+
+
+
@@ -250,6 +268,7 @@ export default {
modeTitle: '',
loading: false,
form: {
+ type:'process',
type2:10,
test_date: "",
batch: "",
@@ -294,6 +313,7 @@ export default {
visible: false,
isSaveing: false,
options: [],
+ userList : [],
selectionFilters: [],
setFiltersVisible: false,
};
@@ -303,6 +323,8 @@ export default {
this.form.batch = this.itemObj.batch;
this.form.wm = this.itemObj.id;
this.form.count = this.itemObj.count;
+ this.deptID = this.$TOOL.data.get('gx_deptID');
+ this.getUsers();
},
methods: {
//显示
@@ -310,8 +332,25 @@ export default {
this.mode = mode;
this.modeTitle = mode+'抽检';
this.visible = true;
+
return this;
},
+ getUsers(){
+ let that = this;
+ let userList = [];
+ that.$API.system.user.list
+ .req({ page: 0, posts__code__contains: "check" })
+ .then((res) => {
+ userList = res;
+ that.$API.system.user.list.req({ depts: that.deptID, page: 0 })
+ .then((res2) => {
+ res2.forEach((item) => {
+ userList.push(item);
+ });
+ that.userList = userList ;
+ });
+ });
+ },
handleCheckChange(){
this.form.count_ok = this.form.count-this.form.count_notok;
},
diff --git a/src/views/wpm_gx/chengpinpao.vue b/src/views/wpm_gx/chengpinpao.vue
new file mode 100644
index 00000000..a6e395e8
--- /dev/null
+++ b/src/views/wpm_gx/chengpinpao.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue
index 16cf8479..df4244e3 100644
--- a/src/views/wpm_gx/handover.vue
+++ b/src/views/wpm_gx/handover.vue
@@ -248,23 +248,22 @@ export default {
},
mounted() {
let that = this;
- if(that.mgroupName=="size"){
- // that.params.type=30;
+ if(that.mgroupName=="size"){//尺寸检验
that.params.material__process__name="一次超洗";
that.apiObj = that.$API.wpm.handover.list;
- }else if(that.mgroupName=="facade"){
- // that.params.type=30;
+ }else if(that.mgroupName=="facade"){//外观检验
that.params.material__process__name="二次超洗";
that.apiObj = that.$API.wpm.handover.list;
- }else{
+ }else{//工段交接
that.printer_name = localStorage.getItem("printer_name");
that.$API.mtm.mgroup.list
.req({ page: 0, search: that.mgroupName })
.then((res) => {
- if (res.length != 1) {
+ if (res.length < 1) {
that.$message.error("获取工段错误");
return;
}
+ that.$TOOL.data.set('gx_deptID',res[0].belong_dept)
that.mgroupId = res[0].id;
that.processId = res[0].process;
that.processCate = res[0].process_cate;
diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue
index e438445e..17503778 100644
--- a/src/views/wpm_gx/handover_form.vue
+++ b/src/views/wpm_gx/handover_form.vue
@@ -75,6 +75,7 @@
v-model="form.send_user"
placeholder="交送人"
clearable
+ filterable
style="width: 100%"
>
{
+ that.userList = res;
+ });
+ }else{
+ that.deptID = that.$TOOL.data.get('gx_deptID');
+ that.getUserList();
+ }
+ that.getMaterial();
+ that.getDeptOptions();
+ that.getMgroupOptions();
},
methods: {
//获取部门列表
@@ -273,7 +287,7 @@ export default {
//获取工段列表
getMgroupOptions() {
this.$API.mtm.mgroup.list
- .req({ page: 0, type__in: "dept" })
+ .req({ page: 0})
.then((res) => {
this.mgroupOptions = res;
});
@@ -284,20 +298,23 @@ export default {
var req = {
mgroupx: that.mgroupId,
page: 0,
+ notok_sign__isnull : 1,
+ count_xtest__isnull:1
};
if(that.mgroupName=="size"){
req.material__process__name="一次超洗";
}else if(that.mgroupName=="facade"){
req.material__process__name="二次超洗";
- }else{
- if (this.type == 10) {
- req.notok_sign__isnull = 1;
- } else if (this.type == 20) {
- req.notok_sign__isnull = 0;}
- else if (this.type == 30) {
- req.notok_sign__isnull = 1;
- }
}
+ // else{
+ // if (this.type == 10) {
+ // req.notok_sign__isnull = 1;
+ // } else if (this.type == 20) {
+ // req.notok_sign__isnull = 0;
+ // }else if (this.type == 30) {
+ // req.notok_sign__isnull = 1;
+ // }
+ // }
this.$API.wpm.wmaterial.list
.req(req)
@@ -309,7 +326,7 @@ export default {
getUserList() {
let that = this;
this.$API.system.user.list
- .req({ mgroup: that.mgroupId, page: 0 })
+ .req({ depts: that.deptID, page: 0 })
.then((res) => {
that.userList = res;
});
@@ -317,11 +334,17 @@ export default {
//获取接收工段人员
getUserList2() {
let that = this;
- this.$API.system.user.list
- .req({ mgroup: that.form.recive_mgroup, page: 0 })
- .then((res) => {
- that.userList2 = res;
- });
+ let deptID = '';
+ this.mgroupOptions.forEach(item => {
+ if(item.id==that.form.recive_mgroup){
+ deptID = item.belong_dept;
+ this.$API.system.user.list
+ .req({ depts: deptID, page: 0 })
+ .then((res) => {
+ that.userList2 = res;
+ });
+ }
+ });
},
//获取接收部门人员
getUserList3() {
@@ -383,8 +406,11 @@ export default {
//表单注入数据
setData(data) {
Object.assign(this.form, data);
- this.getUserList2();
- that.form.recive_dept();
+ if(data.type==30){
+ this.getUserList3();
+ }else{
+ this.getUserList2();
+ }
},
//设置过滤项
setFilters(filters) {
diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue
index 8d49bedd..dac8f8df 100644
--- a/src/views/wpm_gx/inm.vue
+++ b/src/views/wpm_gx/inm.vue
@@ -1,15 +1,15 @@
-
+
领料
入库
-
diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue
index f5a29d2c..8490c42b 100644
--- a/src/views/wpm_gx/mlog_form.vue
+++ b/src/views/wpm_gx/mlog_form.vue
@@ -65,6 +65,7 @@
v-model="form.route"
placeholder="工艺路线"
clearable
+ filterable
style="width: 100%"
:disabled="mode == 'edit'"
>
@@ -89,6 +90,7 @@
v-model="form.equipment"
placeholder="生产设备"
clearable
+ filterable
:disabled="mode == 'edit'"
style="width: 100%"
>
@@ -97,7 +99,10 @@
:key="item.id"
:label="item.name"
:value="item.id"
- >
+ >
+ {{item.name}}
+ {{item.number}}
+
@@ -309,7 +314,7 @@ export default {
},
getEquipment() {
this.$API.em.equipment.list
- .req({ page: 0, type: 10 })
+ .req({ page: 0, type: 10,belong_dept:this.dept })
.then((res) => {
this.options = res;
});
diff --git a/src/views/wpm_gx/mlogb_check.vue b/src/views/wpm_gx/mlogb_check.vue
index 2f2e1d50..2fca83e7 100644
--- a/src/views/wpm_gx/mlogb_check.vue
+++ b/src/views/wpm_gx/mlogb_check.vue
@@ -133,6 +133,28 @@
/>
+
+
+
+
+
+
+
+
+
+
@@ -153,7 +175,21 @@ export default {
return {
loading: false,
//表单数据
- form: {},
+ form: {
+ batch: null,
+ count_real: 0,
+ count_ok: 0,
+ count_notok: 0,
+ count_n_hs: 0,
+ count_n_qp: 0,
+ count_n_swen: 0,
+ count_n_bb: 0,
+ count_n_md: 0,
+ count_n_xh: 0,
+ count_n_ps: 0,
+ count_n_qt: 0,
+ count_n_wm: 0,
+ },
//验证规则
rules: {
batch: [
@@ -197,6 +233,8 @@ export default {
this.form.count_n_bb +
this.form.count_n_md +
this.form.count_n_xh +
+ this.form.count_n_ps +
+ this.form.count_n_qt +
this.form.count_n_wm;
this.form.count_ok = this.form.count_real - this.form.count_notok;
},
@@ -214,6 +252,8 @@ export default {
this.form.count_n_bb +
this.form.count_n_md +
this.form.count_n_xh +
+ this.form.count_n_ps +
+ this.form.count_n_qt +
this.form.count_n_wm;
let sum = this.form.count_ok + this.form.count_notok;
if (sum - this.form.count_real == 0) {
diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue
index 70498675..8f7236a7 100644
--- a/src/views/wpm_gx/mlogs.vue
+++ b/src/views/wpm_gx/mlogs.vue
@@ -182,7 +182,7 @@ export default {
that.$API.mtm.mgroup.list
.req({ page: 0, search: that.mgroupName })
.then((res) => {
- if (res.length != 1) {
+ if (res.length < 1) {
that.$message.error("获取工段错误");
return;
}
diff --git a/src/views/wpm_gx/mopao.vue b/src/views/wpm_gx/pingmo.vue
similarity index 98%
rename from src/views/wpm_gx/mopao.vue
rename to src/views/wpm_gx/pingmo.vue
index e983c6ef..1b2a0547 100644
--- a/src/views/wpm_gx/mopao.vue
+++ b/src/views/wpm_gx/pingmo.vue
@@ -42,7 +42,7 @@ export default {
tableHieght: 200,
options: ["日志", "交接记录", "库存"],
values: "日志",
- mgroupName: "磨抛",
+ mgroupName: "平磨",
mgroupId: "",
};
},
diff --git a/src/views/wpm_gx/saobian.vue b/src/views/wpm_gx/saobian.vue
index 00a225f5..cd946423 100644
--- a/src/views/wpm_gx/saobian.vue
+++ b/src/views/wpm_gx/saobian.vue
@@ -42,7 +42,7 @@ export default {
tableHieght: 200,
options: ["日志", "交接记录", "库存"],
values: "日志",
- mgroupName: "扫边",
+ mgroupName: "扫边A",
mgroupId: "",
};
},
diff --git a/src/views/wpm_gx/saobianb.vue b/src/views/wpm_gx/saobianb.vue
new file mode 100644
index 00000000..bdf3145d
--- /dev/null
+++ b/src/views/wpm_gx/saobianb.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wpm_gx/shaojie.vue b/src/views/wpm_gx/tuihuo.vue
similarity index 98%
rename from src/views/wpm_gx/shaojie.vue
rename to src/views/wpm_gx/tuihuo.vue
index 1939edab..cf62c481 100644
--- a/src/views/wpm_gx/shaojie.vue
+++ b/src/views/wpm_gx/tuihuo.vue
@@ -42,7 +42,7 @@ export default {
tableHieght: 200,
options: ["日志", "交接记录", "库存"],
values: "日志",
- mgroupName: "烧结",
+ mgroupName: "退火",
mgroupId: "",
};
},
diff --git a/src/views/wpm_gx/yicipao.vue b/src/views/wpm_gx/yicipao.vue
new file mode 100644
index 00000000..5ec87317
--- /dev/null
+++ b/src/views/wpm_gx/yicipao.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+