|
@@ -3,13 +3,14 @@
|
|
|
<div v-show="!isShowDetail && !isShowExamine && !isShowForm && !isShowReturnForm">
|
|
|
<!-- 筛选条件 -->
|
|
|
<div class="screen-container">
|
|
|
- <Collapse :screen-form="screenForm">
|
|
|
+ <Collapse :screen-form="screenForm">
|
|
|
<template #left_btn>
|
|
|
<el-radio-group size="mini" v-model="screenForm.status" @change="getList()">
|
|
|
<el-radio-button label="">全部</el-radio-button>
|
|
|
<el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{
|
|
|
- item.label
|
|
|
- }}</el-radio-button>
|
|
|
+ item.label
|
|
|
+ }}
|
|
|
+ </el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</template>
|
|
|
<template #right_btn>
|
|
@@ -171,7 +172,8 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
@click="toForm()"
|
|
|
- >发货申请</el-button
|
|
|
+ >发货申请
|
|
|
+ </el-button
|
|
|
>
|
|
|
<el-button
|
|
|
v-if="$checkBtnRole('refund', $route.meta.roles)"
|
|
@@ -179,7 +181,8 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
@click="toReturnForm()"
|
|
|
- >退货申请</el-button
|
|
|
+ >退货申请
|
|
|
+ </el-button
|
|
|
>
|
|
|
<el-button
|
|
|
v-if="$checkBtnRole('examine', $route.meta.roles)"
|
|
@@ -188,7 +191,8 @@
|
|
|
icon="el-icon-finished"
|
|
|
:disabled="multipleSelection.length < 1"
|
|
|
@click="batchExamine"
|
|
|
- >批量审批</el-button
|
|
|
+ >批量审批
|
|
|
+ </el-button
|
|
|
>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
@@ -406,7 +410,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-popconfirm
|
|
|
v-if="
|
|
|
- $checkBtnRole('apply', $route.meta.roles) &&
|
|
|
+ !isCustomer && $checkBtnRole('apply', $route.meta.roles) &&
|
|
|
(!scope.row.automaticStatus &&
|
|
|
scope.row.examineStatus === 'SAVE' )||
|
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
@@ -442,7 +446,7 @@
|
|
|
(!scope.row.automaticStatus &&
|
|
|
scope.row.examineStatus === 'OK') ||
|
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
|
- (scope.row.automaticStatus &&
|
|
|
+ (scope.row.automaticStatus && !isCustomer &&
|
|
|
scope.row.examineStatus === 'OK' &&
|
|
|
scope.row.type == 2)
|
|
|
"
|
|
@@ -454,6 +458,7 @@
|
|
|
</el-popconfirm>
|
|
|
<el-button
|
|
|
v-if="
|
|
|
+ !isCustomer &&
|
|
|
!scope.row.automaticStatus &&
|
|
|
$checkBtnRole('edit', $route.meta.roles) &&
|
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
@@ -466,6 +471,7 @@
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-if="
|
|
|
+ !isCustomer &&
|
|
|
$checkBtnRole('edit', $route.meta.roles) &&
|
|
|
(!scope.row.automaticStatus &&
|
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
@@ -486,8 +492,7 @@
|
|
|
(!scope.row.automaticStatus &&
|
|
|
scope.row.examineStatus === 'WAIT') ||
|
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
|
- (scope.row.automaticStatus &&
|
|
|
- scope.row.examineStatus === 'WAIT' &&
|
|
|
+ (scope.row.automaticStatus && scope.row.examineStatus === 'WAIT' &&
|
|
|
scope.row.type == 2)
|
|
|
"
|
|
|
type="text"
|
|
@@ -495,7 +500,7 @@
|
|
|
>
|
|
|
审单
|
|
|
</el-button>
|
|
|
- <el-button type="text" @click="toDetail(scope.row)"> 详情 </el-button>
|
|
|
+ <el-button type="text" @click="toDetail(scope.row)"> 详情</el-button>
|
|
|
<!-- !scope.row.automaticStatus && -->
|
|
|
<el-popconfirm
|
|
|
v-if="!scope.row.automaticStatus && scope.row.examineStatus !== 'OK'"
|
|
@@ -646,6 +651,10 @@ export default {
|
|
|
refRegionWork: this.screenForm.refRegionWork
|
|
|
}
|
|
|
}
|
|
|
+ ,
|
|
|
+ isCustomer() {
|
|
|
+ return this.$store.getters.customerId && this.$store.getters.customerNumber
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
@@ -870,7 +879,7 @@ export default {
|
|
|
* @param {String} index - 索引值
|
|
|
* @return Boolean
|
|
|
*/
|
|
|
- selectable: function (row, index) {
|
|
|
+ selectable: function(row, index) {
|
|
|
if (row.automaticStatus) {
|
|
|
return false
|
|
|
}
|