diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 5012c77..d921826 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -107,7 +107,6 @@ export const asyncRoutes = [
name: 'material',
component: () => import('@/views/mtm/material'),
meta: { title: '物料清单', icon: 'material', perms: ['mtm_material'] }
-
}
,
{
@@ -151,7 +150,19 @@ export const asyncRoutes = [
name: 'productprocess',
component: () => import('@/views/mtm/productprocess'),
meta: { title: '产品管理', icon: 'product', perms: ['mtm_productprocess'] }
- },
+ }
+ ,{
+ path: 'productList',
+ name: 'productList',
+ component: () => import('@/views/mtm/productList'),
+ meta: { title: '成品列表', icon: 'material', perms: ['mtm_material'] }
+ }
+ ,{
+ path: 'wproductList',
+ name: 'wproductList',
+ component: () => import('@/views/mtm/wproductList'),
+ meta: { title: '半成品列表', icon: 'material', perms: ['mtm_material'] }
+ }
]
},
{
diff --git a/hb_client/src/views/bigScreen/bottomLeft.vue b/hb_client/src/views/bigScreen/bottomLeft.vue
index 6548da7..db1b193 100644
--- a/hb_client/src/views/bigScreen/bottomLeft.vue
+++ b/hb_client/src/views/bigScreen/bottomLeft.vue
@@ -31,201 +31,166 @@
return {
options: {},
cdata: {
- category: [
- "JH5jhx463-1",
- "JH5jhx463-2",
- "JH5jhx463-3",
- "JH5jhx463-4",
- "JH5jhx463-5",
- "JH5jhx463-6",
- "JH5jhx463-7",
- "JH5jhx463-8",
- "JH5jhx463-9",
- "JH5jhx463-10",
- "JH5jhx463-11",
- "JH5jhx463-12",
- "JH5jhx463-13",
- "JH5jhx463-14",
- "JH5jhx463-15"
- ],
- planData: [
- 18092,
- 20728,
- 24045,
- 28348,
- 32808,
- 36097,
- 39867,
- 18092,
- 20728,
- 24045,
- 28348,
- 32808,
- 36097,
- 39867,
- 44715,
- ],
- barData: [
- 9600,
- 19000,
- 19500,
- 20500,
- 19500,
- 28500,
- 31900,
- 12500,
- 14000,
- 21500,
- 23200,
- 24450,
- 25250,
- 33300,
- 40715
- ],
rateData: []
}
};
},
- mounted() {
- this.setData();
+ props:{
+ category:{
+ type:Array,
+ default:()=>{
+ return []
+ }
+ },
+ planData:{
+ type:Array,
+ default:()=>{
+ return []
+ }
+ },
+ realData:{
+ type:Array,
+ default:()=>{
+ return []
+ }
+ }
},
- watch: {
- cdata: {
- handler(newData) {
- this.options = {
- /*tooltip: {
- trigger: "axis",
- backgroundColor: "rgba(255,255,255,0.1)",
- axisPointer: {
- type: "shadow",
- label: {
- show: true,
- backgroundColor: "#7B7DDC"
- }
- }
- },*/
- tooltip: {
- trigger: 'axis', //触发类型;轴触发,axis则鼠标hover到一条柱状图显示全部数据,item则鼠标hover到折线点显示相应数据,
- axisPointer: { //坐标轴指示器,坐标轴触发有效,
- type: 'cross', //默认为line,line直线,cross十字准星,shadow阴影
- crossStyle: {
- color: '#fff'
- }
- }
- },
- /*tooltip: {
- trigger: 'item',
- formatter: function (params) {
- debugger;
- console.log(params);
- let color = params.color;//图例颜色
- let htmlStr = '
';
- htmlStr += params.name + '
';
- htmlStr += '';
- htmlStr += params.seriesName + ':' + params.value + '%';
- htmlStr += '
';
- return htmlStr;
- }
- },
- tooltip: {
- //shared: true,
- crosshairs: true,
- valueSuffix: yAxisSuffix,
- useHTML: true,
- formatter: function() {
- return ""
- +"录入时间: "+tipsbean[0][this.series.data.indexOf(this.point)].medDate+"
"
- +tipsbean[1][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[1][this.series.data.indexOf(this.point)].medResult+"
"
- +tipsbean[2][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[2][this.series.data.indexOf(this.point)].medResult+"
"
- +tipsbean[3][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[3][this.series.data.indexOf(this.point)].medResult+"
"
- +tipsbean[0][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[0][this.series.data.indexOf(this.point)].medResult+"
"
- +"
";
- }
- },*/
- legend: {
- data: ["已完成", "计划完成"],
- textStyle: {
- color: "#B4B4B4"
- },
- top: "0%"
- },
- grid: {
- x: "8%",
- width: "88%",
- y: "4%"
- },
- xAxis: {
- data: newData.category,
- axisLine: {
- lineStyle: {
- color: "#B4B4B4"
- }
- },
- axisTick: {
- show: false
- }
- },
- yAxis:{
- splitLine: {
- show: false
- },
- axisLine: {
- lineStyle: {
- color: "#B4B4B4"
- }
- },
- axisLabel: {
- formatter: "{value} "
- }
- },
- series: [
- {
- name: "已完成",
- type: "bar",
- barWidth: 10,
- itemStyle: {
- normal: {
- barBorderRadius: 5,
- color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {offset: 0, color: "#956FD4"},
- {offset: 1, color: "#3EACE5"}
- ])
- }
- },
- data: newData.barData
- },
- {
- name: "计划完成",
- type: "bar",
- barGap: "-100%",
- barWidth: 10,
- itemStyle: {
- normal: {
- barBorderRadius: 5,
- color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
- {offset: 0, color: "rgba(156,107,211,0.8)"},
- {offset: 0.2, color: "rgba(156,107,211,0.5)"},
- {offset: 1, color: "rgba(156,107,211,0.2)"}
- ])
- }
- },
- z: -12,
- data: newData.planData
- }
- ]
+ mounted() {
+ let that=this;
+ this.setData();
+ this.options = {
+ /*tooltip: {
+ trigger: "axis",
+ backgroundColor: "rgba(255,255,255,0.1)",
+ axisPointer: {
+ type: "shadow",
+ label: {
+ show: true,
+ backgroundColor: "#7B7DDC"
+ }
+ }
+ },*/
+ tooltip: {
+ trigger: 'axis', //触发类型;轴触发,axis则鼠标hover到一条柱状图显示全部数据,item则鼠标hover到折线点显示相应数据,
+ axisPointer: { //坐标轴指示器,坐标轴触发有效,
+ type: 'cross', //默认为line,line直线,cross十字准星,shadow阴影
+ crossStyle: {
+ color: '#fff'
+ }
}
},
- immediate: true,
- deep: true
- },
+ /*tooltip: {
+ trigger: 'item',
+ formatter: function (params) {
+ debugger;
+ console.log(params);
+ let color = params.color;//图例颜色
+ let htmlStr = '';
+ htmlStr += params.name + '
';
+ htmlStr += '';
+ htmlStr += params.seriesName + ':' + params.value + '%';
+ htmlStr += '
';
+ return htmlStr;
+ }
+ },
+ tooltip: {
+ //shared: true,
+ crosshairs: true,
+ valueSuffix: yAxisSuffix,
+ useHTML: true,
+ formatter: function() {
+ return ""
+ +"录入时间: "+tipsbean[0][this.series.data.indexOf(this.point)].medDate+"
"
+ +tipsbean[1][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[1][this.series.data.indexOf(this.point)].medResult+"
"
+ +tipsbean[2][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[2][this.series.data.indexOf(this.point)].medResult+"
"
+ +tipsbean[3][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[3][this.series.data.indexOf(this.point)].medResult+"
"
+ +tipsbean[0][this.series.data.indexOf(this.point)].itemName+":"+tipsbean[0][this.series.data.indexOf(this.point)].medResult+"
"
+ +"
";
+ }
+ },*/
+ legend: {
+ data: [" 计划完成", " 已完成 "],
+ textStyle: {
+ color: "#B4B4B4"
+ },
+ top: "0%"
+ },
+ grid: {
+ x: "8%",
+ width: "88%",
+ y: "4%"
+ },
+ xAxis: {
+ data: that.category,
+ axisLine: {
+ lineStyle: {
+ color: "#B4B4B4"
+ }
+ },
+ axisTick: {
+ show: false
+ }
+ },
+ yAxis:{
+ splitLine: {
+ type:"dashed",
+ color: "#B4B4B4",
+ width:"1",
+ // show: true,
+ },
+ axisLine: {
+ lineStyle: {
+ color: "#B4B4B4"
+ }
+ },
+ axisLabel: {
+ formatter: "{value} "
+ }
+ },
+ series: [
+ {
+ name: "已完成",
+ type: "bar",
+ barWidth: 10,
+ itemStyle: {
+ normal: {
+ barBorderRadius: 5,
+ color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
+ {offset: 0, color: "#956FD4"},
+ {offset: 1, color: "#3EACE5"}
+ ])
+ }
+ },
+ data: that.realData
+ },
+ {
+ name: "计划完成",
+ type: "bar",
+ barGap: "-100%",
+ barWidth: 10,
+ itemStyle: {
+ normal: {
+ barBorderRadius: 5,
+ color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
+ {offset: 0, color: "rgba(156,107,211,0.8)"},
+ {offset: 0.2, color: "rgba(156,107,211,0.5)"},
+ {offset: 1, color: "rgba(156,107,211,0.2)"}
+ ])
+ }
+ },
+ z: -12,
+ data: that.planData
+ }
+ ]
+ }
},
methods: {
// 根据自己的业务情况修改
setData() {
- for (let i = 0; i < this.cdata.barData.length - 1; i++) {
- let rate = this.cdata.barData[i] / this.cdata.planData[i];
+ /*for (let i = 0; i < this.cdata.realData.length - 1; i++) {
+ let rate = this.cdata.realData[i] / this.cdata.planData[i];
this.cdata.rateData.push(rate.toFixed(2));
- }
+ }*/
},
}
}
diff --git a/hb_client/src/views/bigScreen/index.vue b/hb_client/src/views/bigScreen/index.vue
index 364deba..5bb5200 100644
--- a/hb_client/src/views/bigScreen/index.vue
+++ b/hb_client/src/views/bigScreen/index.vue
@@ -104,6 +104,9 @@
@@ -126,7 +129,7 @@
import bottomRight from './bottomRight'
import {getPlanGantt} from "@/api/srm";
import {getProductionplanList} from "@/api/pm";
- import {getProcessYield, productCount, getProcessNow, planCount, orderCount} from "@/api/srm";
+ import {getProcessYield, productCount, getProcessNow} from "@/api/srm";
import {getContractList, getOrderList} from "@/api/sam";
import {getArticles} from "@/api/cms";
@@ -139,10 +142,11 @@
dateDay: null,
dateYear: null,
dateWeek: null,
- planGanttList: [],
numberShow: false,
processRate: false,
listUser: false,
+ listNews: false,
+ listProcess: false,
create_time_start: '',
titleItem: [
{
@@ -428,7 +432,10 @@
// columnWidth: [50],
align: ['center']
},
- weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
+ weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
+ category:[],
+ planData:[],
+ realData:[],
}
},
components: {
@@ -480,16 +487,6 @@
this.dateWeek = this.weekday[new Date().getDay()]
}, 1000)
},
- getPageData() {
- let that = this;
- getPlanGantt({type: 'big_screen'}).then(res => {
- if (res.code === 200) {
- this.planGanttList = res.data.results;
- } else {
- that.$message.error(res.msg);
- }
- })
- },
cancelLoading() {
setTimeout(() => {
this.loading = false
@@ -676,6 +673,7 @@
//企业资讯
getArticle() {
let that = this;
+ that.listNews = false;
getArticles({type: 'big_screen', page: 0}).then((response) => {
if (response.data) {
// this.configArticle = response.data;
@@ -694,11 +692,28 @@
data.push(obj)
});
that.configArticle.data = data;
+ that.listNews = true;
}
});
},
-
//任务完成进度
+ getPageData() {
+ let that = this;
+ that.listNews = false;
+ getPlanGantt({type: 'big_screen'}).then(res => {
+ if (res.code === 200) {
+ let list = res.data.results;
+ list.forEach(item=>{
+ that.category.push(item.number);
+ that.planData.push(item.count);
+ that.realData.push(item.count_ok);
+ })
+ that.listNews = true;
+ } else {
+ that.$message.error(res.msg);
+ }
+ })
+ },
}
}
diff --git a/hb_client/src/views/dashboard/index.vue b/hb_client/src/views/dashboard/index.vue
index 079c3ad..738d691 100644
--- a/hb_client/src/views/dashboard/index.vue
+++ b/hb_client/src/views/dashboard/index.vue
@@ -218,7 +218,7 @@
:height="cardTabelHeight"
style="border-top: 1px solid #f5f5f5;"
>
-
+
@@ -233,7 +233,7 @@
- {{scope.row.dept_.name}}
+ {{scope.row.dept_.name}}
@@ -585,7 +585,7 @@
let that = this;
that.listLoadingUser = true;
that.userPage = 1;
- getEmployee({page: that.userPage, page_size: that.userPageSize}).then((response) => {
+ getEmployee({page: that.userPage, page_size: that.userPageSize,show_atwork:true}).then((response) => {
if (response.data) {
that.userList = response.data.results;
that.userTotal = response.data.count;
@@ -602,6 +602,7 @@
that.userPage = val;
getEmployee({
page: val,
+ show_atwork:true,
page_size: that.userPageSize,
fields: 'id,name,dept_name,is_atwork'
}).then((response) => {
diff --git a/hb_client/src/views/inm/fifodetail.vue b/hb_client/src/views/inm/fifodetail.vue
index faecc1d..54a96d5 100644
--- a/hb_client/src/views/inm/fifodetail.vue
+++ b/hb_client/src/views/inm/fifodetail.vue
@@ -6,8 +6,9 @@
type="primary"
icon="el-icon-plus"
@click="handlecgxCreate"
- >新增采购项入库
+ 新增采购项入库
+
-
+
{{ scope.row.material_.name }}
@@ -27,19 +28,14 @@
{{ scope.row.batch }}
- {{
- scope.row.material_.number
- }}
+ {{scope.row.material_.number}}
{{ scope.row.material_.unit }}
- {{
- scope.row.material_.specification
- }}
+ {{scope.row.material_.specification}}
-
{{ scope.row.count }}
@@ -70,24 +66,25 @@
{{
item.name
- }}
+ }}
+
复验
-
+ 复验
+
上传
@@ -113,8 +110,8 @@
:rules="rule1"
>
-
+
-
+
-
取消
+ >取消
+
确认
+ >确认
+
-
-
{{
item.name
- }}
+ }}
+
@@ -275,16 +274,16 @@
v-if="item.field_type === 'string'"
:label="item.field_name"
>
-
+
diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue
index 8e33258..5bb2a00 100644
--- a/hb_client/src/views/mtm/material.vue
+++ b/hb_client/src/views/mtm/material.vue
@@ -30,8 +30,8 @@
-
-
+
@@ -210,22 +210,23 @@
},
processOptions: [],
options_: {
-
- "1": '成品',
- "2": '半成品',
+ // "1": '成品',
+ // "2": '半成品',
"3": '主要原料',
"4": '辅助材料',
"5": '加工工具',
"6": '辅助工装',
},
- options: [{
+ options: [
+ /*{
value: 1,
label: '成品'
}, {
value: 2,
label: '半成品'
- }, {
+ }, */
+ {
value: 3,
label: '主要原料'
}, {
@@ -258,10 +259,11 @@
},
],
listQuery: {
+ type:3,
page: 1,
page_size: 20,
},
- activeName: "",
+ activeName: "3",
listLoading: true,
dialogVisible: false,
dialogType: "new",
diff --git a/hb_client/src/views/mtm/productList.vue b/hb_client/src/views/mtm/productList.vue
new file mode 100644
index 0000000..9b2e82b
--- /dev/null
+++ b/hb_client/src/views/mtm/productList.vue
@@ -0,0 +1,351 @@
+
+
+
+
+
+ 新增成品
+
+
+
+ 搜索
+
+
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.number }}
+
+
+
+ 成品
+
+
+ {{ scope.row.name }}
+
+
+ {{ scope.row.specification }}
+
+
+ {{ scope.row.piece_count }}
+
+
+ {{ scope.row.unit }}
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+ 检查表
+
+
+ 编辑
+
+
+ 详情
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
+
diff --git a/hb_client/src/views/mtm/wproductList.vue b/hb_client/src/views/mtm/wproductList.vue
new file mode 100644
index 0000000..3f174e9
--- /dev/null
+++ b/hb_client/src/views/mtm/wproductList.vue
@@ -0,0 +1,322 @@
+
+
+
+
+
+ 新增半成品
+
+
+ 搜索
+
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.number }}
+
+
+
+ 半成品
+
+
+ {{ scope.row.name }}
+
+
+ {{ scope.row.specification }}
+
+
+ {{ scope.row.unit }}
+
+
+ {{ scope.row.create_time }}
+
+
+
+ 检查表
+
+ 编辑
+
+ 详情
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
+
diff --git a/hb_client/src/views/qm/admissiontest.vue b/hb_client/src/views/qm/admissiontest.vue
index 55e66a9..46c9ff7 100644
--- a/hb_client/src/views/qm/admissiontest.vue
+++ b/hb_client/src/views/qm/admissiontest.vue
@@ -1,323 +1,392 @@
-
-
-
-
-
- {{ scope.row.batch }}
-
-
- {{ scope.row.material_.name }}
-
-
- {{
- scope.row.material_.specification
- }}
-
-
- {{ scope.row.material_.unit }}
-
-
- {{ scope.row.count }}
-
-
-
- 未检查
- 已检查
-
-
-
-
- 不合格
- 合格
-
-
-
- {{ scope.row.create_time }}
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.batch }}
-
-
- {{ scope.row.material_.name }}
-
-
- {{
- scope.row.material_.specification
- }}
-
-
- {{ scope.row.material_.unit }}
-
-
- {{ scope.row.count }}
-
-
-
- {{ scope.row.create_time }}
-
-
-
-
-
-
-
-
-
- {{ scope.row.batch }}
-
-
- {{ scope.row.material_.name }}
-
-
- {{
- scope.row.material_.specification
- }}
-
-
- {{ scope.row.material_.unit }}
-
-
- {{ scope.row.warehouse_.name }}
-
-
-
- {{ scope.row.count }}
-
-
-
- {{ scope.row.create_time }}
-
-
-
-
-
-
-
-
-
- {{ scope.row.batch }}
-
-
- {{ scope.row.material_.name }}
-
-
- {{
- scope.row.material_.specification
- }}
-
-
- {{ scope.row.material_.unit }}
-
-
-
- {{ scope.row.create_time }}
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ scope.row.batch }}
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{scope.row.material_.specification}}
+
+
+ {{ scope.row.material_.unit }}
+
+
+ {{ scope.row.count }}
+
+
+
+
+ 不合格
+ 合格
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ {{scope.row.create_time}}
+
+
+
+
+ 复验记录
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.batch }}
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{scope.row.material_.specification}}
+
+
+ {{ scope.row.material_.unit }}
+
+
+ {{ scope.row.count }}
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+
+
+
+
+ {{ scope.row.batch }}
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{scope.row.material_.specification}}
+
+
+ {{ scope.row.material_.unit }}
+
+
+ {{ scope.row.warehouse_.name }}
+
+
+ {{ scope.row.count }}
+
+
+
+ 是
+ 否
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+ 复验记录
+
+
+ 复验记录
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.batch }}
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{scope.row.material_.specification}}
+
+
+ {{ scope.row.material_.unit }}
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+ 是
+ 否
+
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+ 复验记录
+
+
+ 复验记录
+
+
+
+
+
+
+
-
-
-
-
diff --git a/hb_client/src/views/qm/product.vue b/hb_client/src/views/qm/product.vue
index 9813303..3c943fa 100644
--- a/hb_client/src/views/qm/product.vue
+++ b/hb_client/src/views/qm/product.vue
@@ -1,81 +1,87 @@
-
-
-
-
-
-
-
-
- {{ scope.row.material_.name }}
-
-
- {{ scope.row.warehouse_.name }}
-
-
-
- {{scope.row.to_order_.number}}
-
- 需要确定订单
-
-
-
-
-
-
- {{scope.row.to_order_.contract_.name}}
-
-
-
-
-
-
- {{scope.row.to_order_.customer_.name}}
-
-
-
-
-
-
- 不合格
- 合格
-
-
-
-
+
+
+
+
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{ scope.row.warehouse_.name }}
+
+
+
+ {{scope.row.to_order_.number}}
+
+ 需要确定订单
+
+
+
+
+
+
+ {{scope.row.to_order_.contract_.name}}
+
+
+
+
+
+ {{scope.row.to_order_.contract_.watch_num}}
+
+
+
+
+
+ {{scope.row.to_order_.customer_.name}}
+
+
+
+
+
+
+ 不合格
+ 合格
+
+
+
+
+
+
-
-
- 军检
-
-
-
-
-
-
+ 军检
+
+
+
+
+
+
{
if (response.data) {
this.iproductData2 = response.data;