Commit 8bd1cf0d by wangweidong

Merge remote-tracking branch 'origin/dev' into dev

parents 2a1328cf e31a325b
...@@ -307,6 +307,10 @@ export default { ...@@ -307,6 +307,10 @@ export default {
http http
.post('meter/v1/sample/page_sample_quantity_statistics', data) .post('meter/v1/sample/page_sample_quantity_statistics', data)
.then(res => res), .then(res => res),
pageAnnualEntrustDetail: data =>
http
.post('meter/v1/entrust/page_annual_entrust_detail', data)
.then(res => res),
makeCode: data => makeCode: data =>
http http
.post( .post(
......
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
:min-width="item.width?item.width:200" :min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable> :fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row[item.key]}}</span> <span v-if="item.key==='edate'">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
</PTVXETable> </PTVXETable>
......
...@@ -9,17 +9,10 @@ ...@@ -9,17 +9,10 @@
inline onsubmit="return false"> inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="委托单位:" prop="cname"> <Form-item class="search-item" label="委托单位:" prop="cname">
<Input v-model="formObj.cname" @on-enter="_formSearch" placeholder="请输入委托单位" clearable/> <Input v-model="formObj.client" @on-enter="_formSearch" placeholder="请输入委托单位" clearable/>
</Form-item> </Form-item>
<Form-item class="search-item" label="委托编号:" prop="code"> <Form-item class="search-item" label="委托编号:" prop="code">
<Input v-model="formObj.code" @on-enter="_formSearch" placeholder="请输入委托编号" clearable/> <Input v-model="formObj.entrustCode" @on-enter="_formSearch" placeholder="请输入委托编号" clearable/>
</Form-item>
<Form-item class="search-item" label="业务员:" prop="salesman">
<Input v-model="formObj.salesman" @on-enter="_formSearch" placeholder="请输入业务员" clearable/>
</Form-item>
<Form-item class="search-item" label="制单日期:">
<Date-picker @on-change="_signDateChange" v-model="dateList" type="daterange" split-panels
style="width:100%;" placeholder="请选择制单日期"/>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button @click="_formSearch" type="primary">搜索</Button> <Button @click="_formSearch" type="primary">搜索</Button>
...@@ -28,7 +21,7 @@ ...@@ -28,7 +21,7 @@
</Col> </Col>
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" :showSearchBtn="true" @on-result-change="_btnClick" <btn-list :msg="btn" :open="searchOpen" :showSearchBtn="true" @on-result-change="_btnClick"
class="contHide"></btn-list> class="contHide" style="height: 30px;"></btn-list>
</Col> </Col>
<Col span="24"> <Col span="24">
<PTVXETable ref="pageTable" :tableHeight="tableHeight" <PTVXETable ref="pageTable" :tableHeight="tableHeight"
...@@ -53,6 +46,7 @@ ...@@ -53,6 +46,7 @@
</template> </template>
<script> <script>
import { meterSample } from '../../../api'
export default { export default {
data() { data() {
return { return {
...@@ -60,25 +54,22 @@ export default { ...@@ -60,25 +54,22 @@ export default {
showModal: false, showModal: false,
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '委托单位', key: 'cname' }, { title: '委托单位', key: 'client' },
{ title: '委托名称', key: 'name' }, { title: '委托编号', key: 'entrustCode' },
{ title: '委托编号', key: 'code' }, { title: '委托金额', key: 'fee', width: 90 },
{ title: '委托金额', key: 'contractAmount', width: 90 }, { title: '联系人', key: 'person', width: 120 },
{ title: '已收金额', key: 'bereturnedAmount', width: 90 }, { title: '联系电话', key: 'tel', width: 120 },
{ title: '业务员', key: 'salesman', width: 120 }, { title: '委托日期', key: 'edate', width: 120, date: true }
{ title: '制单日期', key: 'ctime', width: 120, date: true },
{ title: '制单人', key: 'uname', width: 120 }
], ],
formObj: { formObj: {
yearMonth: '', entrustDate: undefined,
ctimeBegin: '', client: undefined,
ctimeEnd: '', entrustCode: undefined
cname: '',
code: '',
salesman: ''
}, },
dateList: [], dateList: [],
btn: [{ type: '', id: '', name: '导出' }], btn: [
// { type: '', id: '', name: '导出' }
],
searchOpen: true, searchOpen: true,
selectData: [] selectData: []
} }
...@@ -156,21 +147,28 @@ export default { ...@@ -156,21 +147,28 @@ export default {
}, },
/** *********************************导出合同-end*********************************************/ /** *********************************导出合同-end*********************************************/
_open(data) { _open(data) {
this.modalTitle = data.yearMonth + ' -- 委托列表 ' this.modalTitle = data.entrustDate + ' -- 委托列表 '
this.showModal = true this.showModal = true
this.$refs.formObj.resetFields() this.$refs.formObj.resetFields()
this.formObj.yearMonth = data.yearMonth this.formObj.entrustDate = data.entrustDate
this.formObj.ctimeBegin = '' this.formObj.ctimeBegin = undefined
this.formObj.ctimeEnd = '' this.formObj.ctimeEnd = undefined
this.dateList = [] this.dateList = []
// this._page() this._page()
}, },
_page() { _page: async function() {
this.$refs.pageTable._page( // this.$refs.pageTable._page(
'search-form-details', // 'search-form-details',
'FoodContract/barYearContract', // 'FoodContract/barYearContract',
this.$serializeFormSearch(this.formObj) // this.$serializeFormSearch(this.formObj)
) // )
Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj)
const result = await meterSample.pageAnnualEntrustDetail(this.formObj)
if (result) {
this.$refs.pageTable._hideLoading()
this.getPage = result
}
}, },
_formSearch() { _formSearch() {
this.$refs.pageTable._pageChange(1) this.$refs.pageTable._pageChange(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment