|
@@ -84,6 +84,12 @@
|
|
|
@click="allClick('D费用申请')">请核费用</el-button>
|
|
@click="allClick('D费用申请')">请核费用</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="disabled || selectionDList.length == 0"
|
|
<el-button type="danger" plain size="small" :disabled="disabled || selectionDList.length == 0"
|
|
|
@click="allClick('D撤销请核')">撤销请核</el-button>
|
|
@click="allClick('D撤销请核')">撤销请核</el-button>
|
|
|
|
|
+ <el-button type="primary" plain size="small" :disabled="selectionDList.length != 1"
|
|
|
|
|
+ @click="allClick('D申请修改')">申请修改</el-button>
|
|
|
|
|
+ <el-button type="success" plain size="small" :disabled="selectionDList.length != 1"
|
|
|
|
|
+ @click="allClick('D申请删除')">申请删除</el-button>
|
|
|
|
|
+ <el-button type="danger" plain size="small" :disabled="selectionDList.length != 1"
|
|
|
|
|
+ @click="allClick('D取消申请')">取消申请</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
|
<el-button v-if="isFeeEditD" type="primary" size="small" icon="el-icon-plus" circle
|
|
<el-button v-if="isFeeEditD" type="primary" size="small" icon="el-icon-plus" circle
|
|
@@ -182,11 +188,12 @@
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot-scope="scope" slot="menu">
|
|
|
|
|
|
|
+ <template slot-scope="{row,index}" slot="menu">
|
|
|
|
|
+ <el-button v-if="row.id" type="text" size="small" @click="rowView(row, index)">查看</el-button>
|
|
|
<!--<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.index,'D')">保存</el-button>-->
|
|
<!--<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.index,'D')">保存</el-button>-->
|
|
|
<!--<el-button v-else type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType" @click="editDfun(scope.row,scope.index)">编辑</el-button>-->
|
|
<!--<el-button v-else type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType" @click="editDfun(scope.row,scope.index)">编辑</el-button>-->
|
|
|
- <el-button type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType"
|
|
|
|
|
- @click="deletefun(scope.row, scope.index, 'D')">删除</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType"
|
|
|
|
|
+ @click="deletefun(scope.row, scope.index, 'D')">删除</el-button> -->
|
|
|
</template>
|
|
</template>
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -236,6 +243,12 @@
|
|
|
@click="allClick('C撤销请核')">撤销请核</el-button>
|
|
@click="allClick('C撤销请核')">撤销请核</el-button>
|
|
|
<!-- <el-button type="success" plain size="small" :disabled="disabled"
|
|
<!-- <el-button type="success" plain size="small" :disabled="disabled"
|
|
|
@click="allClick('提取成本')">提取成本</el-button> -->
|
|
@click="allClick('提取成本')">提取成本</el-button> -->
|
|
|
|
|
+ <el-button type="primary" plain size="small" :disabled="selectionCList.length != 1"
|
|
|
|
|
+ @click="allClick('C申请修改')">申请修改</el-button>
|
|
|
|
|
+ <el-button type="success" plain size="small" :disabled="selectionCList.length != 1"
|
|
|
|
|
+ @click="allClick('C申请删除')">申请删除</el-button>
|
|
|
|
|
+ <el-button type="danger" plain size="small" :disabled="selectionCList.length != 1"
|
|
|
|
|
+ @click="allClick('C取消申请')">取消申请</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
|
<el-button v-if="isFeeEditC" type="primary" size="small" icon="el-icon-plus" circle
|
|
<el-button v-if="isFeeEditC" type="primary" size="small" icon="el-icon-plus" circle
|
|
@@ -335,11 +348,11 @@
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot-scope="scope" slot="menu">
|
|
|
|
|
- <!--<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.index,'C')">保存</el-button>-->
|
|
|
|
|
|
|
+ <template slot-scope="{row,index}" slot="menu">
|
|
|
|
|
+ <el-button v-if="row.id" type="text" size="small" @click="rowView(row, index)">查看</el-button>
|
|
|
<!--<el-button v-else type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType" @click="editCfun(scope.row,scope.index)">编辑</el-button>-->
|
|
<!--<el-button v-else type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType" @click="editCfun(scope.row,scope.index)">编辑</el-button>-->
|
|
|
- <el-button type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType"
|
|
|
|
|
- @click="deletefun(scope.row, scope.index, 'C')">删除</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button type="text" size="small" :disabled="scope.row.accStatus || disabled || pleasereviewType"
|
|
|
|
|
+ @click="deletefun(scope.row, scope.index, 'C')">删除</el-button> -->
|
|
|
</template>
|
|
</template>
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -617,6 +630,8 @@
|
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
|
<mail-component ref="mailComponentRef" />
|
|
<mail-component ref="mailComponentRef" />
|
|
|
<extraction-cost ref="extractionCost" @getData="getData" />
|
|
<extraction-cost ref="extractionCost" @getData="getData" />
|
|
|
|
|
+ <fee-modify ref="feeModify" :form="assemblyForm" @updateDetail="updateDetail"></fee-modify>
|
|
|
|
|
+ <fee-modify-view ref="feeModifyView" :form="assemblyForm"></fee-modify-view>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -660,9 +675,11 @@ import extractionCost from "@/components/extractionCost/main.vue";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import mailComponent from "@/components/iosbasic-data/mail-component.vue";
|
|
import mailComponent from "@/components/iosbasic-data/mail-component.vue";
|
|
|
import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfeestemplate";
|
|
import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfeestemplate";
|
|
|
|
|
+import feeModify from "@/components/feeModify/main.vue";
|
|
|
|
|
+import feeModifyView from "@/components/feeModify/view.vue";
|
|
|
import _ from "lodash";
|
|
import _ from "lodash";
|
|
|
export default {
|
|
export default {
|
|
|
- components: { extractionCost, dicSelect, reportContainer, SearchQuery, reportformsList, mailComponent },
|
|
|
|
|
|
|
+ components: { extractionCost, dicSelect, reportContainer, SearchQuery, reportformsList, mailComponent, feeModify, feeModifyView },
|
|
|
props: {
|
|
props: {
|
|
|
pid: {
|
|
pid: {
|
|
|
|
|
|
|
@@ -992,8 +1009,8 @@ export default {
|
|
|
viewBtn: false,
|
|
viewBtn: false,
|
|
|
delBtn: false,
|
|
delBtn: false,
|
|
|
editBtn: false,
|
|
editBtn: false,
|
|
|
- menuWidth: '100',
|
|
|
|
|
- menu: false,
|
|
|
|
|
|
|
+ menuWidth: '60',
|
|
|
|
|
+ //menu: false,
|
|
|
column: [
|
|
column: [
|
|
|
{
|
|
{
|
|
|
label: "index",
|
|
label: "index",
|
|
@@ -1025,6 +1042,12 @@ export default {
|
|
|
}, {
|
|
}, {
|
|
|
label: '审核通过',
|
|
label: '审核通过',
|
|
|
value: '4',
|
|
value: '4',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '申请修改',
|
|
|
|
|
+ value: '5',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '申请删除',
|
|
|
|
|
+ value: '6',
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1183,8 +1206,8 @@ export default {
|
|
|
viewBtn: false,
|
|
viewBtn: false,
|
|
|
delBtn: false,
|
|
delBtn: false,
|
|
|
editBtn: false,
|
|
editBtn: false,
|
|
|
- menuWidth: '100',
|
|
|
|
|
- menu: false,
|
|
|
|
|
|
|
+ menuWidth: '60',
|
|
|
|
|
+ // menu: false,
|
|
|
column: [
|
|
column: [
|
|
|
{
|
|
{
|
|
|
label: "index",
|
|
label: "index",
|
|
@@ -1217,6 +1240,12 @@ export default {
|
|
|
}, {
|
|
}, {
|
|
|
label: '审核通过',
|
|
label: '审核通过',
|
|
|
value: '4',
|
|
value: '4',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '申请修改',
|
|
|
|
|
+ value: '5',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '申请删除',
|
|
|
|
|
+ value: '6',
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1564,6 +1593,9 @@ export default {
|
|
|
this.paymodeWorkDictsfun() // 获取预付/到付数据
|
|
this.paymodeWorkDictsfun() // 获取预付/到付数据
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ rowView(row, index) {
|
|
|
|
|
+ this.$refs.feeModifyView.openDialog(row)
|
|
|
|
|
+ },
|
|
|
testMail(e) {
|
|
testMail(e) {
|
|
|
console.info('eeeeeeeeeeeeeeeeeeee----', e)
|
|
console.info('eeeeeeeeeeeeeeeeeeee----', e)
|
|
|
this.$refs.mailComponentRef.dialogVisible = true
|
|
this.$refs.mailComponentRef.dialogVisible = true
|
|
@@ -1950,7 +1982,7 @@ export default {
|
|
|
this.dc = dc
|
|
this.dc = dc
|
|
|
this.templateVisible = true
|
|
this.templateVisible = true
|
|
|
let obj = {
|
|
let obj = {
|
|
|
- current: 1,
|
|
|
|
|
|
|
+ current: 1,
|
|
|
size: 100,
|
|
size: 100,
|
|
|
status: 0,
|
|
status: 0,
|
|
|
type: 'HYCK',
|
|
type: 'HYCK',
|
|
@@ -3022,6 +3054,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ updateDetail() {
|
|
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
|
|
+ },
|
|
|
allClick(name, type) {
|
|
allClick(name, type) {
|
|
|
if (name == '付费申请') {
|
|
if (name == '付费申请') {
|
|
|
if (this.selectionCList.length == 0) return this.$message.error("请选择费用");
|
|
if (this.selectionCList.length == 0) return this.$message.error("请选择费用");
|
|
@@ -3134,6 +3169,9 @@ export default {
|
|
|
if (row.auditStatus == 0) {
|
|
if (row.auditStatus == 0) {
|
|
|
return this.$message.error("未申请费用,不允许撤销");
|
|
return this.$message.error("未申请费用,不允许撤销");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (row.auditStatus > 2) {
|
|
|
|
|
+ return this.$message.error("请核通过的费用,不允许撤销");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
this.$confirm("确定撤销请核?", {
|
|
this.$confirm("确定撤销请核?", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -3163,6 +3201,78 @@ export default {
|
|
|
})
|
|
})
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ if (name == 'D申请修改') {
|
|
|
|
|
+ for (let row of this.selectionDList) {
|
|
|
|
|
+ if (!row.id) {
|
|
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.feeModify.openDialog(row, 'fix')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (name == 'D申请删除') {
|
|
|
|
|
+ for (let row of this.selectionDList) {
|
|
|
|
|
+ if (!row.id) {
|
|
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.feeModify.openDialog(row, 'del')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (name == 'D取消申请') {
|
|
|
|
|
+ for (let row of this.selectionDList) {
|
|
|
|
|
+ if (!row.id) {
|
|
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!(row.auditStatus == 5 || row.auditStatus == 6)) {
|
|
|
|
|
+ return this.$message.error("未申请修改或删除,不允许撤销申请");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.feeModify.openDialog(row, 'revoke')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (name == 'C申请修改') {
|
|
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
|
|
+ if (!row.id) {
|
|
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.feeModify.openDialog(row, 'fix')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (name == 'C申请删除') {
|
|
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
|
|
+ if (!row.id) {
|
|
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (row.auditStatus != 4) {
|
|
|
|
|
+ return this.$message.error("未审核通过的费用,不允许申请");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.feeModify.openDialog(row, 'del')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (name == 'C取消申请') {
|
|
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
|
|
+ if (!row.id) {
|
|
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!(row.auditStatus == 5 || row.auditStatus == 6)) {
|
|
|
|
|
+ return this.$message.error("未申请修改或删除,不允许撤销申请");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.feeModify.openDialog(row, 'revoke')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if (name == 'C费用申请') {
|
|
if (name == 'C费用申请') {
|
|
|
if (popupReminder(this.assemblyForm, this.messageData)) {
|
|
if (popupReminder(this.assemblyForm, this.messageData)) {
|
|
|
this.$confirm(popupReminder(this.assemblyForm, this.messageData), {
|
|
this.$confirm(popupReminder(this.assemblyForm, this.messageData), {
|
|
@@ -3230,6 +3340,9 @@ export default {
|
|
|
if (row.auditStatus == 0) {
|
|
if (row.auditStatus == 0) {
|
|
|
return this.$message.error("未申请费用,不允许撤销");
|
|
return this.$message.error("未申请费用,不允许撤销");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (row.auditStatus > 2) {
|
|
|
|
|
+ return this.$message.error("请核通过的费用,不允许撤销");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
this.$confirm("确定撤销请核?", {
|
|
this.$confirm("确定撤销请核?", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -3254,7 +3367,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
revokeCheckPleaseVerifyCost(obj).then(res => {
|
|
revokeCheckPleaseVerifyCost(obj).then(res => {
|
|
|
this.$message.success("操作成功");
|
|
this.$message.success("操作成功");
|
|
|
- this.$emit('billsDetailfun')
|
|
|
|
|
|
|
+
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
loading.close();
|
|
loading.close();
|
|
|
})
|
|
})
|