@@ -303,6 +277,7 @@ import editor from "./components/editorContract"
import detail from "./components/detailContract"
import paymentRegistration from "./components/paymentRegistration";
import contractSign from "@/views/contract/components/contractSign";
+import {set} from "@/api/system/role";
export default {
components:{
editor,
@@ -387,7 +362,7 @@ export default {
prop:"money_way.value"
},
{
- label:"项目预算(元)",
+ label:"项目预算(万元)",
width: 200,
prop:"plan_price",
align:'right',
@@ -417,19 +392,87 @@ export default {
multiHd:[
{
label:"请示流程",
- width: 200
+ width: 200,
+ prop:'req_status',
+ formatter:(cell,data,value)=>{
+ switch (value){
+ case 1:
+ return "待申请"
+ break;
+ case 2:
+ return "流转中"
+ break;
+ case 3:
+ return "已结办"
+ break;
+ default:
+ return "异常"
+ break;
+ }
+ }
},
{
label:"采购业务审批流程",
- width: 200
+ width: 200,
+ prop:'purchase_status',
+ formatter:(cell,data,value)=>{
+ switch (value){
+ case 1:
+ return "待申请"
+ break;
+ case 2:
+ return "流转中"
+ break;
+ case 3:
+ return "已结办"
+ break;
+ default:
+ return "异常"
+ break;
+ }
+ }
},
{
label:"招标审核流程",
- width: 200
+ width: 200,
+ prop:'invite_status',
+ formatter:(cell,data,value)=>{
+ switch (value){
+ case 1:
+ return "待申请"
+ break;
+ case 2:
+ return "流转中"
+ break;
+ case 3:
+ return "已结办"
+ break;
+ default:
+ return "异常"
+ break;
+ }
+ }
},
{
label:"合同会签流程",
- width: 200
+ width: 200,
+ prop:'join_status',
+ formatter:(cell,data,value)=>{
+ switch (value){
+ case 1:
+ return "待申请"
+ break;
+ case 2:
+ return "流转中"
+ break;
+ case 3:
+ return "已结办"
+ break;
+ default:
+ return "异常"
+ break;
+ }
+ }
}
]
},
@@ -438,11 +481,6 @@ export default {
width: 200,
prop:'department.name'
},
- {
- label:"创建人",
- width: 200,
- prop:''
- },
{
label:"创建信息",
width: 200,
@@ -502,10 +540,7 @@ export default {
methods:"",
modality:"",
price:"",
- money:'',
fundingChannels:"",
- supply:'',
- carryDepartment:"",
isBudget:true,
plan:[]
},
@@ -547,22 +582,32 @@ export default {
planTotal:0,
plansPageIndex:1,
- isShowEditor:false
+ isShowEditor:false,
}
},
methods: {
+ //招标文件审查
+ async bidding(row){
+ let baseInfo = {
+ "项目名称":row?.name,
+ "项目预算(万元)":row?.plan_price
+ }
+ 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')
+ },
+
//采购流程
async buyProcess(row){
- console.log(row)
let baseInfo = {
- "项目名称":row.name,
- "采购形式":row.purchase_type.value,
- "采购方式":row.purchase_way.value,
+ "项目名称":row?.name,
+ "采购形式":row?.purchase_type?.value,
+ "采购方式":row?.purchase_way?.value,
"项目类型":this.type.filter(item => {
return item.value === row.type
- })[0].label,
- "项目预算(万元)":row.plan_price/10000,
- "资金渠道":row.money_way.value
+ })[0]?.label,
+ "项目预算(万元)":row?.plan_price,
+ "资金渠道":row?.money_way?.value
}
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)}`
@@ -571,9 +616,9 @@ export default {
//会签流程
async signProcess(row){
let baseInfo = {
- "合同名称":row.name,
- "执行部门":row.carry_department,
- "合同金额(万元)":row.money,
+ "合同名称":row?.name,
+ "执行部门":row?.carry_department,
+ "合同金额(万元)":row?.money,
//"承包商\\供应商":row.supply
}
let res = await getOatoken()
@@ -692,9 +737,6 @@ export default {
money_way_id:this.form.fundingChannels,
plan_price:this.form.price,
name:this.form.name,
- supply:this.form.supply,
- carry_department:this.form.carryDepartment,
- money:this.form.money,
contract_plan_links:this.form.plan.map(item=>{
return item.value
})
@@ -782,7 +824,7 @@ export default {
position: absolute;
right: 0;
top: 0;
- content:'(元)'
+ content:'(万元)'
}
}