Commit 3890f930 by lichengming

修改了资质外分包历史记录查看样品

parent 6b56c711
......@@ -133,6 +133,10 @@ export default {
this._page()
},
methods: {
_resultRecord() {
this._page()
this.$emit('on-result-change')
},
_btnClick(msg, componentName) {
this.currentComponent = componentName
this.$nextTick(function() {
......
......@@ -6,21 +6,21 @@
<Row>
<!--查询-->
<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>
<Form-item class="search-item" label="委托单位:">
<Input v-model="formObj.client" name="client" placeholder="请输入委托单位" clearable @on-enter="_formSearch"/>
<Input v-model="formObj.client" @on-enter="_formSearch" name="client" placeholder="请输入委托单位" clearable/>
</Form-item>
<Form-item class="search-btn">
<Button type="primary" @click="_formSearch">搜索</Button>
<Button @click="_formSearch" type="primary">搜索</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick"></btn-list>
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick"
class="contHide"></btn-list>
</Col>
<!--表格-->
<Col span="24">
......@@ -44,14 +44,16 @@
</div>
</div>
<FileManage ref="FileManage"></FileManage>
<MeterSampleManage ref="meterSampleManageModal" @on-result-change="_page"></MeterSampleManage>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div>
</template>
<script>
import { meterSubContract, meterSubcontractor } from '../../../api'
import MeterSampleManage from '../../meter-entrust/MeterSampleManageRead'
import MeterSubcontractorEdit from './MeterCannotSubEdit'
export default {
components: { MeterSubcontractorEdit },
components: { MeterSubcontractorEdit, MeterSampleManage },
data() {
return {
currentComponent: '',
......@@ -69,7 +71,14 @@ export default {
// name: '提交'
// }
],
iconMsg: [{ type: 'md-cloud', id: '', name: '附件' }],
iconMsg: [
{
type: 'md-flask',
id: '',
name: '查看样品'
},
{ type: 'md-cloud', id: '', name: '附件' }
],
formObj: {
client: undefined
},
......@@ -137,6 +146,9 @@ export default {
case '附件':
this._upload(data.id)
break
case '查看样品':
this._sampleManage(data.id)
break
case '删除':
this._deleteByIds([data.id])
break
......@@ -146,6 +158,10 @@ export default {
}
})
},
_sampleManage(data) {
// 管理样品
this.$refs.meterSampleManageModal._open(data)
},
_submitToReview() {
const ids = this.selectIds
if (ids.length === 0) {
......
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