diff --git a/src/views/plan/whiteOrder/index.vue b/src/views/plan/whiteOrder/index.vue index fb706f63..4cc164f2 100644 --- a/src/views/plan/whiteOrder/index.vue +++ b/src/views/plan/whiteOrder/index.vue @@ -244,7 +244,28 @@ - +
+
物料名称
+
+ + {{ tag.productDescZh }} + +
+ +
+ @@ -529,6 +550,8 @@ export default { splitOpen: false, // 新增-物料选中list selectMaterielList: [], + // 新增-物料选中listtag + selectMaterielListtag:[], // 新增-物料list materielList: [], // 新增-物料-记录总数 @@ -963,10 +986,23 @@ export default { ...this.queryParams }, `whiteOrder_${new Date().getTime()}.xlsx`) }, + // 新增—删除标签 + handleClose(tag) { + this.selectMaterielListtag.splice(this.selectMaterielListtag.indexOf(tag.productDescZh), 1); + this.form.prodCode ='' + this.form.prodDesc ='' + var code = ""; + var desc = ""; + for (let i = 0; i < this.selectMaterielListtag.length; i++) { + code = code + this.selectMaterielListtag[i].productCode + ","; + desc = desc + this.selectMaterielListtag[i].productDescZh + ","; + } + this.form.prodCode += code; + this.form.prodDesc += desc; + }, // 新增-物料选择-确定按钮 subMateriel() { console.log("点击了物料-确定") - if (this.selectMaterielList.length < 1) { this.$message({ message: '至少选择一个物料!', @@ -974,12 +1010,17 @@ export default { }) return } - + console.log(this.form.prodCode == '') + // if(this.form.prodCode == '' ){ + // this.selectMaterielListtag = this.selectMaterielList + // } + var code = ''; var desc = ''; for (let i = 0; i < this.selectMaterielList.length; i++) { if(this.form.prodCode.indexOf(this.selectMaterielList[i].productCode)<0){ code = code + this.selectMaterielList[i].productCode + ','; + this.selectMaterielListtag.push(this.selectMaterielList[i]) }else{ this.$message({ message: this.selectMaterielList[i].productDescZh+'已经选择', @@ -993,6 +1034,7 @@ export default { } this.form.prodCode += code; this.form.prodDesc += desc; + // 关闭选择物料弹窗 this.innerVisible = false; }, @@ -1078,19 +1120,21 @@ export default { this.form.planComplete = moment(new Date()).format('YYYY-MM-DD') // 打开新增弹窗 this.dialogVisible = true; + this.selectMaterielListtag = [] + this.reset(); }, // 新增-提交按钮 submitForm() { - console.log("点击了提交按钮"); + console.log("点击了提交按钮",this.form); // 校验新增数据是否存在空值 - if (this.form.prodCode == null) { + if (this.form.prodCode == '') { this.$message({ message: '请选择物料!', type: 'warning' }) return } - if (this.form.prodDesc == null) { + if (this.form.prodDesc == '') { this.$message({ message: '请选择物料!', type: 'warning' @@ -1174,6 +1218,7 @@ export default { this.open = false; // 新增-关闭新增弹窗 this.dialogVisible = false; + this.selectMaterielListtag = [] this.reset(); }, // 首-表单重置 @@ -1282,3 +1327,42 @@ export default { margin-left: 650px; } + diff --git a/src/views/technology/process/index.vue b/src/views/technology/process/index.vue index 26bde9d5..3f32d68a 100644 --- a/src/views/technology/process/index.vue +++ b/src/views/technology/process/index.vue @@ -1,6 +1,13 @@ diff --git a/src/views/technology/proroute/routeprodproductnew.vue b/src/views/technology/proroute/routeprodproductnew.vue new file mode 100644 index 00000000..126c61f4 --- /dev/null +++ b/src/views/technology/proroute/routeprodproductnew.vue @@ -0,0 +1,186 @@ + + + +