合同 集合付款登记

master
lion 3 months ago
parent 2daab7ffdb
commit 861c2ebc96

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

@ -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;

Loading…
Cancel
Save