|
@@ -38,7 +38,7 @@
|
|
</template>
|
|
</template>
|
|
<template slot="right">
|
|
<template slot="right">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="searchKeyWord"
|
|
|
|
|
|
+ v-model="warehouseName"
|
|
placeholder="请输入仓库名"
|
|
placeholder="请输入仓库名"
|
|
clearable
|
|
clearable
|
|
maxlength="500"
|
|
maxlength="500"
|
|
@@ -69,7 +69,7 @@
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
<el-table
|
|
<el-table
|
|
class="wenzi"
|
|
class="wenzi"
|
|
- :data="contractList.records"
|
|
|
|
|
|
+ :data="warehouselist.records"
|
|
style="width: 100%; margin-top: 10px"
|
|
style="width: 100%; margin-top: 10px"
|
|
>
|
|
>
|
|
<!-- <el-table-column type="index" label="序号">
|
|
<!-- <el-table-column type="index" label="序号">
|
|
@@ -84,7 +84,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="grade" label="容量(吨)" width="80">
|
|
<el-table-column prop="grade" label="容量(吨)" width="80">
|
|
<!-- <template slot-scope="scope"> -->
|
|
<!-- <template slot-scope="scope"> -->
|
|
- <!-- <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
|
|
|
|
|
|
+ <!-- <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
|
|
scope.row.grade
|
|
scope.row.grade
|
|
}}</span>
|
|
}}</span>
|
|
<span v-if="scope.row.grade == '二等品'" class="second-class">{{
|
|
<span v-if="scope.row.grade == '二等品'" class="second-class">{{
|
|
@@ -98,14 +98,11 @@
|
|
}}</span> -->
|
|
}}</span> -->
|
|
<!-- </template> -->
|
|
<!-- </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="weight" label="入库量(吨)">
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="weight" label="入库量(吨)"> </el-table-column>
|
|
<el-table-column prop="unitContractPrice" label="出库量(吨)">
|
|
<el-table-column prop="unitContractPrice" label="出库量(吨)">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="packingMethod" label="应余量">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="buyer" label="出入库">
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="packingMethod" label="应余量"> </el-table-column>
|
|
|
|
+ <el-table-column prop="buyer" label="出入库"> </el-table-column>
|
|
<el-table-column prop="address" label="操作" width="200">
|
|
<el-table-column prop="address" label="操作" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<img
|
|
<img
|
|
@@ -171,13 +168,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- getList,
|
|
|
|
- export1,
|
|
|
|
- editstatus,
|
|
|
|
- billoperatehis,
|
|
|
|
-
|
|
|
|
-} from '@/model/contarct/index'
|
|
|
|
|
|
+import { getList } from '@/model/warehouse/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
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'
|
|
@@ -203,9 +194,6 @@ export default {
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
// 船舶类型
|
|
// 船舶类型
|
|
monetaryKey: null,
|
|
monetaryKey: null,
|
|
- // 表格显示数据
|
|
|
|
- tableDate: [],
|
|
|
|
-
|
|
|
|
// 是否显示
|
|
// 是否显示
|
|
showType: true,
|
|
showType: true,
|
|
// 年
|
|
// 年
|
|
@@ -225,30 +213,20 @@ export default {
|
|
contractForm: {},
|
|
contractForm: {},
|
|
categoryIndex: 0,
|
|
categoryIndex: 0,
|
|
rulesVendor: {},
|
|
rulesVendor: {},
|
|
-
|
|
|
|
|
|
+
|
|
size: 10,
|
|
size: 10,
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
- handleCurrentChange:{},
|
|
|
|
|
|
+ handleCurrentChange: {},
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
date: {
|
|
date: {
|
|
year: dayjs().format('YYYY'),
|
|
year: dayjs().format('YYYY'),
|
|
month: dayjs().format('MM'),
|
|
month: dayjs().format('MM'),
|
|
},
|
|
},
|
|
- contractList: [],
|
|
|
|
|
|
+ warehouselist: [],
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
historyList: [],
|
|
historyList: [],
|
|
-
|
|
|
|
- pickerBeginDateBefore: {
|
|
|
|
- disabledDate: (time) => {
|
|
|
|
- return time.getTime() > Date.now()
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
accessoryTFs: false,
|
|
accessoryTFs: false,
|
|
- taskTypeList: [
|
|
|
|
- { value: '未完成', type: 1 },
|
|
|
|
- { value: '已完成', type: 2 },
|
|
|
|
- { value: '全部合同', type: '' },
|
|
|
|
- ],
|
|
|
|
|
|
+ warehouseName: '',
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
shortcuts: [
|
|
shortcuts: [
|
|
{
|
|
{
|
|
@@ -305,18 +283,12 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- handleLook(){
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- handleAdd(){
|
|
|
|
|
|
+ handleLook() {},
|
|
|
|
+ handleAdd() {
|
|
this.$router.push({ path: 'warehouseManagementAdd' })
|
|
this.$router.push({ path: 'warehouseManagementAdd' })
|
|
},
|
|
},
|
|
- handleEdit(){
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- handleDelete(){
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ handleEdit() {},
|
|
|
|
+ handleDelete() {},
|
|
dateFormat(fmt, date) {
|
|
dateFormat(fmt, date) {
|
|
let ret
|
|
let ret
|
|
const opt = {
|
|
const opt = {
|
|
@@ -355,30 +327,12 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
getList({
|
|
getList({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
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,
|
|
|
|
- contrPage: this.contrPage,
|
|
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.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.contractList = response
|
|
|
|
|
|
+ this.warehouselist = response
|
|
|
|
+ console.log(response)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 上传附件
|
|
// 上传附件
|
|
@@ -393,7 +347,6 @@ export default {
|
|
// this.onChangeFlag = true
|
|
// this.onChangeFlag = true
|
|
},
|
|
},
|
|
editClick(row) {
|
|
editClick(row) {
|
|
-
|
|
|
|
var status = ''
|
|
var status = ''
|
|
if (row.status == '待执行' || row.status == '已完成') {
|
|
if (row.status == '待执行' || row.status == '已完成') {
|
|
status = '执行中'
|
|
status = '执行中'
|
|
@@ -403,9 +356,8 @@ export default {
|
|
//cancelButtonClass: "btn-custom-cancel"
|
|
//cancelButtonClass: "btn-custom-cancel"
|
|
this.$confirm(`是否将状态改为${status}`, {
|
|
this.$confirm(`是否将状态改为${status}`, {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
- cancelButtonText:'取消',
|
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
-
|
|
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
editstatus({ id: row.id })
|
|
editstatus({ id: row.id })
|
|
@@ -447,7 +399,6 @@ export default {
|
|
this.appendixIdss = row.receiveAttachmentPath
|
|
this.appendixIdss = row.receiveAttachmentPath
|
|
},
|
|
},
|
|
handleExamine(row) {
|
|
handleExamine(row) {
|
|
-
|
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'salesContractExamine',
|
|
name: 'salesContractExamine',
|
|
query: { id: row.id },
|
|
query: { id: row.id },
|
|
@@ -496,8 +447,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// deletecontract(){},
|
|
// deletecontract(){},
|
|
- //删除
|
|
|
|
-
|
|
|
|
|
|
+ //删除
|
|
|
|
|
|
approve() {},
|
|
approve() {},
|
|
listQuery() {},
|
|
listQuery() {},
|
|
@@ -799,14 +749,14 @@ export default {
|
|
cursor: text;
|
|
cursor: text;
|
|
padding: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
}
|
|
- .el-message-box{
|
|
|
|
|
|
+ .el-message-box {
|
|
width: 440px;
|
|
width: 440px;
|
|
height: 160px;
|
|
height: 160px;
|
|
- background: #FFFFFF;
|
|
|
|
|
|
+ background: #ffffff;
|
|
box-shadow: 0px 2px 31px 0px rgba(66, 75, 112, 0.23);
|
|
box-shadow: 0px 2px 31px 0px rgba(66, 75, 112, 0.23);
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
- /deep/.el-message-box__message p{
|
|
|
|
|
|
+ /deep/.el-message-box__message p {
|
|
width: 351px;
|
|
width: 351px;
|
|
height: 20px;
|
|
height: 20px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -815,12 +765,12 @@ export default {
|
|
color: #191919;
|
|
color: #191919;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
-.el-message-box__title{
|
|
|
|
- width: 440px;
|
|
|
|
- height: 160px;
|
|
|
|
- background: #FFFFFF;
|
|
|
|
- box-shadow: 0px 2px 31px 0px rgba(66, 75, 112, 0.23);
|
|
|
|
- border-radius: 4px;
|
|
|
|
-}
|
|
|
|
|
|
+ .el-message-box__title {
|
|
|
|
+ width: 440px;
|
|
|
|
+ height: 160px;
|
|
|
|
+ background: #ffffff;
|
|
|
|
+ box-shadow: 0px 2px 31px 0px rgba(66, 75, 112, 0.23);
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|