|
|
|
|
@ -19,6 +19,14 @@
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div v-if="/contractAll/g.test($route.path)">
|
|
|
|
|
<span style="padding: 0 6px; word-break: keep-all">是否为直接支付</span>
|
|
|
|
|
<i-switch v-model="select.is_simple" :true-value="1" :false-value="0" @on-change="getContracts">
|
|
|
|
|
<span slot="open">是</span>
|
|
|
|
|
</i-switch>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<xy-selectors style="margin-left: 10px;" @search="getContracts" @reset="reset">
|
|
|
|
|
<div class="select-content">
|
|
|
|
|
<div>
|
|
|
|
|
@ -78,7 +86,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<span style="padding: 0 6px; word-break: keep-all">是否简易流程</span>
|
|
|
|
|
<span style="padding: 0 6px; word-break: keep-all">是否为直接支付</span>
|
|
|
|
|
<i-switch v-model="select.is_simple" :true-value="1" :false-value="0" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -1927,7 +1935,7 @@ export default {
|
|
|
|
|
fundingChannels: [],
|
|
|
|
|
isBudget: true,
|
|
|
|
|
plan: [],
|
|
|
|
|
//is_substitute: 0,
|
|
|
|
|
//is_substitute: 0,//改为无采购流程,直接签订合同后执行(合同界面新增)
|
|
|
|
|
is_framework: 0,
|
|
|
|
|
use_framework_buy: 0,
|
|
|
|
|
contract_to_contracts: [],
|
|
|
|
|
@ -2416,11 +2424,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//获取合同列表
|
|
|
|
|
async getContracts(is_export,noloading=false,isopenOa=false) {
|
|
|
|
|
if (/contractLedger/g.test(this.$route.path)) {
|
|
|
|
|
this.select.is_contract = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.select.is_contract = ""
|
|
|
|
|
}
|
|
|
|
|
let tokens = getToken();
|
|
|
|
|
if (is_export && this.select.is_export == 1) {
|
|
|
|
|
var url = "/api/admin/contract/index?is_auth=1&token=" + tokens;
|
|
|
|
|
@ -2714,7 +2717,7 @@ export default {
|
|
|
|
|
"zhifu": new Flow()
|
|
|
|
|
}
|
|
|
|
|
if (item.is_simple !== 1 && !item.is_substitute) {
|
|
|
|
|
//不为简易 采购未开始 不为代建
|
|
|
|
|
//不为简易 采购未开始
|
|
|
|
|
|
|
|
|
|
flowStatus["caigou"].setStatus(item.purchase_status)
|
|
|
|
|
if (item.purchase_status === 1) {
|
|
|
|
|
@ -2725,8 +2728,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (item.purchase_way?.value !== '网上商城' && item.is_contract && !item.is_substitute && item.purchase_way?.remark === '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) {
|
|
|
|
|
//采购完成,招标未开始
|
|
|
|
|
@ -2737,9 +2740,8 @@ export default {
|
|
|
|
|
//为合同 不为网上商城
|
|
|
|
|
flowStatus["shenpi"].setStatus(item.join_status)
|
|
|
|
|
if (item.join_status === 1 && (item.invite_status === 3 ||
|
|
|
|
|
(item.purchase_way?.remark === 'false' && item.purchase_status === 3) ||
|
|
|
|
|
item.is_substitute)) {
|
|
|
|
|
//审批未开始 为代建或走招标招标完成或不走招标采购完成
|
|
|
|
|
(item.purchase_way?.remark === 'false' && item.purchase_status === 3))) {
|
|
|
|
|
//审批未开始 走招标招标完成或不走招标采购完成
|
|
|
|
|
flowStatus["shenpi"].setExecutable(true)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -2821,6 +2823,17 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.getBudgets();
|
|
|
|
|
this.select.keyword = this.$route.query.keyword || "";
|
|
|
|
|
//this.select.is_contract = /All|all/g.test(this.$route.path) ? "" : 0;
|
|
|
|
|
if (/contractLedger/g.test(this.$route.path)) {
|
|
|
|
|
this.select.is_contract = 1;
|
|
|
|
|
this.select.purchase_status = 3;
|
|
|
|
|
}
|
|
|
|
|
if (/mycontract/g.test(this.$route.path)) {
|
|
|
|
|
this.select.is_contract = 1;
|
|
|
|
|
}
|
|
|
|
|
if (/contractAll/g.test(this.$route.path)) {
|
|
|
|
|
this.select.is_simple = "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
window.onfocus = null;
|
|
|
|
|
|