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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
| <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">
|
| </yrt-data-list>
|
| <!--数据编辑器Editor-->
| <yrt-editor :ref="editorRef" :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" :default-value="defaultValue" :edit-button-click="editButtonClick" :on-save-before="onSaveBefore" @on-change="onChange" @on-edit-load-after="onEditLoadAfter" @on-add-load-after="onEditLoadAfter">
| </yrt-editor>
|
| <!--出库明细选择器-->
| <yrt-selector ref="selector-dialog" :config="selectorConfig" :visible.sync="selectorConfig.visible" :set-search-default="setSearchDefault" @on-selected="onSelected"></yrt-selector>
| <!--入库明细选择器-->
| <yrt-selector ref="selectorEnter-dialog" :config="selectorEnterConfig" :visible.sync="selectorEnterConfig.visible" :set-search-default="setSearchDefault" @on-selected="onEnterSelected"></yrt-selector>
| <!--套餐选择器-->
| <yrt-selector ref="selectorTC-dialog" :config="selectorTCConfig" :visible.sync="selectorTCConfig.visible" :set-search-default="setSearchDefault" @on-selected="onTCSelected"></yrt-selector>
|
| <el-dialog :visible.sync="dialogPositionName">
| <el-form :model="form">
| <el-form-item label="货位名称">
| <el-input ref="positionName" v-model="form.positionName" class="input-300" autofocus @keyup.native.enter.stop="getData"></el-input>
| </el-form-item>
| <el-button style="margin-left: 10px;" size="small" type="success" @click="updatepositionName()">保存明细货位</el-button>
| </el-form>
| </el-dialog>
| </div>
| </template>
| <script>
| import baseLayout from "@/components/common/base-layout.vue";
| import yrtSelector from "@/components/common/yrtSelector.vue";
| export default {
| name: "inbound-purchas-exchange",
| components: { yrtSelector },
| mixins: [baseLayout],
| data() {
| return {
| dialogPositionName: false,
| selectorConfig: {
| title: "物料选择器",
| width: "1000px",
| visible: false,
| // 配置路由
| router: "/selector/s-product-selector"
| },
| selectorEnterConfig: {
| title: "物料选择器",
| width: "1000px",
| visible: false,
| // 配置路由
| router: "/selector/s-product-selector"
| },
| selectorTCConfig: {
| title: "物料选择器",
| width: "1000px",
| visible: false,
| // 配置路由
| router: "/selector/sale_order_productSplit"
| },
| form: {
| positionName: ""
| },
| // 表单默认值,新建时用
| defaultValue: {
| statusID: 1,
| statusText: "新建",
| sortingStatus: "未分配",
| auditing: 0
| },
| // 自动加载预到货单字段
| editorData: [
| "consignor_Id",
| "storageName",
| "DeptName",
| "ApplyDate",
| "providerShortName",
| "ShippingName",
| "ShippingAddress",
| "Mobile",
| "storage_Id"
| ]
| };
| },
| methods: {
| // 列表页面按钮点击事件
| buttonClick(authNode) {},
| // 明细按钮点击事件
| detailButtonClick(authNode) {
| switch (authNode) {
| case "add":
| // 明细添加
| this.selectorConfig.visible = true;
| break;
| case "detailAdd":
| // 明细添加
| this.selectorEnterConfig.visible = true;
| return false;
| }
| },
| // 将选择器选择中的数据填充到明细表中
| onSelected(rows) {
| this.editor.addDetailDataRow(rows);
| this.selectorConfig.visible = false;
| },
| showTCdate() {
| this.selectorConfig.visible = true;
| },
| onEnterSelected(rows) {
| this.editor.addDetailDataRow(rows, "Storage_AssembleEnterList");
| this.selectorEnterConfig.visible = false;
| }
| }
| };
| </script>
|
|