|
@@ -29,8 +29,13 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="存货名称" prop="chName">
|
|
|
- <el-input v-model="screenForm.chName" placeholder="请输入存货名称"></el-input>
|
|
|
+ <el-form-item label="产品名称" prop="chName">
|
|
|
+ <el-input v-model="screenForm.chName" placeholder="请输入产品名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="产品编码" prop="chNum">
|
|
|
+ <el-input v-model="screenForm.chNum" placeholder="请输入产品编码"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -39,6 +44,11 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="仓库名称" prop="warehouse">
|
|
|
+ <el-input v-model="screenForm.warehouse" placeholder="请输入仓库名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="发货日期" prop="date">
|
|
|
<el-date-picker
|
|
|
v-model="screenForm.date"
|
|
@@ -52,7 +62,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" class="tr">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="24" class="tr">
|
|
|
<el-form-item label="">
|
|
|
<el-button size="small" @click="resetScreenForm">清空</el-button>
|
|
|
<el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
|
|
@@ -65,14 +75,15 @@
|
|
|
<div class="mymain-container">
|
|
|
<div class="btn-group clearfix">
|
|
|
<div class="fl">
|
|
|
- <!-- <el-button size="small" type="warning" icon="el-icon-close">退单</el-button> -->
|
|
|
+ <el-button size="small" type="warning" icon="el-icon-close" @click="batchExamine" :disabled="multipleSelection.length < 1">批量审批</el-button>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
<ExportButton :exUrl="'sale/order/export'" :exParams="exParams" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
- <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
|
+ <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
|
<el-table-column align="center" label="状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.examineStatus | statusFilter}}
|
|
@@ -117,6 +128,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
|
|
|
|
<SalesDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
|
|
|
<SalesExamine :listItem="queryItem" v-if="isShowExamine" @backListFormExamine="backList" />
|
|
@@ -125,15 +138,17 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList, examineJudge } from "@/api/supply/sales";
|
|
|
+import { getList, examineJudge, examineBatch } from "@/api/supply/sales";
|
|
|
import SalesDetail from "@/views/supply/sales/components/sales_detail";
|
|
|
import SalesExamine from "@/views/supply/sales/components/sales_examine";
|
|
|
+import ExamineDialog from "@/components/Common/examine-dialog";
|
|
|
|
|
|
let that
|
|
|
export default {
|
|
|
components: {
|
|
|
SalesDetail,
|
|
|
SalesExamine,
|
|
|
+ ExamineDialog,
|
|
|
},
|
|
|
filters: {
|
|
|
statusFilter(val) {
|
|
@@ -160,7 +175,9 @@ export default {
|
|
|
jxsName: '',
|
|
|
jxsNum: '',
|
|
|
chName: '',
|
|
|
+ chNum: '',
|
|
|
model: '',
|
|
|
+ warehouse: '',
|
|
|
date: '',
|
|
|
status: '',
|
|
|
},
|
|
@@ -174,6 +191,13 @@ export default {
|
|
|
queryItem: {},
|
|
|
isShowDetail: false,
|
|
|
isShowExamine: false,
|
|
|
+
|
|
|
+ multipleSelection: [],
|
|
|
+ isShowExamineDialog: false,
|
|
|
+ examineForm: {
|
|
|
+ status: '',
|
|
|
+ remark: '',
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -185,7 +209,9 @@ export default {
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
materialName: this.screenForm.chName,
|
|
|
+ materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
+ correspondName: this.screenForm.warehouse,
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
}
|
|
@@ -213,7 +239,9 @@ export default {
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
materialName: this.screenForm.chName,
|
|
|
+ materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
+ correspondName: this.screenForm.warehouse,
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
};
|
|
@@ -284,6 +312,31 @@ export default {
|
|
|
this.isShowDetail = false;
|
|
|
this.isShowExamine = false;
|
|
|
},
|
|
|
+
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = val;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 打开 批量审批
|
|
|
+ batchExamine() {
|
|
|
+ this.isShowExamineDialog = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 提交 批量审批
|
|
|
+ submitExamineForm() {
|
|
|
+ let ids = this.multipleSelection.map(item => {
|
|
|
+ return item.id;
|
|
|
+ });
|
|
|
+ examineBatch({
|
|
|
+ ids: ids.join(','),
|
|
|
+ examineStatus: this.examineForm.status,
|
|
|
+ approvalRemark: this.examineForm.remark,
|
|
|
+ }).then(res => {
|
|
|
+ this.isShowEditDateDialog = false;
|
|
|
+ this.getList();
|
|
|
+ this.$successMsg('修改成功');
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|