合同 集合付款登记

master
lion 3 months ago
parent 2daab7ffdb
commit 861c2ebc96

@ -797,14 +797,15 @@ export default {
this.$message.warning('数据校验失败') this.$message.warning('数据校验失败')
return return
} }
console.log("this.$refs['desktopForm'].form",this.$refs["desktopForm"].form)
// copyForm = deepCopy(this.$refs["desktopForm"].form); copyForm = deepCopy(this.$refs["desktopForm"].form);
copyForm = this.$refs["desktopForm"].form;
const uploadHandler = (form, fields) => { const uploadHandler = (form, fields) => {
let keys = Object.keys(form) let keys = Object.keys(form)
keys.forEach(key => { if(fields){
keys.forEach(key => {
if (form[key] instanceof Array) { if (form[key] instanceof Array) {
if (form[key].length > 0 && typeof form[key][0] === 'object') { if (form[key].length > 0 && typeof form[key][0] === 'object') {
console.log("key",key,fields)
const myField = fields.find(field => field.name === key) const myField = fields.find(field => field.name === key)
if (myField) { if (myField) {
if (myField.type === 'file') { if (myField.type === 'file') {
@ -826,6 +827,8 @@ export default {
} }
} }
}) })
}
} }
console.log("copyForm",copyForm,this.fields) console.log("copyForm",copyForm,this.fields)
console.log("this.writeableFields",this.writeableFields) console.log("this.writeableFields",this.writeableFields)

@ -35,6 +35,23 @@
:label="item.name" :label="item.name"
></el-option> ></el-option>
</el-select> </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 <el-select
v-if="select.custom_model_id" v-if="select.custom_model_id"
@ -645,6 +662,7 @@ import payMx from "./components/payMx.vue";
import FieldExport from "./components/FieldExport.vue"; import FieldExport from "./components/FieldExport.vue";
import { departmentListNoAuth } from "@/api/common"; import { departmentListNoAuth } from "@/api/common";
import { deepCopy } from "@/utils";
export default { export default {
name: "flowList", name: "flowList",
components: { components: {
@ -657,7 +675,8 @@ export default {
data() { data() {
return { return {
isShowFieldExport: false, isShowFieldExport: false,
can_pay:'',
beforeList:[],
todoTotal: [], todoTotal: [],
isShowMultiDeal: false, isShowMultiDeal: false,
multiDealFlows: [], multiDealFlows: [],
@ -768,7 +787,6 @@ export default {
field_id: "", field_id: "",
operator: "", operator: "",
field_keyword: "", field_keyword: "",
can_pay: "",
}, },
loading: false, loading: false,
list: [], list: [],
@ -833,7 +851,7 @@ export default {
// //
async toOutPay(row) { async toOutPay(row) {
// this.$refs.payMx.payId = row.id; // this.$refs.payMx.payId = row.id;
this.$refs.payMx.payList = records; this.$refs.payMx.payList = row;
this.isShowPay = true; this.isShowPay = true;
}, },
// //
@ -940,11 +958,26 @@ export default {
this.select.field_id = ""; this.select.field_id = "";
this.select.operator = ""; this.select.operator = "";
this.select.field_keyword = ""; this.select.field_keyword = "";
this.select.page_size = 20
this.can_pay = ''
if (e) { if (e) {
if(e==99){
this.select.page_size = 999
}
this.getFields(e); this.getFields(e);
this.getList(); 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() { showExport() {
this.$refs.isShowFieldExport.config = this.config; this.$refs.isShowFieldExport.config = this.config;
@ -961,6 +994,7 @@ export default {
} }
}, },
async getList(refresh = false) { async getList(refresh = false) {
console.log("this.select", this.select.page_size);
if (this.loading) return; if (this.loading) return;
this.loading = true; this.loading = true;
try { try {
@ -970,6 +1004,7 @@ export default {
const res = await flowList(this.$route.params.type, this.select, false); const res = await flowList(this.$route.params.type, this.select, false);
res.data?.data?.forEach((i) => this.contentFormatter(i)); res.data?.data?.forEach((i) => this.contentFormatter(i));
this.list = res?.data?.data || []; this.list = res?.data?.data || [];
this.beforeList = res?.data?.data || [];
this.total = res?.data?.total ?? 0; this.total = res?.data?.total ?? 0;
this.models = res.customModels; this.models = res.customModels;
this.title = res.pageTitle; this.title = res.pageTitle;

Loading…
Cancel
Save