|
@@ -19,7 +19,8 @@
|
|
|
<el-form-item>
|
|
|
<el-button @click="search()">查询</el-button>
|
|
|
<el-button v-if="isAuth('pur:purchaseContract:save')" type="primary" @click="addOrUpdateHandle(0)">录入</el-button>
|
|
|
- <el-button v-if="isAuth('cus:contractBook:noteChangeConfig')" type="primary" @click="setNoticeChangeHandel()">变更通知人设置</el-button>
|
|
|
+ <el-button type="primary" @click="exportHandle()">导出</el-button>
|
|
|
+ <el-button type="primary" @click="setNoticeChangeHandle()">合同更改通知人设置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table
|
|
@@ -42,12 +43,12 @@
|
|
|
label="合同编码">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="customerName"
|
|
|
+ prop="supplierName"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
min-width="140"
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
- label="客户名称">
|
|
|
+ label="供应商名称">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="contractNumber"
|
|
@@ -57,14 +58,6 @@
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="合同号">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="reCode"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- min-width="120"
|
|
|
- :show-tooltip-when-overflow="true"
|
|
|
- label="合同评审表编码">
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="deliveryTime"
|
|
|
header-align="center"
|
|
@@ -73,14 +66,6 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
label="合同交期">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="actualDeliveryTime"
|
|
|
- header-align="center"
|
|
|
- align="center"
|
|
|
- min-width="140"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- label="实际交期">
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="totalAmount"
|
|
|
header-align="center"
|
|
@@ -102,6 +87,22 @@
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="更改内容简述">
|
|
|
</el-table-column>
|
|
|
+<!-- <el-table-column-->
|
|
|
+<!-- prop="reCode"-->
|
|
|
+<!-- header-align="center"-->
|
|
|
+<!-- align="center"-->
|
|
|
+<!-- min-width="120"-->
|
|
|
+<!-- :show-tooltip-when-overflow="true"-->
|
|
|
+<!-- label="合同评审表编码">-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+<!-- <el-table-column-->
|
|
|
+<!-- prop="actualDeliveryTime"-->
|
|
|
+<!-- header-align="center"-->
|
|
|
+<!-- align="center"-->
|
|
|
+<!-- min-width="140"-->
|
|
|
+<!-- :show-overflow-tooltip="true"-->
|
|
|
+<!-- label="实际交期">-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
<el-table-column
|
|
|
header-align="center"
|
|
|
align="center"
|
|
@@ -162,7 +163,7 @@
|
|
|
<script>
|
|
|
import AddOrUpdate from '../cus/contract-record-add-or-update'
|
|
|
import Detail from '../cus/contract-record-detail'
|
|
|
-import { getCusContractBookList } from '@/api/cus'
|
|
|
+import { getContractList } from '@/api/sale'
|
|
|
import AttachDetail from '../common/attach-detail'
|
|
|
import NoticeChangeSetting from '../cus/contract-record-notice-change-setting'
|
|
|
import ChangeForm from '../cus/contract-record-change'
|
|
@@ -215,9 +216,9 @@ export default {
|
|
|
let params = {
|
|
|
'current': this.pageIndex,
|
|
|
'size': this.pageSize,
|
|
|
- 'customerName': this.dataForm.customerName ? this.dataForm.customerName : null
|
|
|
+ 'supplierName': this.dataForm.supplierName ? this.dataForm.supplierName : null
|
|
|
}
|
|
|
- getCusContractBookList(params).then(({data}) => {
|
|
|
+ getContractList(params).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|
|
|
this.dataList = data.data.records
|
|
|
this.totalPage = Number(data.data.total)
|
|
@@ -286,16 +287,6 @@ export default {
|
|
|
this.$refs.changeForm.init(id)
|
|
|
})
|
|
|
},
|
|
|
- // 转换属性“产品类别”
|
|
|
- typeFormat (row) {
|
|
|
- if (this.optionsType) {
|
|
|
- for (let i = 0; i < this.optionsType.length; i++) {
|
|
|
- if (this.optionsType[i].code === row.productType) {
|
|
|
- return this.optionsType[i].value
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
// 详情
|
|
|
detailHandle (id) {
|
|
|
this.detailVisible = true
|
|
@@ -304,7 +295,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 变更通知人设置
|
|
|
- setNoticeChangeHandel () {
|
|
|
+ setNoticeChangeHandle () {
|
|
|
this.noticeChangeAttachVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.noticeChangeSetting.init()
|