Просмотр исходного кода

优化打印语句以及代码

002390 2 лет назад
Родитель
Сommit
ae82211ec7

+ 0 - 2
src/views/purchase/purchase-order/add/index.vue

@@ -68,7 +68,6 @@ export default {
       handler(nVal, oVal) {
         // 组织变化
         if (this.visible && nVal.puOrg != oVal.puOrg) {
-          console.log(nVal.puOrg, "nVal.puOrg", oVal.puOrg, "oVal.puOrg");
           for (const key in this.params) {
             if (Array.isArray(this.params[key])) {
               this.params[key] = [];
@@ -111,7 +110,6 @@ export default {
     },
     // 复制赋值
     async setCopyParams(id) {
-      console.log(id, "iid-----------------------");
       try {
         const { code, msg, data } = await orderApi.details(id);
 

+ 1 - 15
src/views/purchase/purchase-order/edit/index.vue

@@ -77,13 +77,10 @@ export default {
     },
     // 判断属性是否禁用
    async handleIsForbidden(status) {
-      console.log(status);
         let { updateColumns, updateTabColumns } = await forbidden(status != '2');
         this.columns = updateColumns;
         this.tabColumns = updateTabColumns;
         this.count++;
-        console.log(this.columns,'this.columns');
-        console.log(this.tabColumns,'this.tabColumns');
     },
     // 查询详细
     async fetchItem(prop) {
@@ -215,10 +212,6 @@ export default {
     },
     // 子表参照改变之后
     handleReferChange(val, source, type) {
-      console.log(val, 'val');
-      console.log(source, 'source');
-      console.log(type, 'type');
-
       // 触发物料参照
       if (type == 'MATERIAL_PARAM' && source.qty && source.qty != '') {
 
@@ -244,7 +237,6 @@ export default {
 
      // 子表下拉框改变
      handleTabSelectChange(type,row){
-      console.log(type,'type');
 
       if(type == 'priceType' && row.material && row.qty && row.qty != ""){
         this.handleGetPrice();
@@ -252,7 +244,6 @@ export default {
     },
     // 子表inputNumber
     handleInputChange(row, type) {
-      console.log(type, 'type');
       // 物料数量变化----询价
       if (type == 'qty' && row.material) {
         this.handleGetPrice();
@@ -290,12 +281,7 @@ export default {
     },
     
   },
-  created() {
-    console.log("EDIT CREATED");
-    console.log(this.params, 'this.params');
-
-
-  },
+  created() {},
   mounted() { },
   destroyed() { },
 };

+ 5 - 6
src/views/purchase/purchase-order/index.vue

@@ -256,12 +256,15 @@ export default {
           inputPattern: /\s*\S+?/,
           inputErrorMessage: '退回原因不能为空'
         }).then(({ value }) => {
+
           let data = {
             id: this.checkedList[0].id,
             documentIds: [],
             baskCause: value,
           };
+
           console.log(data);
+
           try {
 
             let { code, msg } = orderApi.documentsReturn(data);
@@ -271,12 +274,8 @@ export default {
               this.fetchList(this.params, this.page);
 
             }
-          } catch (error) {
-          } finally {
-          }
-        }).catch(() => {    
-        });
-      
+          } catch (error) {}
+        }).catch(() => {   });
       
     },
     // 判断是否满足整单关闭