diff --git a/hw-ui/src/views/board/firstFloor/index.vue b/hw-ui/src/views/board/firstFloor/index.vue index 1182d61..1c2b4d0 100644 --- a/hw-ui/src/views/board/firstFloor/index.vue +++ b/hw-ui/src/views/board/firstFloor/index.vue @@ -215,7 +215,8 @@ - + diff --git a/hw-ui/src/views/board/fourthFloor/laserLight.vue b/hw-ui/src/views/board/fourthFloor/laserLight.vue index 81bcd3d..0fc334b 100644 --- a/hw-ui/src/views/board/fourthFloor/laserLight.vue +++ b/hw-ui/src/views/board/fourthFloor/laserLight.vue @@ -14,21 +14,21 @@ - + - + - +
图纸下发 - 继续 + 完成
@@ -121,7 +121,7 @@ 开始 @@ -130,7 +130,7 @@ size="small" type="text" @click="nextProduction(scope.row)" - v-if="scope.row.completeAmount < scope.row.planAmount" + v-if="scope.row.completeAmount !== 0 && scope.row.completeAmount < scope.row.planAmount" > 继续 @@ -157,12 +157,29 @@
首页 - 板材领料 + 板材领料 SOP预览 退出
+ + + + + + + + + + + + + + @@ -179,6 +196,7 @@ export default { }, data() { return { + getMaterialsModel:false, form: {}, tableData: [ { @@ -212,6 +230,8 @@ export default { this.getInfo(e.data[0]) getNewestProductPlanDetail(e.data[0].planId).then(val=>{ this.form = val.data + this.form.materialId = e.data[0].materialId + this.form.materialName = e.data[0].materialName }) }) this.$refs.chart2.setData({ @@ -382,6 +402,8 @@ export default { this.getInfo(e) getNewestProductPlanDetail(e.planId).then(val=>{ this.form = val.data + this.form.materialId = e.materialId + this.form.materialName = e.materialName }) }, getInfo(e) { @@ -407,7 +429,7 @@ export default { center: ["50%", "50%"], data: [ { - value: e.planAmount, + value: e.planAmount === 0 ? 0.0001 : e.planAmount , label: { normal: { rich: { @@ -426,7 +448,7 @@ export default { formatter: function (params) { return ( "{a|" + - params.data.value + + (params.data.value === 0.0001 ? 0 : params.data.value) + "}" + "\n{b|计划}" ); @@ -486,7 +508,7 @@ export default { center: ["50%", "50%"], data: [ { - value: e.completeAmount, + value: e.completeAmount === 0 ? 0.0001 : e.completeAmount , label: { normal: { rich: { @@ -505,7 +527,7 @@ export default { formatter: function (params) { return ( "{a|" + - params.data.value + + (params.data.value === 0.0001 ? 0 : params.data.value) + "}" + "\n{b|实际}" ); @@ -565,7 +587,7 @@ export default { center: ["50%", "50%"], data: [ { - value: e.planAmount - e.completeAmount, + value: (e.planAmount - e.completeAmount) === 0 ? 0.0001 : (e.planAmount - e.completeAmount) , label: { normal: { rich: { @@ -584,7 +606,7 @@ export default { formatter: function (params) { return ( "{a|" + - params.data.value + + (params.data.value === 0.0001 ? 0 : params.data.value) + "}" + "\n{b|差异}" ); @@ -663,7 +685,7 @@ export default { formatter: function (params) { return ( "{a|" + - params.data.value + + (params.data.value === 0.0001 ? 0 : params.data.value) + "%}" + "\n{b|完成率}" ); @@ -709,6 +731,8 @@ export default { this.getInfo(e) const data = await startNextProductPlanDetail({planId:e.planId}) this.form = data.data + this.form.materialId = e.materialId + this.form.materialName = e.materialName }, } diff --git a/hw-ui/src/views/mes/productplan/editProductPlan.vue b/hw-ui/src/views/mes/productplan/editProductPlan.vue index c9bfa8a..1f7a2c0 100644 --- a/hw-ui/src/views/mes/productplan/editProductPlan.vue +++ b/hw-ui/src/views/mes/productplan/editProductPlan.vue @@ -1,114 +1,168 @@