1、新增黄页

2、新增学堂
3、其他调整、修改
This commit is contained in:
2023-12-04 01:32:33 +08:00
parent 78f89f2673
commit 16ebffc27e
50 changed files with 2724 additions and 1325 deletions
+34 -12
View File
@@ -5,7 +5,7 @@
<view class="w-1200">
<el-row :gutter="20">
<el-col :span="6">
<el-menu @select="menuSelect" default-active="0" class="el-menu-vertical-demo">
<el-menu @select="menuSelect" :default-active="menuIndex" class="el-menu-vertical-demo">
<el-menu-item index="0">
<i class="el-icon-edit"></i>
<span slot="title">待创建</span>
@@ -91,7 +91,7 @@
{{item._add_time_str}}到期,到期将无法签署合同
</view> -->
<view class="">
<el-button
<el-button @click.native="changeContract(item.contract)"
v-if="item.contract.status == 1 && item.contract.userId == vk.getVuex('$user.userInfo._id')"
size="mini" type="primary">修改合同内容
</el-button>
@@ -129,6 +129,7 @@ export default {
data() {
return {
pageIndex: 1,
menuIndex: '0',
formData: {
status: 0,
tradeMethod: null
@@ -138,12 +139,18 @@ export default {
form1: {
// 表单请求数据,此处可以设置默认值
data: {
contractId: ''
contractId: '',
signEndDate: '',
title: '',
contractFile: '',
buyerSignKeyword: '',
sellerSignKeyword: '',
otherFile: '',
},
// 表单属性
props: {
// 表单请求地址
action: "client/contract/kh/launch",
action: 'client/contract/kh/launch',
// 表单字段显示规则
columns: [{
key: "title",
@@ -232,11 +239,12 @@ export default {
},
methods: {
menuSelect(e) {
this.menuIndex = String(e)
this.formData.status = Number(e)
this.query(1)
},
async query(pageIndex) {
const tableData = await vk.callFunction({
this.tableData = await vk.callFunction({
url: 'client/contract/kh/getList',
title: '请求中...',
data: {
@@ -246,24 +254,38 @@ export default {
},
});
// tableData.rows.forEach(item => {
// })
this.tableData = tableData
},
/**
* @param {Object} item
* 创建合同
* @param contract
*/
createContract(contract) {
this.form1.data.contractId = contract._id
this.form1.props.action = 'client/contract/kh/launch'
this.form1.props.show = true
},
async changeContract(contract){
this.form1.data.contractId = contract._id
const res = await vk.callFunction({
url: 'client/contract/kh/getDetail',
title: '请求中...',
data: {
contractId: contract._id
},
});
this.form1.data.signEndDate = res.signEndDate
this.form1.data.title = res.docTitle
this.form1.data.contractFile = res.contractBase
this.form1.data.buyerSignKeyword = res.buyerSignKeyword
this.form1.data.sellerSignKeyword = res.sellerSignKeyword
this.form1.data.otherFile = res.otherFile
this.form1.props.show = true
},
onFormSuccess() {
this.form1.props.show = false
this.form1.data.contractId = null
this.formData.status = 1
this.menuIndex = '1'
this.query(1)
},
/**