MrShi
2025-01-22 7e3175b4cef97fbcdc47531b7de4cb18110f50e3
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<template>
  <GlobalWindow width="960px" :showConfirm="false" title="入库单详情" :visible.sync="visible" :confirm-working="isWorking" @close="close"
    @confirm="confirm">
    <div class="main">
      <div class="title">
        <span>入库单编号:{{ info.code }}</span>
      </div>
      <div class="title">
        <span>基础信息</span>
      </div>
      <div class="main_content">
        <div class="list">
          <div class="item">
            <div class="la">入库仓库</div>
            <div class="val">{{ info.warehouseName }}</div>
          </div>
          <div class="item">
            <div class="la">入库日期</div>
            <div class="val">{{ info.doneDate }}</div>
          </div>
          <div class="item">
            <div class="la">入库类型</div>
            <div class="val" v-if="info.type || info.type == 0">{{ StoreTypeOps[info.type].name }}</div>
          </div>
          <div class="item">
            <div class="la">处理人</div>
            <div class="val">{{ info.createUserName }}</div>
          </div>
          <div class="item" style="width: 66.6%;">
            <div class="la">备注</div>
            <div class="val">{{ info.remark }}</div>
          </div>
        </div>
      </div>
      <div class="title">物料信息</div>
      <el-table :data="info.recordList" stripe>
        <el-table-column align="center" label="序号" type="index" width="55" />
        <el-table-column prop="materialName" label="物料名称" show-overflow-tooltip min-width="80px"></el-table-column>
        <el-table-column prop="materialCode" label="物料编码" show-overflow-tooltip min-width="100px"></el-table-column>
        <el-table-column prop="materialQrcode" label="条形码" show-overflow-tooltip min-width="100px"></el-table-column>
        <el-table-column prop="materialBrand" label="品牌" show-overflow-tooltip min-width="80px"></el-table-column>
        <el-table-column prop="materialUnitName" label="单位" show-overflow-tooltip min-width="80px"></el-table-column>
        <el-table-column prop="stock" label="入库数量" show-overflow-tooltip min-width="80px"></el-table-column>
      </el-table>
    </div>
  </GlobalWindow>
</template>
 
<script>
import GlobalWindow from '@/components/common/GlobalWindow'
import BaseOpera from '@/components/base/BaseOpera'
import { ywOutinboundDetail } from '@/api'
import { StoreTypeOps } from './config'
export default {
  components: {
    GlobalWindow
  },
  extends: BaseOpera,
  data() {
    return {
      visible: false,
      info: {recordList: []},
      StoreTypeOps
 
 
    }
  },
  created() {
  },
  methods: {
    getDetail(id) {
      ywOutinboundDetail(id).then(res => {
        this.info = res
      })
    },
    close() {
      this.visible = false
      this.$emit('close')
    }
  }
}
</script>
 
<style lang="scss" scoped>
@import '@/assets/style/variables.scss';
 
.main {
  padding-top: 20px;
 
  .title {
    font-weight: 500;
    font-size: 18px;
    color: $primary-color;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
 
    .status {
      padding: 0 12px;
      height: 24px;
      line-height: 24px;
      border-radius: 2px;
      border: 1px solid #00BA92;
      color: #00BA92;
      font-weight: 400;
      font-size: 12px;
      margin-left: 10px;
    }
 
    .primaryColor {
      border: 1px solid rgba(63, 126, 239, .2);
      background-color: rgba(63, 126, 239, .2);
    }
 
    .green {
      background-color: rgba(83, 183, 148, .2);
      border: 1px solid rgba(83, 183, 148, .2);
    }
 
    .gray {
      color: #333333;
      background-color: rgba(128, 128, 128, .2);
      border: 1px solid rgba(128, 128, 128, .2);
    }
  }
 
  .list {
    display: flex;
    flex-wrap: wrap;
    /* background: #F7F7F7; */
    border-radius: 2px;
    padding: 15px 20px;
    margin-bottom: 16px;
 
    .item {
      width: 33.3%;
      margin-bottom: 14px;
 
      .la {
        color: #7f7f7f;
        margin-bottom: 6px;
      }
    }
 
    .item2 {
      width: 100%;
      display: flex;
      align-items: center;
 
      .la {
        margin-bottom: 0;
        width: 72px;
      }
    }
 
    .max {
      width: 100%;
    }
  }
 
}
</style>