|
|
|
|
@ -245,7 +245,7 @@
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目名称
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input v-model="form.name" placeholder="请填写项目名称" style="width: 300px;" />
|
|
|
|
|
<el-input v-model="form.name" @change="checkName" placeholder="请填写项目名称" style="width: 300px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -433,7 +433,8 @@
|
|
|
|
|
import {
|
|
|
|
|
getContract,
|
|
|
|
|
addContrant,
|
|
|
|
|
delContract
|
|
|
|
|
delContract,
|
|
|
|
|
checkContractName
|
|
|
|
|
} from "@/api/contract/contract"
|
|
|
|
|
import {
|
|
|
|
|
getparameter
|
|
|
|
|
@ -931,7 +932,13 @@
|
|
|
|
|
|
|
|
|
|
return m2 == 0 ? m1 : m2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "已用金额",
|
|
|
|
|
prop: 'use_money_total',
|
|
|
|
|
width: 120,
|
|
|
|
|
align: 'right'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1195,6 +1202,12 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//y验证合同的名称是否存在重复
|
|
|
|
|
checkName(e){
|
|
|
|
|
checkContractName({name:e}).then(res=>{
|
|
|
|
|
console.log(res);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
confirmPlanForSearch() {
|
|
|
|
|
this.isShowPlanForSearch = false;
|
|
|
|
|
this.getContracts();
|
|
|
|
|
|