master
271556543@qq.com 3 years ago
parent 157cc878d9
commit 0f46323296

@ -135,7 +135,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目名称
</div>
<div class="xy-table-item-content">
<el-input placeholder="请填写项目名称" v-model="editorForm.name" style="width: 300px;"/>
<el-input clearable placeholder="请填写项目名称" v-model="editorForm.name" style="width: 300px;"/>
</div>
</div>
</template>
@ -157,7 +157,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目所属年份
</div>
<div class="xy-table-item-content">
<el-datePicker value-format="yyyy" placeholder="请选择所属年份" type="year" placement="bottom" v-model="editorForm.year" style="width: 300px;"></el-datePicker>
<el-datePicker clearable value-format="yyyy" placeholder="请选择所属年份" type="year" placement="bottom" v-model="editorForm.year" style="width: 300px;"></el-datePicker>
</div>
</div>
</template>
@ -184,7 +184,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>内容
</div>
<div class="xy-table-item-content">
<el-input type="textarea" placeholder="请填写内容" v-model="editorForm.content" style="width: 300px;"/>
<el-input clearable type="textarea" placeholder="请填写内容" v-model="editorForm.content" style="width: 300px;"/>
</div>
</div>
</template>
@ -194,7 +194,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>金额
</div>
<div class="xy-table-item-content xy-table-item-price">
<el-input placeholder="请填写金额" v-model="editorForm.money" style="width: 300px;"/>
<el-input clearable placeholder="请填写金额" v-model="editorForm.money" style="width: 300px;"/>
</div>
</div>
</template>
@ -204,7 +204,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>备注
</div>
<div class="xy-table-item-content">
<el-input placeholder="请填写备注" type="textarea" v-model="editorForm.remark" style="width: 300px;"/>
<el-input clearable placeholder="请填写备注" type="textarea" v-model="editorForm.remark" style="width: 300px;"/>
</div>
</div>
</template>

@ -319,9 +319,9 @@ export default {
&>div{
cursor: pointer;
flex-basis: 25%;
flex-basis: 16%;
padding: 0 20px;
margin: 0 20px;
}
}
}

@ -20,7 +20,7 @@
<span>内容</span>
</div>
<div class="xy-table-item-content">
<el-input style="width: 300px" type="textarea" v-model="plan.content" placeholder="请输入内容"/>
<el-input clearable style="width: 300px" type="textarea" v-model="plan.content" placeholder="请输入内容"/>
</div>
</div>
</template>
@ -31,7 +31,7 @@
<span>金额</span>
</div>
<div class="xy-table-item-content xy-table-item-price">
<el-input style="width: 300px" v-model="plan.money" placeholder="请输入金额"/>
<el-input clearable style="width: 300px" v-model="plan.money" placeholder="请输入金额"/>
</div>
</div>
</template>
@ -41,7 +41,7 @@
<span>备注</span>
</div>
<div class="xy-table-item-content">
<el-input style="width: 300px" type="textarea" v-model="plan.remark" placeholder="请输入备注"/>
<el-input clearable style="width: 300px" type="textarea" v-model="plan.remark" placeholder="请输入备注"/>
</div>
</div>
</template>
@ -114,5 +114,10 @@ export default {
top: 0;
content:'(元)'
}
::v-deep .el-input__clear{
position: relative;
right: 30px;
z-index: 2;
}
}
</style>

@ -8,7 +8,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目名称
</div>
<div class="xy-table-item-content">
<el-input placeholder="请填写项目名称" v-model="detail.name" style="width: 300px;"/>
<el-input clearable placeholder="请填写项目名称" v-model="detail.name" style="width: 300px;"/>
</div>
</div>
</template>
@ -18,7 +18,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目类型
</div>
<div class="xy-table-item-content">
<el-select placeholder="请选择项目类型" v-model="detail.type" style="width: 300px;">
<el-select clearable placeholder="请选择项目类型" v-model="detail.type" style="width: 300px;">
<el-option v-for="item in [{label:'服务',value:1},{label:'货品',value:2},{label:'工程',value:3}]" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
@ -30,7 +30,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>采购形式
</div>
<div class="xy-table-item-content">
<el-select placeholder="请选择采购形式" v-model="detail.methods" style="width: 300px;">
<el-select clearable placeholder="请选择采购形式" v-model="detail.methods" style="width: 300px;">
<el-option v-for="item in purchaseType" :label="item.value" :value="item.id"></el-option>
</el-select>
</div>
@ -42,7 +42,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>采购方式
</div>
<div class="xy-table-item-content">
<el-select placeholder="请选择采购方式" v-model="detail.modality" style="width: 300px;">
<el-select clearable placeholder="请选择采购方式" v-model="detail.modality" style="width: 300px;">
<el-option v-for="item in purchaseWay" :label="item.value" :value="item.id"></el-option>
</el-select>
</div>
@ -54,7 +54,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>合同预算价
</div>
<div class="xy-table-item-content xy-table-item-price-wan">
<el-input placeholder="请填写合同预算价" v-model="detail.price" style="width: 300px;"/>
<el-input clearable placeholder="请填写合同预算价" v-model="detail.price" style="width: 300px;"/>
</div>
</div>
</template>
@ -64,7 +64,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>合同金额
</div>
<div class="xy-table-item-content xy-table-item-price">
<el-input placeholder="请填写合同金额" v-model="detail.money" style="width: 300px;"/>
<el-input clearable placeholder="请填写合同金额" v-model="detail.money" style="width: 300px;"/>
</div>
</div>
</template>
@ -74,7 +74,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>资金渠道
</div>
<div class="xy-table-item-content">
<el-select placeholder="请选择资金渠道" v-model="detail.fundingChannels" style="width: 300px;">
<el-select clearable placeholder="请选择资金渠道" v-model="detail.fundingChannels" style="width: 300px;">
<el-option v-for="item in moneyWay" :value="item.id" :label="item.value"></el-option>
</el-select>
</div>
@ -86,7 +86,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>供应商
</div>
<div class="xy-table-item-content">
<el-input placeholder="请填写供应商" v-model="detail.supply" style="width: 300px;"/>
<el-input clearable placeholder="请填写供应商" v-model="detail.supply" style="width: 300px;"/>
</div>
</div>
</template>
@ -96,7 +96,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>执行部门
</div>
<div class="xy-table-item-content">
<el-input placeholder="请填写执行部门" v-model="detail.carryDepartment" style="width: 300px;"/>
<el-input clearable placeholder="请填写执行部门" v-model="detail.carryDepartment" style="width: 300px;"/>
</div>
</div>
</template>
@ -181,6 +181,7 @@ export default {
}
}
return {
isFocus:false,
contrantId:'',
isShowEditor:false,
isShowPlan:false,
@ -358,6 +359,9 @@ export default {
})
},
},
computed:{
},
mounted() {
@ -389,11 +393,17 @@ export default {
.xy-table-item-price{
position: relative;
&::after{
z-index: 1;
position: absolute;
right: 0;
top: 0;
content:'(元)'
}
::v-deep .el-input__clear{
position: relative;
right: 30px;
z-index: 2;
}
}
.xy-table-item-price-wan{
position: relative;
@ -403,5 +413,10 @@ export default {
top: 0;
content:'(万元)'
}
::v-deep .el-input__clear{
position: relative;
right: 46px;
z-index: 2;
}
}
</style>

@ -92,7 +92,7 @@
<Button class="slot-btns-item" type="primary" size="small" @click="bidding(scope.row)"></Button>
</template>
<Button class="slot-btns-item" type="primary" size="small">附件管理</Button>
<template v-if="scope.row.req_status === 1">
<template v-if="scope.row.req_status === 1 && scope.row.is_plan === 0">
<Button class="slot-btns-item" type="primary" size="small" @click="askProcess(scope.row)"></Button>
</template>
<template v-if="scope.row.join_status === 1">
@ -297,6 +297,13 @@ export default {
}
}
return {
window:{
width:0,
height:0,
top:0,
left:0
},
//
select:{
showDatePicker:'',
@ -572,7 +579,7 @@ export default {
{required:true,message:"必填"}
],
plan:[
{validator:planPass}
{validator:planPass, trigger: 'change'}
]
},
isShowPlan:false,//
@ -593,7 +600,7 @@ export default {
}
let res = await getOatoken()
let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/create/27?oatoken=${res.oatoken}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}`
let bidding = window.open(url,'bidding','top=100,left=100,width=1000,height=600')
let bidding = window.open(url,'bidding',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
},
//
@ -610,7 +617,7 @@ export default {
}
let res = await getOatoken()
let url = `${process.env.VUE_APP_OUT_URL}/admin/flow/create/2?oatoken=${res.oatoken}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}`
let buyProcess = window.open(url, 'buyProcess', 'top=100,left=100,width=1000,height=600')
let buyProcess = window.open(url, 'buyProcess', `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
},
//
async signProcess(row){
@ -622,13 +629,13 @@ export default {
}
let res = await getOatoken()
let url = `${process.env.VUE_APP_OUT_URL}/admin/flow/create/3?oatoken=${res.oatoken}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}`
let signProcess = window.open(url, 'signProcess', 'top=100,left=100,width=1000,height=600')
let signProcess = window.open(url, 'signProcess', `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
},
//
async askProcess(row){
let res = await getOatoken()
let url = `${process.env.VUE_APP_OUT_URL}/admin/flow/create/17?oatoken=${res.oatoken}&out_contract_id=${row.id}`
let askProcess = window.open(url, 'askProcess', 'top=100,left=100,width=1000,height=600')
let askProcess = window.open(url, 'askProcess', `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
},
//
@ -762,6 +769,11 @@ export default {
},
},
mounted() {
this.window.width = screen.availWidth * 0.8
this.window.height = screen.availHeight * 0.8
this.window.top = (window.screen.height - 30 - this.window.height)/2
this.window.left = (window.screen.width - 10 - this.window.width)/2
this.getPurchaseType()
this.getContracts()
this.getDepartment()

Loading…
Cancel
Save