haoxuan
2023-11-02 7f75dd84169320720d72434247508386ca9c4f15
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
<template>
  <div class="input-materials-list">
    <div class="materials-t">
      <div class="materials-t-l">输入资源</div>
      <BigButton class="btn" bg-color="rgba(255, 11, 142, 1)">物料呼叫</BigButton>
    </div>
    <el-scrollbar always class="scroller">
      <div class="materials-b">
        <div v-for="item in inputMaterials" :key="item.materialId">
          <InputOutMaterialInfo :item="item" :background="item.background"></InputOutMaterialInfo>
        </div>
      </div>
    </el-scrollbar>
  </div>
</template>
<script setup lang="ts">
import InputOutMaterialInfo from '@/views/dashboard/components/InputOutMaterialInfo.vue'
import BigButton from '@/views/dashboard/components/BigButton.vue'
import { toRefs } from 'vue'
const inputMaterials = [
  {
    materialId: '1111',
    materialName: '输入名称',
    amount: 10,
    unit: '个',
    date: 10
  },
  {
    materialId: '2222222222222222',
    materialName: '输入名称2',
    amount: 20,
    unit: '个',
    background: '#33ccff'
  }
]
</script>
 
<style scoped lang="scss">
// #ff0000
$status-default: rgba(255, 11, 142, 1);
$status-running: #f76c0f;
$status-ready: #13235a;
$status-done: #0059ffd0;
$status-star: yellow;
 
.input-materials-list {
  width: 50%;
  height: 100%;
  padding: 0px 0 5px;
  color: #fff;
  overflow: hidden;
  float: left;
  border-right: 1px solid #efefef;
  box-sizing: border-box;
  .materials-t {
    width: 100%;
    height: 35px;
    line-height: 35px;
    margin-bottom: 15px;
    .materials-t-l {
      float: left;
      font-weight: bold;
      font-size: 16px;
    }
    .btn {
      width: 90px;
      float: right;
      font-size: 14px;
      height: 35px;
      line-height: 35px;
      margin-right: 10px;
    }
  }
 
  .materials-b {
    width: 100%;
    height: auto;
    overflow-y: auto;
    padding-right: 5px;
  }
}
</style>