333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 
<template>
  <div class="page-list-container">
    <!-- 数据Table -->
    <yrt-data-list :ref="dataListRef" :editor-ref="editorRef" :data-options="dataOptions" :fields.sync="dataListOptions.fields" :buttons="dataListOptions.buttons" :button-click="buttonClick" :data-list-selections.sync="dataListSelections" :auth-nodes="authNodes">
      <template slot="common-column-slot" slot-scope="{ row, col }">
      </template>
    </yrt-data-list>
    <!--数据编辑器Editor-->
    <yrt-editor :before-close="beforeClose" :ref="editorRef" :edit-button-click="editButtonClick" :data-list-ref="dataListRef" v-bind="editorOptions" :data-options="dataOptions" :action.sync="editorOptions.action" :top.sync="editorOptions.top" :visible.sync="editorOptions.config.visible" :detail-button-click="detailButtonClick" :auth-nodes="authNodes" :btn-read-only="btnReadOnly" @on-edit-load-after="onEditLoadAfter">
    </yrt-editor>
    <create-transport-dialog :visible.sync="createDistConfig.isShowDialog" :config="createDistConfig">
    </create-transport-dialog>
  </div>
</template>
 
<script>
import baseLayout from "@/components/common/base-layout.vue";
import CreateTransportDialog from "./components/create-transport-dialog";
export default {
  name: "tms-biz-tms-transport",
  components: { CreateTransportDialog },
  mixins: [baseLayout],
  data() {
    return {
      createDistConfig: {
        // 显示新建页面对话框
        isShowDialog: false,
        title: "分配月台"
      }
    };
  },
  methods: {
    editButtonClick() {},
    onEditLoadAfter() {},
    beforeClose() {},
    buttonClick(authNode) {
      switch (authNode) {
        case "assignPlatforms":
          // 打开窗体
          this.assignPlatforms();
          return false;
        case "receiving":
          // 确认接单
          return true;
        case "startLoading":
          // 开始装车
          return true;
        case "loadingComplete":
          // 装车完成
          return true;
        case "start":
          // 发车
          return true;
        case "arrive":
          // 到达
          return true;
        case "unloading":
          // 卸车完成
          return true;
        case "sign":
          // 签收
          return true;
        case "cancel":
          // 取消装车
 
          return true;
      }
    },
    assignPlatforms() {
      this.createDistConfig.isShowDialog = true;
    }
  }
};
</script>