备注:
@@ -148,17 +136,7 @@
-
-
-
-
-
-
-
-
-
@@ -203,7 +181,6 @@
MB
{{ formData.path }}
-
@@ -229,7 +206,6 @@
:auto-upload="true">
只能上传 jrxml
文件,且不超过 2 MB
@@ -325,6 +301,7 @@ import {BASE_URL} from "../../../config/app";
import {saveAs} from 'file-saver';
import {demoPrint} from "@/api/itextpdf/itextpdf";
import {isBlank} from "@/utils/strUtil";
+import {getCompanyList} from "@/api/warehouse/company";
const formJson = {
id: "",
@@ -337,6 +314,7 @@ const formJson = {
rowCount: 10,
qrcodeCount: 1,
remark: "",
+ customerId: null
};
const moduleFormJson = {
id: "",
@@ -410,6 +388,7 @@ export default {
uploadDisabled: false,
moduleLoading: false,
moduleNameMap: {0: "标签", 1: "报表", 2: "单据"},
+ customerList: []
};
},
methods: {
@@ -442,6 +421,19 @@ export default {
.then(response => {
this.loading = false;
this.list = response.data.list || [];
+ if (this.list.length > 0) {
+ this.list.forEach(item =>{
+ if (isBlank(item.customerId)) {
+ item.customerName = '公共模板';
+ } else {
+ this.customerList.forEach(customer => {
+ if (item.customerId === customer.customerId){
+ item.customerName = customer.companyName;
+ }
+ });
+ }
+ });
+ }
this.total = response.data.total || 0;
})
.catch(() => {
@@ -517,15 +509,6 @@ export default {
},
// 刷新表单
resetForm() {
- // if (this.$refs["dataForm"]) {
- // // 清空验证信息表单
- // this.$refs["dataForm"].clearValidate();
- // // 刷新表单
- // this.$refs["dataForm"].resetFields();
- // this.fileList = null;
- // this.jrxmlFileList = null;
- // this.getList();
- // }
// 清空验证信息表单
this.$refs["dataForm"].clearValidate();
// 刷新表单
@@ -578,13 +561,6 @@ export default {
showFieldExpain(row) {
this.currentRow = row.fieldExplain.replace('\\\n', '