发起 支出

master
lion 1 month ago
parent a502a1043e
commit f10876fac5

@ -327,7 +327,7 @@
<el-form-item
prop="flow_mod_id"
label="事前流程"
label="采购事项类别"
v-if="!form.is_simple"
>
<el-select v-model="form.flow_mod_id" style="width: 100%">
@ -1230,7 +1230,7 @@
>
</div>
<div>
<el-button
<!-- <el-button
@click="
(showTypes = false),
(myPurchaseType = 1),
@ -1239,8 +1239,23 @@
(step = 2),
(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>
<el-button
@ -1253,7 +1268,7 @@
(showEdit = true),
toggleBudgetByFlowModId()
"
>预算计划支出</el-button
>直接支付</el-button
>
</div>
</div>
@ -1727,6 +1742,14 @@ export default {
};
},
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
viewOaFlow(flowId) {
// toOaDetail
@ -1927,6 +1950,16 @@ export default {
...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) {
this.flowIds = copy;
}
@ -2433,7 +2466,7 @@ export default {
this.getSh()
},
beforeRouteEnter(to, from, next) {
const { contractId, myPurchaseType } = to.query;
const { contractId, myPurchaseType,flowModId } = to.query;
if (contractId) {
next((vm) => {
vm.contractId = contractId;
@ -2455,6 +2488,17 @@ export default {
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 {
next((vm) => {
vm.showTypes = true;

Loading…
Cancel
Save