Commit d6f0e7e2 by wangweidong

整体优化

parent 11229cc7
...@@ -38,10 +38,16 @@ ...@@ -38,10 +38,16 @@
<Input v-model="formObj.operation.email" name="operation.email" placeholder="请输入E-mail"/> <Input v-model="formObj.operation.email" name="operation.email" placeholder="请输入E-mail"/>
</Form-item> </Form-item>
<Form-item label="委托日期:" prop="edate" class="width-48"> <Form-item label="委托日期:" prop="edate" class="width-48">
<!-- <Input v-model="formObj.edate" name="edate" placeholder="请输入联系人"/>--> <Date-picker type="date" v-model="formObj.edate" split-panels style="width:100%;" placeholder="请选择委托日期"
<Date-picker type="date" split-panels style="width:100%;" placeholder="请选择委托日期"
@on-change="_ctimeChange"></Date-picker> @on-change="_ctimeChange"></Date-picker>
</Form-item> </Form-item>
<Form-item label="要求完成日期:" prop="odate" class="width-48">
<Date-picker type="date" v-model="formObj.odate" split-panels style="width:100%;" placeholder="请选择要求完成"
@on-change="_odateChange"></Date-picker>
</Form-item>
<Form-item label="合同号:" prop="contractCode" class="width-48"> <Form-item label="合同号:" prop="contractCode" class="width-48">
<Input v-model="formObj.contractCode" name="contractCode" placeholder="请输入合同号"/> <Input v-model="formObj.contractCode" name="contractCode" placeholder="请输入合同号"/>
</Form-item> </Form-item>
...@@ -191,6 +197,7 @@ export default { ...@@ -191,6 +197,7 @@ export default {
subArea: '', subArea: '',
personCondition: '', personCondition: '',
edate: '', edate: '',
odate: '',
contractCode: '', contractCode: '',
operation: { operation: {
person: '', person: '',
...@@ -287,6 +294,11 @@ export default { ...@@ -287,6 +294,11 @@ export default {
console.log('时间', data) console.log('时间', data)
this.formObj.edate = data this.formObj.edate = data
}, },
_odateChange(data) {
console.log('odate时间', data)
this.formObj.odate = data
},
_backData(data) { _backData(data) {
console.log(typeof this.index) console.log(typeof this.index)
this.getPage.records[this.index].name = data.name this.getPage.records[this.index].name = data.name
...@@ -524,6 +536,7 @@ export default { ...@@ -524,6 +536,7 @@ export default {
this.id = formObj.id this.id = formObj.id
this.formObj = formObj this.formObj = formObj
this._showAddress(formObj) this._showAddress(formObj)
this._showTime(formObj)
this.getPage.records = formObj.sampleList this.getPage.records = formObj.sampleList
console.log(this.formObj) console.log(this.formObj)
}, },
...@@ -571,12 +584,17 @@ export default { ...@@ -571,12 +584,17 @@ export default {
} }
}, },
_showTime(formObj) { _showTime(formObj) {
// 回显资质类型 if (this.formObj.odate === undefined) {
// if (formObj.aptitude !== undefined || '') { this.formObj.odate = ''
// this.formObj.aptitude = formObj.aptitude.split(',') } else {
// } else { this.formObj.odate = new Date(formObj.odate)
// this.formObj.aptitude = [] }
// }
if (this.formObj.edate === undefined) {
this.formObj.edate = ''
} else {
this.formObj.edate = new Date(formObj.edate)
}
}, },
_showAddress(formObj) { _showAddress(formObj) {
this.testedCityData = [] this.testedCityData = []
......
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