瀏覽代碼

数据字典列表页,仓房信息详情页

钞小赢 3 年之前
父節點
當前提交
5a7b8caf72

+ 277 - 9
src/views/demo/parameManagement/dataDictionary/index.vue

@@ -1,14 +1,282 @@
1 1
 <template>
2
-    <div>
3
-         <d2-container>
4
-    <template slot="header">参数设置/数据字典</template>
5
- 数据字典
6
-  </d2-container>
7
-      
8
-    </div>
2
+  <div>
3
+    <d2-container>
4
+      <template slot="header"
5
+        ><div class="nav">当前所在位置:首页>数据字典</div></template
6
+      >
7
+      <div>
8
+        <div class="right_main">
9
+          <div class="right_title">
10
+            <i
11
+              class="fa fa-book"
12
+              aria-hidden="true"
13
+              style="padding-right: 5px"
14
+            ></i
15
+            >数据字典
16
+          </div>
17
+          <div class="right_table">
18
+            <el-form
19
+              :inline="true"
20
+              :model="formInline"
21
+              class="demo-form-inline"
22
+              id="formLabel"
23
+            >
24
+              <div class="searchRow">
25
+                <div>
26
+                  <el-form-item label="字典名称:">
27
+                    <el-cascader :options="options"></el-cascader>
28
+                  </el-form-item>
29
+
30
+                  <el-form-item>
31
+                    <el-button
32
+                      type="primary"
33
+                      icon="el-icon-search"
34
+                      @click="search"
35
+                      >查询</el-button
36
+                    >
37
+                  </el-form-item>
38
+
39
+                  <el-form-item>
40
+                    <el-button
41
+                      type="primary"
42
+                      icon="el-icon-refresh-left"
43
+                      @click="reset"
44
+                      >重置</el-button
45
+                    >
46
+                  </el-form-item>
47
+                </div>
48
+                <div>
49
+                  <el-form-item>
50
+                    <el-button
51
+                      type="primary"
52
+                      icon="el-icon-plus"
53
+                      @click="addDic"
54
+                      >新建字典</el-button
55
+                    >
56
+                  </el-form-item>
57
+                </div>
58
+              </div>
59
+            </el-form>
60
+
61
+            <el-table
62
+              :data="dataDictionaryList"
63
+              border
64
+              style="width: 100%"
65
+              row-key="id"
66
+              lazy
67
+              :load="load"
68
+              :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
69
+              :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }"
70
+            >
71
+              <el-table-column
72
+                prop="branchOffice"
73
+                label="字典名称"
74
+                align="center"
75
+              >
76
+              </el-table-column>
77
+              <el-table-column
78
+                prop="directLibrary"
79
+                label="字典标识"
80
+                align="center"
81
+              >
82
+              </el-table-column>
83
+              <el-table-column
84
+                prop="subTreasury"
85
+                label="使用状态"
86
+                align="center"
87
+              >
88
+              </el-table-column>
89
+              <el-table-column prop="cfName" label="更新时间" align="center">
90
+              </el-table-column>
91
+
92
+              <el-table-column align="center" label="操作" width="180">
93
+                <template slot-scope="scope">
94
+                  <el-button
95
+                    @click="handleCheck(scope.row)"
96
+                    type="text"
97
+                    size="small"
98
+                    icon="el-icon-circle-check"
99
+                    >添加子项</el-button
100
+                  >
101
+                  <el-button type="text" size="small" icon="el-icon-edit"
102
+                    >修改</el-button
103
+                  >
104
+                </template>
105
+              </el-table-column>
106
+            </el-table>
107
+            <!-- <pagination
108
+        
109
+          :total="total"
110
+          :page.sync="listQuery.page"
111
+          :limit.sync="listQuery.limit"
112
+          @pagination="getList"
113
+        /> -->
114
+          </div>
115
+        </div>
116
+      </div>
117
+    </d2-container>
118
+  </div>
9 119
 </template>
10 120
 <script>
121
+// 引入分页
122
+import Pagination from "@/components/pagination";
11 123
 export default {
12
-  name:"dataDictionary"
124
+  name: "dataDictionary",
125
+  components: { Pagination },
126
+  data() {
127
+    return {
128
+      //options
129
+      options: [
130
+        {
131
+          value: "zhinan",
132
+          label: "指南",
133
+
134
+          children: [
135
+            {
136
+              value: "shejiyuanze",
137
+              label: "设计原则",
138
+              children: [
139
+                {
140
+                  value: "yizhi",
141
+                  label: "一致",
142
+                },
143
+                {
144
+                  value: "fankui",
145
+                  label: "反馈",
146
+                },
147
+                {
148
+                  value: "xiaolv",
149
+                  label: "效率",
150
+                },
151
+                {
152
+                  value: "kekong",
153
+                  label: "可控",
154
+                },
155
+              ],
156
+            },
157
+          ],
158
+        },
159
+      ],
160
+
161
+      //头部查询条件
162
+      formInline: {
163
+        cfName: "",
164
+        scanTime: "",
165
+      },
166
+      //表格字段
167
+      dataDictionaryList: [
168
+        {
169
+          id: 1,
170
+          branchOffice: "中储粮河南分公司",
171
+          directLibrary: "商丘直属库",
172
+          subTreasury: "宁陵粮油储备公司",
173
+          cfName: "1号仓",
174
+          keeper: "白端静",
175
+          lxfs: "13531314569",
176
+          lastScan: "2019-08-21 16:11:59",
177
+          cfState: "出库",
178
+          hasChildren: true,
179
+        },
180
+      ],
181
+
182
+      // 日期插件
183
+      //
184
+      pickerOptions: {
185
+        shortcuts: [
186
+          {
187
+            text: "最近一周",
188
+            onClick(picker) {
189
+              const end = new Date();
190
+              const start = new Date();
191
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
192
+              picker.$emit("pick", [start, end]);
193
+            },
194
+          },
195
+          {
196
+            text: "最近一个月",
197
+            onClick(picker) {
198
+              const end = new Date();
199
+              const start = new Date();
200
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
201
+              picker.$emit("pick", [start, end]);
202
+            },
203
+          },
204
+          {
205
+            text: "最近三个月",
206
+            onClick(picker) {
207
+              const end = new Date();
208
+              const start = new Date();
209
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
210
+              picker.$emit("pick", [start, end]);
211
+            },
212
+          },
213
+        ],
214
+      },
215
+      //分页
216
+      total: 30,
217
+      listQuery: {
218
+        page: 1,
219
+        limit: 10,
220
+        importance: undefined,
221
+        title: undefined,
222
+        type: undefined,
223
+        sort: "+id",
224
+      },
225
+    };
226
+  },
227
+  methods: {
228
+    search() {},
229
+    reset() {},
230
+    getList() {},
231
+    //查看
232
+    handleCheck() {
233
+      this.$router.push({
234
+        path: "/warehouseInfo-check",
235
+      });
236
+    },
237
+    //表格数的子节点加载
238
+    load(tree, treeNode, resolve) {
239
+      setTimeout(() => {
240
+        resolve([
241
+          {
242
+            id: 11,
243
+            branchOffice: "中储粮河南分公司",
244
+            directLibrary: "商丘直属库",
245
+            subTreasury: "宁陵粮油储备公司",
246
+            cfName: "1号仓",
247
+            keeper: "白端静",
248
+            lxfs: "13531314569",
249
+            lastScan: "2019-08-21 16:11:59",
250
+            cfState: "出库",
251
+          },
252
+          {
253
+            id: 12,
254
+            branchOffice: "中储粮河南分公司",
255
+            directLibrary: "商丘直属库",
256
+            subTreasury: "宁陵粮油储备公司",
257
+            cfName: "1号仓",
258
+            keeper: "白端静",
259
+            lxfs: "13531314569",
260
+            lastScan: "2019-08-21 16:11:59",
261
+            cfState: "出库",
262
+          },
263
+        ]);
264
+      }, 1000);
265
+    },
266
+    //新建字典
267
+    addDic() {},
268
+  },
269
+};
270
+</script>
271
+<style lang="scss" scoped>
272
+.nav {
273
+  color: #fff;
274
+  font-size: 14px;
275
+
276
+  background: #004a93;
13 277
 }
14
-</script>
278
+.searchRow {
279
+  display: flex;
280
+  justify-content: space-between;
281
+}
282
+</style>

+ 7 - 7
src/views/demo/warehouseShow/warehouseInfo/warehouseInfo-check.vue

@@ -20,7 +20,7 @@
20 20
           <div>保管员信息</div>
21 21
         </div>
22 22
 
23
-        <el-form :inline="true" :model="form" class="demo-form-inline" label-width="130px">
23
+        <el-form :inline="true" :model="form" class="demo-form-inline">
24 24
           <div class="middle">
25 25
             <el-form-item label="姓名:">
26 26
               <el-select v-model="form.name" placeholder="请选择">
@@ -138,7 +138,7 @@
138 138
             <el-button type="primary" icon="el-icon-plus" @click="add()">添加</el-button>
139 139
           </div>
140 140
         </div>
141
-        <el-table :data="lsxxList" border style="width: 100%; margin-top: 10px">
141
+        <el-table :data="lsxxList" border style="width: 100%; margin-top: 10px" :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }">
142 142
           <el-table-column prop="varieties" label="品种" align="center">
143 143
             <template slot-scope="scope">
144 144
               <el-select
@@ -282,12 +282,12 @@ export default {
282 282
   }
283 283
   ::v-deep .el-form--inline .el-form-item__label{
284 284
       width:130px;
285
+      color:#fff
285 286
       }
287
+      .el-select,.el-input{
288
+  width: 300px;
289
+}
286 290
  
287 291
 }
288 292
 </style>
289
-<style >
290
-/* .el-form--inline .el-form-item__label{
291
-       width:130px; 
292
-  } */
293
-</style>
293
+