|
|
|
|
@ -10,6 +10,14 @@
|
|
|
|
|
<Input v-model="select.keyword" clearable placeholder="关键字搜索" style="width: 200px" />
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<span style="padding: 0 6px;word-break: keep-all;">服务商/供应商</span>
|
|
|
|
|
<span>
|
|
|
|
|
<Input v-model="select.supply" clearable placeholder="请输入服务商/供应商" style="width: 200px" />
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<span style="padding: 0 6px;word-break: keep-all;">预算计划</span>
|
|
|
|
|
|
|
|
|
|
@ -136,6 +144,7 @@
|
|
|
|
|
@click=" select = {showDatePicker:'',ageIndex:1,startDate:'',endDate:'',type:'',department:'',purchaseModality:'',purchaseMethods:'',priceMin:null,priceMax:null,status:''}">
|
|
|
|
|
重置
|
|
|
|
|
</Button>
|
|
|
|
|
<Button type="primary" @click="toExport()" style="margin-left: 10px">导出</Button>
|
|
|
|
|
<!-- <Button type="primary" style="margin-left: 10px">导出</Button>-->
|
|
|
|
|
</div>
|
|
|
|
|
</slot>
|
|
|
|
|
@ -314,7 +323,8 @@
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>是否为代建项目
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-switch v-model="form.is_substitute" active-text="是" inactive-text="否" :active-value="1" :inactive-value="0"/>
|
|
|
|
|
<el-switch v-model="form.is_substitute" active-text="是" inactive-text="否" :active-value="1"
|
|
|
|
|
:inactive-value="0" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -446,7 +456,9 @@
|
|
|
|
|
import {
|
|
|
|
|
getInfo
|
|
|
|
|
} from '@/api/user.js'
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
getToken
|
|
|
|
|
} from '@/utils/auth'
|
|
|
|
|
import editor from "./components/editorContract"
|
|
|
|
|
import detail from "./components/detailContract"
|
|
|
|
|
import paymentRegistration from "./components/paymentRegistration";
|
|
|
|
|
@ -795,6 +807,12 @@
|
|
|
|
|
return value + '期'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "供应商/服务商",
|
|
|
|
|
width: 220,
|
|
|
|
|
prop: 'supply',
|
|
|
|
|
align: "left"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "业务科室",
|
|
|
|
|
width: 140,
|
|
|
|
|
@ -979,6 +997,10 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
toExport() {
|
|
|
|
|
this.select.is_export = 1;
|
|
|
|
|
this.getContracts(true);
|
|
|
|
|
},
|
|
|
|
|
clearSelectForSearch() {
|
|
|
|
|
this.select.plan_id = "";
|
|
|
|
|
this.select.plan_name = "请选择预算计划";
|
|
|
|
|
@ -1323,7 +1345,7 @@
|
|
|
|
|
this.getContracts();
|
|
|
|
|
},
|
|
|
|
|
//获取合同列表
|
|
|
|
|
async getContracts() {
|
|
|
|
|
async getContracts(is_export) {
|
|
|
|
|
|
|
|
|
|
const res = await getContract({
|
|
|
|
|
page_size: this.select.pageSize,
|
|
|
|
|
@ -1332,6 +1354,19 @@
|
|
|
|
|
...this.select
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
let tokens = getToken();
|
|
|
|
|
if (is_export) {
|
|
|
|
|
var url = "/api/admin/contract/index?is_auth=1&token=" + tokens
|
|
|
|
|
Object.keys(this.select).map((key, item) => {
|
|
|
|
|
url += "&"+key+"=" + this.select[key];
|
|
|
|
|
});
|
|
|
|
|
url = location.host + url;
|
|
|
|
|
console.log(url)
|
|
|
|
|
window.open("http://" + url, '_blank')
|
|
|
|
|
this.select.is_export = 0
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.list = res.list.data
|
|
|
|
|
this.total = res.list.total
|
|
|
|
|
this.tableTotal.fundLogTotal = res.fund_log_total
|
|
|
|
|
|