mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
Compare commits
3 Commits
d65dee5efb
...
96aa66defb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96aa66defb | ||
|
|
a1e72e5292 | ||
|
|
0d65871cd9 |
@ -13,9 +13,9 @@
|
|||||||
<el-table-column prop="stock" :label="$t('resourceStoreTimes.stock')" align="center" />
|
<el-table-column prop="stock" :label="$t('resourceStoreTimes.stock')" align="center" />
|
||||||
<el-table-column prop="totalPrice" :label="$t('resourceStoreTimes.totalPrice')" align="center" />
|
<el-table-column prop="totalPrice" :label="$t('resourceStoreTimes.totalPrice')" align="center" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<div style="text-align: right; margin-top: 20px;">
|
<!-- <div style="text-align: right; margin-top: 20px;">
|
||||||
<span>{{ $t('resourceStoreTimes.totalPrice') }}: {{ resourceStoreTimesInfo.totalPrice }}</span>
|
<span>{{ $t('resourceStoreTimes.totalPrice') }}: {{ resourceStoreTimesInfo.totalPrice }}</span>
|
||||||
</div>
|
</div> -->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -49,17 +49,15 @@ export default {
|
|||||||
},
|
},
|
||||||
async _loadAllResourceStoreTimes(page, rows, resCode, shId) {
|
async _loadAllResourceStoreTimes(page, rows, resCode, shId) {
|
||||||
try {
|
try {
|
||||||
const params = {
|
|
||||||
params: {
|
const { data, totalPrice } = await listResourceStoreTimes({
|
||||||
page: page,
|
page: page,
|
||||||
row: rows,
|
row: rows,
|
||||||
resCode: resCode,
|
resCode: resCode,
|
||||||
shId: shId
|
shId: shId
|
||||||
}
|
})
|
||||||
}
|
|
||||||
const { data, totalPrice } = await listResourceStoreTimes(params)
|
|
||||||
this.resourceStoreTimesInfo.timeses = data
|
this.resourceStoreTimesInfo.timeses = data
|
||||||
this.resourceStoreTimesInfo.totalPrice = totalPrice.toFixed(2)
|
this.resourceStoreTimesInfo.totalPrice = totalPrice
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(this.$t('common.fetchError'))
|
this.$message.error(this.$t('common.fetchError'))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,9 +72,9 @@ export const messages = {
|
|||||||
purchasePrice: '采购价格',
|
purchasePrice: '采购价格',
|
||||||
purchasePricePlaceholder: '选填,请填写采购价格',
|
purchasePricePlaceholder: '选填,请填写采购价格',
|
||||||
useUserName: '使用人',
|
useUserName: '使用人',
|
||||||
useUserNamePlaceholder: '必填,请选择使用人',
|
useUserNamePlaceholder: '必填,请填写使用人',
|
||||||
chargeUseName: '责任人',
|
chargeUseName: '责任人',
|
||||||
chargeUseNamePlaceholder: '必填,请选择责任人',
|
chargeUseNamePlaceholder: '必填,请填写责任人',
|
||||||
remark: '备注',
|
remark: '备注',
|
||||||
remarkPlaceholder: '选填,请填写备注',
|
remarkPlaceholder: '选填,请填写备注',
|
||||||
validate: {
|
validate: {
|
||||||
|
|||||||
@ -118,6 +118,14 @@ export const messages = {
|
|||||||
fetchTotalPriceError: 'Failed to get total price details',
|
fetchTotalPriceError: 'Failed to get total price details',
|
||||||
storehouse: 'Storehouse',
|
storehouse: 'Storehouse',
|
||||||
selectType: 'Please select resource type'
|
selectType: 'Please select resource type'
|
||||||
|
},
|
||||||
|
resourceStoreTimes:{
|
||||||
|
title: 'Total Price Details',
|
||||||
|
itemCode: 'Item Code',
|
||||||
|
inboundTime: 'Inbound Time',
|
||||||
|
unitPrice: 'Unit Price',
|
||||||
|
stock: 'Stock',
|
||||||
|
totalPrice: 'Total Price',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
zh: {
|
zh: {
|
||||||
@ -239,6 +247,14 @@ export const messages = {
|
|||||||
fetchTotalPriceError: '获取物品总价详情失败',
|
fetchTotalPriceError: '获取物品总价详情失败',
|
||||||
storehouse: '仓库',
|
storehouse: '仓库',
|
||||||
selectType: '请选择物品类型'
|
selectType: '请选择物品类型'
|
||||||
|
},
|
||||||
|
resourceStoreTimes:{
|
||||||
|
title: '物品总价详情',
|
||||||
|
itemCode: '物品编码',
|
||||||
|
inboundTime: '入库时间',
|
||||||
|
unitPrice: '单价',
|
||||||
|
stock: '库存',
|
||||||
|
totalPrice: '总价',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -27,8 +27,8 @@
|
|||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-select v-model="resourceStoreManageInfo.conditions.shId" style="width:100%">
|
<el-select v-model="resourceStoreManageInfo.conditions.shId" style="width:100%">
|
||||||
<el-option :label="$t('resourceStoreManage.selectStorehouse')" value=""></el-option>
|
<el-option :label="$t('resourceStoreManage.selectStorehouse')" value=""></el-option>
|
||||||
<el-option v-for="(item, index) in resourceStoreManageInfo.storehouses" :key="index" :label="item.shName"
|
<el-option v-for="(item, index) in resourceStoreManageInfo.storehouses" :key="index"
|
||||||
:value="item.shId"></el-option>
|
:label="item.shName" :value="item.shId"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
:label="item.specName" :value="item.rssId"></el-option>
|
:label="item.specName" :value="item.rssId"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" >
|
<el-col :span="4">
|
||||||
<el-select v-model="resourceStoreManageInfo.conditions.isFixed" style="width:100%">
|
<el-select v-model="resourceStoreManageInfo.conditions.isFixed" style="width:100%">
|
||||||
<el-option :label="$t('resourceStoreManage.selectIsFixed')" value=""></el-option>
|
<el-option :label="$t('resourceStoreManage.selectIsFixed')" value=""></el-option>
|
||||||
<el-option v-for="(item, index) in resourceStoreManageInfo.isFixeds" :key="index" :label="item.name"
|
<el-option v-for="(item, index) in resourceStoreManageInfo.isFixeds" :key="index" :label="item.name"
|
||||||
@ -100,13 +100,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="resourceStoreManageInfo.resourceStores" border style="width:100%">
|
<el-table :data="resourceStoreManageInfo.resourceStores" border style="width:100%">
|
||||||
<el-table-column prop="resId" :label="$t('resourceStoreManage.resourceId')" align="center"></el-table-column>
|
<el-table-column prop="resId" :label="$t('resourceStoreManage.resourceId')"
|
||||||
|
align="center"></el-table-column>
|
||||||
<el-table-column :label="$t('resourceStoreManage.resourceNameCode')" align="center">
|
<el-table-column :label="$t('resourceStoreManage.resourceNameCode')" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.resName }}({{ scope.row.resCode }})
|
{{ scope.row.resName }}({{ scope.row.resCode }})
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="shName" :label="$t('resourceStoreManage.storeName')" align="center"></el-table-column>
|
<el-table-column prop="shName" :label="$t('resourceStoreManage.storeName')"
|
||||||
|
align="center"></el-table-column>
|
||||||
<el-table-column :label="$t('resourceStoreManage.resourceType')" align="center">
|
<el-table-column :label="$t('resourceStoreManage.resourceType')" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.parentRstName }}
|
{{ scope.row.parentRstName }}
|
||||||
@ -401,14 +403,14 @@ export default {
|
|||||||
this.resourceStoreManageInfo.curType = {}
|
this.resourceStoreManageInfo.curType = {}
|
||||||
this.$refs.addResourceStoreType.open('')
|
this.$refs.addResourceStoreType.open('')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!_curType || !_curType.rstId){
|
if (!_curType || !_curType.rstId) {
|
||||||
this.$message.error(this.$t('resourceStoreManage.selectType'))
|
this.$message.error(this.$t('resourceStoreManage.selectType'))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$refs.addResourceStoreType.open(_curType.rstId)
|
this.$refs.addResourceStoreType.open(_curType.rstId)
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
openDeleteResourceStoreTypeModel() {
|
openDeleteResourceStoreTypeModel() {
|
||||||
@ -467,9 +469,9 @@ export default {
|
|||||||
async exportExcel() {
|
async exportExcel() {
|
||||||
try {
|
try {
|
||||||
this.resourceStoreManageInfo.conditions.pagePath = 'resourceStoreManage'
|
this.resourceStoreManageInfo.conditions.pagePath = 'resourceStoreManage'
|
||||||
const res = await exportData(this.resourceStoreManageInfo.conditions)
|
const res = await exportData(this.resourceStoreManageInfo.conditions)
|
||||||
this.$message.success(this.$t('resourceStoreManage.exportSuccess'))
|
this.$message.success(this.$t('resourceStoreManage.exportSuccess'))
|
||||||
if(res && res.code === 0){
|
if (res && res.code === 0) {
|
||||||
window.open('/#/pages/property/downloadTempFile?tab=下载中心')
|
window.open('/#/pages/property/downloadTempFile?tab=下载中心')
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user