From fa867475c3adf925aa388b0c40594dbc2381a608 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 31 Dec 2021 08:42:06 +0800 Subject: [PATCH] xial --- .../src/components/customForm/review.vue | 18 +- hb_client/src/views/qm/processtest.vue | 4 +- hb_client/src/views/qm/taskdetails.vue | 8 +- hb_client/src/views/qm/taskrecordfrom.vue | 202 +++++++++++++----- hb_client/src/views/qm/wproduct.vue | 39 +++- 5 files changed, 197 insertions(+), 74 deletions(-) diff --git a/hb_client/src/components/customForm/review.vue b/hb_client/src/components/customForm/review.vue index 55a85b5..12bd639 100644 --- a/hb_client/src/components/customForm/review.vue +++ b/hb_client/src/components/customForm/review.vue @@ -288,8 +288,8 @@ for(let i=0;i { @@ -307,17 +307,17 @@ that.$set(that.originForm,key,this.origins[i].field_value) }*/ //图片地址 - let imag= this.formData.filter(item => { - return item.field_type === 'draw'; - }); - that.img = 'http://47.95.0.242:2222'+imag[0].draw_template; + // let imag= this.formData.filter(item => { + // return item.field_type === 'draw'; + // }); + // that.img = 'http://47.95.0.242:2222'+imag[0].draw_template; /*let originImag= this.origins.filter(item => { return item.field_type === 'draw'; });*/ - that.originImg = new Image(); - that.originImg.crossOrigin = ''; - that.originImg = imag[0].origin_value; + // that.originImg = new Image(); + // that.originImg.crossOrigin = ''; + // that.originImg = imag[0].origin_value; listJudge.forEach(item => { let obj = new Object(); diff --git a/hb_client/src/views/qm/processtest.vue b/hb_client/src/views/qm/processtest.vue index 04fbd61..65149f5 100644 --- a/hb_client/src/views/qm/processtest.vue +++ b/hb_client/src/views/qm/processtest.vue @@ -1,10 +1,10 @@ diff --git a/hb_client/src/views/qm/wproduct.vue b/hb_client/src/views/qm/wproduct.vue index 4adc1f7..2bca265 100644 --- a/hb_client/src/views/qm/wproduct.vue +++ b/hb_client/src/views/qm/wproduct.vue @@ -2,6 +2,13 @@
+ + {{productionplans.number}} + {{productionplans.product_.name}} + {{productionplans.product_.specification}} + {{state_[productionplans.state]}} + 不合格数没有 + import { getwproductList} from "@/api/wpm"; import checkPermission from "@/utils/permission"; +import { getProductionplan,getsubproductionplanList } from "@/api/pm"; import { genTree } from "@/utils"; import Pagination from "@/components/Pagination"; // secondary package based on el-pagination @@ -62,8 +70,17 @@ export default { components: { Pagination }, data() { return { - + productionplans:{ + number:"" + }, wproduct: "", + state_:{ + 10:'制定中', + 20:'已下达', + 30:'已接受', + 40:'生产中', + 50:'已完成', + 60:'军检完成'}, actstate_: { 6: "待复检", 10: "操作进行中", @@ -83,16 +100,26 @@ export default { created() { this.id = this.$route.params.id; - this.productionplanID = this.$route.params.productionplanID; + this.productionplan = this.$route.params.productionplanid; this.getList(); - console.log(this.productionplanID); + this.getpList(); + console.log(this.productionplan); }, methods: { checkPermission, + getpList() { + getProductionplan(this.productionplan).then((response) => { + if (response.data) { + this.productionplans = response.data; + + } + + }); + }, //半成品列表 getList() { - getwproductList({production_plan:this.productionplanID,step__process:this.id,page:0}).then((response) => { + getwproductList({production_plan:this.productionplan,step__process:this.id,page:0}).then((response) => { if (response.data) { this.wproduct= response.data; } @@ -103,8 +130,8 @@ export default { //查看该玻璃检验记录表 handleoption(scope){ - - this.$router.push({name: "taskrecordfrom", params: { id: scope.row.id }, }) + console.log(this.productionplan); + this.$router.push({name: "taskrecordfrom", params: { id:scope.row.id,productionplanid:this.productionplan,number:scope.row.number,process:scope.row.step_.name} }) }, },