|
@@ -131,6 +131,7 @@
|
|
|
|
|
|
<div class="page-footer">
|
|
|
<div class="footer">
|
|
|
+ <el-button type="primary" @click="overData" v-if="!isDealer" :disabled="detailData.examineStatus !== 'OK'">直调完结</el-button>
|
|
|
<el-button @click="goBack">关 闭</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -139,7 +140,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getEnginDetail } from "@/api/supply/engin";
|
|
|
+import { getEnginDetail, overEngin } from "@/api/supply/engin";
|
|
|
|
|
|
export default {
|
|
|
name: 'EnginDetail',
|
|
@@ -168,6 +169,9 @@ export default {
|
|
|
isExamine() {
|
|
|
return this.detailData.examineStatus === 'OK' || this.detailData.examineStatus === 'FAIL'
|
|
|
},
|
|
|
+ isDealer() {
|
|
|
+ return JSON.parse(localStorage.getItem("supply_user")).isCustomer
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
created() {
|
|
@@ -187,6 +191,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ // 直调完结
|
|
|
+ overData() {
|
|
|
+ this.$confirm('此操作将直调完结订单, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ overEngin({id: this.listItem.enginInfoId}).then(res => {
|
|
|
+ this.$successMsg();
|
|
|
+ this.getDetail();
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|