|
@@ -52,6 +52,12 @@
|
|
@change='datechange' type="daterange" align="right" range-separator="至" start-placeholder="出入库日期起"
|
|
@change='datechange' type="daterange" align="right" range-separator="至" start-placeholder="出入库日期起"
|
|
end-placeholder="出入库日期止">
|
|
end-placeholder="出入库日期止">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
|
+ <el-select filterable clearable v-model="inOutType" placeholder="请选择出入库类型" class="typeselect"
|
|
|
|
+ @change="binNumberChange">
|
|
|
|
+ <el-option key="全部类型" label="全部类型" value="" />
|
|
|
|
+ <el-option v-for="item in inOutTypeList" :key="item.value" :label="item.value"
|
|
|
|
+ :value="item.value" />
|
|
|
|
+ </el-select>
|
|
<ws-input v-model="searchKeyWord" placeholder="可按合同编号、车牌号查找" clearable maxlength="250" type="input"
|
|
<ws-input v-model="searchKeyWord" placeholder="可按合同编号、车牌号查找" clearable maxlength="250" type="input"
|
|
class="input">
|
|
class="input">
|
|
</ws-input>
|
|
</ws-input>
|
|
@@ -61,6 +67,7 @@
|
|
src="../../../public/img/sousuo.png" alt />
|
|
src="../../../public/img/sousuo.png" alt />
|
|
</ws-button>
|
|
</ws-button>
|
|
<el-button type="primary" @click="batchPrint">批量打印</el-button>
|
|
<el-button type="primary" @click="batchPrint">批量打印</el-button>
|
|
|
|
+ <el-button type="primary" @click="salesTransfer">销售转移</el-button>
|
|
<el-table show-summary ref="tableData" :data="warehouseList.records" height="570"
|
|
<el-table show-summary ref="tableData" :data="warehouseList.records" height="570"
|
|
v-show="this.warehouseType== '1'" @selection-change="handleSelectionChange">
|
|
v-show="this.warehouseType== '1'" @selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column>
|
|
<el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column>
|
|
@@ -107,6 +114,16 @@
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="合同/移库编号" width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="任务编号" width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="binNumber" label="仓位号" width="60px"> </el-table-column>
|
|
<el-table-column prop="binNumber" label="仓位号" width="60px"> </el-table-column>
|
|
<el-table-column prop="goodsName" label="货名" width="100"> </el-table-column>
|
|
<el-table-column prop="goodsName" label="货名" width="100"> </el-table-column>
|
|
<!-- <el-table-column prop="type" label="类型" width="60px"> </el-table-column> -->
|
|
<!-- <el-table-column prop="type" label="类型" width="60px"> </el-table-column> -->
|
|
@@ -140,11 +157,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="inOutType" label="类型"> </el-table-column>
|
|
<el-table-column prop="inOutType" label="类型"> </el-table-column>
|
|
- <el-table-column prop="contractNo" label="合同编号" width="180">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+
|
|
<el-table-column prop="carNo" label="车牌号">
|
|
<el-table-column prop="carNo" label="车牌号">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span style="color: #8890b1">{{ scope.row.carNo }}</span>
|
|
<span style="color: #8890b1">{{ scope.row.carNo }}</span>
|
|
@@ -298,6 +311,32 @@
|
|
<el-image style="width: 100px; height: 100px" :src="appendixIdss" :preview-src-list="srcList">
|
|
<el-image style="width: 100px; height: 100px" :src="appendixIdss" :preview-src-list="srcList">
|
|
</el-image>
|
|
</el-image>
|
|
</WinseaContentModal>
|
|
</WinseaContentModal>
|
|
|
|
+ <WinseaContentModal v-model="show" title="销售转移"
|
|
|
|
+ @on-cancel="handleClose">
|
|
|
|
+ <div>
|
|
|
|
+ <div style="display:inline-block;" v-for="item in modification">{{ item.carNo }} ({{ item.netWeight }})</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div>合计:{{modification.length}}车 {{num}}吨 合同编号:{{currectdata.contractNo}}({{currectdata.pointOut}})</div>
|
|
|
|
+ <el-form ref="form" :model="form" label-width="80px">
|
|
|
|
+ <el-form-item label="转至销售/移库">
|
|
|
|
+ <el-select v-model="form.region" placeholder="选择转移后的销售合同编号或移库编号">
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="出入库任务">
|
|
|
|
+ <el-select v-model="form.region" placeholder="选择转移后的出入库任务编号">
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="运输任务(自运必填)">
|
|
|
|
+ <el-select v-model="form.region" placeholder="选择转移后的运输任务编号">
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </WinseaContentModal>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -308,7 +347,8 @@
|
|
addselectinfoList,
|
|
addselectinfoList,
|
|
recordss,
|
|
recordss,
|
|
getPrintInfo,
|
|
getPrintInfo,
|
|
- getbinnumber
|
|
|
|
|
|
+ getbinnumber,
|
|
|
|
+ getExpense
|
|
} from '@/model/warehouse/index'
|
|
} from '@/model/warehouse/index'
|
|
import {
|
|
import {
|
|
downloadFile
|
|
downloadFile
|
|
@@ -345,7 +385,21 @@
|
|
showType: true,
|
|
showType: true,
|
|
// 年
|
|
// 年
|
|
year: '',
|
|
year: '',
|
|
|
|
+ show:false,
|
|
srcList: [],
|
|
srcList: [],
|
|
|
|
+ currectdata:{},
|
|
|
|
+ inOutType:'',
|
|
|
|
+ inOutTypeList:[
|
|
|
|
+ {value:'货权转入'},
|
|
|
|
+ {value:'货权转出'},
|
|
|
|
+ {value:'移库入库'},
|
|
|
|
+ {value:'采购入库'},
|
|
|
|
+ {value:'移库出库'},
|
|
|
|
+ {value:'销售出库'},
|
|
|
|
+ {value:'折转入库'},
|
|
|
|
+ {value:'折转出库'},
|
|
|
|
+ {value:'退库'}],
|
|
|
|
+ num:0,
|
|
deptBudgetTotal: 0,
|
|
deptBudgetTotal: 0,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -405,6 +459,40 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async salesTransfer(){
|
|
|
|
+ var arr=[]
|
|
|
|
+ if (this.modification.length == 0) {
|
|
|
|
+ this.$message.error("请勾选要转移的条目!")
|
|
|
|
+ } else {
|
|
|
|
+ this.num=0
|
|
|
|
+ for (var i = 0; i < this.modification.length; i++) {
|
|
|
|
+ if(this.modification[i].inOutType!='销售出库'){
|
|
|
|
+ this.$message.error("请勾选相同合同编号的销售出库记录!")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.num+=Number(this.modification[i].netWeight)
|
|
|
|
+ if(arr.length==0){
|
|
|
|
+ arr.push(this.modification[i])
|
|
|
|
+ }
|
|
|
|
+ var arr1=arr.filter((item)=>{return item.contractNo==this.modification[i].contractNo})
|
|
|
|
+ if(arr1.length==0){
|
|
|
|
+ arr.push(this.modification[i])
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(arr.length>1){
|
|
|
|
+ this.$message.error("请勾选相同合同编号的销售出库记录!")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ var contractNo=await getExpense({ contractNo: arr[0].contractNo, compId: this.compId }).toPromise()
|
|
|
|
+ if(contractNo.status=='已完成'||contractNo.status=='已结算'){
|
|
|
|
+ this.$message.error("已完成的合同记录不可转移!")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.currectdata.contractNo=this.modification[0].contractNo
|
|
|
|
+ this.currectdata.pointOut=contractNo.pointOut
|
|
|
|
+ this.show=true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
batchPrint() {
|
|
batchPrint() {
|
|
if (this.modification.length == 0) {
|
|
if (this.modification.length == 0) {
|
|
this.$message.error("请勾选要打印的条目!")
|
|
this.$message.error("请勾选要打印的条目!")
|
|
@@ -536,6 +624,7 @@
|
|
},
|
|
},
|
|
handleClose() {
|
|
handleClose() {
|
|
this.accessoryTFs = false
|
|
this.accessoryTFs = false
|
|
|
|
+ this.show=true
|
|
},
|
|
},
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
console.log(`每页 ${val} 条`)
|
|
console.log(`每页 ${val} 条`)
|
|
@@ -583,7 +672,8 @@
|
|
positionId: this.deptBudgetList.positionId,
|
|
positionId: this.deptBudgetList.positionId,
|
|
warehouseName: this.deptBudgetList.warehouseName,
|
|
warehouseName: this.deptBudgetList.warehouseName,
|
|
startDate:startDate,
|
|
startDate:startDate,
|
|
- endDate:endDate,
|
|
|
|
|
|
+ endDate:endDate,
|
|
|
|
+ inOutType:this.inOutType,
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchKeyWord: this.searchKeyWord,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|