|
@@ -38,14 +38,6 @@
|
|
|
|
|
|
|
|
<el-dialog :title="ruleDialogTitle" :visible.sync="ruledialogVisible" width="50%" @open="ruleOpenDialog">
|
|
<el-dialog :title="ruleDialogTitle" :visible.sync="ruledialogVisible" width="50%" @open="ruleOpenDialog">
|
|
|
<el-form :model="localForm" label-width="120px" size="small">
|
|
<el-form :model="localForm" label-width="120px" size="small">
|
|
|
- <el-col :span="24">
|
|
|
|
|
- <el-form-item label="协议选择">
|
|
|
|
|
- <el-select v-model="localForm.agreementId" placeholder="请选择协议" style="width: 100%;">
|
|
|
|
|
- <el-option v-for="item in agreementList" :key="item.id" :label="item.agreementAbbreviation"
|
|
|
|
|
- :value="item.id"></el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="优先级">
|
|
<el-form-item label="优先级">
|
|
|
<el-input v-model="localForm.priority" placeholder="输入优先级"></el-input>
|
|
<el-input v-model="localForm.priority" placeholder="输入优先级"></el-input>
|
|
@@ -62,6 +54,44 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="协议选择">
|
|
|
|
|
+ <el-select v-model="localForm.agreementId" placeholder="请选择协议" style="width: 100%;" @change="agreementChange">
|
|
|
|
|
+ <el-option v-for="item in agreementList" :key="item.id" :label="item.agreementAbbreviation + '-' + item.businessDescription + '-' + item.jobDescription"
|
|
|
|
|
+ :value="item.id"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议代码">
|
|
|
|
|
+ <el-input v-model="agreementInfo.agreementCode" disabled placeholder="请选择协议"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议名称">
|
|
|
|
|
+ <el-input v-model="agreementInfo.agreementTitle" disabled placeholder="请选择协议"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议简称">
|
|
|
|
|
+ <el-input v-model="agreementInfo.agreementAbbreviation" disabled placeholder="请选择协议"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="协议描述">
|
|
|
|
|
+ <el-input v-model="agreementInfo.agreementName" disabled placeholder="请选择协议"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="业务描述">
|
|
|
|
|
+ <el-input v-model="agreementInfo.businessDescription" disabled placeholder="请选择协议"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="工号描述">
|
|
|
|
|
+ <el-input v-model="agreementInfo.jobDescription" disabled placeholder="请选择协议"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col v-for=" (formItems, index) in dynamicFormArray" :key="index" :span="24">
|
|
<el-col v-for=" (formItems, index) in dynamicFormArray" :key="index" :span="24">
|
|
|
<el-form-item :label="formItems.attrName">
|
|
<el-form-item :label="formItems.attrName">
|
|
|
<template v-if="formItems.attrType == 'inputNumber'">
|
|
<template v-if="formItems.attrType == 'inputNumber'">
|
|
@@ -173,6 +203,7 @@ export default {
|
|
|
components: { templateTable, KtCommonTable },
|
|
components: { templateTable, KtCommonTable },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ agreementInfo: {},
|
|
|
treekeys:[],
|
|
treekeys:[],
|
|
|
localForm: {
|
|
localForm: {
|
|
|
agreementId: "",//协议id
|
|
agreementId: "",//协议id
|
|
@@ -320,6 +351,13 @@ export default {
|
|
|
this.findPage();
|
|
this.findPage();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ agreementChange(e) {
|
|
|
|
|
+ this.agreementList.forEach((val, index) => {
|
|
|
|
|
+ if (val.id == e) {
|
|
|
|
|
+ this.agreementInfo = val
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
configuration(row){
|
|
configuration(row){
|
|
|
this.$api.insCompany.schedulingId(row.id).then((res) => {
|
|
this.$api.insCompany.schedulingId(row.id).then((res) => {
|
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
@@ -608,7 +646,7 @@ export default {
|
|
|
this.localForm.insCompanyName = row.name;
|
|
this.localForm.insCompanyName = row.name;
|
|
|
this.dispatchFindPage();
|
|
this.dispatchFindPage();
|
|
|
this.attrQueryList();
|
|
this.attrQueryList();
|
|
|
- this.$api.insCompany.findAgreementByCompanyId({ partnerCompaniesId: row.id }).then((res) => {
|
|
|
|
|
|
|
+ this.$api.insCompany.agreementListInternal({ partnerCompaniesId: row.id }).then((res) => {
|
|
|
if (res.data) {
|
|
if (res.data) {
|
|
|
//清空搜索参数
|
|
//清空搜索参数
|
|
|
this.agreementList = res.data;
|
|
this.agreementList = res.data;
|
|
@@ -616,7 +654,6 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.dispatchdialogVisible = true;
|
|
this.dispatchdialogVisible = true;
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|