|
|
|
@ -10,7 +10,7 @@
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目名称
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目名称
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
<el-input clearable placeholder="请填写项目名称" v-model="detail.name" style="width: 300px;" />
|
|
|
|
<el-input clearable placeholder="请填写项目名称" @change="checkName" v-model="detail.name" style="width: 300px;" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@ -198,7 +198,8 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
editorContract,
|
|
|
|
editorContract,
|
|
|
|
detailContract
|
|
|
|
detailContract,
|
|
|
|
|
|
|
|
checkContractName
|
|
|
|
} from "@/api/contract/contract";
|
|
|
|
} from "@/api/contract/contract";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getBudget
|
|
|
|
getBudget
|
|
|
|
@ -381,7 +382,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (sel) {
|
|
|
|
if (sel) {
|
|
|
|
|
|
|
|
|
|
|
|
let select=sel.map(item => {
|
|
|
|
let select = sel.map(item => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
label: item.name,
|
|
|
|
label: item.name,
|
|
|
|
value: {
|
|
|
|
value: {
|
|
|
|
@ -392,7 +393,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
this.plan = [...this.detail.plan,...select]
|
|
|
|
this.plan = [...this.detail.plan, ...select]
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.plan = this.detail.plan;
|
|
|
|
this.plan = this.detail.plan;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -414,7 +415,7 @@
|
|
|
|
this.plans = res.list.data
|
|
|
|
this.plans = res.list.data
|
|
|
|
this.planTotal = res.list.total
|
|
|
|
this.planTotal = res.list.total
|
|
|
|
|
|
|
|
|
|
|
|
var selPlans = [...this.detail.plan,...this.plan]
|
|
|
|
var selPlans = [...this.detail.plan, ...this.plan]
|
|
|
|
//let selPlans = this.detail.plan.contact([]);
|
|
|
|
//let selPlans = this.detail.plan.contact([]);
|
|
|
|
|
|
|
|
|
|
|
|
console.log(selPlans)
|
|
|
|
console.log(selPlans)
|
|
|
|
@ -428,7 +429,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//默认选择计划
|
|
|
|
//默认选择计划
|
|
|
|
toggleSelection(plans) {
|
|
|
|
toggleSelection(plans) {
|
|
|
|
var selPlans = [...this.detail.plan,...this.plan]
|
|
|
|
var selPlans = [...this.detail.plan, ...this.plan]
|
|
|
|
if (plans) {
|
|
|
|
if (plans) {
|
|
|
|
this.plans.filter(plan => {
|
|
|
|
this.plans.filter(plan => {
|
|
|
|
if (plans.includes(plan.id)) {
|
|
|
|
if (plans.includes(plan.id)) {
|
|
|
|
@ -476,6 +477,10 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.plan = this.detail.plan
|
|
|
|
this.plan = this.detail.plan
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//y验证合同的名称是否存在重复
|
|
|
|
|
|
|
|
checkName(e) {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
editor() {
|
|
|
|
editor() {
|
|
|
|
editorContract({
|
|
|
|
editorContract({
|
|
|
|
|