|
@@ -65,8 +65,20 @@
|
|
|
<el-input v-model="screenForm.examineMan" placeholder="请输入审核人"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="业务员" prop="salesMan">
|
|
|
+ <el-select v-model="screenForm.salesMan" placeholder="选择业务员" size="small" clearable filterable style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in salesmanList"
|
|
|
+ :key="item.adminUserId"
|
|
|
+ :label="item.nickName"
|
|
|
+ :value="item.adminUserId">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :xs="24" :sm="12" :lg="18" class="tr">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="12" class="tr">
|
|
|
<el-form-item label="">
|
|
|
<el-button size="small" @click="resetScreenForm">清空</el-button>
|
|
|
<el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
|
|
@@ -147,7 +159,7 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
@click="toForm(scope.row)"
|
|
|
- v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'OK')">
|
|
|
+ v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
<el-button
|
|
@@ -199,6 +211,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getEnginList, applyEngin, withdrawEngin, deleteEngin, editDateEngin } from "@/api/supply/engin";
|
|
|
+import { getSalesmanList } from '@/api/common'
|
|
|
import EnginDetail from "@/views/supply/engin/components/engin_detail";
|
|
|
import EnginForm from "@/views/supply/engin/components/engin_form";
|
|
|
import EnginExamine from "@/views/supply/engin/components/engin_examine";
|
|
@@ -236,6 +249,7 @@ export default {
|
|
|
createMan: '',
|
|
|
examineMan: '',
|
|
|
status: [],
|
|
|
+ salesMan: '',
|
|
|
},
|
|
|
statusList: [
|
|
|
{ label: '已保存', value: 'SAVE' },
|
|
@@ -244,6 +258,7 @@ export default {
|
|
|
{ label: '审核驳回', value: 'FAIL' },
|
|
|
{ label: '已关闭', value: 'CLOSE' },
|
|
|
],
|
|
|
+ salesmanList: [],
|
|
|
|
|
|
queryItem: {},
|
|
|
isShowDetail: false,
|
|
@@ -272,6 +287,7 @@ export default {
|
|
|
createName: this.screenForm.createMan,
|
|
|
confirmName: this.screenForm.examineMan,
|
|
|
examineStatus: this.screenForm.status.join(','),
|
|
|
+ serviceId: this.screenForm.salesMan,
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -281,10 +297,23 @@ export default {
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
+ this.getSalesmanList();
|
|
|
this.getList();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ // 获取业务员列表
|
|
|
+ getSalesmanList() {
|
|
|
+ getSalesmanList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ isCustomer: 0,
|
|
|
+ status: true,
|
|
|
+ }).then(res => {
|
|
|
+ this.salesmanList = res.data.records;
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
// 查询列表
|
|
|
getList() {
|
|
|
this.listLoading = true;
|
|
@@ -303,6 +332,7 @@ export default {
|
|
|
createName: this.screenForm.createMan,
|
|
|
confirmName: this.screenForm.examineMan,
|
|
|
examineStatus: this.screenForm.status.join(','),
|
|
|
+ serviceId: this.screenForm.salesMan,
|
|
|
};
|
|
|
getEnginList(params).then((res) => {
|
|
|
res.data.records.forEach(item => {
|