|
@@ -46,7 +46,7 @@
|
|
|
class="wenzi"
|
|
|
:data="warehouseList.records"
|
|
|
style="width: 100%; margin-top: 10px"
|
|
|
- height="780"
|
|
|
+ height="680"
|
|
|
>
|
|
|
<el-table-column type="index" label="序号">
|
|
|
<template scope="scope">
|
|
@@ -58,12 +58,28 @@
|
|
|
<el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="buyer" label="买方"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="seller" label="卖方"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="loan" label="货款(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="freight" label="运费(元)"></el-table-column>
|
|
|
+ <el-table-column width='100' class="table_td" prop="storageFee" label="仓储费(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="interest" label="利息(元)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="collectionIngPayable" label="应收(元)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="collectionEdPayable" label="已收(元)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="collectionNotPayable" label="未收(元)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="outWeight" label="出货量(吨)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="alreadyInvoice" label="已开发票(元)"></el-table-column>
|
|
|
- <el-table-column class="table_td" prop="notInvoice" label="未开发票(元)"></el-table-column>
|
|
|
+ <el-table-column width='100' class="table_td" prop="outWeight" label="出货量(吨)"></el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="alreadyInvoice" label="已开发票(元)"></el-table-column>
|
|
|
+ <el-table-column width='120' class="table_td" prop="notInvoice" label="未开发票(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="notInvoice" 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=""
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="status" label="状态">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover
|
|
@@ -85,9 +101,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column class="table_td" prop="updateDate" label="更新时间" width="130"></el-table-column>
|
|
|
- <el-table-column prop="seller" label="操作" width="200">
|
|
|
+ <el-table-column prop="seller" label="操作" width='200'>
|
|
|
<template slot-scope="scope">
|
|
|
<div class="record" @click="dianlog(scope.row)">派发</div>
|
|
|
+ <div class="record" v-hasPermission="
|
|
|
+ `financial.collection.collectionInfo.edit`
|
|
|
+ " @click="edit(scope.row)">编辑</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -170,6 +189,82 @@
|
|
|
</el-table>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog width="60%" :visible.sync="editshow" :append-to-body="true">
|
|
|
+ <el-form>
|
|
|
+ <el-form-item label="货款(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ @input='calculate'
|
|
|
+ v-model="editlist.loan"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder="请输入贷款"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="运费(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ @input='calculate'
|
|
|
+ v-model="editlist.freight"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder="请输入运费"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="仓储费(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ @input='calculate'
|
|
|
+ v-model="editlist.storageFee"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder="请输入仓储费"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="利息(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ @input='calculate'
|
|
|
+ v-model="editlist.interest"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder="请输入利息"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="合计应收(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="editlist.collectionIngPayable"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder=""
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="已收金额(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="editlist.collectionEdPayable"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder="请输入已收金额"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="已开发票(元)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="editlist.alreadyInvoice"
|
|
|
+ class="typeselect"
|
|
|
+ placeholder="请输入发票金额"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="editshow = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="editconfirm">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 附件弹框 -->
|
|
|
+ <el-dialog width="60%" :visible.sync="accessoryTFs" :before-close="handlefujianClose" :append-to-body="true">
|
|
|
+ <p>查看附件</p>
|
|
|
+ <el-upload
|
|
|
+ class="avatar-uploader"
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ :show-file-list="false"
|
|
|
+ :on-success="handleAvatarSuccess">
|
|
|
+ <i style='margin:0 auto;' class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+</el-upload>
|
|
|
+<div style='display:inline-block;' v-for='item in addressUrls'>
|
|
|
+ <img style='width:100px;height:100px;' :src="item" alt="">
|
|
|
+</div>
|
|
|
+
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -178,7 +273,9 @@ import {
|
|
|
paifa,
|
|
|
kuguan,
|
|
|
paiLook,
|
|
|
- carDel
|
|
|
+ carDel,
|
|
|
+ examineinfo,
|
|
|
+ editinfo
|
|
|
} from '@/model/financialManagement/index'
|
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
|
import Pagination from '@/components/Pagination'
|
|
@@ -200,6 +297,15 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ editlist:{
|
|
|
+ loan:0,
|
|
|
+ freight:0,
|
|
|
+ storageFee:0,
|
|
|
+ interest:0,
|
|
|
+ collectionIngPayable:0,
|
|
|
+ collectionEdPayable:0,
|
|
|
+ alreadyInvoice:0
|
|
|
+ },
|
|
|
paifaDialogForm: {},
|
|
|
paifaKuguanList: [],
|
|
|
//弹出框
|
|
@@ -247,6 +353,7 @@ export default {
|
|
|
agent: ''
|
|
|
}
|
|
|
],
|
|
|
+ editshow:false,
|
|
|
carNo: '',
|
|
|
boxNo: '',
|
|
|
titleNo: '',
|
|
@@ -321,6 +428,126 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ handlefujianClose() {
|
|
|
+ this.accessoryTFs=false
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ fujian(row) {
|
|
|
+ this.addressUrls=row.addressUrl.split(',')
|
|
|
+ this.editlist.id=row.id
|
|
|
+ this.accessoryTFs=true
|
|
|
+ },
|
|
|
+ handleAvatarSuccess(res){
|
|
|
+ this.addressUrls.push(res.url)
|
|
|
+ editinfo({addressUrl:this.addressUrls.join(),id:this.editlist.id}).toPromise().then(response => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ calculate(){
|
|
|
+ if(this.editlist.loan&&this.editlist.freight&&this.editlist.storageFee&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Number(this.editlist.freight)+Number(this.editlist.storageFee)+Number(this.editlist.interest)
|
|
|
+ }else if(this.editlist.loan&&this.editlist.freight&&this.editlist.storageFee){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Number(this.editlist.freight)+Number(this.editlist.storageFee)
|
|
|
+ }else if(this.editlist.loan&&this.editlist.freight&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Number(this.editlist.freight)+Number(this.editlist.interest)
|
|
|
+ }else if(this.editlist.loan&&this.editlist.storageFee&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Number(this.editlist.storageFee)+Number(this.editlist.interest)
|
|
|
+ }else if(this.editlist.freight&&this.editlist.storageFee&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.freight)+Number(this.editlist.storageFee)+Number(this.editlist.interest)
|
|
|
+ }else if(this.editlist.loan&&this.editlist.freight){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Number(this.editlist.freight)
|
|
|
+ }else if(this.editlist.loan&&this.editlist.storageFee){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Number(this.editlist.storageFee)
|
|
|
+ }else if(this.editlist.loan&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.loan)+Numberthis.editlist.interest()
|
|
|
+ }else if(this.editlist.freight&&this.editlist.storageFee){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.freight)+Number(this.editlist.storageFee)
|
|
|
+ }else if(this.editlist.freight&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.freight)+Number(this.editlist.interest)
|
|
|
+ }else if(this.editlist.storageFee&&this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=Number(this.editlist.storageFee)+Number(this.editlist.interest)
|
|
|
+ }else if(this.editlist.loan){
|
|
|
+ this.editlist.collectionIngPayable=this.editlist.loan
|
|
|
+ }else if(this.editlist.freight){
|
|
|
+ this.editlist.collectionIngPayable=this.editlist.freight
|
|
|
+ }else if(this.editlist.storageFee){
|
|
|
+ this.editlist.collectionIngPayable=this.editlist.storageFee
|
|
|
+ }else if(this.editlist.interest){
|
|
|
+ this.editlist.collectionIngPayable=this.editlist.interest
|
|
|
+ }else{
|
|
|
+ this.editlist.collectionIngPayable=0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ editconfirm(){
|
|
|
+ if(this.editlist.loan<0||this.editlist.loan>100000000|| String(this.editlist.loan).indexOf('.') != -1 &&
|
|
|
+ String(this.editlist.loan).length - String(this.editlist.loan).indexOf('.') + 1 >
|
|
|
+ 2){
|
|
|
+ this.$message({
|
|
|
+ message: '货款输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.editlist.freight<0||this.editlist.freight>1000000|| String(this.editlist.freight).indexOf('.') != -1 &&
|
|
|
+ String(this.editlist.freight).length - String(this.editlist.freight).indexOf('.') + 1 >
|
|
|
+ 2){
|
|
|
+ this.$message({
|
|
|
+ message: '运费输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.editlist.storageFee<0||this.editlist.storageFee>1000000|| String(this.editlist.storageFee).indexOf('.') != -1 &&
|
|
|
+ String(this.editlist.storageFee).length - String(this.editlist.storageFee).indexOf('.') + 1 >
|
|
|
+ 2){
|
|
|
+ this.$message({
|
|
|
+ message: '仓储费输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.editlist.interest<0||this.editlist.interest>1000000|| String(this.editlist.interest).indexOf('.') != -1 &&
|
|
|
+ String(this.editlist.interest).length - String(this.editlist.interest).indexOf('.') + 1 >
|
|
|
+ 2){
|
|
|
+ this.$message({
|
|
|
+ message: '利息输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.editlist.collectionEdPayable<0||this.editlist.collectionEdPayable>100000000|| String(this.editlist.collectionEdPayable).indexOf('.') != -1 &&
|
|
|
+ String(this.editlist.collectionEdPayable).length - String(this.editlist.collectionEdPayable).indexOf('.') + 1 >
|
|
|
+ 2){
|
|
|
+ this.$message({
|
|
|
+ message: '已收金额输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.editlist.alreadyInvoice<0||this.editlist.alreadyInvoice>1000000|| String(this.editlist.alreadyInvoice).indexOf('.') != -1 &&
|
|
|
+ String(this.editlist.alreadyInvoice).length - String(this.editlist.alreadyInvoice).indexOf('.') + 1 >
|
|
|
+ 2){
|
|
|
+ this.$message({
|
|
|
+ message: '发票金额输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.editlist.collectionEdPayable==0&&this.editlist.alreadyInvoice>0){
|
|
|
+ this.$message({
|
|
|
+ message: '发票金额不能超过已收金额!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ editinfo(this.editlist).toPromise().then(response => {
|
|
|
+ this.editshow=false
|
|
|
+ this.$message({
|
|
|
+ message: '编辑成功',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
changeCarNo(e) {
|
|
|
this.$forceUpdate()
|
|
|
this.$set(this.freightspace[0],'carNo',e)
|
|
@@ -651,6 +878,12 @@ export default {
|
|
|
return false
|
|
|
})
|
|
|
},
|
|
|
+ edit(item){
|
|
|
+ this.editshow=true
|
|
|
+ examineinfo({id:item.id}).toPromise().then(response => {
|
|
|
+ this.editlist=response
|
|
|
+ })
|
|
|
+ },
|
|
|
selecttaskType(e) {
|
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
if (this.taskTypeList[i].value == e) {
|
|
@@ -826,6 +1059,11 @@ export default {
|
|
|
.vertical-circle:first-child {
|
|
|
color: red;
|
|
|
}
|
|
|
+.avatar-uploader{
|
|
|
+ border:1px solid #ccc;
|
|
|
+ width:100px;height:100px;border-radius:3px;
|
|
|
+ line-height:100px;
|
|
|
+}
|
|
|
.vertical-text {
|
|
|
margin: 0 10px;
|
|
|
color: #8890b1;
|
|
@@ -1076,4 +1314,7 @@ export default {
|
|
|
border-bottom-left-radius: 0px;
|
|
|
margin-top: 0px;
|
|
|
}
|
|
|
+/deep/.el-upload--text{
|
|
|
+ width:100px;
|
|
|
+}
|
|
|
</style>
|