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
<template>
<div>
<div style="padding: 16px">
<div>
<div>
<span style="font-size: 18px;font-weight: 600;"> 分配入库详情</span>
</div>
<div style="margin-top: 16px">
<a-descriptions bordered :column="{ sm: 2, xs: 1 }" class="dis_title_local">
<a-descriptions-item label="发货单位">
{{detailInfo.sendUnitName || '--'}}
</a-descriptions-item>
<a-descriptions-item label="分配日期">
{{detailInfo.sendDate || '--'}}
</a-descriptions-item>
<a-descriptions-item label="发货人姓名">
{{detailInfo.sendContact || '--'}}
</a-descriptions-item>
<a-descriptions-item label="联系电话">
{{detailInfo.sendPhone || '--'}}
</a-descriptions-item>
<a-descriptions-item label="供应商">
{{detailInfo.supplierName || '--'}}
</a-descriptions-item>
<a-descriptions-item label="品牌">
{{detailInfo.brandName || '--'}}
</a-descriptions-item>
<a-descriptions-item label="批次号">
{{detailInfo.batchNumber || '--'}}
</a-descriptions-item>
<a-descriptions-item label="生产日期">
{{detailInfo.produceDate || '--'}}
</a-descriptions-item>
<a-descriptions-item label="有效期至">
{{detailInfo.expireDate || '--'}}
</a-descriptions-item>
<a-descriptions-item label="单价">
{{detailInfo.unitPrice || '--'}}<span>元</span>
</a-descriptions-item>
<a-descriptions-item label="数量">
{{detailInfo.sendNum || '--'}}
</a-descriptions-item>
<a-descriptions-item label="入库状态">
<div :class="detailInfo.statusName == '待入库' ? 'ready_stock' : 'in_stock'">
<span> {{detailInfo.statusName || '--'}}</span>
</div>
</a-descriptions-item>
<a-descriptions-item label="入库操作人" v-if="detailInfo.status == 2">
{{detailInfo.receiver || '--'}}
</a-descriptions-item>
<a-descriptions-item label="入库时间" v-if="detailInfo.status == 2">
{{detailInfo.receiveDate || '--'}}
</a-descriptions-item>
</a-descriptions>
<a-form-model ref="formRef"
:labelCol="{span: 4}"
:wrapperCol="{span: 16}"
style="margin-top: 20px"
>
<a-form-model-item label="备注"
prop="remarks"
:labelCol="{span: 5}"
:wrapperCol="{span: 15}">
<a-textarea
:disabled="true"
v-toRemarkNum
:rows="6"
v-model="detailInfo.remarks"
placeholder="请输入备注"></a-textarea>
</a-form-model-item>
</a-form-model>
</div>
</div>
<div style="text-align: center;margin-top: 16px">
<a-button class="ant-table-btn" @click="goBack">关闭</a-button>
</div>
</div>
</div>
</template>
<script>
import moment from 'moment';
import {closedDetail} from "../../../utils/common";
export default {
data() {
return {
routerParams: {},
detailInfo: {},
}
},
created() {
this.routerParams = this.$route.query
this.getReceiveDetails()
},
methods: {
getReceiveDetails() {
this.$api.stockManage.fetchReceiveDetails(this.routerParams.id).then(({data = [], code}) => {
this.detailInfo = data
})
},
goBack() {
closedDetail('/inStock/inStockManageDetail', '/Home/distributionWarehousing')
}
},
}
</script>
<style lang="less" scoped>
.ready_stock {
border-radius: 2px;
width: 62px;
text-align: center;
padding: 2px 8px;
background:#FFF7E6;
border: 1px solid #FFD591;
color: #FA8C16
}
.in_stock {
border-radius: 2px;
width: 62px;
text-align: center;
padding: 2px 8px;
/*background: lightgreen;*/
border: 1px solid #52C41A;
color: #52C41A
}
</style>
<style lang="less">
.dis_title_local {
.ant-descriptions-item-label {
width: 120px;
}
}
</style>