成本修改

dev-scheduling
jinna 3 weeks ago
parent 7d4cb774c0
commit c04fb8e2b4
  1. 30
      src/views/costManagement/subjectFeeMaintenance.vue
  2. 7
      src/views/costStatistics/index.vue

@ -39,10 +39,16 @@
@update:model-value="val => (showAdd = val)"
width="25%"
>
<el-form ref="addForm" :model="addForm" :rules="addRules">
<el-form ref="addForm" :model="addForm" :rules="addRules" label-width="70px">
<el-form-item label="费用科目" prop="expenseAccount">
<el-input v-model="addForm.expenseAccount" placeholder="请输入费用科目"></el-input>
</el-form-item>
<el-form-item label="类型" prop="subjectType">
<el-radio-group v-model="addForm.subjectType">
<el-radio label="0">制造费用</el-radio>
<el-radio label="1">作业中心材料费用</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
@ -182,7 +188,9 @@ export default {
isShowImport: false,
data: [],
form: {},
query:{},
query:{
descs:'update_time',
},
distributeType: '',
loading: false,
showAdd: false,
@ -282,6 +290,17 @@ export default {
],
minWidth:100
},
{
label:"类型",
prop:"subjectType",
sortable: 'custom',
overHidden:true,
type:"select",
dicData: [
{ label: '制造费用', value: '0' },
{ label: '作业中心材料费用', value: '1' },
],
},
{
label:"费用时间",
prop: 'month',
@ -449,7 +468,9 @@ export default {
},
//
handleAdd() {
this.addForm = {}
this.addForm = {
subjectType:'0'
}
this.showAdd = true;
},
//
@ -458,7 +479,8 @@ export default {
if (valid) {
// this.showAdd = false;
addSubjectFee({
subjectName:this.addForm.expenseAccount
subjectName:this.addForm.expenseAccount,
subjectType:this.addForm.subjectType,
}).then(res =>{
if(res.data.code == 200){
this.$message.success('新增成功')

@ -86,10 +86,11 @@ export default {
data:[],
form:{},
query:{
ascs:'work_center_code'
ascs:'work_center_code',
month:this.$dayjs().subtract(1, 'month').format('YYYY-MM')
},
searchForm:{
// month:
month:this.$dayjs().subtract(1, 'month').format('YYYY-MM')
},
page:{
pageSize: 10,
@ -460,7 +461,7 @@ export default {
});
},
handleCost(){
this.costForm.month = this.$dayjs().format('YYYY-MM');
this.costForm.month = this.$dayjs().subtract(1, 'month').format('YYYY-MM');
this.openShow = true
},
//

Loading…
Cancel
Save