Commit 3a012504 by lichengming

修改了送出检管理合同号弹出框

parent c3a0a7da
<template>
<div>
<div >
<header-menu :crumbs="crumbsList" @on-result-change="_headerMenuResult"/>
<div class="iview-layout-nuxt" :class="{'shrink-iview-layout-nuxt':isShrink}">
<div v-if="show" :class="{'shrink-iview-layout-nuxt':isShrink}" class="iview-layout-nuxt">
<nuxt />
</div>
</div>
......@@ -18,7 +18,8 @@ export default {
data() {
return {
isShrink: false,
crumbsList: []
crumbsList: [],
show: false
}
},
watch: {
......@@ -27,6 +28,7 @@ export default {
}
},
mounted() {
this.show = true
this._setBreadCrumb(this.$route)
this._initLoad()
},
......
......@@ -83,17 +83,30 @@
<script>
// import { meterAptitude } from '../../../api'
import { meterManage } from '../../../api'
import { meterContract } from '../../../api'
export default {
name: 'EditModal',
data() {
return {
formObj: {
client: undefined,
salesCode: undefined
},
loading: true,
pageParams: { rows: 20 },
pageColumns: [
{ title: '样品名称', key: 'name' },
{ title: '检定依据', key: 'code' },
{ title: '检定依据名称', key: 'basis' }
{ title: '合同编号', key: 'salesCode', width: 120 },
{ title: '委托单位', key: 'client', width: 200 },
{ title: '联系人', key: 'person', width: 120 },
{ title: '联系电话', key: 'tel', width: 120 }
// { title: '传真', key: 'fax', width: 120 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '登记日期', key: 'edate', width: 120, date: true },
// { title: '要求完成时间', key: 'odate', width: 120, date: true },
// { title: '折扣', key: 'discount', width: 120 },
// { title: '总价', key: 'totalPrice', width: 120 },
// { title: '折扣价', key: 'discountPrice', width: 120 },
// { title: '备注', key: 'remark' }
],
getPage: [],
showUserGroupModal: false,
......@@ -115,10 +128,18 @@ export default {
this.currentRowData = {}
this._page()
},
// _page: async function() {
// const result = await meterManage.page(this._searchParams())
// if (result) {
// this.getPage = result.records
// this.loading = false
// }
// },
_page: async function() {
const result = await meterManage.page(this._searchParams())
const result = await meterContract.pageContractReviewHis(this.formObj)
if (result) {
this.getPage = result.records
console.log(this.getPage)
this.loading = false
}
},
......
......@@ -457,6 +457,21 @@ export default {
},
_backContract(data) {
console.log(data)
this.formObj.client = data.client
this.formObj.operation.person = data.person
this.formObj.operation.tel = data.tel
this.formObj.operation.fax = data.fax
if (data.province) {
this.testedCityData = [data.province, data.city, data.county]
this.formObj.province = data.province
this.formObj.city = data.city
this.formObj.county = data.county
}
this.formObj.street = data.street
this.formObj.edate = new Date(data.edate)
this.formObj.odate = new Date(data.odate)
this.formObj.contractCode = data.salesCode
this.formObj.operation.fee = data.totalPrice
},
_selectjudgeBasis(index) {
this.index = index
......
<template>
<div>
<Modal v-model="showUserGroupModal">
<Modal v-model="showUserGroupModal" width="600">
<p slot="header">
{{ modalTitle }}
</p>
......@@ -83,17 +83,30 @@
<script>
// import { meterAptitude } from '../../../api'
import { meterManage } from '../../../api'
import { meterContract } from '../../../api'
export default {
name: 'EditModal',
data() {
return {
formObj: {
client: undefined,
salesCode: undefined
},
loading: true,
pageParams: { rows: 20 },
pageColumns: [
{ title: '样品名称', key: 'name' },
{ title: '检定依据', key: 'code' },
{ title: '检定依据名称', key: 'basis' }
{ title: '合同编号', key: 'salesCode', width: 120 },
{ title: '委托单位', key: 'client', width: 200 },
{ title: '联系人', key: 'person', width: 120 },
{ title: '联系电话', key: 'tel', width: 120 }
// { title: '传真', key: 'fax', width: 120 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '登记日期', key: 'edate', width: 120, date: true },
// { title: '要求完成时间', key: 'odate', width: 120, date: true },
// { title: '折扣', key: 'discount', width: 120 },
// { title: '总价', key: 'totalPrice', width: 120 },
// { title: '折扣价', key: 'discountPrice', width: 120 },
// { title: '备注', key: 'remark' }
],
getPage: [],
showUserGroupModal: false,
......@@ -116,9 +129,10 @@ export default {
this._page()
},
_page: async function() {
const result = await meterManage.page(this._searchParams())
const result = await meterContract.pageContractReviewHis(this.formObj)
if (result) {
this.getPage = result.records
console.log(this.getPage)
this.loading = false
}
},
......
......@@ -49,7 +49,6 @@
<Date-picker v-model="formObj.odate" @on-change="_odateChange" type="date" split-panels style="width:100%;"
placeholder="请选择要求完成日期"></Date-picker>
</Form-item>
<Form-item label="合同号:" prop="contractCode" class="width-96">
<Input v-model="formObj.contractCode" name="contractCode" placeholder="请输入合同号" style="width: 495px;"/>
<span @click="_selectcontractCode" style="font-size: 20px;color: #00b5ec;cursor: pointer" class="">+</span>
......@@ -459,6 +458,21 @@ export default {
},
_backContract(data) {
console.log(data)
this.formObj.client = data.client
this.formObj.operation.person = data.person
this.formObj.operation.tel = data.tel
this.formObj.operation.fax = data.fax
if (data.province) {
this.testedCityData = [data.province, data.city, data.county]
this.formObj.province = data.province
this.formObj.city = data.city
this.formObj.county = data.county
}
this.formObj.street = data.street
this.formObj.edate = new Date(data.edate)
this.formObj.odate = new Date(data.odate)
this.formObj.contractCode = data.salesCode
this.formObj.operation.fee = data.totalPrice
},
_add() {
const data = {
......@@ -690,6 +704,7 @@ export default {
this.formObj.odate = ''
} else {
this.formObj.odate = new Date(formObj.odate)
console.log('转换格式后的时间', this.formObj.odate)
}
if (this.formObj.edate === undefined) {
......
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