|
@@ -147,18 +147,38 @@
|
|
|
:visible.sync="aduitshow"
|
|
|
width="50%"
|
|
|
:before-close="handleClose">
|
|
|
- <div>
|
|
|
- <el-form ref="form" :model="form" label-width="120px">
|
|
|
+ <div style='display:flex;'>
|
|
|
+ <div style='width:50%;'>
|
|
|
+ <el-form ref="form" :model="form" label-width="120px">
|
|
|
<el-form-item label="合计金额">
|
|
|
<el-input disabled v-model="form.name"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="附件">
|
|
|
- <el-upload ref='uploadfiles' :file-list='dataList' action="https://www.zthymaoyi.com/upload/admin" list-type="picture-card"
|
|
|
+ <el-upload ref='uploadfiles' :file-list='dataList' action="https://www.zthymaoyi.com/upload/admin" list-type="picture-card"
|
|
|
:on-success="handlefujian" :on-remove="handleRemove" class="photo2">
|
|
|
- <i class="el-icon-plus"></i>
|
|
|
- </el-upload>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style='width:50%;'>
|
|
|
+ <div style='margin:0 0 10px;width:90%;'>账户信息</div>
|
|
|
+ <el-form label-position="left">
|
|
|
+ <el-form-item label-width='100px' label="收款方" span="1" prop="purpose" class="readonly">
|
|
|
+ {{payeeinfo.customerType=="企业客户"?payeeinfo.compName:payeeinfo.customerName}}
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label-width='100px' label="账号" span="1" prop="purpose" class="readonly">
|
|
|
+ {{payeeinfo.bankCard}}
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label-width='100px' label="开户行" span="1" prop="purpose" class="readonly">
|
|
|
+ {{payeeinfo.bankDeposit}}
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label-width='100px' label="开户支行" span="1" prop="purpose" class="readonly">
|
|
|
+ {{payeeinfo.bankDepositBranch}}
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="aduitshow = false">取消</el-button>
|
|
@@ -208,13 +228,11 @@
|
|
|
<el-input v-model="form.distributionIng"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
-
|
|
|
-
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="distributionshow = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="distributionsubmit">确定</el-button>
|
|
|
+ <el-button @click="handleClose1">取消</el-button>
|
|
|
+ <el-button type="primary" @click="distributionsubmit">提交</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -265,8 +283,8 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="marginshow = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="marginsubmit">确定</el-button>
|
|
|
+ <el-button @click="handleClose2">取消</el-button>
|
|
|
+ <el-button type="primary" @click="marginsubmit">提交</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- <el-dialog
|
|
@@ -333,6 +351,7 @@
|
|
|
getExpense,
|
|
|
workflowhandle
|
|
|
} from '@/model/warehouse/index'
|
|
|
+ import {getpayeeinfo,getbuypayeeinfo} from '@/model/profitable/index'
|
|
|
import {
|
|
|
downloadFile
|
|
|
} from '@/utils/batchDown'
|
|
@@ -360,11 +379,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
currectdata:{},
|
|
|
//弹出框
|
|
|
dialogViewSpareMoney: false,
|
|
|
dialogApproveFormVisible: false,
|
|
|
dataList:[],
|
|
|
+ payeeinfo:{},
|
|
|
// 船舶类型
|
|
|
monetaryKey: null,
|
|
|
form:{
|
|
@@ -606,6 +627,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+ if(currectData.length==0){
|
|
|
+ this.$message({
|
|
|
+ message: '请选择一条数据!',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
// console.log(currectData)
|
|
|
var arr1=currectData
|
|
|
for (let i = 0; i < arr1.length; i++) {
|
|
@@ -631,6 +659,8 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
_this.form.distributionEd=response.distributionMoney
|
|
|
_this.form.distributionCan=response.accumulatedPrepayment-response.recoveryPrepayments-response.distributionMoney
|
|
|
_this.form.distributionNot=arr1[i].amountNotPayable
|
|
|
+ this.currectdata=currectData
|
|
|
+ this.marginshow=true
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
message: '无可分配金额',
|
|
@@ -639,8 +669,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
return
|
|
|
})
|
|
|
}
|
|
|
- this.currectdata=currectData
|
|
|
- this.marginshow=true
|
|
|
+
|
|
|
},
|
|
|
distribution(){
|
|
|
let _this= this
|
|
@@ -663,6 +692,14 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ if(currectData.length==0){
|
|
|
+ this.$message({
|
|
|
+ message: '请选择一条数据!',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
// console.log(currectData)
|
|
|
var arr1=currectData
|
|
|
for (let i = 0; i < arr1.length; i++) {
|
|
@@ -879,12 +916,18 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- paymoney({flag:3,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
+ this.$confirm('确定提交分配金额?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ paymoney({flag:3,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message({
|
|
|
message: '分配成功',
|
|
|
type: 'success'
|
|
|
});
|
|
|
+ this.form.distributionIng=''
|
|
|
this.marginshow=false
|
|
|
this.getList()
|
|
|
}).catch(() => {
|
|
@@ -893,6 +936,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
type: 'warning'
|
|
|
});
|
|
|
})
|
|
|
+ }).catch(() => {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'info',
|
|
|
+ // message: '已取消删除'
|
|
|
+ // });
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
distributionsubmit(){
|
|
|
var arr2=this.currectdata
|
|
@@ -910,12 +960,18 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- paymoney({flag:2,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
+ this.$confirm('确定提交分配金额?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ paymoney({flag:2,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message({
|
|
|
message: '分配成功',
|
|
|
type: 'success'
|
|
|
});
|
|
|
+ this.form.distributionIng=''
|
|
|
this.distributionshow=false
|
|
|
this.getList()
|
|
|
}).catch(() => {
|
|
@@ -924,12 +980,19 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
type: 'warning'
|
|
|
});
|
|
|
})
|
|
|
+ }).catch(() => {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'info',
|
|
|
+ // message: '已取消删除'
|
|
|
+ // });
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
payment(item){
|
|
|
if(localStorage.getItem('ws-pf_roleName')=='出纳'){
|
|
|
this.money=0
|
|
|
var moneyarr=this.multipleSelection1[item.id]
|
|
|
- console.log(moneyarr)
|
|
|
+ // console.log(moneyarr)
|
|
|
for (let i = 0; i < this.multipleSelection1[item.id].length; i++) {
|
|
|
if(this.multipleSelection1[item.id][i].warehouseName==item.warehouseName){
|
|
|
if(this.multipleSelection1[item.id][i].addressUrl){
|
|
@@ -949,13 +1012,31 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
this.form.name=this.money
|
|
|
this.currectdata=item
|
|
|
if(moneyarr&&moneyarr.length>0){
|
|
|
- this.aduitshow=true
|
|
|
+ if(item.inType=='采购入库'){
|
|
|
+ getpayeeinfo({compId: localStorage.getItem('ws-pf_compId'),contractNo:item.contractNo}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.payeeinfo=response
|
|
|
+ this.aduitshow=true
|
|
|
+ })
|
|
|
+ }else if(item.inType=='收购入库'){
|
|
|
+ getbuypayeeinfo({compId: localStorage.getItem('ws-pf_compId'),customerName:item.customer}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.payeeinfo=response
|
|
|
+ this.aduitshow=true
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: '至少勾选一条待付款的条目',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
}
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: '暂无此权限!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
aduit(row){
|
|
@@ -1221,9 +1302,11 @@ multiFilter(array, filters) {
|
|
|
this.aduitshow = false
|
|
|
},
|
|
|
handleClose1() {
|
|
|
+ this.form.distributionIng=''
|
|
|
this.distributionshow = false
|
|
|
},
|
|
|
handleClose2() {
|
|
|
+ this.form.distributionIng=''
|
|
|
this.marginshow = false
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
@@ -1348,4 +1431,7 @@ multiFilter(array, filters) {
|
|
|
|
|
|
.audit_opinion {}
|
|
|
}
|
|
|
+ /deep/.el-form{
|
|
|
+ width:90%;
|
|
|
+ }
|
|
|
</style>
|