|
@@ -96,6 +96,7 @@
|
|
|
<div class="fl">
|
|
|
<el-button size="mini" type="primary" icon="el-icon-plus" @click="toForm()" v-if="$checkBtnRole('add', $route.meta.roles)">发货申请</el-button>
|
|
|
<el-button size="mini" type="primary" icon="el-icon-plus" @click="toReturnForm()" v-if="$checkBtnRole('add', $route.meta.roles)">退货申请</el-button>
|
|
|
+ <el-button size="mini" type="warning" icon="el-icon-finished" @click="batchExamine" :disabled="multipleSelection.length < 1" v-if="$checkBtnRole('examine', $route.meta.roles)">批量审批</el-button>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
<ExportButton :exUrl="'invoice/listProjectExport'" :exParams="exParams" />
|
|
@@ -110,8 +111,10 @@
|
|
|
fit
|
|
|
highlight-current-row
|
|
|
stripe
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
show-summary
|
|
|
:summary-method="$getSummaries">
|
|
|
+ <el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
|
<el-table-column align="left" label="订单类型" prop="type" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.type | orderTypeFilter}}
|
|
@@ -155,10 +158,10 @@
|
|
|
<span>{{scope.row.customerName}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip>
|
|
|
+ <el-table-column align="left" label="物料编码" prop="materialCode" min-width="120" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.materialNumber" />
|
|
|
- <span>{{scope.row.materialNumber}}</span>
|
|
|
+ <CopyButton :copyText="scope.row.materialCode" />
|
|
|
+ <span>{{scope.row.materialCode}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="140" show-overflow-tooltip>
|
|
@@ -278,6 +281,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
|
|
|
|
<EnginDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
|
|
|
<EnginExamine :listItem="queryItem" v-if="isShowExamine" @backListFormDetail="backList" />
|
|
@@ -288,12 +293,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getEnginList, submitEngin, deleteEngin, abandonEngin } from "@/api/supply/apply";
|
|
|
+import { getEnginList, submitEngin, deleteEngin, abandonEngin, examineBatchEngin } from "@/api/supply/apply";
|
|
|
import { getSalesmanList } from '@/api/common'
|
|
|
import EnginDetail from "@/views/supply/apply/components/engin_detail";
|
|
|
import EnginExamine from "@/views/supply/apply/components/engin_examine";
|
|
|
import EnginForm from "@/views/supply/apply/components/engin_form";
|
|
|
import EnginReturnForm from "@/views/supply/apply/components/engin_return_form";
|
|
|
+import ExamineDialog from "@/components/Common/examine-dialog";
|
|
|
|
|
|
let that
|
|
|
export default {
|
|
@@ -302,6 +308,7 @@ export default {
|
|
|
EnginExamine,
|
|
|
EnginForm,
|
|
|
EnginReturnForm,
|
|
|
+ ExamineDialog,
|
|
|
},
|
|
|
filters: {
|
|
|
statusFilter(val) {
|
|
@@ -351,6 +358,13 @@ export default {
|
|
|
isShowExamine: false,
|
|
|
isShowForm: false,
|
|
|
isShowReturnForm: false,
|
|
|
+
|
|
|
+ multipleSelection: [],
|
|
|
+ isShowExamineDialog: false,
|
|
|
+ examineForm: {
|
|
|
+ status: '',
|
|
|
+ remark: '',
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -504,6 +518,32 @@ export default {
|
|
|
this.getList();
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = val;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 打开 批量审批
|
|
|
+ batchExamine() {
|
|
|
+ this.isShowExamineDialog = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 提交 批量审批
|
|
|
+ submitExamineForm() {
|
|
|
+ let ids = this.multipleSelection.map(item => {
|
|
|
+ return item.id;
|
|
|
+ });
|
|
|
+ ids = Array.from(new Set(ids));
|
|
|
+ examineBatchEngin({
|
|
|
+ ids: ids.join(','),
|
|
|
+ examineStatus: this.examineForm.status,
|
|
|
+ approvalRemark: this.examineForm.remark,
|
|
|
+ }).then(res => {
|
|
|
+ this.isShowEditDateDialog = false;
|
|
|
+ this.getList();
|
|
|
+ this.$successMsg('审批成功');
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|