master
xy 3 years ago
parent 9a8b781bcb
commit 2eb85b05ab

@ -84,9 +84,9 @@
<span style="padding: 0 6px;word-break: keep-all;">
预算金额
</span>
<InputNumber v-model="select.start_plan_price" :min="0" placeholder="最小金额" style="width: 100px;"/>
<el-input-number size="small" :controls="false" v-model="select.start_plan_price" :min="0" placeholder="最小金额" style="width: 100px;"/>
<span style="padding: 0 5px;">-</span>
<InputNumber v-model="select.end_plan_price" :min="0" placeholder="最大金额" style="width: 100px;"/>
<el-input-number size="small" :controls="false" v-model="select.end_plan_price" :min="0" placeholder="最大金额" style="width: 100px;"/>
</div>
<div>
@ -159,22 +159,22 @@
<template slot-scope="scope">
<div class="slot-btns">
<template v-if="scope.row.status === 2&&scope.row.is_end===0">
<block v-if="scope.row.is_assurance==1">
<template v-if="scope.row.is_assurance==1">
<!-- 如果是 履约文件-->
<block v-if="scope.row.assurance_status==1">
<template v-if="scope.row.assurance_status==1">
<!-- 那么必须财务审核通过-->
<Button class="slot-btns-item" size="small" type="primary"
@click="$refs['paymentRegistration'].getContract(scope.row),$refs['paymentRegistration'].isShowPaymentRegistration = true">
付款登记
</Button>
</block>
</block>
<block v-else>
</template>
</template>
<template v-else>
<Button class="slot-btns-item" size="small" type="primary"
@click="$refs['paymentRegistration'].getContract(scope.row),$refs['paymentRegistration'].isShowPaymentRegistration = true">
付款登记
</Button>
</block>
</template>
</template>
<template v-if="scope.row.status === 1 && scope.row.join_status === 3">
@ -198,7 +198,7 @@
</Button>
</template>
<template
v-if="scope.row.purchase_status === 1 && ((scope.row.req_status === 3 && scope.row.is_plan === 0)||scope.row.is_plan === 1)&& !scope.row.is_substitute ">
v-if="scope.row.is_simple !== 1 && scope.row.purchase_status === 1 && ((scope.row.req_status === 3 && scope.row.is_plan === 0)||scope.row.is_plan === 1)&& !scope.row.is_substitute ">
<Button class="slot-btns-item" size="small" type="primary" @click="buyProcess(scope.row)">
</Button>
</template>
@ -275,6 +275,16 @@
</div>
</div>
</template>
<template v-slot:money v-if="form.is_simple">
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;font-size: 11px;">*</span>合同金额
</div>
<div class="xy-table-item-content">
<el-input v-model="form.money" placeholder="请填写合同金额" style="width: 300px;"/>
</div>
</div>
</template>
<template v-slot:type v-if="!form.is_simple">
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -523,6 +533,21 @@ export default {
callback()
}
}
var moneyPass = (rule,value,callback) => {
if(this.form.is_simple){
if(value === ''){
callback(new Error('必填'))
}else{
if(/^\d+(\.\d+)?$/.test(value)){
callback()
}else{
callback(new Error('必须为数字'))
}
}
}else{
callback()
}
}
var typePass = (rule,value,callback) => {
if(!this.form.is_simple){
if(value === ''){
@ -571,6 +596,7 @@ export default {
callback()
}
}
return {
userList: ["liuxiangyu", "zhushulan", "admin", "jiangjiao"],
window: {
@ -613,8 +639,8 @@ export default {
year: "",
plan_id: "",
plan_name: "请选择预算计划",
start_plan_price: "",
end_plan_price: ""
start_plan_price: undefined,
end_plan_price: undefined
},
type: [{
label: '服务',
@ -703,7 +729,7 @@ export default {
width: 158,
prop: 'purchase_status',
formatter: (cell, data, value) => {
if (cell.is_substitute) {
if (cell.is_substitute || cell.is_simple) {
return '无'
}
switch (value) {
@ -727,7 +753,7 @@ export default {
width: 145,
prop: 'invite_status',
formatter: (cell, data, value) => {
if (cell.is_substitute) {
if (cell.is_substitute || cell.is_simple) {
return '无'
}
if (cell.purchase_way?.remark === 'false') {
@ -754,6 +780,9 @@ export default {
width: 145,
prop: 'join_status',
formatter: (cell, data, value) => {
if(cell.is_simple){
return "无"
}
switch (value) {
case 1:
return "待申请"
@ -1044,6 +1073,7 @@ export default {
name: "",
is_simple:0,
supply: "",
money:0,
type: "",
methods: "",
modality: "",
@ -1065,6 +1095,12 @@ export default {
trigger: 'change'
}
],
money:[
{
validator:moneyPass,
trigger: 'change'
}
],
type:[
{
validator: typePass,
@ -1203,7 +1239,7 @@ export default {
columnIndex
}) {
if (column.property === 'req_status') {
if (row.is_plan === 1 || row.is_substitute) {
if (row.is_plan || row.is_substitute || row.is_simple) {
return {
'color': 'rgb(140,140,140)'
}
@ -1231,7 +1267,7 @@ export default {
}
}
if (column.property === 'purchase_status') {
if (row.is_substitute) {
if (row.is_substitute || row.is_simple) {
return {
'color': 'rgb(140,140,140)'
}
@ -1259,7 +1295,7 @@ export default {
}
}
if (column.property === 'invite_status') {
if (row.purchase_way?.remark === 'false' || row.is_substitute) {
if (row.purchase_way?.remark === 'false' || row.is_substitute || row.is_simple) {
return {
'color': 'rgb(140,140,140)'
}
@ -1287,6 +1323,11 @@ export default {
}
}
if (column.property === 'join_status') {
if(row.is_simple){
return {
'color': 'rgb(140,140,140)'
}
}
switch (row.join_status) {
case 1:
return {
@ -1638,7 +1679,9 @@ export default {
}),
is_substitute: this.form.is_substitute,
is_simple:this.form.is_simple,
supply:this.form.supply
supply:this.form.supply,
money:this.form?.money,
status:this.form?.is_simple ? 2 : 1
}).then(res => {
this.isShowAdd = false
Message({

Loading…
Cancel
Save