|
@@ -326,7 +326,7 @@
|
|
|
<div class="footer">
|
|
|
<el-button type="primary" @click="clickSubmitForm(1)" :loading="formLoading">审批通过</el-button>
|
|
|
<el-button type="warning" @click="clickSubmitForm(0)" :loading="formLoading">审批驳回</el-button>
|
|
|
- <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;" v-if=" !isDealer">
|
|
|
+ <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;" v-if="!isCustomer">
|
|
|
<el-button slot="reference">关 闭</el-button>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
@@ -338,6 +338,7 @@
|
|
|
<script>
|
|
|
import { getOrderDetail, examineHome } from "@/api/supply/engin";
|
|
|
import { getTypeList, getSalesmanList } from '@/api/common'
|
|
|
+import { mapGetters } from "vuex";
|
|
|
|
|
|
export default {
|
|
|
name: 'HomeExamine',
|
|
@@ -373,6 +374,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ computed:{
|
|
|
+ ...mapGetters(['isCustomer']),
|
|
|
+ },
|
|
|
+
|
|
|
watch: {
|
|
|
goodsList: {
|
|
|
handler(newValue, oldValue) {
|
|
@@ -517,6 +522,7 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.$successMsg('进入下一张待审批订单');
|
|
|
this.detailData = res.data;
|
|
|
+ this.goodsList = res.data.items;
|
|
|
this.examineForm.remark = '';
|
|
|
}).catch(() => {
|
|
|
this.goBack();
|