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

调拨单修改

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