@@ -195,7 +220,8 @@
>
只能上传 jasper 文件,且不超过 2
+
只能上传 jasper 文件,且不超过
+ 2
MB
{{ formData.path }}
@@ -320,12 +346,14 @@ import {saveAs} from 'file-saver';
import {demoPrint} from "@/api/itextpdf/itextpdf";
import {isBlank} from "@/utils/strUtil";
import {getCompanyList} from "@/api/warehouse/company";
+import {getBussinessType} from "@/api/basic/bussinessType";
const formJson = {
id: "",
name: "",
type: "2",
module: null,
+ action: null,
param: "",
path: "",
jrxmlPath: null,
@@ -407,7 +435,9 @@ export default {
uploadDisabled: false,
moduleLoading: false,
moduleNameMap: {0: "标签", 1: "报表", 2: "单据"},
- customerList: []
+ customerList: [],
+ actions: [],
+ enableAction: true
};
},
methods: {
@@ -441,12 +471,12 @@ export default {
this.loading = false;
this.list = response.data.list || [];
if (this.list.length > 0) {
- this.list.forEach(item =>{
+ this.list.forEach(item => {
if (isBlank(item.customerId)) {
item.customerName = '公共模板';
} else {
this.customerList.forEach(customer => {
- if (item.customerId === customer.customerId){
+ if (item.customerId === customer.customerId) {
item.customerName = customer.companyName;
}
});
@@ -592,6 +622,14 @@ export default {
this.formData = Object.assign({}, row);
this.formData.module = row.module + "";
}
+
+ if (!isBlank(row.customerId)) {
+ this.enableAction = false;
+ this.getActions(row.customerId);
+ } else {
+ this.enableAction = true;
+ this.actions = [];
+ }
this.index = index;
this.formName = "update";
this.uploadDisabled = true;
@@ -806,6 +844,25 @@ export default {
}
});
},
+ getActions(customerId) {
+ let query = {
+ customerId: customerId === null ? this.formData.customerId : customerId,
+ page: 1,
+ limit: 10000
+ }
+ getBussinessType(query).then((res) => {
+ this.actions = res.data.list;
+ });
+ },
+ changeCustomer() {
+ if (!isBlank(this.formData.customerId)) {
+ this.formData.action = null;
+ this.getActions();
+ this.enableAction = false;
+ } else {
+ this.enableAction = true;
+ }
+ },
},
filters: {
paramStatusFilterType(paramStatus) {
@@ -830,6 +887,7 @@ export default {
this.getPDFModuleNameList();
this.getModuleList();
this.getCustomerList();
+ this.getActions();
this.uploadUrl = BASE_URL + "/udiwms/upload/pdf/template/jasper";
this.uploadJrxmlUrl = BASE_URL + "/udiwms/upload/pdf/template/jrxml";
this.headers = {
diff --git a/src/views/userManage/register.vue b/src/views/userManage/register.vue
index 5e3a003..a52f201 100644
--- a/src/views/userManage/register.vue
+++ b/src/views/userManage/register.vue
@@ -541,7 +541,7 @@ export default {
this.$refs[formName].validate((valid) => {
if (valid) {
this.loading = true;
- if (this.fileList.length === 0) {
+ if (this.inputQuery.licenseUrl === null) {
this.$message.error("请上传营业执照电子档案!")
return;
}
@@ -619,6 +619,10 @@ export default {
}, 1000);
},
handleChange(value) {
+ if (value[0] === "" || value[1] === "" || value[2] === "") {
+ this.$message.error("请选择所属地区");
+ return;
+ }
this.inputQuery.area = CodeToText[value[0]];
if (CodeToText[value[1]] != null && CodeToText[value[1]] != ""
&& CodeToText[value[1]] != "undefined") {
diff --git a/src/views/warehouse/ioErrorOrder.vue b/src/views/warehouse/ioErrorOrder.vue
index 28d82db..0db309d 100644
--- a/src/views/warehouse/ioErrorOrder.vue
+++ b/src/views/warehouse/ioErrorOrder.vue
@@ -359,6 +359,7 @@ export default {
resetUnitQuery() {
this.unitlist = [];
this.unitquery = {key: "", page: 1, limit: 20};
+ this.getUnitList();
},
getUnitList(page) {
this.loading = true;