发起 支出

master
lion 1 month ago
parent a502a1043e
commit f10876fac5

@ -327,7 +327,7 @@
<el-form-item <el-form-item
prop="flow_mod_id" prop="flow_mod_id"
label="事前流程" label="采购事项类别"
v-if="!form.is_simple" v-if="!form.is_simple"
> >
<el-select v-model="form.flow_mod_id" style="width: 100%"> <el-select v-model="form.flow_mod_id" style="width: 100%">
@ -1230,7 +1230,7 @@
> >
</div> </div>
<div> <div>
<el-button <!-- <el-button
@click=" @click="
(showTypes = false), (showTypes = false),
(myPurchaseType = 1), (myPurchaseType = 1),
@ -1239,8 +1239,23 @@
(step = 2), (step = 2),
(showEdit = true) (showEdit = true)
" "
>维修相关</el-button >采购事项类别</el-button
> -->
<el-select
v-model="form.flow_mod_id"
style="width: 220px; margin-bottom: 16px"
placeholder="请选择采购事项类别"
filterable
clearable
@change="handlePurchaseTypeChange"
> >
<el-option
v-for="item in flowIdsFormat"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</div> </div>
<div> <div>
<el-button <el-button
@ -1253,7 +1268,7 @@
(showEdit = true), (showEdit = true),
toggleBudgetByFlowModId() toggleBudgetByFlowModId()
" "
>预算计划支出</el-button >直接支付</el-button
> >
</div> </div>
</div> </div>
@ -1727,6 +1742,14 @@ export default {
}; };
}, },
methods: { methods: {
handlePurchaseTypeChange(id) {
this.showTypes = false;
this.myPurchaseType = 1;
this.isWeixiu = true;
this.form.is_common_purchase = 0;
this.step = 2;
this.showEdit = true;
},
// OA // OA
viewOaFlow(flowId) { viewOaFlow(flowId) {
// toOaDetail // toOaDetail
@ -1927,6 +1950,16 @@ export default {
...data, ...data,
}; };
}); });
const { flowModId } = this.$route.query;
if(flowModId){
this.form.flow_mod_id = parseInt(flowModId);
this.showTypes = false;
this.isWeixiu = true;
this.myPurchaseType = 1;
this.form.is_common_purchase = 0;
this.step = 2;
this.showEdit = true;
}
} catch (e) { } catch (e) {
this.flowIds = copy; this.flowIds = copy;
} }
@ -2433,7 +2466,7 @@ export default {
this.getSh() this.getSh()
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
const { contractId, myPurchaseType } = to.query; const { contractId, myPurchaseType,flowModId } = to.query;
if (contractId) { if (contractId) {
next((vm) => { next((vm) => {
vm.contractId = contractId; vm.contractId = contractId;
@ -2455,6 +2488,17 @@ export default {
vm.form.is_common_purchase = 1; vm.form.is_common_purchase = 1;
} }
}); });
}else if(flowModId){
next((vm) => {
vm.form.flow_mod_id = parseInt(flowModId);
vm.showTypes = false;
vm.isWeixiu = true;
vm.myPurchaseType = 1;
vm.form.is_common_purchase = 0;
vm.step = 2;
vm.showEdit = true;
});
} else { } else {
next((vm) => { next((vm) => {
vm.showTypes = true; vm.showTypes = true;

Loading…
Cancel
Save