戴艳蓉 пре 3 година
родитељ
комит
b413771434

+ 1 - 1
src/views/purchaseIn/purchaseReturn/ShowDataTableColumns.js

@@ -16,7 +16,7 @@ export default  [
     label: "商品编码",
   },
   {
-    prop: "goods_class",
+    prop: "class_cat",
     label: "商品分类",
   },
   {

+ 9 - 2
src/views/purchaseIn/purchaseReturn/detail.vue

@@ -214,8 +214,15 @@ export default {
       const res = await asyncRequest.detail({ returnCode: this.queryId });
       if (res && res.code === 0 && res.data) {
         this.sitem = res.data;
-        this.status = res.data.status;
-        this.orderCode = res.data.bk_code;
+        const {can,status,bk_code} = this.sitem
+        this.status = status;
+        this.orderCode = bk_code;
+          if (can && can.length > 0) {
+           this.sitem.class_cat =""
+          can.forEach((x, i) => {
+            this.sitem.class_cat += i === 0 ? x.name : "/" + x.name;
+          });
+        }
         this.getNewTime();
       } else if (res && res.code >= 100 && res.code <= 104) {
         await this.logout();