|
@@ -45,7 +45,7 @@
|
|
</ws-select>
|
|
</ws-select>
|
|
<div :class='{"forbidden":forbidden1==true}' @click='add'><i class="el-icon-arrow-right"></i></div>
|
|
<div :class='{"forbidden":forbidden1==true}' @click='add'><i class="el-icon-arrow-right"></i></div>
|
|
</div>
|
|
</div>
|
|
- <span>合计:{{count}}元</span>
|
|
|
|
|
|
+ <span v-if='warehouseList.records>0'>合计:{{count}}元</span>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="bg-right">
|
|
<el-col :span="12" class="bg-right">
|
|
@@ -92,9 +92,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="amount" label="金额(元)" >
|
|
<el-table-column prop="amount" label="金额(元)" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="storage" label="附件">
|
|
|
|
|
|
+ <el-table-column prop="storage" label="附件">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <img
|
|
|
|
|
|
+ <img v-if='scope.row.applUrl'
|
|
width="18"
|
|
width="18"
|
|
height="20"
|
|
height="20"
|
|
style="vertical-align: text-top; position: relative; top: -1px"
|
|
style="vertical-align: text-top; position: relative; top: -1px"
|
|
@@ -102,6 +102,7 @@
|
|
@click="fujian(scope.row)"
|
|
@click="fujian(scope.row)"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
|
|
+ <span v-else>暂无附件</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="costDate" label="日期">
|
|
<el-table-column prop="costDate" label="日期">
|
|
@@ -166,13 +167,11 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- selectWarehouseSelf
|
|
|
|
-} from '@/model/houseSelfCollect/index'
|
|
|
|
import {
|
|
import {
|
|
getinventory,
|
|
getinventory,
|
|
addinventory,
|
|
addinventory,
|
|
editinventory,
|
|
editinventory,
|
|
|
|
+ getwarehousebase,
|
|
editcost,
|
|
editcost,
|
|
export1,
|
|
export1,
|
|
editstatus,
|
|
editstatus,
|
|
@@ -256,7 +255,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
-
|
|
|
|
|
|
+this.cangid=this.$route.query.cangId
|
|
this.year=new Date().getFullYear()
|
|
this.year=new Date().getFullYear()
|
|
for(var i=this.start;i<=this.year;i++){
|
|
for(var i=this.start;i<=this.year;i++){
|
|
this.yearList.push({value:i})
|
|
this.yearList.push({value:i})
|
|
@@ -290,6 +289,7 @@ export default {
|
|
this.applUrl=e.url
|
|
this.applUrl=e.url
|
|
},
|
|
},
|
|
counttotal(){
|
|
counttotal(){
|
|
|
|
+ this.count=0
|
|
for (let i = 0; i < this.warehouseList.records.length; i++) {
|
|
for (let i = 0; i < this.warehouseList.records.length; i++) {
|
|
this.count+=this.warehouseList.records[i].amount
|
|
this.count+=this.warehouseList.records[i].amount
|
|
}
|
|
}
|
|
@@ -481,8 +481,9 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
selectWarehouse(){
|
|
selectWarehouse(){
|
|
- selectWarehouseSelf({
|
|
|
|
|
|
+ getwarehousebase({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ warehouseType:1
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -512,6 +513,28 @@ export default {
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
|
|
+ getwarehousebase({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ warehouseType:2
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ this.warehouseList1.push({
|
|
|
|
+ value: response[i].warehouseName,
|
|
|
|
+ id: response[i].id,
|
|
|
|
+ count: response[i].count,
|
|
|
|
+ purchasePriceList: response[i].purchasePriceList,
|
|
|
|
+ No:response[i].commonWarehouseNo
|
|
|
|
+ })
|
|
|
|
+ if (this.cangid&&this.cangid == response[i].id) {
|
|
|
|
+ this.warehouseName = response[i].warehouseName
|
|
|
|
+ this.warehouseCount = response[i].count
|
|
|
|
+ this.warehouseNo = response[i].commonWarehouseNo
|
|
|
|
+ this.purchasePriceList = response[i].purchasePriceList
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
getinventory({
|
|
getinventory({
|