|
@@ -1,7 +1,7 @@
|
|
|
<!-- 合同台账 -->
|
|
|
<template>
|
|
|
<div class="contract">
|
|
|
- <template v-if="!detailVisible && !addOrUpdateVisible && !changeFormVisible && !attachVisible && !noticeChangeVisible">
|
|
|
+ <template v-if="!detailVisible && !addOrUpdateVisible && !changeFormVisible &&!changeAttachVisible && !attachVisible && !noticeChangeAttachVisible">
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
|
|
|
<el-form-item label="名称">
|
|
|
<el-input v-model="dataForm.customerName" placeholder="客户名称" clearable/>
|
|
@@ -115,7 +115,7 @@
|
|
|
align="center"
|
|
|
label="合同更改通知单附件">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button :disabled="!scope.row.noticeAttachList || scope.row.noticeAttachList.length === 0" type="text" size="small" @click="attachDetails(scope.row)">查看</el-button>
|
|
|
+ <el-button :disabled="!scope.row.noticeAttachList || scope.row.noticeAttachList.length === 0" type="text" size="small" @click="changeDetails(scope.row)">查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -152,11 +152,9 @@
|
|
|
<!-- 弹窗, 新增 / 修改 -->
|
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @onChose="onChose"></add-or-update>
|
|
|
<detail v-if="detailVisible" ref="detail" @onChose="onChose"/>
|
|
|
-<!-- <crafts-detail v-if="craftsVisible" ref="craftsDetail" @onChose="onChose"/>-->
|
|
|
-<!-- <product-draw-detail v-if="drawVisible" ref="drawDetail" @onChose="onChose"/>-->
|
|
|
-<!-- <attach-detail v-if="changeVisible" ref="changeDetail" @onChose="onChose"/>-->
|
|
|
+ <attach-detail v-if="changeAttachVisible" ref="changeDetail" @onChose="onChose"/>
|
|
|
<attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose"/>
|
|
|
- <notice-change-setting v-if="noticeChangeVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
|
+ <notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
|
<change-form v-if="changeFormVisible" ref="changeForm" @refreshDataList="getDataList" @onChose="onChose"/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -165,8 +163,6 @@
|
|
|
import AddOrUpdate from './contract-record-add-or-update'
|
|
|
import Detail from './contract-record-detail'
|
|
|
import { getCusContractBookList } from '@/api/cus'
|
|
|
-// import CraftsDetail from './crafts-detail'
|
|
|
-// import ProductDrawDetail from './product-draw-detail'
|
|
|
import AttachDetail from '../common/attach-detail'
|
|
|
import NoticeChangeSetting from './contract-record-notice-change-setting'
|
|
|
import ChangeForm from './contract-record-change'
|
|
@@ -174,11 +170,8 @@ export default {
|
|
|
name: 'contract-record',
|
|
|
components: {
|
|
|
AttachDetail,
|
|
|
- // ProductDrawDetail,
|
|
|
- // CraftsDetail,
|
|
|
AddOrUpdate,
|
|
|
Detail,
|
|
|
- // Detail,
|
|
|
NoticeChangeSetting,
|
|
|
ChangeForm
|
|
|
},
|
|
@@ -187,7 +180,8 @@ export default {
|
|
|
addOrUpdateVisible: false,
|
|
|
detailVisible: false,
|
|
|
attachVisible: false,
|
|
|
- noticeChangeVisible: false,
|
|
|
+ changeAttachVisible: false,
|
|
|
+ noticeChangeAttachVisible: false,
|
|
|
changeFormVisible: false,
|
|
|
dataForm: {},
|
|
|
dataList: [],
|
|
@@ -206,8 +200,9 @@ export default {
|
|
|
this.addOrUpdateVisible = false
|
|
|
this.attachVisible = false
|
|
|
this.detailVisible = false
|
|
|
- this.noticeChangeVisible = false
|
|
|
+ this.noticeChangeAttachVisible = false
|
|
|
this.changeFormVisible = false
|
|
|
+ this.changeAttachVisible = false
|
|
|
},
|
|
|
// 查询
|
|
|
search () {
|
|
@@ -310,16 +305,16 @@ export default {
|
|
|
},
|
|
|
// 变更通知人设置
|
|
|
setNoticeChangeHandel () {
|
|
|
- this.noticeChangeVisible = true
|
|
|
+ this.noticeChangeAttachVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.noticeChangeSetting.init()
|
|
|
})
|
|
|
},
|
|
|
// 产品更改通知单
|
|
|
changeDetails (row) {
|
|
|
- this.changeVisible = true
|
|
|
+ this.changeAttachVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.changeDetail.init(row.noticeChangeRecord.attachList)
|
|
|
+ this.$refs.changeDetail.init(row.noticeAttachList)
|
|
|
})
|
|
|
},
|
|
|
// 附件
|