@@ -433,13 +447,14 @@
is_assurance: false,
assurance_money: '',
assurance_expire: '',
- other_tender_name:'',
- project_end_time:'',
- is_acceptance:'',
+ other_tender_name:[],
quotation_situation:'',
audit_situation:'',
+ payment_content:'',
+ project_end_time:'',
+ is_acceptance:'',
change_visa_amount:'',
- payment_content:''
+
},
rules: {
number: [{
@@ -472,7 +487,24 @@
message: '必选'
}],
guaranteeMoney: [],
- guaranteeYear: []
+ guaranteeYear: [],
+ // other_tender_name: [{
+ // required: true,
+ // message: '必填'
+ // }],
+ // quotation_situation: [{
+ // required: true,
+ // message: '必填'
+ // }],
+ // audit_situation: [{
+ // required: true,
+ // message: '必填'
+ // }],
+ // payment_content: [{
+ // required: true,
+ // message: '必填'
+ // }],
+
},
isShow: false,
@@ -559,7 +591,13 @@
this.planMonthLists()
},
-
+ // 签订合同
+ addRow() {
+ this.form.other_tender_name.push('')
+ },
+ delRow(obj, index) {
+ this.form.other_tender_name.splice(index, 1);
+ },
// 合同签订
sign() {
{
@@ -580,7 +618,51 @@
})
return
}
-
+ console.log("other",this.form.other_tender_name)
+ if(this.contract.is_contract===1){
+ if(this.form.other_tender_name.length<1){
+ this.$Message.warning(`请添加其他投标单位`)
+ return
+ }
+ if(!this.form.quotation_situation){
+ this.$Message.warning(`事前询价情况不能为空`)
+ return
+ }
+ if(!this.form.audit_situation){
+ this.$Message.warning(`事后审计情况不能为空`)
+ return
+ }
+ if(!this.form.payment_content){
+ this.$Message.warning(`合同内的支付条款不能为空`)
+ return
+ }
+ if (this.form.other_tender_name.length > 0) {
+ // 判断属性中是否为空
+ for (var p of this.form.other_tender_name) {
+ if (!p) {
+ this.$Message.warning(`投标单位名称不能为空,请补充或删除`)
+ return
+ }
+ }
+ }
+ }
+
+ if(this.contract.is_end===1){
+ if(!this.form.project_end_time){
+ this.$Message.warning(`项目完成(竣工)时间不能为空`)
+ return
+ }
+ if(!this.form.is_acceptance){
+ this.$Message.warning(`请选择是否验收`)
+ return
+ }
+ if(!this.form.change_visa_amount){
+ this.$Message.warning(`请填写变更签证(增加内容的补充合同)金额`)
+ return
+ }
+ }
+
+ // return
editorContract({
id: this.contractId,
number: this.form.number,
@@ -656,7 +738,8 @@
this.form.guaranteeYear = res.guarantee_year
this.form.is_assurance = res.is_assurance === 1
this.form.assurance_expire = res.assurance_expire
- this.form.assurance_money = res.assurance_money
+ this.form.assurance_money = res.assurance_money
+ this.form.other_tender_name = res.other_tender_name?res.other_tender_name:[]
// 动态设置质保金和质保期校验规则
if (res.contract_type !== 160) {
this.rules.guaranteeMoney = [{
@@ -878,5 +961,10 @@
::v-deep .el-input__inner {
text-align: left;
+ }
+ ::v-deep .other_tender_name_input{
+ display: flex;
+ align-items: center;
+ margin-bottom:5px
}
diff --git a/src/views/contract/components/detailContract.vue b/src/views/contract/components/detailContract.vue
index a849d8c..fcaf3a2 100644
--- a/src/views/contract/components/detailContract.vue
+++ b/src/views/contract/components/detailContract.vue
@@ -55,8 +55,8 @@
签订信息
合同金额
-
{{ moneyFormat(detail.money) }}
-
(元)
+
{{ moneyFormat(detail.money) }}(元)
+
@@ -68,6 +68,40 @@
{{ detail.carry_department }}
+
+
+
+
事前询价情况
+
{{ detail.quotation_situation }}
+
+
+
事后审计情况
+
{{ detail.audit_situation }}
+
+
+
合同内的支付条款
+
{{ detail.payment_content }}
+
+
+
+
+
项目完成(竣工)时间
+
{{detail.project_end_time}}
+
+
+
是否验收
+
{{ detail.is_acceptance }}
+
+
+
变更签证(增加内容的补充合同)金额
+
{{ moneyFormat(detail.change_visa_amount) }}(元)
+
+
付款计划
@@ -506,12 +540,17 @@ export default {
margin-top: 5px;
&-title {
@extend .base-info-item-title;
+ width:160px;
}
&-content {
@extend .base-info-item-content;
+ width:calc(100% - 140px);
+ color:#000;
}
&-unit {
@extend .base-info-item-unit;
+ width:20px;
+ color:#000;
}
}
&-title + .sign-info-item {
diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue
index c66bff0..b304d2a 100644
--- a/src/views/contract/contractList.vue
+++ b/src/views/contract/contractList.vue
@@ -242,7 +242,7 @@
付款登记
-
+
-
+