成本修改

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

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

Loading…
Cancel
Save