采购流程
@@ -356,7 +368,8 @@ import { resetSelect } from '@/utils'
groupType: Array,
purchaseType: Array,
moneyWay: Array,
- purchaseWay: Array
+ purchaseWay: Array,
+ flowIds: Array,
},
data() {
var planPass = (rule, value, callback) => {
@@ -430,24 +443,6 @@ import { resetSelect } from '@/utils'
}
}
return {
- flowIds: [
- {
- id: 5,
- name: "办公用品采购"
- },
- {
- id: 12,
- name: "物资购置"
- },
- {
- id: 19,
- name: "政府采购流转"
- },
- {
- id: 29,
- name: "政府小额采购"
- }
- ],
userList: ["ma_sm", "admin", "yu_l","wang_yx","li_f","chen_y"],
user: null,
adminEdit: false,
diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue
index 12e1b8e..1381f96 100644
--- a/src/views/contract/components/paymentRegistration.vue
+++ b/src/views/contract/components/paymentRegistration.vue
@@ -446,7 +446,7 @@ export default {
//支付占比
percentPay() {
let total = this.totalMoney();
- return ((total / this.contract.money) * 100).toFixed(2) || 0;
+ return ((total / this.contract.money) * 100 || 0).toFixed(2) || 0;
},
//获取合同信息
diff --git a/src/views/contract/contractEdit.vue b/src/views/contract/contractEdit.vue
index 4245d47..e1aec95 100644
--- a/src/views/contract/contractEdit.vue
+++ b/src/views/contract/contractEdit.vue
@@ -1438,7 +1438,7 @@ export default {
this.btnLoading = false
//this.step = 3;
this.$router.push({
- path: this.form.is_simple ? '/contract/contractAll' : '/contract/contract/contractList',
+ path: (this.form.is_simple || !this.form.is_purchase) ? '/contract/contractAll' : '/contract/contract/contractList',
query: {
keyword: this.form.name,
},
@@ -1609,9 +1609,8 @@ export default {
},
computed: {
isNeedMore () {
- console.log(this.form.flow_mod_id)
//是否需要组织形式等
- return this.flowIds.find(i => i.id === this.form.flow_mod_id)?.type === 2
+ return this.flowIds.find(i => i.id === this.form.flow_mod_id)?.name === "政府采购流转" || this.flowIds.find(i => i.id === this.form.flow_mod_id)?.name === "政府小额采购"
},
purchaseWayFormat() {
diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue
index 35fd1ee..05925a8 100644
--- a/src/views/contract/contractList.vue
+++ b/src/views/contract/contractList.vue
@@ -380,6 +380,15 @@
>采购流程
+
+
+
@@ -1136,6 +1145,7 @@
{
return (
-
{
- this.flowIds.find(i => i.id === row.flow_mod_id)?.name
- }
-
查看
+
+
+ {
+ this.flowIds.find(i => i.id === row.flow_mod_id)?.name
+ }
+
+ {
+ row.is_purchase ? "" : ([{ this.flowStatus.get(row.FLOWSTATUS.other.getStatus()) }])
+ }
+
+ {
+ row.is_purchase ? "" : (
this.toOaDetail('other',row)}}>查看)
+ }
)
}
@@ -2178,6 +2200,9 @@ export default {
case "hetong":
url += row.join_last_flow_id
break;
+ case "other":
+ url += row.other_flow_id
+ break;
default:
url = `${process.env.VUE_APP_OUT_URL}/admin/flow/list/todo`
}
@@ -2302,11 +2327,13 @@ export default {
switch (row.flow_mod_id) {
case 12:
baseInfo = {
+ "工作名称": row.name || "",
"6583b42c5c29a": row.name,
}
break;
case 5:
baseInfo = {
+ "工作名称": row.name || "",
"65b37c797845d": row.name,
"65b37c8facfc9": row.content,
}
@@ -2324,6 +2351,10 @@ export default {
"65852a7d0c9b4": this.groupType.find(i => i.id === row.group_type)?.value || ""
}
break;
+ default:
+ baseInfo = {
+ "工作名称": row.name || ""
+ }
}
// let res = await getOatoken()
let url = `${process.env.VUE_APP_OUT_OLD}/flow/create/${row.flow_mod_id}?auth_token=${this.$store.getters.oa_token}&out_contract_id=${
@@ -2439,7 +2470,7 @@ export default {
);
},
//事前流程
- async getFlowIds () {
+ async getFlowIds () {``
let copy = deepCopy(this.flowIds)
const res = await getparameter({
number: "flow_ids"
@@ -2504,7 +2535,7 @@ export default {
this.getContracts();
},
//获取合同列表
- async getContracts(is_export,noloading=false,isopenOa=false) {
+ getContracts: throttle(async function (is_export,noloading=false,isopenOa=false) {
if (/contractLedger/g.test(this.$route.path)) {
this.select.is_contract = 1
} else {
@@ -2558,7 +2589,7 @@ export default {
await this.buyProcess(res.list.data[0])
}
}
- },
+ },1000),
//新建合同
//显示
@@ -2787,7 +2818,7 @@ export default {
return this.status
}
isEnabled () {
- return this.executable && this.status === 1
+ return this.executable && (this.status === 1 || this.status === "")
}
}
//0无该流程,1未开始,2进行中,3已完成(合同签订1待签订,2已签订)
@@ -2796,47 +2827,57 @@ export default {
"zhaobiao": new Flow(),
"shenpi": new Flow(),
"qianding": new Flow(),
- "zhifu": new Flow()
+ "zhifu": new Flow(),
+ "other": new Flow()
}
- if (item.is_simple !== 1 && !item.is_substitute) {
- //不为简易 采购未开始
-
- flowStatus["caigou"].setStatus(item.purchase_status)
- if (item.purchase_status === 1) {
- //采购未开始
- if (item.is_plan === 1 || (item.is_plan === 0 && item.req_status === 3)) {
- //不为预算时,请示流程完成
- flowStatus["caigou"].setExecutable(true)
+ if (item.is_purchase) {
+ //为采购项目
+ if (item.is_simple !== 1 && !item.is_substitute) {
+ //不为简易 采购未开始
+
+ flowStatus["caigou"].setStatus(item.purchase_status)
+ if (item.purchase_status === 1) {
+ //采购未开始
+ if (item.is_plan === 1 || (item.is_plan === 0 && item.req_status === 3)) {
+ //不为预算时,请示流程完成
+ flowStatus["caigou"].setExecutable(true)
+ }
}
}
- }
- if (item.purchase_way?.value !== '网上商城' && item.is_contract && item.purchase_way?.remark === 'true' && !item.is_substitute) {
- //不为网上商场 是合同\
- flowStatus["zhaobiao"].setStatus(item.invite_status)
- if (item.invite_status === 1 && item.purchase_status === 3) {
- //采购完成,招标未开始
- flowStatus["zhaobiao"].setExecutable(true)
+ if (item.purchase_way?.value !== '网上商城' && item.is_contract && item.purchase_way?.remark === 'true' && !item.is_substitute) {
+ //不为网上商场 是合同\
+ flowStatus["zhaobiao"].setStatus(item.invite_status)
+ if (item.invite_status === 1 && item.purchase_status === 3) {
+ //采购完成,招标未开始
+ flowStatus["zhaobiao"].setExecutable(true)
+ }
}
- }
- if (item.is_contract && item.purchase_way?.value !== "网上商城") {
- //为合同 不为网上商城
- flowStatus["shenpi"].setStatus(item.join_status)
- if (item.join_status === 1 && (item.invite_status === 3 ||
- (item.purchase_way?.remark === 'false' && item.purchase_status === 3))) {
- //审批未开始 走招标招标完成或不走招标采购完成
- flowStatus["shenpi"].setExecutable(true)
+ if (item.is_contract && item.purchase_way?.value !== "网上商城") {
+ //为合同 不为网上商城
+ flowStatus["shenpi"].setStatus(item.join_status)
+ if (item.join_status === 1 && (item.invite_status === 3 ||
+ (item.purchase_way?.remark === 'false' && item.purchase_status === 3))) {
+ //审批未开始 走招标招标完成或不走招标采购完成
+ flowStatus["shenpi"].setExecutable(true)
+ }
}
- }
- if (item.is_contract && item.purchase_way?.value !== "网上商城" && !item.is_substitute) {
- flowStatus["qianding"].setStatus(item.status)
- if (item.join_status === 3 && item.status === 1) {
- flowStatus["qianding"].setExecutable(true)
+ if (item.is_contract && item.purchase_way?.value !== "网上商城" && !item.is_substitute) {
+ flowStatus["qianding"].setStatus(item.status)
+ if (item.join_status === 3 && item.status === 1) {
+ flowStatus["qianding"].setExecutable(true)
+ }
+ }
+ } else {
+ //非采购事前流程
+ flowStatus["other"].setStatus(item.other_flow_status)
+ if (item.other_flow_status === 1 || !item.other_flow_status) {
+ flowStatus["other"].setExecutable(true)
}
}
if (item.is_end === 0) {
flowStatus["zhifu"].setStatus(1)
//最后一笔没付完
- if ((!item.is_contract && !item.is_substitute && item.purchase_status === 3) || (item.purchase_way?.value === "网上商城" && item.purchase_status === 3) ||
+ if ((item.is_purchase === 0 && item.other_flow_status === 3) || (!item.is_contract && !item.is_substitute && item.purchase_status === 3) || (item.purchase_way?.value === "网上商城" && item.purchase_status === 3) ||
item.status === 2 ||
(!item.is_contract && item.is_simple) || (item.is_contract && item.is_substitute && item.join_status === 3)) {
//网上商场的话采购完成 合同签订完成 不为合同并且为简易
@@ -2859,6 +2900,12 @@ export default {
}
};
},
+
+ otherFlowBtn () {
+ return function (flowModId) {
+ return this.flowIds.find(i => i.id === flowModId)?.name
+ }
+ }
},
watch: {
isShowContractToContracts(val) {
@@ -2916,6 +2963,7 @@ export default {
}
if (/contractAll/g.test(this.$route.path)) {
this.select.is_simple = "";
+ this.select.is_purchase = 0;
}
},
destroyed() {