|
@@ -4,30 +4,31 @@
|
|
|
<div>
|
|
|
<BaseHeaderLayout :leftSpan="8">
|
|
|
<template slot="left">
|
|
|
- <ws-button type="primary" @click="handleAdd()"
|
|
|
- v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">添加</ws-button>
|
|
|
- <ws-button @click="exportlist()" v-hasPermission="
|
|
|
- `contractManagement.buyContract.buyContractInfo.view`
|
|
|
- ">导出</ws-button>
|
|
|
- </template>
|
|
|
- <template slot="right">
|
|
|
- <span style="width: 142px; display: inline-block; color: #8890b1">状态:</span>
|
|
|
- <ws-select v-model="searchTypeText" placeholder="" class="typeselect" @change="selecttaskType"
|
|
|
+ <ws-select v-model="searchTypeText" placeholder="" class="typeselect" @change="selecttaskType"
|
|
|
:value="searchType">
|
|
|
<ws-option v-for="item in taskTypeList" :key="item.value" :label="item.value" :value="item.value"
|
|
|
style="color: #8890b1" />
|
|
|
</ws-select>
|
|
|
- <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="至"
|
|
|
- start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions">
|
|
|
- </el-date-picker>
|
|
|
- <el-input v-model="searchKeyWord" placeholder="可按照合同编号、买方名称、卖方名称进行查找" clearable maxlength="500" type="input"
|
|
|
- class="findValue" @keyup.enter.native="find()"></el-input>
|
|
|
- <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
|
|
|
- vertical-align: text-top;
|
|
|
- position: relative;
|
|
|
- top: 0px;
|
|
|
- left: -8px;
|
|
|
- " src="../../../public/img/sousuo.png" alt="" /></ws-button>
|
|
|
+ </template>
|
|
|
+ <template slot="right">
|
|
|
+ </template>
|
|
|
+ </BaseHeaderLayout>
|
|
|
+ <BaseHeaderLayout :leftSpan="8">
|
|
|
+ <template slot="left">
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">全部</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">收入</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">支出</ws-button>
|
|
|
+ </template>
|
|
|
+ <template slot="right">
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">运费</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">请款</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">收款</ws-button>
|
|
|
</template>
|
|
|
</BaseHeaderLayout>
|
|
|
<el-table class="wenzi" :data="contractList.records" style="width: 100%; margin-top: 10px"
|
|
@@ -82,30 +83,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column width='130' prop="unitContractPrice" label="状态">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="address" label="操作" width="140">
|
|
|
+ <el-table-column prop="address" label="操作" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
- <img width="16" height="16" style="vertical-align: text-top; margin: 0 6px"
|
|
|
- src="../../../public/img/chakan.png" @click="handleExamine(scope.row)" v-hasPermission="
|
|
|
- `contractManagement.buyContract.buyContractInfo.view`
|
|
|
- " alt="" />
|
|
|
- <div v-if="
|
|
|
- (scope.row.approveStatus != '待决策人审核' &&
|
|
|
- !scope.row.approveStatus)
|
|
|
- " style="display: inline-block">
|
|
|
- <img width="17" height="16" style="vertical-align: text-top; margin: 0 6px"
|
|
|
- src="../../../public/img/bianji.png" @click="handleEdit(scope.row)" v-hasPermission="
|
|
|
- `contractManagement.buyContract.buyContractInfo.edit`
|
|
|
- " alt="" />
|
|
|
- </div>
|
|
|
- <img width="16" height="17" style="
|
|
|
- vertical-align: text-top;
|
|
|
- position: relative;
|
|
|
- top: -1px;
|
|
|
- margin: 0 6px;
|
|
|
- " v-if="scope.row.status != '执行中'&&scope.row.status != '已完成'" src="../../../public/img/shanchu.png"
|
|
|
- v-hasPermission="
|
|
|
- `contractManagement.buyContract.buyContractInfo.delete`
|
|
|
- " @click="handleDelete(scope.row)" alt="" />
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">审核</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">编辑</ws-button>
|
|
|
+ <ws-button type="danger" @click="handleAdd()"
|
|
|
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">删除</ws-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -271,6 +256,26 @@
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ onChange() {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async (response) => {
|
|
|
+ this.deptBudgetList.addressUrl = response
|
|
|
+ this.deptBudgetList.id = this.id
|
|
|
+ this.deptBudgetList.flag = 1
|
|
|
+ editInfo(this.deptBudgetList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.accessoryTFs = false
|
|
|
+ this.$message.success('上传成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch((res) => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
getList() {
|
|
|
getList({
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|