diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js
index 5c585ca..f3b876d 100644
--- a/hb_client/src/api/wpm.js
+++ b/hb_client/src/api/wpm.js
@@ -297,5 +297,14 @@ export function testInit(data) {
})
}
+//不合格半成品报废
+export function scrap(id) {
+ return request({
+ url: `/wpm/wproduct/${id}/scrap/`,
+ method: 'post',
+
+ })
+}
+
diff --git a/hb_client/src/components/Gantt/components/leftMenu.vue b/hb_client/src/components/Gantt/components/leftMenu.vue
new file mode 100644
index 0000000..2167e1c
--- /dev/null
+++ b/hb_client/src/components/Gantt/components/leftMenu.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+ {{ scope.row.name }}
+
+
+
+
+
+
+
+
+
diff --git a/hb_client/src/components/Gantt/components/slider.vue b/hb_client/src/components/Gantt/components/slider.vue
new file mode 100644
index 0000000..b355b75
--- /dev/null
+++ b/hb_client/src/components/Gantt/components/slider.vue
@@ -0,0 +1,156 @@
+
+
+
+ {{ per }}
+ {{ per }}
+
+
+ {{ per1 }}
+
+
+
+
+
diff --git a/hb_client/src/components/Gantt/index.vue b/hb_client/src/components/Gantt/index.vue
new file mode 100644
index 0000000..d804356
--- /dev/null
+++ b/hb_client/src/components/Gantt/index.vue
@@ -0,0 +1,1393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.year }}年{{ key }}月
+
+
+
{{ fixdTopMonth }}
+
+
+
+
+
+ 今天
+
+ {{ j.date }}
+
+
+
+
+
+ {{ j.date }}
+
+
+
+
+
+
+
+ {{ j.date }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{currentDaySize.label}}
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ {{ currentProjectMsg.name }}
+
+
+ 工作周期:
+ {{ currentProjectMsg.allTime }}天
+
+
+ 当前进度:
+ {{ currentProjectMsg.per }}
+
+
+ 合格数量:
+ {{ currentProjectMsg.per1 }}
+
+
+ 开始时间:
+ {{ currentProjectMsg.startTime }}
+
+
+ 结束时间:
+ {{ currentProjectMsg.endTime }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hb_client/src/views/pm/gantt.vue b/hb_client/src/views/pm/gantt.vue
index 36b3b6c..564d3b3 100644
--- a/hb_client/src/views/pm/gantt.vue
+++ b/hb_client/src/views/pm/gantt.vue
@@ -4,11 +4,12 @@
+
@@ -944,7 +945,7 @@
};
this.handlerSelect();
},
- //获取近三年的所有天数
+ //获取要显示的所有天数
getDay() {
this.getAllDate();
},
@@ -959,8 +960,13 @@
return false;
},
getAllDate() {
- let obj = {};
- let arr = [this.currentYear - 1, this.currentYear, this.currentYear + 1];
+ let obj = {},arr=[];
+ let start = new Date(this.timeRange[0]).getFullYear();
+ let end = new Date(this.timeRange[1]).getFullYear();
+ for(let i=start;i
{
obj.year = item;
obj.days = this.isLeapYear(item) ? 365 : 366;
@@ -974,7 +980,6 @@
this.allDays.forEach(item => {
item.month = this.handleMonthDay(item.days, item.year);
});
- // console.log(this.allDays);
this.allDays.forEach(element => {
if (element.year == this.currentYear) {
element.month[0][this.currentMonth].forEach(k => {
@@ -1063,15 +1068,6 @@
break;
}
},
- setList() {
- /*getPlanGantt().then(res=>{
- if(res.code===200){
- this.list = res.data.results;
- }else{
- this.$message.error(res.msg);
- }
- })*/
- },
//设置里程碑线的高度
setStoneLine(isFirst) {
this.$nextTick(() => {
@@ -1112,7 +1108,6 @@
mounted() {
document.addEventListener("scroll", this.handleScroll);
this.getDay();
- this.setList();
this.setStoneLine();
},
beforeDestroy() {
diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue
index 7cc3913..049681e 100644
--- a/hb_client/src/views/pm/plan.vue
+++ b/hb_client/src/views/pm/plan.vue
@@ -1,63 +1,62 @@
-
- 生产任务列表
-
-
-
-
+ 生产任务列表
+
+
+
+
-
-
-
-
-
+
+
+
+
{{ scope.row.number }}
-
+
{{ scope.row.order_.number }}
-
+
{{ scope.row.order_.contract_.number }}
-
-
+
+
{{ scope.row.product_.name }}
-
+
{{ scope.row.product_.specification }}
-
+
{{ scope.row.product_.unit }}
-
+
{{ scope.row.count }}
-
+
{{ scope.row.start_date }}
-
+
{{ scope.row.end_date }}
-
+
{{ scope.row.order_.delivery_date }}
-
-
-
+
+
+
否
- 是
-
+ 是
+
-
+
{{ scope.row.create_time }}
查看子计划
- 生成子计划
+ v-if="scope.row.is_planed"
+ @click="handleselectplan(scope)"
+ >查看子计划
+
+ 生成子计划
+
-
-
-
-
-
-
-
-
-
- {{ scope.row.number }}
-
-
- {{ scope.row.customer_.name }}
-
-
-
- {{ scope.row.contract_.number }}
-
-
- {{ scope.row.contract_.name }}
-
-
- {{ scope.row.product_.name }}
-
-
- {{ scope.row.product_.specification }}
-
-
- {{ scope.row.count }}
-
-
- {{ scope.row.planed_count }}
-
-
-
- {{ scope.row.delivery_date }}
-
-
-
-
-
- {{ scope.row.create_time }}
-
-
+
+
-
-
- 排产
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 确认
-
-
-
-
- 甘特图
-
+
+
+
+ {{ scope.row.number }}
+
+
+ {{ scope.row.customer_.name }}
+
+
+
+ {{ scope.row.contract_.number }}
+
+
+ {{ scope.row.contract_.name }}
+
+
+ {{ scope.row.product_.name }}
+
+
+ {{ scope.row.product_.specification }}
+
+
+ {{ scope.row.count }}
+
+
+ {{ scope.row.planed_count }}
+
+
+
+ {{ scope.row.delivery_date }}
+
+
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+ 排产
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
-
+
-
\ No newline at end of file
+
diff --git a/hb_client/src/views/wpm/need.vue b/hb_client/src/views/wpm/need.vue
index 3664c2c..5d73c0f 100644
--- a/hb_client/src/views/wpm/need.vue
+++ b/hb_client/src/views/wpm/need.vue
@@ -174,6 +174,58 @@
@pagination="getList1"
/>
+
+
+
+
+
+
+
+ {{ scope.row.material_.name }}
+
+
+
+ {{ scope.row.number }}
+
+
+
+ {{ actstate_[scope.row.act_state] }}
+
+
+
+
+ {{ scope.row.step_.name }}
+
+
+
+
+ 报废
+
+
+
+
+
+
+
@@ -425,7 +477,7 @@