Commit 67eb310c authored by 吴春's avatar 吴春

调拨单修改

parent e3f80ce6
......@@ -222,6 +222,7 @@
<button class="hollowFixedBtn" @click="resetPageIndex()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="method5()">导出</button>
<button class="normalBtn" @click="GenerateDocuments()">生成调拨单</button>
<!-- <button class="normalBtn" @click="BindingAllot()">关联调拨单</button> -->
</li>
</ul>
</div>
......@@ -452,11 +453,13 @@
prop=""
label="关联调拨单付款单"
show-overflow-tooltip width="140">
<template slot-scope="scope">
<span v-if="scope.row.ReFinanceId" style="cursor: pointer;color: #00C6FF;"
@click="openDetails(scope.row.ReFinanceId,2)">{{ scope.row.ReFinanceId }}</span>
<template v-else>-</template>
<template slot-scope="scope" v-if="scope.row.ReFinanceIdList">
<div v-for="(x,index) in scope.row.ReFinanceIdList" >
<span style="cursor: pointer;color: #00C6FF;"
@click="openDetails(x.RelevanceFrId,2)">{{x.RelevanceFrId}}{{x.ShareMoney>0?("分摊金额:"+x.ShareMoney):""}}</span>
</div>
</template>
<template v-else>-</template>
</el-table-column>
</el-table>
<div style="padding-bottom:15px">
......@@ -475,14 +478,21 @@
:multipleSelection="multipleSelection"
@close="showDialog=false"></selectListData>
</template>
<!-- <template v-if="showBindDialog">
<bindListData
:multipleSelection="multipleSelection"
@close="showBindDialog=false"></bindListData>
</template> -->
</div>
</template>
<script>
import Vue from 'vue'
import selectListData from "./components/selectListData";
import bindListData from "./components/bindListData";
export default {
components:{
selectListData
selectListData,
bindListData
},
data(){
return{
......@@ -548,6 +558,8 @@ export default {
PostId:0,
IsLeave:0,
},
BindInfo:[],//绑定关联单信息
showBindDialog:false,
DataList:[],
GetFinancLogList:[],
StatusList:[],
......@@ -700,7 +712,8 @@ export default {
}
},
selectable(row, index){
if (!this.DataList[index].ReFinanceId) {
console.log("ReFinanceIds",this.DataList[index].ReFinanceIds);
if (!this.DataList[index].ReFinanceIds) {
return true;
} else {
return false;
......@@ -1086,6 +1099,14 @@ export default {
})
return Money/100
},
BindingAllot(){
if(this.multipleSelection.length==0){
this.Error('请选择需要关联的数据');
return;
}
this.showBindDialog = true
},
GenerateDocuments(){
if(this.multipleSelection.length==0){
this.Error('请选择需要制单的数据');
......@@ -1102,7 +1123,6 @@ export default {
isVerifyMoney: true,
ReFinanceIds: ids.join(','),//单号
ReFinanceId2: 3,//成本
}
this.$confirm(`已选单号:${ids.join(',')},总金额:${orderObj.Money},是否继续生成财务单据`, "提示", {
confirmButtonText: "确定",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment