Commit 3890f930 by lichengming

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

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