|
|
|
|
@ -920,7 +920,7 @@
|
|
|
|
|
<span slot="footer" class="dialog-footer" style="display: flex;justify-content: flex-end;">
|
|
|
|
|
<el-button @click="step = 2,myPurchaseType = 2,isWeixiu=false,form.is_common_purchase = 1,form.flow_mod_id = 99,showTypes = false,showEdit=true">一般采购</el-button>
|
|
|
|
|
<el-button @click="showTypes = false,myPurchaseType = 1,isWeixiu=true,form.is_common_purchase = 0,step=2,showEdit=true">维修相关</el-button>
|
|
|
|
|
<el-button type="primary" @click="showTypes = false,isWeixiu=false,myPurchaseType = 1,form.is_common_purchase = 0,showEdit=true">预算计划支出</el-button>
|
|
|
|
|
<el-button type="primary" @click="showTypes = false,isWeixiu=false,myPurchaseType = 1,form.is_common_purchase = 0,showEdit=true,toggleBudgetByFlowModId()">预算计划支出</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
@ -1611,12 +1611,23 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
toggleBudgetByFlowModId() {
|
|
|
|
|
this.$nextTick(_ => {
|
|
|
|
|
this.plans.forEach(row => {
|
|
|
|
|
if (row.flow_mod_id == this.form.flow_mod_id) {
|
|
|
|
|
this.$refs['editorPlanTable']?.toggleRowSelection(row, true)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//获取预算计划
|
|
|
|
|
async getBudgets() {
|
|
|
|
|
let res = await getBudget(this.planSelect);
|
|
|
|
|
res.list.forEach((item) => (item._inputMoney = 0));
|
|
|
|
|
this.plans = res.list;
|
|
|
|
|
this.planTotal = res.list.total || 0;
|
|
|
|
|
|
|
|
|
|
this.toggleBudgetByFlowModId()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleDrawerClose(done) {
|
|
|
|
|
|