|
@@ -5,8 +5,8 @@
|
|
|
<el-tab-pane label="操作明细" name="operationDetails" key="operationDetails"> </el-tab-pane>
|
|
|
<el-tab-pane label="完工明细" name="detailsCompletion" key="detailsCompletion"></el-tab-pane>
|
|
|
<el-tab-pane :label="`支付费用`" name="payFee" key="payFee"></el-tab-pane>
|
|
|
- <el-tab-pane label="评价信息" name="Evaluation" key="Evaluation"> </el-tab-pane>
|
|
|
- <el-tab-pane label="费用结算" name="SettleAccounts" key="SettleAccounts"> </el-tab-pane>
|
|
|
+ <el-tab-pane v-if="EvaluationShow" label="评价信息" name="Evaluation" key="Evaluation"> </el-tab-pane>
|
|
|
+ <el-tab-pane v-if="SettleAccountsShow" label="费用结算" name="SettleAccounts" key="SettleAccounts"> </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<div class="view_div">
|
|
|
<div :style="{
|
|
@@ -18,8 +18,8 @@
|
|
|
<OperationDetail v-if="activeName == 'operationDetails'" :id="id" ref="operationDetails" />
|
|
|
<CompletionDetails v-if="activeName == 'detailsCompletion'" :id="id" ref="detailsCompletion" />
|
|
|
<Payment v-if="activeName == 'payFee'" :id="id" ref="payFee" />
|
|
|
- <Evaluation v-if="activeName == 'Evaluation'" :id="id" ref="Evaluation" />
|
|
|
- <SettleAccounts v-if="activeName == 'SettleAccounts'" :id="id" ref="SettleAccounts" />
|
|
|
+ <Evaluation v-if="activeName == 'Evaluation' && EvaluationShow" :id="id" ref="Evaluation" />
|
|
|
+ <SettleAccounts v-if="activeName == 'SettleAccounts' && SettleAccountsShow" :id="id" ref="SettleAccounts" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -31,6 +31,7 @@ import CompletionDetails from './detailModule/CompletionDetails/index.vue'
|
|
|
import Payment from './detailModule/Payment/index.vue'
|
|
|
import Evaluation from './detailModule/Evaluation/index.vue'
|
|
|
import SettleAccounts from './detailModule/SettleAccounts/index.vue'
|
|
|
+import { orderBaseDetail } from "@/api/workOrderPool.js"
|
|
|
export default {
|
|
|
components: {
|
|
|
workOrderInfo,
|
|
@@ -49,8 +50,20 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
activeName: this.$route.query.activeName || 'workOrderInfo',
|
|
|
+ EvaluationShow: false,
|
|
|
+ SettleAccountsShow: false
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ orderBaseDetail({
|
|
|
+ orderBaseId: this.id
|
|
|
+ }).then(res => {
|
|
|
+ if (!~["DYY", "DSHPG", "DWDPG", "DJD", "FWZ", "YQX"].indexOf(res.data.orderStatus)) {
|
|
|
+ this.EvaluationShow = true
|
|
|
+ this.SettleAccountsShow = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleClick(tab, event) {
|
|
|
|