|
|
|
|
@ -35,6 +35,23 @@
|
|
|
|
|
:label="item.name"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
filterable
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="是否可支付"
|
|
|
|
|
@change="changePay"
|
|
|
|
|
v-if="select.custom_model_id==99&& $route.path === '/flow/list/handled'"
|
|
|
|
|
v-model="can_pay"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in [{id: 1, name: '是'},{id: 0, name: '否'}]"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
<!-- 自定义筛选 条件 -->
|
|
|
|
|
<el-select
|
|
|
|
|
v-if="select.custom_model_id"
|
|
|
|
|
@ -645,6 +662,7 @@ import payMx from "./components/payMx.vue";
|
|
|
|
|
|
|
|
|
|
import FieldExport from "./components/FieldExport.vue";
|
|
|
|
|
import { departmentListNoAuth } from "@/api/common";
|
|
|
|
|
import { deepCopy } from "@/utils";
|
|
|
|
|
export default {
|
|
|
|
|
name: "flowList",
|
|
|
|
|
components: {
|
|
|
|
|
@ -657,7 +675,8 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isShowFieldExport: false,
|
|
|
|
|
|
|
|
|
|
can_pay:'',
|
|
|
|
|
beforeList:[],
|
|
|
|
|
todoTotal: [],
|
|
|
|
|
isShowMultiDeal: false,
|
|
|
|
|
multiDealFlows: [],
|
|
|
|
|
@ -768,7 +787,6 @@ export default {
|
|
|
|
|
field_id: "",
|
|
|
|
|
operator: "",
|
|
|
|
|
field_keyword: "",
|
|
|
|
|
can_pay: "",
|
|
|
|
|
},
|
|
|
|
|
loading: false,
|
|
|
|
|
list: [],
|
|
|
|
|
@ -833,7 +851,7 @@ export default {
|
|
|
|
|
// 选择明细
|
|
|
|
|
async toOutPay(row) {
|
|
|
|
|
// this.$refs.payMx.payId = row.id;
|
|
|
|
|
this.$refs.payMx.payList = records;
|
|
|
|
|
this.$refs.payMx.payList = row;
|
|
|
|
|
this.isShowPay = true;
|
|
|
|
|
},
|
|
|
|
|
// 批量支付
|
|
|
|
|
@ -940,11 +958,26 @@ export default {
|
|
|
|
|
this.select.field_id = "";
|
|
|
|
|
this.select.operator = "";
|
|
|
|
|
this.select.field_keyword = "";
|
|
|
|
|
this.select.page_size = 20
|
|
|
|
|
this.can_pay = ''
|
|
|
|
|
if (e) {
|
|
|
|
|
if(e==99){
|
|
|
|
|
this.select.page_size = 999
|
|
|
|
|
}
|
|
|
|
|
this.getFields(e);
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changePay(e){
|
|
|
|
|
let arr = deepCopy(this.beforeList)
|
|
|
|
|
if(e==1){
|
|
|
|
|
this.list = arr.filter(i=>i.can_pay)
|
|
|
|
|
}else if(e===0){
|
|
|
|
|
this.list = arr.filter(i=>i.can_pay===0)
|
|
|
|
|
}else{
|
|
|
|
|
this.list = arr
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 获取 字段
|
|
|
|
|
showExport() {
|
|
|
|
|
this.$refs.isShowFieldExport.config = this.config;
|
|
|
|
|
@ -961,6 +994,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getList(refresh = false) {
|
|
|
|
|
console.log("this.select", this.select.page_size);
|
|
|
|
|
if (this.loading) return;
|
|
|
|
|
this.loading = true;
|
|
|
|
|
try {
|
|
|
|
|
@ -970,6 +1004,7 @@ export default {
|
|
|
|
|
const res = await flowList(this.$route.params.type, this.select, false);
|
|
|
|
|
res.data?.data?.forEach((i) => this.contentFormatter(i));
|
|
|
|
|
this.list = res?.data?.data || [];
|
|
|
|
|
this.beforeList = res?.data?.data || [];
|
|
|
|
|
this.total = res?.data?.total ?? 0;
|
|
|
|
|
this.models = res.customModels;
|
|
|
|
|
this.title = res.pageTitle;
|
|
|
|
|
|