diff --git a/src/api/model/system.js b/src/api/model/system.js
index 6e10c6df..d444c81d 100644
--- a/src/api/model/system.js
+++ b/src/api/model/system.js
@@ -4,15 +4,6 @@ import data from './../../../src/utils/baseJson';
const baseInFo = data[data.current];
export default {
- config:{
- base: {
- url: `${config.API_URL}/system/base_config/`,
- name: "账户信息",
- req: async function(){
- return await http.get(this.url);
- }
- },
- },
// config:{
// base: {
// url: `${config.API_URL}/system/base_config/`,
@@ -413,7 +404,14 @@ export default {
}
}
},
- baseInfo: {
+ config: {
+ base: {
+ url: `${config.API_URL}/system/base_config/`,
+ name: "账户信息",
+ req: async function(){
+ return await http.get(this.url);
+ }
+ },
getInfo: {
url: `${config.API_URL}/system/config/`,
name: "获取系统信息",
diff --git a/src/layout/index.vue b/src/layout/index.vue
index bba289a5..05a158a7 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -235,9 +235,9 @@
return baseName;
},
baseLogo(){
- let baseInFo = data[data.current];
- // let base_logo = this.$TOOL.data.get("BASE_INFO")!==null?this.$TOOL.data.get("BASE_INFO").base.base_logo:'img/logo.png';
- let base_logo = baseInFo!==null?baseInFo.base.base_logo:'img/logo.png';
+ // let baseInFo = data[data.current];
+ let base_logo = this.$TOOL.data.get("BASE_INFO")!==null?this.$TOOL.data.get("BASE_INFO").base.base_logo:'img/logo.png';
+ // let base_logo = baseInFo!==null?baseInFo.base.base_logo:'img/logo.png';
return base_logo
},
ismobile(){
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 74aefc4d..f598ff94 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -46,9 +46,9 @@
H5访问
监控视频
-
+
diff --git a/src/views/mtm/mgroup_form.vue b/src/views/mtm/mgroup_form.vue
index a05b5ac6..00082938 100644
--- a/src/views/mtm/mgroup_form.vue
+++ b/src/views/mtm/mgroup_form.vue
@@ -35,18 +35,18 @@
{{
scope.row.material_in_name
}}
-
-
+
+
- {{
+ {{
scope.row.material_out_name
}}
-
+
diff --git a/src/views/mtm/route.vue b/src/views/mtm/route.vue
index 7fb2f3b4..10b20ec8 100644
--- a/src/views/mtm/route.vue
+++ b/src/views/mtm/route.vue
@@ -50,7 +50,7 @@
- {{ scope.row.material_in_name }} / {{ scope.row.material_out_name }}
+ {{ scope.row.material_in_name }} -> {{ scope.row.material_out_name }}
@@ -103,8 +103,8 @@
-
- {{ item.name }}
+
+ {{ item.full_name }}
{{
item.process_name }}-隐
@@ -112,8 +112,8 @@
-
- {{ item.name }}
+
+ {{ item.full_name }}
{{
item.process_name }}-隐
@@ -181,7 +181,7 @@ export default {
getProducts() {
this.$API.mtm.material.list.req({ page: 0, need_route: true }).then(res => {
res.forEach(m => {
- m.label = m.name+'—'+m.specification+'/'+m.model;
+ m.label = m.name+'|'+m.specification+'|'+m.model;
})
this.productOptions = res
})
diff --git a/src/views/ops/setting.vue b/src/views/ops/setting.vue
index 6ddc7ec0..bc540ca1 100644
--- a/src/views/ops/setting.vue
+++ b/src/views/ops/setting.vue
@@ -7,10 +7,10 @@
-
{{ $store.state.global.baseName }}
+ {{ form.base_name }}
@@ -63,6 +63,7 @@ export default {
},
data() {
return {
+ form: {},
menu: [
{
groupName: "系统配置",
@@ -106,18 +107,16 @@ export default {
});
},
mounted() {
- this.getBaseInfo();
+ this.getSysConfig();
},
methods: {
openPage(item) {
this.page = item.index;
},
- getBaseInfo() {
- this.$API.system.baseInfo.getInfo.req().then((res) => {
- debugger;
- console.log(res)
- this.$TOOL.data.set("BASE_INFO", res)
+ getSysConfig() {
+ this.$API.system.config.getInfo.req().then(res=>{
+ this.form = res.base
})
},
},
diff --git a/src/views/ops/settings/androisAPK.vue b/src/views/ops/settings/androisAPK.vue
index 48aa8aa6..d3219848 100644
--- a/src/views/ops/settings/androisAPK.vue
+++ b/src/views/ops/settings/androisAPK.vue
@@ -36,25 +36,22 @@ export default {
apk_file:'',
apk_remark:'',
},
- configInfo:null,
};
},
mounted(){
- this.getBaseInfo()
+ this.getSysConfig();
},
methods:{
- getBaseInfo() {
- this.configInfo = this.$TOOL.data.get("BASE_INFO");
- this.form = this.$TOOL.data.get("BASE_INFO").apk
+ getSysConfig() {
+ this.$API.system.config.getInfo.req().then(res=>{
+ this.form = res.apk
+ })
},
submitForm(){
this.saveLoading = true;
let obj = {}
- this.configInfo.apk = this.form;
obj.apk = this.form;
- this.$API.system.baseInfo.updateInfo.req(obj).then((res) => {
- this.$message.success("保存成功")
- this.$TOOL.data.set("BASE_INFO", this.configInfo)
+ this.$API.system.config.updateInfo.req(obj).then((res) => {
this.saveLoading = false;
}).catch(res=>{
this.saveLoading = false;
diff --git a/src/views/ops/settings/smsSet.vue b/src/views/ops/settings/smsSet.vue
index 66a9fcde..f7ebafe3 100644
--- a/src/views/ops/settings/smsSet.vue
+++ b/src/views/ops/settings/smsSet.vue
@@ -32,28 +32,24 @@ export default {
xn_secret:'',
},
saveLoading:false,
- configInfo:null,
};
},
mounted() {
- this.getBaseInfo();
+ this.getSysConfig();
},
methods: {
openPage(item) {
this.page = item.index;
},
- getBaseInfo() {
- this.configInfo = this.$TOOL.data.get("BASE_INFO");
- this.form = this.$TOOL.data.get("BASE_INFO").sms
+ getSysConfig() {
+ this.$API.system.config.getInfo.req().then(res=>{
+ this.form = res.sms
+ })
},
submitForm(){
this.saveLoading = true;
- let obj = {}
- obj.sms = this.form;
- this.configInfo.sms = this.form
- this.$API.system.baseInfo.updateInfo.req(obj).then((res) => {
+ this.$API.system.config.updateInfo.req(this.form).then((res) => {
this.$message.success("保存成功")
- this.$TOOL.data.set("BASE_INFO", this.configInfo)
this.saveLoading = false;
}).catch(res=>{
this.saveLoading = false;
diff --git a/src/views/ops/settings/sysSet.vue b/src/views/ops/settings/sysSet.vue
index d543b534..29b18028 100644
--- a/src/views/ops/settings/sysSet.vue
+++ b/src/views/ops/settings/sysSet.vue
@@ -48,29 +48,27 @@ export default {
base_name: "托克逊能源管理平台",
base_name_short: "托克逊能管"
},
- configInfo:null,
};
},
mounted() {
- this.getBaseInfo();
+ this.getSysConfig();
},
methods: {
openPage(item) {
this.page = item.index;
},
- getBaseInfo() {
- this.configInfo = this.$TOOL.data.get("BASE_INFO");
- this.form = this.$TOOL.data.get("BASE_INFO").base
+ getSysConfig() {
+ this.$API.system.config.getInfo.req().then(res=>{
+ this.form = res.base
+ })
},
submitForm(){
this.saveLoading = true;
let obj = {}
- this.configInfo.base = this.form;
obj.base = this.form;
- this.$API.system.baseInfo.updateInfo.req(obj).then((res) => {
+ this.$API.system.config.updateInfo.req(obj).then((res) => {
this.$message.success("保存成功")
- this.$TOOL.data.set("BASE_INFO", this.configInfo)
this.saveLoading = false;
}).catch(res=>{
this.saveLoading = false;
diff --git a/src/views/pm/utask_form.vue b/src/views/pm/utask_form.vue
index 73e96d45..04e11d1d 100644
--- a/src/views/pm/utask_form.vue
+++ b/src/views/pm/utask_form.vue
@@ -7,13 +7,13 @@
-
+
- {{ form.mgroup_name }}---{{ form.material_.name }}
+ {{ form.material_in_name}}->{{ form.material_out_name }}
-
-
+
+
- {{ form.material_.name }}
+ {{ form.material_.full_name }}
+
+ {{
+ scope.row.material_.process_name
+ }}
+
@@ -252,7 +257,9 @@
@@ -346,6 +353,7 @@ export default {
if (res.length == 1) {
this.currentDept = res[0]
this.paramsMtask.mgroup__belong_dept = this.currentDept.id
+ this.paramsMtask.state__in = '20,40'
this.apiMtask = this.$API.pm.mtask.list
this.paramsHandover.recive_dept = this.currentDept.id
diff --git a/src/views/wpm/mlog_dept6.vue b/src/views/wpm/mlog_dept6.vue
index 337473b9..350a8451 100644
--- a/src/views/wpm/mlog_dept6.vue
+++ b/src/views/wpm/mlog_dept6.vue
@@ -7,13 +7,13 @@
-
+
查询
-
+
@@ -161,6 +161,11 @@
{{ scope.row.material_.model }}
+
+ {{
+ scope.row.material_.process_name
+ }}
+
@@ -180,12 +185,7 @@ export default {
save: false,
},
apiObj: null,
- query: {
- page: 1,
- page_size: 20,
- belong_dept_name: '6车间',
- date: '2023-10-24'
- },
+ query: {},
processList: [],//工序进度
state_: {
10: '创建中',
@@ -205,12 +205,18 @@ export default {
paramsWm: {
belong_dept__name: '6车间'
},
+ paramsMtask: {
+ mgroup__belong_dept__name: '6车间',
+ is_count_utask: true,
+ state__in: "20,40"
+ },
+ queryMtask: {}
}
},
mounted() {
let NowDate = new Date();
- this.query.date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate();
- this.apiObj = this.$API.pm.mtask.daylist;
+ // this.queryMtask.start_date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate();
+ this.apiObj = this.$API.pm.mtask.list;
},
methods: {
tomio() {
@@ -239,13 +245,7 @@ export default {
});
},
handleQueryMtask() {
- this.$refs.table.refresh();
- },
- handleQuery() {
- this.$refs.table.queryData(this.query)
- },
- resetQuery() {
- this.query = {};
+ this.$refs.table.refresh(this.queryMtask);
},
table_submit(row) {
this.$API.pm.mtask.submit.req(row.id).then(res => {
diff --git a/src/views/wpm/mlog_dept6_detail.vue b/src/views/wpm/mlog_dept6_detail.vue
index 7d455eb7..5750e3aa 100644
--- a/src/views/wpm/mlog_dept6_detail.vue
+++ b/src/views/wpm/mlog_dept6_detail.vue
@@ -10,11 +10,8 @@
{{ currentMtask.number }}
-
- {{ currentMtask.material_out_.name }}
-
-
- {{ currentMtask.material_out_.specification }}
+
+ {{ currentMtask.material_out_name }}
{{ currentMtask.count }}
{{ currentMtask.start_date }}
diff --git a/src/views/wpm/mlog_dept7.vue b/src/views/wpm/mlog_dept7.vue
index 146dafb4..27a41cf7 100644
--- a/src/views/wpm/mlog_dept7.vue
+++ b/src/views/wpm/mlog_dept7.vue
@@ -241,6 +241,11 @@
scope.row.material_.model
}}
+
+ {{
+ scope.row.material_.process_name
+ }}
+
@@ -251,7 +256,7 @@
@@ -352,6 +357,7 @@ export default {
if (res.length == 1) {
this.currentDept = res[0]
this.paramsMtask.mgroup__belong_dept = this.currentDept.id
+ this.paramsMtask.state__in = '20,40'
this.apiMtask = this.$API.pm.mtask.list
this.paramsHandover.recive_dept = this.currentDept.id
diff --git a/src/views/wpm/mlog_tui.vue b/src/views/wpm/mlog_tui.vue
index f723c509..d9743429 100644
--- a/src/views/wpm/mlog_tui.vue
+++ b/src/views/wpm/mlog_tui.vue
@@ -34,7 +34,7 @@
编辑
-
+
提交
@@ -129,6 +129,11 @@
scope.row.material_.model
}}
+
+ {{
+ scope.row.material_.process_name
+ }}
+
diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue
index a4d6f3ab..52206c39 100644
--- a/src/views/wpm/worktask_form.vue
+++ b/src/views/wpm/worktask_form.vue
@@ -35,21 +35,26 @@
-->
-
+
+
+ {{ form.material_in_name}}->{{ form.material_out_name }}
+
-
+
@@ -165,21 +170,25 @@
-->
-
+
+
+ {{ form.material_in_name}}->{{ form.material_out_name }}
+
@@ -208,11 +217,13 @@
-
+
-
+
+
+