koushanshan 3 anni fa
parent
commit
3d5b1760de

+ 4 - 1
src/view/pdm/process-node-reverse/add.vue

@@ -152,7 +152,10 @@
        */
        */
       onBarCode() {
       onBarCode() {
         if (this.formData.barCode) {
         if (this.formData.barCode) {
-          this.excuteNoParam(this.$service.collectService, this.$service.collectService.checkBarCodeNodeUndo, [this.formData.barCode]).then(res => {
+          let param ={
+            barCode:this.formData.barCode
+          }
+          this.excute(this.$service.collectService, this.$service.collectService.checkBarCodeNodeUndo,param).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
             if (res.code === this.$config.SUCCESS_CODE) {
               this.formData.productId = res.data.uniqueId
               this.formData.productId = res.data.uniqueId
               this.formData.productCode = res.data.modelCode
               this.formData.productCode = res.data.modelCode

+ 4 - 1
src/view/pdm/prod-defect/add.vue

@@ -234,7 +234,10 @@
        */
        */
       onBarCode() {
       onBarCode() {
         if (this.formData.barCode) {
         if (this.formData.barCode) {
-          this.excuteNoParam(this.$service.collectService, this.$service.collectService.checkBarCodeScrap, [this.formData.barCode]).then(res => {
+          let param ={
+            barCode:this.formData.barCode
+          }
+          this.excute(this.$service.collectService, this.$service.collectService.checkBarCodeScrap, param).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
             if (res.code === this.$config.SUCCESS_CODE) {
               this.formData.productId = res.data.uniqueId
               this.formData.productId = res.data.uniqueId
               this.formData.productCode = res.data.modelCode
               this.formData.productCode = res.data.modelCode

+ 4 - 1
src/view/pdm/prod-defect/reverse.vue

@@ -144,7 +144,10 @@
        */
        */
       onBarCode() {
       onBarCode() {
         if (this.formData.barCode) {
         if (this.formData.barCode) {
-          this.excuteNoParam(this.$service.collectService, this.$service.collectService.checkBarCodeScrapUndo, [this.formData.barCode]).then(res => {
+          let param ={
+            barCode:this.formData.barCode
+          }
+          this.excute(this.$service.collectService, this.$service.collectService.checkBarCodeScrapUndo, param).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
             if (res.code === this.$config.SUCCESS_CODE) {
               this.formData.productId = res.data.uniqueId
               this.formData.productId = res.data.uniqueId
               this.formData.productCode = res.data.modelCode
               this.formData.productCode = res.data.modelCode