|
@@ -119,6 +119,9 @@
|
|
<el-table-column prop="costBefore" label="入库前加权成本" >
|
|
<el-table-column prop="costBefore" label="入库前加权成本" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="costAfter" label="入库后加权成本" >
|
|
<el-table-column prop="costAfter" label="入库后加权成本" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{scope.row.costAfter}}<span v-if='scope.row.grainType'>(改)</span></div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="createDate" label="更新日期">
|
|
<el-table-column prop="createDate" label="更新日期">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -135,11 +138,10 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- selectWarehouseSelf
|
|
|
|
-} from '@/model/houseSelfCollect/index'
|
|
|
|
|
|
+
|
|
import {
|
|
import {
|
|
weighteddetails,
|
|
weighteddetails,
|
|
|
|
+ getwarehousebase,
|
|
editcost,
|
|
editcost,
|
|
export1,
|
|
export1,
|
|
editstatus,
|
|
editstatus,
|
|
@@ -152,6 +154,7 @@ import { downloadFile } from '@/utils/batchDown'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import { EventBus } from 'base-core-lib'
|
|
import { EventBus } from 'base-core-lib'
|
|
|
|
+import { toFixed } from 'xe-utils/methods'
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
@@ -294,6 +297,7 @@ export default {
|
|
this.cangid = this.warehouseList1[i].id
|
|
this.cangid = this.warehouseList1[i].id
|
|
this.WAREHOUSE[1].payname = this.warehouseList1[i].value
|
|
this.WAREHOUSE[1].payname = this.warehouseList1[i].value
|
|
this.purchasePriceList = this.warehouseList1[i].purchasePriceList
|
|
this.purchasePriceList = this.warehouseList1[i].purchasePriceList
|
|
|
|
+ this.goodnameList=this.warehouseList1[i].goodsNameInfos
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
@@ -318,8 +322,9 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
selectWarehouse(){
|
|
selectWarehouse(){
|
|
- selectWarehouseSelf({
|
|
|
|
|
|
+ getwarehousebase({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ warehouseType:'',
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -330,7 +335,7 @@ export default {
|
|
id: response[i].id,
|
|
id: response[i].id,
|
|
count: response[i].count,
|
|
count: response[i].count,
|
|
purchasePriceList: response[i].purchasePriceList,
|
|
purchasePriceList: response[i].purchasePriceList,
|
|
- No:response[i].commonWarehouseNo,
|
|
|
|
|
|
+ No:response[i].commonWarehouseNo,
|
|
goodsNameInfos:response[i].goodsNameInfos
|
|
goodsNameInfos:response[i].goodsNameInfos
|
|
})
|
|
})
|
|
if (this.cangid&&this.cangid == response[i].id) {
|
|
if (this.cangid&&this.cangid == response[i].id) {
|
|
@@ -339,10 +344,15 @@ export default {
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.purchasePriceList = response[i].purchasePriceList
|
|
this.purchasePriceList = response[i].purchasePriceList
|
|
this.goodnameList=response[i].goodsNameInfos
|
|
this.goodnameList=response[i].goodsNameInfos
|
|
- if(this.goodnameList){
|
|
|
|
- this.goodsName=this.goodnameList[0].goodsName
|
|
|
|
- this.goodsNameKey=this.goodnameList[0].goodsNameKey
|
|
|
|
- }
|
|
|
|
|
|
+ if(this.goodnameList.length>0){
|
|
|
|
+ if(this.goodnameList.some( function( item, index, array ){ return item.goodsName == '玉米'})){
|
|
|
|
+ this.goodsName='玉米'
|
|
|
|
+ this.goodsNameKey=1
|
|
|
|
+ }else{
|
|
|
|
+ this.goodsName=this.goodnameList[0].goodsName
|
|
|
|
+ this.goodsNameKey=this.goodnameList[0].goodsNameKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(this.warehouseList1.length > 0 && !this.cangid){
|
|
if(this.warehouseList1.length > 0 && !this.cangid){
|
|
@@ -353,9 +363,14 @@ export default {
|
|
this.purchasePriceList = this.warehouseList1[0].purchasePriceList
|
|
this.purchasePriceList = this.warehouseList1[0].purchasePriceList
|
|
this.WAREHOUSE[1].payname = this.warehouseList1[0].value
|
|
this.WAREHOUSE[1].payname = this.warehouseList1[0].value
|
|
this.goodnameList=this.warehouseList1[0].goodsNameInfos
|
|
this.goodnameList=this.warehouseList1[0].goodsNameInfos
|
|
- if(this.goodnameList){
|
|
|
|
- this.goodsName=this.goodnameList[0].goodsName
|
|
|
|
- this.goodsNameKey=this.goodnameList[0].goodsNameKey
|
|
|
|
|
|
+ if(this.goodnameList.length>0){
|
|
|
|
+ if(this.goodnameList.some( function( item, index, array ){ return item.goodsName == '玉米'})){
|
|
|
|
+ this.goodsName='玉米'
|
|
|
|
+ this.goodsNameKey=1
|
|
|
|
+ }else{
|
|
|
|
+ this.goodsName=this.goodnameList[0].goodsName
|
|
|
|
+ this.goodsNameKey=this.goodnameList[0].goodsNameKey
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
@@ -372,6 +387,9 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ for (let i = 0; i < response.records.length; i++) {
|
|
|
|
+ response.records[i].toFixed(2)
|
|
|
|
+ }
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
this.deptBudgetTotal=response.total
|
|
this.deptBudgetTotal=response.total
|
|
this.counttotal()
|
|
this.counttotal()
|