lion 3 weeks ago
parent 3945676628
commit b7ccb4dc0c

@ -39,7 +39,7 @@
<!-- 单条数据 --> <!-- 单条数据 -->
<div v-if="config.flow.out_pay.length === 1"> <div v-if="config.flow.out_pay.length === 1">
<span @click="showContract(config.flow.out_pay[0].contract_id)" style="cursor: pointer;"> <span @click="showContract(config.flow.out_pay[0].contract_id)" style="cursor: pointer;">
本流程已关联资金预算管理<span style="color:#409eff;">{{ config.flow.out_pay[0].contract.name }}</span>点击查看完整信息链 本流程已关联资金预算管理<span style="color:#409eff;">{{ config.flow.out_pay[0].contract?config.flow.out_pay[0].contract.name:'未知支出'+config.flow.out_pay[0].contract_id }}</span>点击查看完整信息链
</span> </span>
</div> </div>
<!-- 多条数据 --> <!-- 多条数据 -->
@ -47,7 +47,7 @@
<span>本流程已关联{{ config.flow.out_pay.length }}条资金预算管理分别是</span> <span>本流程已关联{{ config.flow.out_pay.length }}条资金预算管理分别是</span>
<span v-for="(pay, index) in config.flow.out_pay" :key="pay.id"> <span v-for="(pay, index) in config.flow.out_pay" :key="pay.id">
<span v-if="index > 0"></span> <span v-if="index > 0"></span>
<span @click="showContract(pay.contract_id)" style="cursor: pointer;color:#409eff;">{{ pay.contract.name }}</span> <span @click="showContract(pay.contract_id)" style="cursor: pointer;color:#409eff;">{{ pay.contract?pay.contract.name:'未知支出'+pay.contract_id }}</span>
</span> </span>
<span>可分别点击查看完整信息链</span> <span>可分别点击查看完整信息链</span>
</div> </div>

@ -76,7 +76,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="pendingQuery.caigouneirong" v-model="pendingQuery.caigouneirong"
placeholder="采购内容" placeholder="采购类别"
size="small" size="small"
clearable clearable
filterable filterable
@ -138,7 +138,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="采购内容" label="采购类别"
width="100" width="100"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
@ -373,7 +373,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="paidQuery.caigouneirong" v-model="paidQuery.caigouneirong"
placeholder="采购内容" placeholder="采购类别"
size="small" size="small"
clearable clearable
filterable filterable
@ -386,6 +386,21 @@
:value="item" :value="item"
/> />
</el-select> </el-select>
<el-select
v-model="paidQuery.status"
placeholder="是否支付完成"
size="small"
clearable
filterable
style="width: 150px"
>
<el-option
v-for="item in [{label: '是', value: 1}, {label: '否', value: 0}]"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
@ -416,7 +431,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="采购内容" label="采购类别"
width="100" width="100"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
@ -589,7 +604,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="采购内容" label="采购类别"
min-width="120" min-width="120"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
@ -734,7 +749,7 @@ export default {
departments: [], departments: [],
users: [], users: [],
purchasers: [], // purchasers: [], //
purchaseContents: [], // purchaseContents: [], //
waitList: [], waitList: [],
activeTab: "pending", activeTab: "pending",
pendingQuery: { pendingQuery: {
@ -762,6 +777,7 @@ export default {
keywords: "", keywords: "",
chengbanren_id: "", chengbanren_id: "",
caigouneirong: "", caigouneirong: "",
status: "",
}, },
paidRows: [], paidRows: [],
paidPage: 1, paidPage: 1,
@ -818,7 +834,7 @@ export default {
this.users = arr; this.users = arr;
// //
this.purchasers = res.users; this.purchasers = res.users;
// //
this.purchaseContents = res.customModelFieldStub; this.purchaseContents = res.customModelFieldStub;
}, },
switchTab(tab) { switchTab(tab) {
@ -1502,6 +1518,9 @@ export default {
if (this.paidQuery.caigouneirong) { if (this.paidQuery.caigouneirong) {
params.caigouneirong = this.paidQuery.caigouneirong; params.caigouneirong = this.paidQuery.caigouneirong;
} }
if (this.paidQuery.status || this.paidQuery.status === 0) {
params.status = this.paidQuery.status?1:0;
}
const res = await receiveList(params); const res = await receiveList(params);
this.paidTotal = res.total || 0; this.paidTotal = res.total || 0;
this.paidRows = (res.data || []).map((item) => ({ this.paidRows = (res.data || []).map((item) => ({
@ -1543,7 +1562,7 @@ export default {
this.pendingPageSize = 40; this.pendingPageSize = 40;
} else if (newTab === "paid") { } else if (newTab === "paid") {
this.paidPage = 1; this.paidPage = 1;
this.paidPageSize = 40; this.paidPageSize = 10;
} }
// //
@ -1564,6 +1583,7 @@ export default {
keywords: "", keywords: "",
chengbanren_id: "", chengbanren_id: "",
caigouneirong: "", caigouneirong: "",
status: "",
}; };
} }

Loading…
Cancel
Save