Преглед на файлове

提交达沃特、统计

caojunjie преди 2 години
родител
ревизия
5c689c45be

+ 29 - 0
src/components/statisticsDetailed/index.vue

@@ -11,6 +11,9 @@
                      @click="backToList">返回列表
           </el-button>
         </template>
+        <template slot="orderNo" slot-scope="scope">
+          <span style="color: #409EFF;cursor: pointer" @click.stop="detOpen(scope.row)">{{ scope.row.orderNo}}</span>
+        </template>
       </avue-crud>
     </basic-container>
   </div>
@@ -576,6 +579,32 @@ export default {
     });
   },
   methods: {
+    //点击跳转销售单
+    detOpen(row){
+      if (eval("(this.$store.getters.domSaleStatus)")) {
+        this.$alert(
+            "" +
+            "销售订单" +
+            "页面已存在,请关闭" +
+            "销售订单" +
+            "页面再进行操作",
+            "温馨提示",
+            {
+              confirmButtonText: "确定",
+              type: "warning",
+              callback: action => { }
+            }
+        );
+      }else {
+        this.$router.$avueRouter.closeTag("/businessManagement/salesOrder/index");
+        this.$router.push({
+          path: "/businessManagement/salesOrder/index",
+          query: {
+            id: row.id
+          },
+        });
+      }
+    },
     getAllWorkDicts() {
       this.getWorkDicts('brand').then(res => {
         this.findObject(this.option.column, "brand").dicData =

+ 1 - 0
src/store/modules/ifdetail.js

@@ -176,6 +176,7 @@ const ifdetail = {
     },
     // 打开国内销售订单
     DOMXS_IN_DETAIL(state) {
+      console.log(state)
       state.domSaleStatus = true;
     },
     //关闭国内销售订单

+ 1 - 1
src/views/purchase/rubberStock/index.vue

@@ -156,7 +156,7 @@ export default {
           });
         }
       }else if (type === 1) {
-        if (eval("(this.$store.getters.entranceXsStatus)")) {
+        if (eval("(this.$store.getters.domSaleStatus)")) {
           this.$alert(
               "" +
               "销售订单" +

+ 3 - 1
src/views/statisticAnalysis/AmtAmount/index.vue

@@ -22,7 +22,7 @@
         v-else
         :codeValue="225.1"
         @backToList="show = true"
-        :search="{...search,month:month}"
+        :search="{...search,month:month,brand:brand}"
         url="totalSummaryItem"></statistics-detailed>
   </div>
 </template>
@@ -38,6 +38,7 @@ export default {
   data() {
     return {
       month:1,
+      brand:'',
       show:true,
       UConfiguration: {
         multipleChoices: false,
@@ -479,6 +480,7 @@ export default {
     //打开明细
     detOpen(row,item){
       this.month = item
+      this.brand = row.brand
       this.show = false
     },
   }