parent
578ffee46d
commit
e984a060be
@ -0,0 +1,156 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog title="选择合同" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||||
|
lock-scroll append-to-body width="1000px">
|
||||||
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||||
|
<el-form @submit.native.prevent>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="合同编码">
|
||||||
|
<el-input v-model="contractCode" placeholder="请输入合同编码查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="合同名称">
|
||||||
|
<el-input v-model="contractName" placeholder="请输入合同名称查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="init()">{{$t('common.search')}}
|
||||||
|
</el-button>
|
||||||
|
<el-button icon="el-icon-refresh-right" @click="refresh()">{{$t('common.reset')}}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
<div class="JNPF-common-search-box-right">
|
||||||
|
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||||
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="init()" />
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<JNPF-table v-loading="listLoading" :data="list" @row-click="rowClick" @row-dblclick="rowdbClick" :border="false" :hasNO="false">
|
||||||
|
<el-table-column width="35">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-radio :label="scope.row.id" v-model="checkedRow.id"> </el-radio>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||||
|
<el-table-column prop="contractCode" width="200" align="center" label="合同编码" />
|
||||||
|
<el-table-column prop="contractName" width="200" align="center" label="合同名称" />
|
||||||
|
<el-table-column label="合同类型" prop="contractType" align="center" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.contractType | dynamicText(contractTypeOptions) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="name" width="200" align="center" label="供应商/客户" />
|
||||||
|
</JNPF-table>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
||||||
|
@pagination="refresh" />
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">{{$t('common.cancelButton')}}</el-button>
|
||||||
|
<el-button type="primary" @click="select()">{{$t('common.confirmButton')}}</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '@/utils/request'
|
||||||
|
import {
|
||||||
|
getDictionaryDataSelector
|
||||||
|
} from '@/api/systemData/dictionary'
|
||||||
|
import {
|
||||||
|
getDataInterfaceRes
|
||||||
|
} from '@/api/systemData/dataInterface'
|
||||||
|
import {
|
||||||
|
GoodsList
|
||||||
|
} from '@/api/extend/order'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
contractTypeOptions: [{ 'fullName': '采购合同', 'id': '0' }, { 'fullName': '销售合同', 'id': '1' }],
|
||||||
|
visible: false,
|
||||||
|
listLoading: true,
|
||||||
|
contractCode: '',
|
||||||
|
contractName: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
checkedRow: {},
|
||||||
|
listQuery: {
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
sort: "desc",
|
||||||
|
sidx: "creatorTime",
|
||||||
|
contractCode: '',
|
||||||
|
contractName: '',
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
checked: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
rowdbClick(row){
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
this.select();
|
||||||
|
},
|
||||||
|
rowClick(row) {
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
},
|
||||||
|
init(param) {
|
||||||
|
this.visible = true
|
||||||
|
this.listLoading = true
|
||||||
|
this.listQuery.name = param.name
|
||||||
|
this.listQuery.contractCode = this.contractCode
|
||||||
|
this.listQuery.contractName = this.contractName
|
||||||
|
this.listQuery.contractType = param.contractType
|
||||||
|
this.listQuery.menuId = param.menuId
|
||||||
|
let listQuery = this.listQuery
|
||||||
|
request({
|
||||||
|
url: `/api/example/ContractFile/getList`,
|
||||||
|
method: 'post',
|
||||||
|
data: listQuery
|
||||||
|
}).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
/* GoodsList(query).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
}) */
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.contractCode = ''
|
||||||
|
this.contractName = ''
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
select() {
|
||||||
|
if (this.checked == '') return
|
||||||
|
this.$emit('refreshDataList', this.checkedRow)
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.checked = val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
>>>.el-dialog__body {
|
||||||
|
height: 70vh;
|
||||||
|
padding: 0 0 10px !important;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.JNPF-common-search-box {
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
.JNPF-common-search-box-right {
|
||||||
|
padding: 10px 10px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,150 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog title="选择客户" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||||
|
lock-scroll append-to-body width="1000px">
|
||||||
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||||
|
<el-form @submit.native.prevent>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="客户编码">
|
||||||
|
<el-input v-model="supplierCd" placeholder="请输入客户编码查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="客户名称">
|
||||||
|
<el-input v-model="supplierNm" placeholder="请输入客户名称查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="init()">{{$t('common.search')}}
|
||||||
|
</el-button>
|
||||||
|
<el-button icon="el-icon-refresh-right" @click="refresh()">{{$t('common.reset')}}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
<div class="JNPF-common-search-box-right">
|
||||||
|
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||||
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="init()" />
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<JNPF-table v-loading="listLoading" :data="list" @row-click="rowClick" @row-dblclick="rowdbClick" :border="false" :hasNO="false">
|
||||||
|
<el-table-column width="35">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-radio :label="scope.row.id" v-model="checkedRow.id"> </el-radio>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||||
|
<el-table-column prop="supplierCd" width="200" align="center" label="客户编码" />
|
||||||
|
<el-table-column prop="supplierNm" width="200" align="center" label="客户名称" />
|
||||||
|
<el-table-column prop="address" width="150" align="center" label="地址" />
|
||||||
|
<el-table-column prop="bankAccount" width="150" align="center" label="银行账号" />
|
||||||
|
</JNPF-table>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
||||||
|
@pagination="refresh" />
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">{{$t('common.cancelButton')}}</el-button>
|
||||||
|
<el-button type="primary" @click="select()">{{$t('common.confirmButton')}}</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '@/utils/request'
|
||||||
|
import {
|
||||||
|
getDictionaryDataSelector
|
||||||
|
} from '@/api/systemData/dictionary'
|
||||||
|
import {
|
||||||
|
getDataInterfaceRes
|
||||||
|
} from '@/api/systemData/dataInterface'
|
||||||
|
import {
|
||||||
|
GoodsList
|
||||||
|
} from '@/api/extend/order'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
primaryUnitOmeasureOptions: [{ 'fullName': '吨', 'id': '0' }, { 'fullName': '千克', 'id': '1' }],
|
||||||
|
visible: false,
|
||||||
|
listLoading: true,
|
||||||
|
supplierCd: '',
|
||||||
|
supplierNm: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
checkedRow: {},
|
||||||
|
listQuery: {
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
sort: "desc",
|
||||||
|
sidx: "creatorTime",
|
||||||
|
supplierCd: '',
|
||||||
|
supplierNm: '',
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
checked: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
rowdbClick(row){
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
this.select();
|
||||||
|
},
|
||||||
|
rowClick(row) {
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
},
|
||||||
|
init() {
|
||||||
|
this.visible = true
|
||||||
|
this.listLoading = true
|
||||||
|
this.listQuery.supplierCd = this.supplierCd
|
||||||
|
this.listQuery.supplierNm = this.supplierNm
|
||||||
|
this.listQuery.menuId = '380358734926336581'
|
||||||
|
let listQuery = this.listQuery
|
||||||
|
request({
|
||||||
|
url: `/api/example/Customer/getList`,
|
||||||
|
method: 'post',
|
||||||
|
data: listQuery
|
||||||
|
}).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
/* GoodsList(query).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
}) */
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.supplierCd = ''
|
||||||
|
this.supplierNm = ''
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
select() {
|
||||||
|
if (this.checked == '') return
|
||||||
|
this.$emit('refreshDataList', this.checkedRow)
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.checked = val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
>>>.el-dialog__body {
|
||||||
|
height: 70vh;
|
||||||
|
padding: 0 0 10px !important;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.JNPF-common-search-box {
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
.JNPF-common-search-box-right {
|
||||||
|
padding: 10px 10px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,155 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog title="选择物料" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||||
|
lock-scroll append-to-body width="1000px">
|
||||||
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||||
|
<el-form @submit.native.prevent>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="物料编码">
|
||||||
|
<el-input v-model="itemCode" placeholder="请输入物料编码查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="物料名称">
|
||||||
|
<el-input v-model="itemName" placeholder="请输入物料名称查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="init()">{{$t('common.search')}}
|
||||||
|
</el-button>
|
||||||
|
<el-button icon="el-icon-refresh-right" @click="refresh()">{{$t('common.reset')}}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
<div class="JNPF-common-search-box-right">
|
||||||
|
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||||
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="init()" />
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<JNPF-table v-loading="listLoading" :data="list" @row-click="rowClick" @row-dblclick="rowdbClick" :border="false" :hasNO="false">
|
||||||
|
<el-table-column width="35">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-radio :label="scope.row.id" v-model="checkedRow.id"> </el-radio>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||||
|
<el-table-column prop="itemCode" width="200" align="center" label="物料编码" />
|
||||||
|
<el-table-column prop="itemName" width="200" align="center" label="物料名称" />
|
||||||
|
<el-table-column label="单位" prop="primaryUnitOmeasure" align="center" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.primaryUnitOmeasure | dynamicText(primaryUnitOmeasureOptions) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="inArea" width="150" align="center" label="默认入库区" />
|
||||||
|
<el-table-column prop="outArea" width="150" align="center" label="默认出库区" />
|
||||||
|
</JNPF-table>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
||||||
|
@pagination="refresh" />
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">{{$t('common.cancelButton')}}</el-button>
|
||||||
|
<el-button type="primary" @click="select()">{{$t('common.confirmButton')}}</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '@/utils/request'
|
||||||
|
import {
|
||||||
|
getDictionaryDataSelector
|
||||||
|
} from '@/api/systemData/dictionary'
|
||||||
|
import {
|
||||||
|
getDataInterfaceRes
|
||||||
|
} from '@/api/systemData/dataInterface'
|
||||||
|
import {
|
||||||
|
GoodsList
|
||||||
|
} from '@/api/extend/order'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
primaryUnitOmeasureOptions: [{ 'fullName': '吨', 'id': '0' }, { 'fullName': '千克', 'id': '1' }],
|
||||||
|
visible: false,
|
||||||
|
listLoading: true,
|
||||||
|
itemCode: '',
|
||||||
|
itemName: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
checkedRow: {},
|
||||||
|
listQuery: {
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
sort: "desc",
|
||||||
|
sidx: "creatorTime",
|
||||||
|
itemCode: '',
|
||||||
|
itemName: '',
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
checked: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
rowdbClick(row){
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
this.select();
|
||||||
|
},
|
||||||
|
rowClick(row) {
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
},
|
||||||
|
init() {
|
||||||
|
this.visible = true
|
||||||
|
this.listLoading = true
|
||||||
|
this.listQuery.itemCode = this.itemCode
|
||||||
|
this.listQuery.itemName = this.itemName
|
||||||
|
this.listQuery.menuId = '380611389670053189'
|
||||||
|
let listQuery = this.listQuery
|
||||||
|
request({
|
||||||
|
url: `/api/example/Material/getList`,
|
||||||
|
method: 'post',
|
||||||
|
data: listQuery
|
||||||
|
}).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
/* GoodsList(query).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
}) */
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.itemCode = ''
|
||||||
|
this.itemName = ''
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
select() {
|
||||||
|
if (this.checked == '') return
|
||||||
|
this.$emit('refreshDataList', this.checkedRow)
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.checked = val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
>>>.el-dialog__body {
|
||||||
|
height: 70vh;
|
||||||
|
padding: 0 0 10px !important;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.JNPF-common-search-box {
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
.JNPF-common-search-box-right {
|
||||||
|
padding: 10px 10px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,148 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog title="选择业务员2" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||||
|
lock-scroll append-to-body width="1000px">
|
||||||
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||||
|
<el-form @submit.native.prevent>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="业务员2名称">
|
||||||
|
<el-input v-model="name" placeholder="请输入业务员2名称查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="业务员2手机号">
|
||||||
|
<el-input v-model="contact" placeholder="请输入业务员2手机号查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="init()">{{$t('common.search')}}
|
||||||
|
</el-button>
|
||||||
|
<el-button icon="el-icon-refresh-right" @click="refresh()">{{$t('common.reset')}}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
<div class="JNPF-common-search-box-right">
|
||||||
|
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||||
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="init()" />
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<JNPF-table v-loading="listLoading" :data="list" @row-click="rowClick" @row-dblclick="rowdbClick" :border="false" :hasNO="false">
|
||||||
|
<el-table-column width="35">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-radio :label="scope.row.id" v-model="checkedRow.id"> </el-radio>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||||
|
<el-table-column prop="name" width="200" align="center" label="业务员2名称" />
|
||||||
|
<el-table-column prop="contact" width="200" align="center" label="业务员2手机号" />
|
||||||
|
<el-table-column prop="adress" align="center" label="业务员2地址" />
|
||||||
|
</JNPF-table>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
||||||
|
@pagination="refresh" />
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">{{$t('common.cancelButton')}}</el-button>
|
||||||
|
<el-button type="primary" @click="select()">{{$t('common.confirmButton')}}</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '@/utils/request'
|
||||||
|
import {
|
||||||
|
getDictionaryDataSelector
|
||||||
|
} from '@/api/systemData/dictionary'
|
||||||
|
import {
|
||||||
|
getDataInterfaceRes
|
||||||
|
} from '@/api/systemData/dataInterface'
|
||||||
|
import {
|
||||||
|
GoodsList
|
||||||
|
} from '@/api/extend/order'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
listLoading: true,
|
||||||
|
contact: '',
|
||||||
|
name: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
checkedRow: {},
|
||||||
|
listQuery: {
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
sort: "desc",
|
||||||
|
sidx: "creatorTime",
|
||||||
|
contact: '',
|
||||||
|
name: '',
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
checked: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
rowdbClick(row){
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
this.select();
|
||||||
|
},
|
||||||
|
rowClick(row) {
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
},
|
||||||
|
init() {
|
||||||
|
this.visible = true
|
||||||
|
this.listLoading = true
|
||||||
|
this.listQuery.contact = this.contact
|
||||||
|
this.listQuery.name = this.name
|
||||||
|
this.listQuery.menuId = '390421844370438021'
|
||||||
|
let listQuery = this.listQuery
|
||||||
|
request({
|
||||||
|
url: `/api/example/Jg_natural/getList`,
|
||||||
|
method: 'post',
|
||||||
|
data: listQuery
|
||||||
|
}).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
/* GoodsList(query).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
}) */
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.contact = ''
|
||||||
|
this.name = ''
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
select() {
|
||||||
|
if (this.checked == '') return
|
||||||
|
this.$emit('refreshDataList', this.checkedRow)
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.checked = val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
>>>.el-dialog__body {
|
||||||
|
height: 70vh;
|
||||||
|
padding: 0 0 10px !important;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.JNPF-common-search-box {
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
.JNPF-common-search-box-right {
|
||||||
|
padding: 10px 10px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,149 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog title="选择车辆" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||||
|
lock-scroll append-to-body width="1000px">
|
||||||
|
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||||
|
<el-form @submit.native.prevent>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="车牌号">
|
||||||
|
<el-input v-model="ticketno" placeholder="请输入车牌号查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label="司机名称">
|
||||||
|
<el-input v-model="drivername" placeholder="请输入司机名称查询" clearable @keyup.enter.native="init()" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="init()">{{$t('common.search')}}
|
||||||
|
</el-button>
|
||||||
|
<el-button icon="el-icon-refresh-right" @click="refresh()">{{$t('common.reset')}}
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
<div class="JNPF-common-search-box-right">
|
||||||
|
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||||
|
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="init()" />
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<JNPF-table v-loading="listLoading" :data="list" @row-click="rowClick" @row-dblclick="rowdbClick" :border="false" :hasNO="false">
|
||||||
|
<el-table-column width="35">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-radio :label="scope.row.id" v-model="checkedRow.id"> </el-radio>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||||
|
<el-table-column prop="ticketno" width="200" align="center" label="车牌号" />
|
||||||
|
<el-table-column prop="drivername" align="center" label="司机名称" />
|
||||||
|
<el-table-column prop="contact" width="150" align="center" label="手机号" />
|
||||||
|
</JNPF-table>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
||||||
|
@pagination="refresh" />
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">{{$t('common.cancelButton')}}</el-button>
|
||||||
|
<el-button type="primary" @click="select()">{{$t('common.confirmButton')}}</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import request from '@/utils/request'
|
||||||
|
import {
|
||||||
|
getDictionaryDataSelector
|
||||||
|
} from '@/api/systemData/dictionary'
|
||||||
|
import {
|
||||||
|
getDataInterfaceRes
|
||||||
|
} from '@/api/systemData/dataInterface'
|
||||||
|
import {
|
||||||
|
GoodsList
|
||||||
|
} from '@/api/extend/order'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
primaryUnitOmeasureOptions: [{ 'fullName': '吨', 'id': '0' }, { 'fullName': '千克', 'id': '1' }],
|
||||||
|
visible: false,
|
||||||
|
listLoading: true,
|
||||||
|
ticketno: '',
|
||||||
|
drivername: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
checkedRow: {},
|
||||||
|
listQuery: {
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
sort: "desc",
|
||||||
|
sidx: "creatorTime",
|
||||||
|
ticketno: '',
|
||||||
|
drivername: '',
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
checked: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
rowdbClick(row){
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
this.select();
|
||||||
|
},
|
||||||
|
rowClick(row) {
|
||||||
|
this.checked = row.id
|
||||||
|
this.checkedRow = row
|
||||||
|
},
|
||||||
|
init() {
|
||||||
|
this.visible = true
|
||||||
|
this.listLoading = true
|
||||||
|
this.listQuery.ticketno = this.ticketno
|
||||||
|
this.listQuery.drivername = this.drivername
|
||||||
|
this.listQuery.menuId = '380662313734134341'
|
||||||
|
let listQuery = this.listQuery
|
||||||
|
request({
|
||||||
|
url: `/api/example/Vehicle/getList`,
|
||||||
|
method: 'post',
|
||||||
|
data: listQuery
|
||||||
|
}).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
/* GoodsList(query).then(res => {
|
||||||
|
this.list = res.data.list
|
||||||
|
this.total = res.data.pagination.total
|
||||||
|
this.listLoading = false
|
||||||
|
}) */
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.ticketno = ''
|
||||||
|
this.drivername = ''
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
select() {
|
||||||
|
if (this.checked == '') return
|
||||||
|
this.$emit('refreshDataList', this.checkedRow)
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.checked = val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
>>>.el-dialog__body {
|
||||||
|
height: 70vh;
|
||||||
|
padding: 0 0 10px !important;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.JNPF-common-search-box {
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
.JNPF-common-search-box-right {
|
||||||
|
padding: 10px 10px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue