b25b036d
wuxw
v1.9 优化日期
|
1
|
<template>
|
79e52c92
wuxw
采购盘点功能开发完成
|
2
|
<div class="asset-inventory-in-stock-container">
|
79e52c92
wuxw
采购盘点功能开发完成
|
3
|
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
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
|
<el-card>
<div slot="header" class="flex justify-between">
<span>{{ $t('assetInventoryInStock.title') }}</span>
<div class="card-header-actions">
<el-button type="primary" size="small" @click="_printAssetInventoryInStock">
<i class="el-icon-printer"></i> {{ $t('assetInventoryInStock.print') }}
</el-button>
<el-button type="primary" size="small" @click="_goBack">
<i class="el-icon-close"></i> {{ $t('assetInventoryInStock.back') }}
</el-button>
</div>
</div>
<el-row>
<el-col :span="24">
<el-form label-width="120px">
<el-row :gutter="20" class="margin-bottom">
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.inventoryName')">
<el-input v-model="assetInventoryInStockInfo.name" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.inventoryPerson')">
<el-input v-model="assetInventoryInStockInfo.staffName" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row class="margin-bottom">
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.warehouse')">
<el-input v-model="assetInventoryInStockInfo.shName" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.inventoryDate')">
<el-input v-model="assetInventoryInStockInfo.invTime" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row class="margin-bottom">
<el-col :span="24">
<el-form-item :label="$t('assetInventoryInStock.remark')">
<el-input type="textarea" v-model="assetInventoryInStockInfo.remark" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('assetInventoryInStock.status')">
<el-input v-model="assetInventoryInStockInfo.stateName" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-col>
</el-row>
</el-card>
|
79e52c92
wuxw
采购盘点功能开发完成
|
65
66
67
68
69
70
71
72
73
|
<el-row class="mt-20">
<el-col :span="24">
<el-card>
<div slot="header" class="flex justify-between">
<span>{{ $t('assetInventoryInStock.inventoryItems') }}</span>
</div>
<el-table :data="assetInventoryInStockInfo.storehouses" border style="width: 100%">
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
74
75
|
<el-table-column prop="shName" :label="$t('assetInventoryInStock.warehouseName')"
align="center"></el-table-column>
|
79e52c92
wuxw
采购盘点功能开发完成
|
76
77
78
79
80
|
<el-table-column :label="$t('assetInventoryInStock.itemType')" align="center">
<template slot-scope="scope">
{{ scope.row.parentRstName || '-' }} > {{ scope.row.rstName || '-' }}
</template>
</el-table-column>
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
81
82
|
<el-table-column prop="resName" :label="$t('assetInventoryInStock.itemName')"
align="center"></el-table-column>
|
79e52c92
wuxw
采购盘点功能开发完成
|
83
84
85
86
87
|
<el-table-column prop="specName" :label="$t('assetInventoryInStock.specification')" align="center">
<template slot-scope="scope">
{{ scope.row.specName || '-' }}
</template>
</el-table-column>
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
88
89
90
91
92
93
|
<el-table-column prop="resCode" :label="$t('assetInventoryInStock.itemCode')"
align="center"></el-table-column>
<el-table-column prop="isFixedName" :label="$t('assetInventoryInStock.isFixedItem')"
align="center"></el-table-column>
<el-table-column prop="timesPrice" :label="$t('assetInventoryInStock.batchPrice')"
align="center"></el-table-column>
|
79e52c92
wuxw
采购盘点功能开发完成
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<el-table-column :label="$t('assetInventoryInStock.originalStock')" align="center">
<template slot-scope="scope">
{{ scope.row.originalStock }}{{ scope.row.unitCodeName }}
</template>
</el-table-column>
<el-table-column :label="$t('assetInventoryInStock.inventoryQuantity')" align="center">
<template slot-scope="scope">
{{ scope.row.quantity }}{{ scope.row.unitCodeName }}
</template>
</el-table-column>
<el-table-column prop="remark" :label="$t('assetInventoryInStock.remark')" align="center"></el-table-column>
</el-table>
</el-card>
</el-col>
</el-row>
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
110
111
|
<el-row v-if="assetInventoryInStockInfo.state === '3000' || assetInventoryInStockInfo.state === '4000'"
class="mt-20">
|
79e52c92
wuxw
采购盘点功能开发完成
|
112
113
|
<el-col :span="24">
<el-card>
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
114
|
<div slot="header" class="flex justify-between">
|
79e52c92
wuxw
采购盘点功能开发完成
|
115
116
117
118
|
<span>{{ $t('assetInventoryInStock.auditInfo') }}</span>
</div>
<el-form label-width="120px">
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
119
|
<el-row class="margin-bottom">
|
79e52c92
wuxw
采购盘点功能开发完成
|
120
121
122
123
124
125
126
127
128
129
130
131
|
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.auditor')">
<el-input v-model="assetInventoryInStockInfo.auditName" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.contactNumber')">
<el-input v-model="assetInventoryInStockInfo.auditTel" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
132
|
<el-row class="margin-bottom">
|
79e52c92
wuxw
采购盘点功能开发完成
|
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.auditTime')">
<el-input v-model="assetInventoryInStockInfo.auditTime" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="$t('assetInventoryInStock.auditOpinion')">
<el-input v-model="assetInventoryInStockInfo.opinion" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
import { getCommunityId } from '@/api/community/communityApi'
import { getAssetInventoryList, listAssetInventoryWholeDetail } from '@/api/resource/assetInventoryInStockApi'
export default {
name: 'AssetInventoryInStockList',
data() {
return {
assetInventoryInStockInfo: {
aiId: '',
shId: '',
shName: '',
name: '',
staffName: '',
invTime: '',
storehouses: [],
remark: '',
stateName: '',
opinion: '',
auditId: '',
auditName: '',
auditTel: '',
auditTime: '',
state: '',
communityId: ''
}
}
},
created() {
this.communityId = getCommunityId()
this.assetInventoryInStockInfo.aiId = this.$route.query.aiId
this._queryAssetInventory()
this.queryAssetInventoryProduct()
},
methods: {
_goBack() {
this.$router.go(-1)
},
async _queryAssetInventory() {
try {
const params = {
page: 1,
row: 1,
aiId: this.assetInventoryInStockInfo.aiId,
communityId: this.communityId
}
const { data } = await getAssetInventoryList(params)
if (data && data.length > 0) {
Object.assign(this.assetInventoryInStockInfo, data[0])
}
} catch (error) {
console.error('Failed to fetch asset inventory:', error)
}
},
async queryAssetInventoryProduct() {
try {
const params = {
page: 1,
row: 100,
applyOrderId: this.assetInventoryInStockInfo.aiId,
communityId: this.communityId
}
const { data } = await listAssetInventoryWholeDetail(params)
data.forEach(item => this._computeData(item))
this.assetInventoryInStockInfo.storehouses = data
} catch (error) {
console.error('Failed to fetch inventory products:', error)
}
},
_computeData(item) {
item.invProfit = parseInt(item.invQuantity) - parseInt(item.quantity)
if (item.invProfit < 0) item.invProfit = 0
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
223
|
|
79e52c92
wuxw
采购盘点功能开发完成
|
224
225
|
item.invLoss = parseInt(item.quantity) - parseInt(item.invQuantity)
if (item.invLoss < 0) item.invLoss = 0
|
10d41618
wuxw
v1.9 测试采购功能,部分页面功能优化
|
226
|
|
79e52c92
wuxw
采购盘点功能开发完成
|
227
228
229
230
|
item.invProfitMoney = item.invProfit * parseFloat(item.price)
item.invLossMoney = item.invLoss * parseFloat(item.price)
},
_printAssetInventoryInStock() {
|
f5128dde
wuxw
优化打印404 问题
|
231
|
window.open(`/#/pages/property/printAssetInventoryInStock?aiId=${this.assetInventoryInStockInfo.aiId}`)
|
79e52c92
wuxw
采购盘点功能开发完成
|
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
}
}
}
</script>
<style lang="scss" scoped>
.asset-inventory-in-stock-container {
padding: 20px;
.mt-20 {
margin-top: 20px;
}
.card-header-actions {
float: right;
}
.el-form-item {
margin-bottom: 0;
}
}
</style>
|