# Conflicts:
#	src/router/Middle/ProvideLoanApply/router.map.js
This commit is contained in:
zxx 2023-06-16 12:03:44 +08:00
commit ab3ca2db42
4 changed files with 35 additions and 44 deletions

View File

@ -528,11 +528,8 @@ export default {
} }
.gridPanel { .gridPanel {
height: calc(100vh - 300px); height: calc(100vh - 220px);
} }
</style>
<style>
.oplinks svg { .oplinks svg {
width: 22px; width: 22px;
height: 22px; height: 22px;

View File

@ -650,6 +650,16 @@ export default {
}) })
delete postdata.create_time
delete postdata.create_uid
delete postdata.update_time
delete postdata.update_uid
delete postdata.custom_attribute_attribute
delete postdata.custom_attribute_category
delete postdata.custom_attribute_field
delete postdata.mes_materials_sort
console.log(postdata) console.log(postdata)
// //
this.$mk.formatFormData({ data: postdata, rules: this.options.formOptions.items }); this.$mk.formatFormData({ data: postdata, rules: this.options.formOptions.items });

View File

@ -498,8 +498,9 @@ export default {
if (!this.dataId) { if (!this.dataId) {
this.dataId = a.data.id; this.dataId = a.data.id;
this.pageInit();
} }
this.pageInit();
} else { } else {
this.$mk.error(a.msg || "保存失败"); // this.$mk.error(a.msg || "保存失败"); //
} }
@ -676,38 +677,7 @@ export default {
width: width * 0.9, width: width * 0.9,
height: height * 0.9, height: height * 0.9,
callback: ({ data }) => { callback: ({ data }) => {
if (data.list && data.details && data.details.length) { console.log(data)
this.formOptions.data = this.getDefaultData();
this.formOptions.data.AAPartner = data.list[0].AAPartner;
this.formOptions.data.WorkingProcedure = data.list[0].WorkingProcedure;
var rows = [];
data.details.forEach(item => {
var row = {
AAProduct: item.AAInventory,
AAProductID: item.AAInventoryID
};
row.ProductCode = item.AAInventoryCode;
row.specification = item.specification;
row.UnitName = item.ProductionUnitTitle;
if (this.firstQuantityFieldName) {
row[this.firstQuantityFieldName] = (item.Quantity || 0) - (item.QuantityReceived || 0);
}
row.SourceTableName = "TP_outSourceOrder";
row.SourceTableID = item.OutSourceOrderID;
rows.push(row);
});
for (let i = rows.length; i < 10; i++) {
rows.push({});
}
console.log(rows)
this.detailsData = rows;
this.updateCurrentQuantity();
} else {
this.$mk.error("未选择任何数据");
}
} }
}) })
} }

View File

@ -51,6 +51,17 @@ export default {
start_time: 0, // start_time: 0, //
end_time: 0, // end_time: 0, //
exportFileTitle: "车贷客户信息列表",
enabledExport: true,
enabledImport: false,
enabledImportTemplate: false,
exportColumns: [
{ title: '姓名', field: "name" },
{ title: '手机号', field: "phone" },
{ title: '车型', field: "car_type" },
{ title: '城市', field: "work_city" }
],
// //
searchFormData: { searchFormData: {
@ -63,8 +74,8 @@ export default {
], ],
// //
searchFormItems: [ // searchFormItems: [ //
{ field: 'name', title: '姓名', span: 5, itemRender: { name: '$input', props: { placeholder: '请输入姓名' } } }, { field: 'name', title: '姓名', span: 6, itemRender: { name: '$input', props: { placeholder: '请输入姓名' } } },
{ span: 6, slots: { default: 'date' } },
{ {
align: 'right', span: 4, itemRender: { // align: 'right', span: 4, itemRender: { //
name: '$buttons', children: [{ props: { type: 'submit', content: '搜索', status: 'primary' } }, // name: '$buttons', children: [{ props: { type: 'submit', content: '搜索', status: 'primary' } }, //
@ -84,9 +95,9 @@ export default {
{ type: 'checkbox', width: 50 }, // { type: 'checkbox', width: 50 }, //
{ title: '操作', slots: { default: 'op' }, width: 120 }, { title: '操作', slots: { default: 'op' }, width: 120 },
{ field: 'name', sortable: true, title: '姓名', width: 250 }, { field: 'name', sortable: true, title: '姓名', width: 130 },
{ field: 'phone', sortable: true, title: '手机号', width: 250 }, { field: 'phone', sortable: true, title: '手机号', width: 130 },
{ field: 'car_type', sortable: true, title: '车型', width: 250 }, { field: 'car_type', sortable: true, title: '车型', width: 100 },
{ field: 'work_city', sortable: true, title: '城市', width: 250 }, { field: 'work_city', sortable: true, title: '城市', width: 250 },
@ -110,4 +121,7 @@ export default {
} }
}; };
</script> </script>
<style scoped lang="less">
</style>