Commit 09bb5eb1 by lichengming

修改了委托单管理送出检委托单的默认委托日期

parent d713c77b
...@@ -183,6 +183,10 @@ export default { ...@@ -183,6 +183,10 @@ export default {
this._resultChange('提交成功') this._resultChange('提交成功')
} }
}, },
_resultChange(msg) {
this.$Message.success(msg)
this._page()
},
_submitToReview() { _submitToReview() {
this._submitByContractIds('委托评审') this._submitByContractIds('委托评审')
}, },
......
...@@ -654,6 +654,7 @@ export default { ...@@ -654,6 +654,7 @@ export default {
this.formObj.id = '' this.formObj.id = ''
this.formObj.operation.id = '' this.formObj.operation.id = ''
this.modalTitle = '出检委托单登记' this.modalTitle = '出检委托单登记'
this.formObj.edate = new Date()
this.testedCityData = [] this.testedCityData = []
}, },
......
...@@ -6,21 +6,21 @@ ...@@ -6,21 +6,21 @@
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24" style="margin-top: 10px"> <Col span="24" style="margin-top: 10px">
<Form v-show="searchOpen" id="formId" :label-width="90" inline onsubmit="return false"> <Form id="formId" v-show="searchOpen" :label-width="90" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="委托单位:"> <Form-item class="search-item" label="委托单位:">
<Input v-model="formObj.client" name="name" placeholder="请输入委托单位" clearable @on-enter="_formSearch"/> <Input v-model="formObj.client" @on-enter="_formSearch" name="name" placeholder="请输入委托单位" clearable/>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button type="primary" @click="_formSearch">搜索</Button> <Button @click="_formSearch" type="primary">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</Col> </Col>
<!--操作--> <!--操作-->
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide" <btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
@on-result-change="_btnClick"></btn-list> class="contHide"></btn-list>
</Col> </Col>
<!--表格--> <!--表格-->
<Col span="24"> <Col span="24">
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
:fixed="item.fixed?item.fixed:undefined" sortable> :fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span> <span v-if="item.date">{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}}</span>
<span v-if="item.status">{{scope.row[item.key].display}}</span> <span v-else-if="item.status">{{scope.row[item.key].display}}</span>
<span v-else>{{scope.row[item.key]}}</span> <span v-else>{{scope.row[item.key]}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
{ title: '详细地址', key: 'address', width: 250 }, { title: '详细地址', key: 'address', width: 250 },
{ title: '邮编', key: 'postcode' }, { title: '邮编', key: 'postcode' },
{ title: 'E-mail', key: 'email', width: 120 }, { title: 'E-mail', key: 'email', width: 120 },
{ title: '委托日期', key: 'edate', width: 120 }, { title: '委托日期', key: 'edate', width: 120, date: true },
{ title: '费用合计', key: 'fee', width: 120 }, { title: '费用合计', key: 'fee', width: 120 },
{ title: '合同号', key: 'contractCode', width: 120 }, { title: '合同号', key: 'contractCode', width: 120 },
{ title: '备注', key: 'remark' } { title: '备注', key: 'remark' }
......
...@@ -640,6 +640,7 @@ export default { ...@@ -640,6 +640,7 @@ export default {
this.formObj.id = '' this.formObj.id = ''
this.formObj.operation.id = '' this.formObj.operation.id = ''
this.formObj.aptitude = [] this.formObj.aptitude = []
this.formObj.edate = new Date()
this.modalTitle = '送检委托单新增' this.modalTitle = '送检委托单新增'
} else { } else {
this.id = formObj.id this.id = formObj.id
......
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