diff --git a/public/favicon.ico b/public/favicon.ico
index 68e3d2ee..e665c867 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/favicon1.ico b/public/favicon1.ico
new file mode 100644
index 00000000..68e3d2ee
Binary files /dev/null and b/public/favicon1.ico differ
diff --git a/public/img/gz_logo.png b/public/img/gz_logo.png
index e665c867..cb0296f6 100644
Binary files a/public/img/gz_logo.png and b/public/img/gz_logo.png differ
diff --git a/public/index.html b/public/index.html
index 140f0fea..0dc70dfc 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,7 +7,7 @@
<%= VUE_APP_TITLE %>
-
+
diff --git a/src/api/model/pm.js b/src/api/model/pm.js
index 1e07a0cf..26085002 100644
--- a/src/api/model/pm.js
+++ b/src/api/model/pm.js
@@ -70,9 +70,9 @@ export default {
},
submitSameDay:{
name: "提交同一天的该部门下的所有兄弟小任务",
- req: async function(data){
+ req: async function(id,data){
return await http.post(
- `${config.API_URL}/pm/mtask/submit_related_same_day/`,
+ `${config.API_URL}/pm/mtask/${id}/submit_related_same_day/`,
data
);
}
diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js
index f570412e..02158cdb 100644
--- a/src/api/model/wpm.js
+++ b/src/api/model/wpm.js
@@ -187,6 +187,14 @@ export default {
`${config.API_URL}/wpm/mlog/${id}/`);
}
},
+ relatedFirst:{
+ name: "获取相关任务的第一道工序日志",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/wpm/mlog/related_first/`,
+ data);
+ }
+ }
},
//车间库存
wmaterial: {
diff --git a/src/config/route.js b/src/config/route.js
index fa0471c6..8d70b429 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -1865,7 +1865,7 @@ const routes = [
"name": "bigScreenP",
"meta": {
"title": "数据看板",
- "icon": "el-icon-position",
+ "icon": "el-icon-platform",
"perms": ["bigScreenP"],
"fullpage": true,
},
@@ -1877,7 +1877,7 @@ const routes = [
"name": "bigScreenP",
"meta": {
"title": "车间看板",
- "icon": "el-icon-position",
+ "icon": "el-icon-trend-charts",
"perms": ["bigScreenP"],
"fullpage": true,
},
@@ -1889,7 +1889,7 @@ const routes = [
"name": "bigScreenP",
"meta": {
"title": "统计分析",
- "icon": "el-icon-position",
+ "icon": "el-icon-histogram",
"perms": ["bigScreenP"],
"fullpage": true,
},
diff --git a/src/style/app.scss b/src/style/app.scss
index 0268754b..06ae5118 100644
--- a/src/style/app.scss
+++ b/src/style/app.scss
@@ -28,7 +28,7 @@ a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: bo
.adminui-header-left {display: flex;align-items: center;padding-left:4px;}
.adminui-header-right {display: flex;align-items: center;}
.adminui-header .logo-bar {font-size: 20px;font-weight: bold;display: flex;align-items: center;}
-.adminui-header .logo-bar .logo {margin-right: 10px;height: 52px;background: #ffffff;display: inline-block;padding: 4px 10px;border-radius: 5px;margin:auto}
+.adminui-header .logo-bar .logo {margin-right: 10px;height: 52px;display: inline-block;padding: 4px;border-radius: 5px;margin:auto}
.adminui-header .nav {display: flex;height: 100%;margin-left: 40px;}
.adminui-header .nav li {padding:0 10px;margin: 0 10px 0 0;font-size: 14px;color: rgba(255, 255, 255, 0.6);list-style: none;height: 100%;display: flex;align-items: center;cursor: pointer;}
.adminui-header .nav li i {margin-right: 5px;}
diff --git a/src/views/em/equipmentc.vue b/src/views/em/equipmentc.vue
index 9fff45dd..a6aabd31 100644
--- a/src/views/em/equipmentc.vue
+++ b/src/views/em/equipmentc.vue
@@ -160,7 +160,7 @@
@closed="visibleRecord=false"
>
-
+
-
+
新增
- 任务下达
+ 任务下达
-
+
@@ -13,17 +13,17 @@
- {{ mtaskStateOptions[scope.row.state] }}
-
+
+
+ {{ mtaskStateOptions[scope.row.state] }}
+
+
+ {{ mtaskStateOptions[scope.row.state] }}
+
+
+
-
-
@@ -34,10 +34,12 @@
-
-
+
+
+ 查看
+
+
编辑
@@ -52,14 +54,12 @@
-
+
排产
-
-
+
@@ -93,13 +93,99 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ mtaskStateOptions[scope.row.state] }}
+
+
+ {{ mtaskStateOptions[scope.row.state] }}
+
+
+
+
+
+
+
@@ -292,7 +421,13 @@ export default {
.el-main.nopadding {
padding: 0 20px 0 20px
}
-
+.btnsContainer{
+ display: inline-block;
+ position: absolute;
+ right: 20px;
+ margin-top: 4px;
+ z-index: 100
+}
.gantt-container {
height: 30%;
@@ -303,4 +438,5 @@ export default {
padding: 10px;
border-radius: 4px;
}
+
\ No newline at end of file
diff --git a/src/views/pm/mtask_form.vue b/src/views/pm/mtask_form.vue
index bbe52020..873a5953 100644
--- a/src/views/pm/mtask_form.vue
+++ b/src/views/pm/mtask_form.vue
@@ -17,7 +17,7 @@
-
+
@@ -32,6 +32,7 @@
placeholder="工段"
clearable
style="width:100%"
+ :disabled="mode=='edit'"
>
-
-
-
-
-
-
-
-
+
@@ -89,11 +74,11 @@
-
+
@@ -118,20 +103,20 @@ export default {
loading: false,
mode: "add",
titleMap: {
- add: "新增仓库",
- edit: "编辑仓库",
- show: "查看仓库",
+ add: "新增任务",
+ edit: "编辑任务",
+ show: "查看任务",
},
form: {},
rules: {
- name: [{required: true, message: "请输入仓库名称", trigger: "blur"}],
- number: [{required: true, message: "请输入仓库编号", trigger: "blur"}],
- place: [{required: true, message: "请输入仓库地点", trigger: "blur"}]
+ start_date: [{required: true, message: "请选择开始时间", trigger: "blur"}],
+ end_date: [{required: true, message: "请选择结束时间", trigger: "blur"}],
+ number: [{required: true, message: "请输入任务编号", trigger: "blur"}],
+ material: [{required: true, message: "请选选择产品", trigger: "blur"}]
},
visible: false,
isSaveing: false,
- keeperOptions: [],
- depOptions: [],
+ materialOptions:[],
selectionFilters: [],
setFiltersVisible: false,
belong_dept_options: [],
@@ -139,6 +124,7 @@ export default {
};
},
mounted() {
+ this.getMaterial();
},
methods: {
//显示
@@ -147,6 +133,11 @@ export default {
this.visible = true;
return this;
},
+ getMaterial(){
+ this.$API.mtm.material.list.req({page:0}).then(res=>{
+ this.materialOptions = res;
+ })
+ },
//提交
submit() {
this.$refs.dialogForm.validate(async (valid) => {
@@ -155,9 +146,9 @@ export default {
try {
var res;
if (this.mode == "add") {
- res = await this.$API.pm.mtask.create.req(this.form);
+ res = await this.$API.pm.utask.create.req(this.form);
} else if (this.mode == "edit") {
- res = await this.$API.pm.mtask.update.req(this.form.id,this.form);
+ res = await this.$API.pm.utask.update.req(this.form.id,this.form);
}
this.isSaveing = false;
this.$emit("success", this.form, this.mode);
diff --git a/src/views/wpm/flog_form.vue b/src/views/wpm/flog_form.vue
index c5e9be3f..baceec51 100644
--- a/src/views/wpm/flog_form.vue
+++ b/src/views/wpm/flog_form.vue
@@ -7,10 +7,10 @@
destroy-on-close
@closed="$emit('closed')"
>
-
+
- {{ scope.row.processName }}
-
+ {{ scope.row.mgroup_name }}
+
@@ -45,7 +45,7 @@
-
+
@@ -61,13 +61,14 @@
-
-
-
-
-
+
+
+
@@ -61,11 +62,12 @@
v-else
type="primary"
@click="table_edit(scope.row)"
- v-auth="'equipment.update'"
+ v-auth="'equipment'"
>查看
+
删除
@@ -78,6 +80,7 @@
v-if="dialog.save"
ref="saveDialog"
:mtask="orderObj.id"
+ :date="orderObj.start_date"
@success="handleSaveSuccess"
@closed="dialog.save = false"
>
@@ -96,17 +99,18 @@
},
task:'',
orderObj:{},
- // apiObj: this.$API.wpm.mlog.list,
apiObj: null,
query: {
- page:1,
- page_size:20
+ page:0,
+ mtask:''
},
materialId:'',
};
},
mounted(){
this.mtask = this.$route.query.mtask;
+ this.query.mtask = this.$route.query.mtask;
+ this.apiObj = this.$API.wpm.mlog.relatedFirst;
this.getTask();//获取任务详情
},
methods: {
@@ -166,6 +170,11 @@
resetQuery() {
this.query = {};
},
+ submitForm(){
+ this.$API.pm.mtask.submitSameDay.req(this.orderObj.id).then(re=>{
+ console.log(res)
+ })
+ },
},
};