|
@@ -31,7 +31,8 @@
|
|
|
alt=""
|
|
|
/>
|
|
|
<span style="color: #323233">{{ deptBudgetList.warehouseName }}</span>
|
|
|
- <span class="ware">{{binNumber}}仓位(容量{{capacity}}吨)</span>
|
|
|
+ <span class="ware" v-show="warehouseType==1">{{binNumber}}仓位(容量{{capacity}}吨)</span>
|
|
|
+ <span v-show="warehouseType==2">(临)</span>
|
|
|
</h2>
|
|
|
<p
|
|
|
style="
|
|
@@ -105,7 +106,7 @@
|
|
|
alt=""
|
|
|
/>入库记录
|
|
|
</div>
|
|
|
- <el-table :data="warehouseList.records" height="560">
|
|
|
+ <el-table :data="warehouseList.records" height="560" v-show="this.warehouseType== '1'">
|
|
|
<el-table-column type="expand">
|
|
|
<template #default="props">
|
|
|
<ws-form ref="deptBudgetList" :model="deptBudgetList">
|
|
@@ -200,9 +201,117 @@
|
|
|
@click="fujian(scope.row)"
|
|
|
alt=""
|
|
|
/>
|
|
|
- <span v-if="scope.row.addressUrlArray.length > 0">{{
|
|
|
+ <!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
|
|
|
scope.row.addressUrlArray.length
|
|
|
+ }}</span> -->
|
|
|
+ <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="createDate" label="录入时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #8890b1">{{ scope.row.createDate }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ </el-table>
|
|
|
+ <el-table :data="warehouseList.records" height="560" v-show="this.warehouseType== '2'">
|
|
|
+ <el-table-column type="expand">
|
|
|
+ <template #default="props">
|
|
|
+ <ws-form ref="deptBudgetList" :model="deptBudgetList">
|
|
|
+ <ws-info-table>
|
|
|
+ <ws-form-item label="水分(%)<=" span="1" prop="waterContent">
|
|
|
+ {{ props.row.waterContent }}
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="容重(%)<=" span="1" prop="bulkDensity">
|
|
|
+ {{ props.row.bulkDensity }}
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
|
|
|
+ {{ props.row.jiaorenli }}
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
|
|
|
+ {{ props.row.impurity }}
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
|
|
|
+ {{ props.row.mildewGrain }}
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item
|
|
|
+ label="不完善粒(%)<="
|
|
|
+ span="1"
|
|
|
+ prop="imperfectGrain"
|
|
|
+ >
|
|
|
+ {{ props.row.imperfectGrain }}
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="质检员" span="1" prop="qualityInspector">
|
|
|
+ {{ props.row.qualityInspector }}
|
|
|
+ </ws-form-item>
|
|
|
+ </ws-info-table>
|
|
|
+ </ws-form>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column type="index" label="序号">
|
|
|
+ <template scope="scope">
|
|
|
+ <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
+ <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="goodsName" label="货名"> </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="grossWeight"
|
|
|
+ label="毛重(吨)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="netWeight"
|
|
|
+ label="净重(吨)"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column prop="grade" label="品级">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
|
|
|
+ scope.row.grade
|
|
|
+ }}</span>
|
|
|
+ <span v-if="scope.row.grade == '二等品'" class="second-class">{{
|
|
|
+ scope.row.grade
|
|
|
}}</span>
|
|
|
+ <span v-if="scope.row.grade == '三等品'" class="third-class">{{
|
|
|
+ scope.row.grade
|
|
|
+ }}</span>
|
|
|
+ <span v-if="scope.row.grade == '等外'" class="substandard">{{
|
|
|
+ scope.row.grade
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="inOutDate" label="出入库日期">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="inOutType" label="类型"> </el-table-column>
|
|
|
+ <el-table-column prop="contractNo" label="合同编号">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="carNo" label="车牌号">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #8890b1">{{ scope.row.carNo }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="agent" label="经办人">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="buyer" label="内勤"> </el-table-column>
|
|
|
+ <el-table-column prop="addressUrl" label="附件">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <img
|
|
|
+ width="18"
|
|
|
+ height="20"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/fujian.png"
|
|
|
+ @click="fujian(scope.row)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
|
|
|
+ scope.row.addressUrlArray.length
|
|
|
+ }}</span> -->
|
|
|
<!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -211,7 +320,9 @@
|
|
|
<span style="color: #8890b1">{{ scope.row.createDate }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
</el-table>
|
|
|
+
|
|
|
<div style="text-align: center; padding: 10px">
|
|
|
<el-pagination
|
|
|
@size-change="handleSizeChange"
|
|
@@ -244,9 +355,12 @@
|
|
|
/>
|
|
|
</WinseaContentModal>
|
|
|
</div>
|
|
|
+
|
|
|
</template>
|
|
|
+
|
|
|
+
|
|
|
<script>
|
|
|
-import { addselectinfoList } from '@/model/warehouse/index'
|
|
|
+import { addselectinfoList,recordss } from '@/model/warehouse/index'
|
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
@@ -295,6 +409,7 @@ export default {
|
|
|
submitType: true,
|
|
|
selectpackingMethod: {},
|
|
|
size: 10,
|
|
|
+ warehouseType:'1',
|
|
|
deptBudgetList1: {},
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
deptCircularPage: {},
|
|
@@ -326,10 +441,13 @@ export default {
|
|
|
this.remark = this.$route.query.remark
|
|
|
this.binNumber = this.$route.query.binNumber
|
|
|
this.capacity = this.$route.query.capacity
|
|
|
+ this.warehouseType = this.$route.query.warehouseType
|
|
|
this.getList()
|
|
|
+
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
//返回按钮
|
|
|
returnWarehouse() {
|
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
@@ -398,7 +516,8 @@ export default {
|
|
|
// this.onChangeFlag = true
|
|
|
},
|
|
|
getList() {
|
|
|
- addselectinfoList({
|
|
|
+ if(this.warehouseType==1){
|
|
|
+ addselectinfoList({
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
baseId: this.deptBudgetList.baseId,
|
|
|
positionId: this.deptBudgetList.positionId,
|
|
@@ -422,7 +541,35 @@ export default {
|
|
|
this.deptCircularPage.pageSize = response.size
|
|
|
this.deptBudgetTotal = response.total
|
|
|
this.warehouseList = response
|
|
|
- })
|
|
|
+ })
|
|
|
+ }else if(this.warehouseType==2){
|
|
|
+ recordss({
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ baseId: this.deptBudgetList.baseId,
|
|
|
+ positionId: this.deptBudgetList.positionId,
|
|
|
+ warehouseName: this.deptBudgetList.warehouseName,
|
|
|
+ searchType: this.searchType,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ for (var i = 0; i < response.records.length; i++) {
|
|
|
+ if (response.records[i].addressUrl != null) {
|
|
|
+ response.records[i].addressUrlArray = response.records[
|
|
|
+ i
|
|
|
+ ].addressUrl.split(',')
|
|
|
+ } else {
|
|
|
+ response.records[i].addressUrlArray = []
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.deptCircularPage.currentPage = response.current
|
|
|
+ this.deptCircularPage.pageSize = response.size
|
|
|
+ this.deptBudgetTotal = response.total
|
|
|
+ this.warehouseList = response
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
selecttaskType(e) {
|
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
@@ -470,29 +617,29 @@ export default {
|
|
|
this.currentPage = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
- async exportlist() {
|
|
|
- const { data } = await export1(
|
|
|
- {
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- contractType: this.contractType,
|
|
|
- currentPage: this.currentPage,
|
|
|
- pageSize: this.pageSize,
|
|
|
- searchType: this.searchType,
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
- startDate: this.startDate,
|
|
|
- endDate: this.endDate,
|
|
|
- },
|
|
|
- {},
|
|
|
- { responseType: 'blob' }
|
|
|
- ).toPromise()
|
|
|
- downloadFile({
|
|
|
- res: data,
|
|
|
- fileName: `${
|
|
|
- this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
- }_采购合同`,
|
|
|
- type: 'xls',
|
|
|
- })
|
|
|
- },
|
|
|
+ // async exportlist() {
|
|
|
+ // const { data } = await export1(
|
|
|
+ // {
|
|
|
+ // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ // contractType: this.contractType,
|
|
|
+ // currentPage: this.currentPage,
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // searchType: this.searchType,
|
|
|
+ // searchKeyWord: this.searchKeyWord,
|
|
|
+ // startDate: this.startDate,
|
|
|
+ // endDate: this.endDate,
|
|
|
+ // },
|
|
|
+ // {},
|
|
|
+ // { responseType: 'blob' }
|
|
|
+ // ).toPromise()
|
|
|
+ // downloadFile({
|
|
|
+ // res: data,
|
|
|
+ // fileName: `${
|
|
|
+ // this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
+ // }_采购合同`,
|
|
|
+ // type: 'xls',
|
|
|
+ // })
|
|
|
+ // },
|
|
|
// deletecontract(){},
|
|
|
//删除
|
|
|
|