|
@@ -6,12 +6,12 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="姓名">
|
|
|
- <a-input id="salesmanList-supplierName" v-model.trim="queryParam.name" allowClear placeholder="请输入供应商名称"/>
|
|
|
+ <a-input id="salesmanList-supplierName" v-model.trim="queryParam.name" allowClear placeholder="请输入姓名"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="状态">
|
|
|
- <v-select code="FLAG" id="salesmanList-enableFlag" v-model="queryParam.enableFlag" allowClear placeholder="请选择状态"></v-select>
|
|
|
+ <v-select code="ENABLE_FLAG" id="salesmanList-enableFlag" v-model="queryParam.enableFlag" allowClear placeholder="请选择状态"></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -87,7 +87,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
-import { employeeList, employeeAudit } from '@/api/salesman'
|
|
|
+import { employeeList } from '@/api/salesman'
|
|
|
import salesmanEditModal from './editModal.vue'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
export default {
|
|
@@ -107,11 +107,11 @@ export default {
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
{ title: '姓名', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '性别', dataIndex: 'sex', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '性别', dataIndex: 'sexDictValue', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '联系电话', dataIndex: 'mobile', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '入职日期', dataIndex: 'entryDate', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '状态', dataIndex: 'enabledFlagDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '状态', dataIndex: 'enableFlagDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
@@ -141,8 +141,13 @@ export default {
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
- this.queryParam.supplierName = ''
|
|
|
- this.queryParam.enabledFlag = undefined
|
|
|
+ this.$refs.rangeDate.resetDate()
|
|
|
+ this.queryParam = { // 查询条件
|
|
|
+ beginDate: '',
|
|
|
+ endDate: '',
|
|
|
+ name: '', // 姓名
|
|
|
+ enableFlag: undefined // 状态
|
|
|
+ }
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 新增/编辑
|
|
@@ -159,30 +164,30 @@ export default {
|
|
|
}
|
|
|
this.openModal = true
|
|
|
},
|
|
|
- // 通过
|
|
|
- handleSend (row) {
|
|
|
- const _this = this
|
|
|
- this.$confirm({
|
|
|
- title: '提示',
|
|
|
- content: '审核通过后该类型名称不能更改,确定审核通过该类型名称?',
|
|
|
- centered: true,
|
|
|
- closable: true,
|
|
|
- onOk () {
|
|
|
- _this.spinning = true
|
|
|
- employeeAudit({
|
|
|
- salesBillSn: row.id
|
|
|
- }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- _this.$message.success(res.message)
|
|
|
- _this.$refs.table.refresh()
|
|
|
- _this.spinning = false
|
|
|
- } else {
|
|
|
- _this.spinning = false
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // // 通过
|
|
|
+ // handleSend (row) {
|
|
|
+ // const _this = this
|
|
|
+ // this.$confirm({
|
|
|
+ // title: '提示',
|
|
|
+ // content: '审核通过后该类型名称不能更改,确定审核通过该类型名称?',
|
|
|
+ // centered: true,
|
|
|
+ // closable: true,
|
|
|
+ // onOk () {
|
|
|
+ // _this.spinning = true
|
|
|
+ // employeeAudit({
|
|
|
+ // salesBillSn: row.id
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.status == 200) {
|
|
|
+ // _this.$message.success(res.message)
|
|
|
+ // _this.$refs.table.refresh()
|
|
|
+ // _this.spinning = false
|
|
|
+ // } else {
|
|
|
+ // _this.spinning = false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
// 关闭弹框
|
|
|
closeModal () {
|
|
|
this.itemId = ''
|