|
@@ -4,14 +4,94 @@
|
|
|
<el-scrollbar style="height:100%">
|
|
|
<!-- <div> -->
|
|
|
<div>
|
|
|
- <ws-button type="primary" @click="handleAdd()">待审核</ws-button>
|
|
|
- <ws-button type="primary" @click="handleAdd()">待结算</ws-button>
|
|
|
- <ws-button type="primary" @click="handleAdd()">已结算</ws-button>
|
|
|
+ <ws-button type="primary" @click="handlestatus(1)">待审核</ws-button>
|
|
|
+ <ws-button type="primary" @click="handlestatus(2)">待结算</ws-button>
|
|
|
+ <ws-button type="primary" @click="handlestatus(3)">已结算</ws-button>
|
|
|
<ws-button type="primary" @click="handleAdd()">全部</ws-button>
|
|
|
<ws-button type="primary" @click="handleAdd()">通过</ws-button>
|
|
|
<ws-button type="primary" @click="handleAdd()">驳回</ws-button>
|
|
|
<ws-button type="primary" @click="dialogFormVisible1=true">付款</ws-button>
|
|
|
- <el-dialog
|
|
|
+ <ws-button type="primary" @click="dialogFormVisible2=true">开发票</ws-button>
|
|
|
+ <ws-button type="primary" @click="amend()">修改</ws-button>
|
|
|
+ <ws-button type="primary" @click="carryover">补货结转</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()">审核</ws-button>
|
|
|
+ <ws-select
|
|
|
+ v-model="contractNo"
|
|
|
+ placeholder="请选择合同"
|
|
|
+ clearable
|
|
|
+ @change='contractchange'
|
|
|
+ maxlength="500"
|
|
|
+ type="input"
|
|
|
+ class="findValue"
|
|
|
+ >
|
|
|
+ <ws-option
|
|
|
+ key=""
|
|
|
+ label="全部合同"
|
|
|
+ value=""
|
|
|
+ />
|
|
|
+ <ws-option
|
|
|
+ v-for="item in contractNoList.records"
|
|
|
+ :key="item.constKey"
|
|
|
+ :label="item.contractNo+'('+item.closeaccountstatus+')'"
|
|
|
+ :value="item.contractNo"
|
|
|
+ />
|
|
|
+ </ws-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <span>合同重量:吨</span>
|
|
|
+ <span>成交量:吨</span>
|
|
|
+ <span>已平仓:吨</span>
|
|
|
+ <span>入库量:吨</span>
|
|
|
+ <el-table
|
|
|
+ class="wenzi"
|
|
|
+ :data="warehouseList.records"
|
|
|
+ style="width: 100%; margin-top: 20px"
|
|
|
+ ref="warehouseList"
|
|
|
+ border
|
|
|
+ :summary-method="getSummaries"
|
|
|
+ show-summary
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ >
|
|
|
+ <el-table-column type="selection" width="55"></el-table-column>
|
|
|
+ <el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="contractNo" label="合同编号"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="positionNumber" label="仓位号"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="warehousingDate" label="入库日期"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="protein" label="蛋白(%)>="></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="defaultDeposit" label="水分(%)>="></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="unitPrice" label="单价(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="basisPrice" label="基差(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="unloadingCharge" label="卸车费(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="invoiceFee" label="发票费(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="deductionAmount" label="扣款(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="settlementPrice" label="结算单价(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="netWeight" label="净重(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="应付金额(元)" prop="amountIngPayable"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="已付金额(元)" prop="amountEdPayable"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="未付金额(元)" prop="amountNotPayable"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="结转" prop="carryForward"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="客户确认" prop="customerConfirmationStatus"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="客户" prop="customerName"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="库点" prop="warehouseName"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="发票类型" prop="invoiceTypeKey"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="已开发票(元)" prop="alreadyInvoice"></el-table-column>
|
|
|
+ <el-table-column label="状态" prop="status"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <!-- 页数 -->
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="pageSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="deptBudgetTotal"
|
|
|
+ ></el-pagination>
|
|
|
+ </el-scrollbar>
|
|
|
+ <el-dialog
|
|
|
width="25%"
|
|
|
title="付款"
|
|
|
:visible.sync="dialogFormVisible1"
|
|
@@ -60,9 +140,7 @@
|
|
|
<el-button type="primary" @click="dialogFormVisible1= false">提 交</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!-- 开发票 -->
|
|
|
- <ws-button type="primary" @click="dialogFormVisible2=true">开发票</ws-button>
|
|
|
- <el-dialog
|
|
|
+ <el-dialog
|
|
|
width="30%"
|
|
|
title="批量开发票"
|
|
|
:visible.sync="dialogFormVisible2"
|
|
@@ -104,50 +182,65 @@
|
|
|
<el-button type="primary" @click="dialogFormVisible2 = false">提 交</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <ws-button type="primary" @click="dialogFormVisible5=true">修改</ws-button>
|
|
|
<el-dialog
|
|
|
width="30%"
|
|
|
title="修改"
|
|
|
:visible.sync="dialogFormVisible5"
|
|
|
:append-to-body="true"
|
|
|
>
|
|
|
- <el-form :model="form">
|
|
|
+ <el-form>
|
|
|
<el-form-item label="单价" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="form.name" autocomplete="off" class="deal"></el-input>
|
|
|
+ <el-input v-model="amendlist.unitPrice" autocomplete="off" class="deal"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="基差" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ <el-input v-model="amendlist.basisPrice" autocomplete="off" class="deal"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="卸车费" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ <el-input v-model="amendlist.unloadingCharge" autocomplete="off" class="deal"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发票费" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ <el-input v-model="amendlist.invoiceFee" autocomplete="off" class="deal"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="扣款" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ <el-input v-model="amendlist.deductionAmount" autocomplete="off" class="deal"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogFormVisible5 = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="dialogFormVisible5 = false">提 交</el-button>
|
|
|
+ <el-button type="primary" @click="amendconfirm">提 交</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <ws-button type="primary" @click="dialogFormVisible11 = true">补货结转</ws-button>
|
|
|
- <el-dialog
|
|
|
+ <el-dialog
|
|
|
width="30%"
|
|
|
title="补货结转"
|
|
|
:visible.sync="dialogFormVisible11"
|
|
|
:append-to-body="true"
|
|
|
>
|
|
|
<el-form :model="form">
|
|
|
- <el-button @click="dialogFormVisible5 = false">本合同</el-button>
|
|
|
- <el-button @click="dialogFormVisible5 = false">其他合同</el-button>
|
|
|
- <el-form-item label="合同编号" :label-width="formLabelWidth">
|
|
|
- <el-select v-model="form.name" autocomplete="off" class="deal"></el-select>
|
|
|
+ <el-button :type='currect?"primary":""' @click="currect=true">本合同</el-button>
|
|
|
+ <el-button :type='!currect?"primary":""' @click="currect=false">其他合同</el-button>
|
|
|
+ <el-form-item v-if='!currect' label="合同编号" :label-width="formLabelWidth">
|
|
|
+ <ws-select
|
|
|
+ v-if='carryovercontractnolist.length>0'
|
|
|
+ v-model="contractNo"
|
|
|
+ placeholder="请选择合同"
|
|
|
+ clearable
|
|
|
+ @change='contractchange'
|
|
|
+ maxlength="500"
|
|
|
+ type="input"
|
|
|
+ class="findValue"
|
|
|
+ >
|
|
|
+ <ws-option
|
|
|
+ v-for="item in carryovercontractnolist"
|
|
|
+ :key="item.constKey"
|
|
|
+ :label="item.contractNo+'('+item.closeaccountstatus+')'"
|
|
|
+ :value="item.contractNo"
|
|
|
+ />
|
|
|
+ </ws-select>
|
|
|
+ <div v-else>无可结转的其他合同</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="结转重量" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="form.name" autocomplete="off" class="deal" placeholder="请输入结转重量"></el-input>
|
|
|
+ <el-input v-model="carryOverWeight" autocomplete="off" class="deal" placeholder="请输入结转重量"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -155,76 +248,13 @@
|
|
|
<el-button type="primary" @click="dialogFormVisible11= false">确认</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <ws-button type="primary" @click="handleAdd()">审核</ws-button>
|
|
|
- <ws-select
|
|
|
- v-model="searchKeyWord"
|
|
|
- placeholder="全部合同"
|
|
|
- clearable
|
|
|
- maxlength="500"
|
|
|
- type="input"
|
|
|
- class="findValue"
|
|
|
- ></ws-select>
|
|
|
- </div>
|
|
|
-
|
|
|
- <span>合同重量:吨</span>
|
|
|
- <span>成交量:吨</span>
|
|
|
- <span>已平仓:吨</span>
|
|
|
- <span>入库量:吨</span>
|
|
|
- <el-table
|
|
|
- class="wenzi"
|
|
|
- :data="warehouseList.records"
|
|
|
- style="width: 100%; margin-top: 20px"
|
|
|
- ref="warehouseList"
|
|
|
- border
|
|
|
- :summary-method="getSummaries"
|
|
|
- show-summary
|
|
|
- >
|
|
|
- <el-table-column type="selection" width="55"></el-table-column>
|
|
|
- <el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="contractNo" label="合同编号"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="positionNumber" label="仓位号"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="warehousingDate" label="入库日期"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="protein" label="蛋白(%)>="></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="defaultDeposit" label="水分(%)>="></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="unitPrice" label="单价(元/吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="basisPrice" label="基差(元/吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="unloadingCharge" label="卸车费(元/吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="invoiceFee" label="发票费(元/吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="deductionAmount" label="扣款(元/吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="settlementPrice" label="结算单价(元/吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="netWeight" label="净重(吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="应付金额(元)" prop="amountIngPayable"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="已付金额(元)" prop="amountEdPayable"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="未付金额(元)" prop="amountNotPayable"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="结转" prop="carryForward"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="客户确认" prop="customerConfirmationStatus"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="客户" prop="customerName"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="库点" prop="warehouseName"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="发票类型" prop="invoiceTypeKey"></el-table-column>
|
|
|
- <el-table-column class="table_td" label="已开发票(元)" prop="alreadyInvoice"></el-table-column>
|
|
|
- <el-table-column label="状态" prop="status"></el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <!-- 页数 -->
|
|
|
- <el-pagination
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="pageSize"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="deptBudgetTotal"
|
|
|
- ></el-pagination>
|
|
|
- </el-scrollbar>
|
|
|
</div>
|
|
|
|
|
|
<!-- </div> -->
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
- getpurchreceipt
|
|
|
+ getpurchreceipt,getcontractno,postamend,postreplanishent
|
|
|
} from '@/model/statisticalReport/index'
|
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
|
import Pagination from '@/components/Pagination'
|
|
@@ -269,8 +299,9 @@ export default {
|
|
|
// resource: '',
|
|
|
// desc: ''
|
|
|
},
|
|
|
+ currect:true,
|
|
|
formLabelWidth: '120px',
|
|
|
-
|
|
|
+ contractNo:'contractNo',
|
|
|
barWidth: 0,
|
|
|
barHeight: 0,
|
|
|
retioX: 1,
|
|
@@ -280,12 +311,7 @@ export default {
|
|
|
isShow: !this.autohide,
|
|
|
//弹出框
|
|
|
dialogViewSpareMoney: false,
|
|
|
- dialogApproveFormVisible: false,
|
|
|
- // 船舶类型
|
|
|
- monetaryKey: null,
|
|
|
- // 表格显示数据
|
|
|
- tableDate: [],
|
|
|
-
|
|
|
+ contractNoList:[],
|
|
|
// 是否显示
|
|
|
showType: true,
|
|
|
// 年
|
|
@@ -324,6 +350,10 @@ export default {
|
|
|
pageSize: 10,
|
|
|
searchType: 1,
|
|
|
pcFlag: 1,
|
|
|
+ carryoverlist:{},
|
|
|
+ modification:[],
|
|
|
+ amendlist:{},
|
|
|
+ carryovercontractnolist:[],
|
|
|
historyList: [],
|
|
|
pickerBeginDateBefore: {
|
|
|
disabledDate: time => {
|
|
@@ -340,6 +370,47 @@ export default {
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ amendconfirm(){
|
|
|
+ this.amendlist.id=this.modification[0].id
|
|
|
+ postamend(this.amendlist).toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.dialogFormVisible5=false
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ amend(){
|
|
|
+ if(this.modification.length>1){
|
|
|
+ this.$message.warning('一次仅可修改一条数据')
|
|
|
+ }else if(this.modification.length==0){
|
|
|
+ this.$message.warning('请选择一条要修改的条目')
|
|
|
+ }else{
|
|
|
+ this.dialogFormVisible5=true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ carryover(){
|
|
|
+ if(this.modification.length>1){
|
|
|
+ this.$message.warning('一次仅可结转一条数据')
|
|
|
+ }else if(this.modification.length==0){
|
|
|
+ this.$message.warning('请选择一条要结转的条目')
|
|
|
+ }else{
|
|
|
+ this.dialogFormVisible11 = true
|
|
|
+ this.carryovercontractnolist=this.contractNoList.records.filter(item=> {
|
|
|
+ return this.modification[0].id!=item.id
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleSelectionChange(val){
|
|
|
+ this.modification=val
|
|
|
+ },
|
|
|
+ handlestatus(status){
|
|
|
+ this.searchType=status
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ contractchange(e){
|
|
|
+ this.contractNo=e
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
updated() {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.warehouseList.doLayout()
|
|
@@ -413,15 +484,30 @@ export default {
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
searchType: this.searchType,
|
|
|
- searchKeyWord: this.searchKeyWord
|
|
|
+ contractNo:this.contractNo
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then(response => {
|
|
|
this.warehouseList = response
|
|
|
})
|
|
|
- },
|
|
|
- handleSelectionChange(val) {
|
|
|
- this.multipleSelection = val
|
|
|
+ getpurchreceipt({
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ for (let i = 0; i < response.records.length; i++) {
|
|
|
+ if(response.records[i].amountNotPayable==0){
|
|
|
+ response.records[i].closeaccountstatus='已结算'
|
|
|
+ }else{
|
|
|
+ response.records[i].closeaccountstatus='待结算'
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ this.contractNoList = response
|
|
|
+ })
|
|
|
},
|
|
|
handleRemove(file) {
|
|
|
console.log(file)
|