|
|
@@ -5,8 +5,8 @@
|
|
|
<el-button ref="btn" size="small" type="primary">新 建</el-button>
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="经销项目">经销项目协议</el-dropdown-item>
|
|
|
- <el-dropdown-item command="直销项目">直销项目协议</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="经销项目" v-if="flag === 1">经销项目协议</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="直销项目" v-if="flag === 2">直销项目协议</el-dropdown-item>
|
|
|
<el-dropdown-item command="居间">居间协议</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
@@ -71,7 +71,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="打印模板:" prop="">
|
|
|
+ <el-form-item label="合同模板:" prop="">
|
|
|
<el-input disabled type="text" size="small" :value="$route.query.type == '框架' ? '经销合作' : $route.query.type"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -134,7 +134,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="打印模板:" prop="">
|
|
|
+ <el-form-item label="合同模板:" prop="">
|
|
|
<el-input disabled type="text" size="small" :value="$route.query.type == '框架' ? '经销合作' : $route.query.type"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -222,7 +222,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="打印模板:" prop="">
|
|
|
+ <el-form-item label="合同模板:" prop="">
|
|
|
<el-input disabled type="text" size="small" :value="$route.query.type == '框架' ? '经销合作' : $route.query.type"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -280,6 +280,7 @@ export default {
|
|
|
accountVisible:false,
|
|
|
modelVisible:false,
|
|
|
concratVisible:false,
|
|
|
+ flag:0,
|
|
|
form: {
|
|
|
"sa_contractid": 0,
|
|
|
"sys_enterpriseid": "",
|
|
|
@@ -389,6 +390,30 @@ export default {
|
|
|
methods:{
|
|
|
closeDrawer () {
|
|
|
},
|
|
|
+ /*标签查询*/
|
|
|
+ async queryTag(){
|
|
|
+ this.flag = 0
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": 20220929085401,
|
|
|
+ "content": {
|
|
|
+ "ownertable":'sa_project',
|
|
|
+ "ownerid":this.data.sa_projectid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(res,"标签数据")
|
|
|
+ if (res.data.datatag.length !== 0){
|
|
|
+ for (let i=0;i<res.data.datatag.length;i++){
|
|
|
+ if (res.data.datatag[i] === '经销'){
|
|
|
+ this.flag = 1
|
|
|
+ break
|
|
|
+ }else if (res.data.datatag[i] === '直销'){
|
|
|
+ this.flag = 2
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(this.flag,"是否经销")
|
|
|
+ },
|
|
|
addBtn (type) {
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.drawer = true
|
|
|
@@ -525,6 +550,7 @@ export default {
|
|
|
created() {
|
|
|
},
|
|
|
mounted () {
|
|
|
+ this.queryTag()
|
|
|
}
|
|
|
}
|
|
|
|