|
|
@@ -103,9 +103,7 @@
|
|
|
:disabled="
|
|
|
!selectionDList.length ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionDList.filter(e => e.createUser == null||e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeedDisabled "
|
|
|
@click="batchDelete('D')"
|
|
|
>
|
|
|
{{ $t("btn118n.deleted") }}
|
|
|
@@ -147,9 +145,7 @@
|
|
|
:disabled="
|
|
|
disabled ||
|
|
|
selectionDList.length == 0 ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionDList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeedDisabled"
|
|
|
@click="allClick('D费用申请')"
|
|
|
>{{ $t("btn118n.applyFee") }}</el-button
|
|
|
>
|
|
|
@@ -160,9 +156,7 @@
|
|
|
:disabled="
|
|
|
disabled ||
|
|
|
selectionDList.length == 0 ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionDList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeedDisabled "
|
|
|
@click="allClick('D撤销请核')"
|
|
|
>{{ $t("btn118n.unApplyFee") }}</el-button
|
|
|
>
|
|
|
@@ -173,9 +167,7 @@
|
|
|
:disabled="
|
|
|
selectionDList.length != 1 ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionDList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeedDisabled "
|
|
|
@click="allClick('D申请修改')"
|
|
|
>{{ $t("btn118n.applyModify") }}</el-button
|
|
|
>
|
|
|
@@ -186,9 +178,7 @@
|
|
|
:disabled="
|
|
|
selectionDList.length != 1 ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionDList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeedDisabled"
|
|
|
@click="allClick('D申请删除')"
|
|
|
>{{ $t("btn118n.applyDelete") }}</el-button
|
|
|
>
|
|
|
@@ -199,9 +189,7 @@
|
|
|
:disabled="
|
|
|
selectionDList.length != 1 ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionDList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeedDisabled "
|
|
|
@click="allClick('D取消申请')"
|
|
|
>{{ $t("btn118n.unAplly") }}</el-button
|
|
|
>
|
|
|
@@ -400,16 +388,17 @@
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
|
- <template slot-scope="scope" slot="menu">
|
|
|
+ <template slot-scope="{ row, index }" slot="menu">
|
|
|
<!--<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
|
|
|
+ <!-- <el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
:disabled="scope.row.accStatus || disabled || pleasereviewType"
|
|
|
@click="deletefun(scope.row, scope.index, 'D')"
|
|
|
>删除</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
+ <el-button v-if="row.id" type="text" size="small" @click="rowView(row, index)">查看</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</el-card>
|
|
|
@@ -442,9 +431,7 @@
|
|
|
:disabled="
|
|
|
!selectionCList.length ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionCList.filter(e => e.createUser == null||e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeecDisabled "
|
|
|
@click="batchDelete('C')"
|
|
|
>{{ $t("btn118n.deleted") }}
|
|
|
</el-button>
|
|
|
@@ -485,9 +472,7 @@
|
|
|
:disabled="
|
|
|
disabled ||
|
|
|
selectionCList.length == 0 ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionCList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeecDisabled"
|
|
|
@click="allClick('C费用申请')"
|
|
|
>{{ $t("btn118n.applyFee") }}</el-button
|
|
|
>
|
|
|
@@ -498,9 +483,7 @@
|
|
|
:disabled="
|
|
|
disabled ||
|
|
|
selectionCList.length == 0 ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionCList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeecDisabled"
|
|
|
@click="allClick('C撤销请核')"
|
|
|
>{{ $t("btn118n.unApplyFee") }}</el-button
|
|
|
>
|
|
|
@@ -513,9 +496,7 @@
|
|
|
:disabled="
|
|
|
selectionCList.length != 1 ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionCList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeecDisabled"
|
|
|
@click="allClick('C申请修改')"
|
|
|
>{{ $t("btn118n.applyModify") }}</el-button
|
|
|
>
|
|
|
@@ -526,9 +507,7 @@
|
|
|
:disabled="
|
|
|
selectionCList.length != 1 ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionCList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeecDisabled"
|
|
|
@click="allClick('C申请删除')"
|
|
|
>{{ $t("btn118n.applyDelete") }}</el-button
|
|
|
>
|
|
|
@@ -539,9 +518,7 @@
|
|
|
:disabled="
|
|
|
selectionCList.length != 1 ||
|
|
|
disabled ||
|
|
|
- (assemblyForm.id &&
|
|
|
- !(selectionCList.filter(e => e.createUser == 0 || e.createUser == userId).length > 0 || roleName.indexOf('允许修改他人费用') >= 0))
|
|
|
- "
|
|
|
+ isFeecDisabled"
|
|
|
@click="allClick('C取消申请')"
|
|
|
>{{ $t("btn118n.unAplly") }}</el-button
|
|
|
>
|
|
|
@@ -723,16 +700,17 @@
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
|
- <template slot-scope="scope" slot="menu">
|
|
|
+ <template slot-scope="{ row, index }" slot="menu">
|
|
|
<!--<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.index,'C')">保存</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
|
|
|
+ <!-- <el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
:disabled="scope.row.accStatus || disabled || pleasereviewType"
|
|
|
@click="deletefun(scope.row, scope.index, 'C')"
|
|
|
>删除</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
+ <el-button v-if="row.id" type="text" size="small" @click="rowView(row, index)">查看</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</el-card>
|
|
|
@@ -1484,8 +1462,8 @@ export default {
|
|
|
viewBtn: false,
|
|
|
delBtn: false,
|
|
|
editBtn: false,
|
|
|
- menuWidth: "100",
|
|
|
- menu: false,
|
|
|
+ menuWidth: 60,
|
|
|
+ menu: true,
|
|
|
column: [
|
|
|
{
|
|
|
label: "index",
|
|
|
@@ -1716,8 +1694,8 @@ export default {
|
|
|
viewBtn: false,
|
|
|
delBtn: false,
|
|
|
editBtn: false,
|
|
|
- menuWidth: "100",
|
|
|
- menu: false,
|
|
|
+ menuWidth: 60,
|
|
|
+ menu: true,
|
|
|
column: [
|
|
|
{
|
|
|
label: "index",
|
|
|
@@ -2203,7 +2181,36 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ //监听 收费是否允许他人编辑
|
|
|
+ isFeedDisabled() {
|
|
|
+ if (this.assemblyForm.id && this.selectionDList.filter(e => e.id && e.createUser != this.userId).length > 0) {
|
|
|
+ if (this.roleName.includes("允许修改他人费用")) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //监听 付费是否允许他人编辑
|
|
|
+ isFeecDisabled() {
|
|
|
+ if (this.assemblyForm.id && this.selectionCList.filter(e => e.id && e.createUser != this.userId).length > 0) {
|
|
|
+ if (this.roleName.includes("允许修改他人费用")) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ rowView(row, index) {
|
|
|
+ this.$refs.feeModifyView.openDialog(row);
|
|
|
+ },
|
|
|
updateDetail() {
|
|
|
this.$emit("billsDetailfun");
|
|
|
},
|