1.修复禅道bug

fengcang
x_z 3 years ago
parent 1a157b68cb
commit 37c5637c08

@ -493,7 +493,7 @@ export default {
this.getList();
},
cancelDialog() {
this.getDetailList(this.currentRow);
this.getList();
this.modifyDialogVisible = false;
this.modifyDetailDialogVisible = false;
this.modifyBusYypeDialogVisible = false;

@ -51,7 +51,7 @@
<el-select
v-model="inputQuery.originAction"
filterable
remote
:remote-method="getTypes"
clearable="true"
reserve-keyword
placeholder="请选择第三方系统单据类型"
@ -436,7 +436,6 @@ export default {
isChangeOrder() {
console.log("this.inputQuery.changeEnable = " + this.inputQuery.changeEnable);
if (this.inputQuery.changeEnable) {
this.query.type = "changeEnable";
this.getList()
@ -452,7 +451,6 @@ export default {
this.getTypes();
this.getList();
}
,
}
;
</script>

@ -260,11 +260,23 @@ export default {
this.$message.error("第三方系统不能为空");
return;
}
let numRegExp = '^[0-9]*$';
let numReg = new RegExp(numRegExp);
if (numReg.test(this.inputQuery.name)) {
this.$message.error("单据类型名称不得为纯数字类型!");
return;
}
insertBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
if (response.code === 20000) {
this.loading = false;
this.cancelDialog();
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
@ -378,11 +390,9 @@ export default {
});
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList();
}

@ -66,6 +66,7 @@
</el-select>
</el-form-item>
<el-form-item style="display: flex">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="searchErpList"></el-button>
</el-form-item>
</el-form>
@ -315,6 +316,22 @@ export default {
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.erpQuery = {
code: null,
name: "",
thirdSys: null,
spec: null,
manufactory: null,
registerNo: null,
page: 1,
limit: 10,
};
this.getErpList();
},
serchList() {
this.unionQuery.page = 1;
this.getList();

@ -110,6 +110,7 @@
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
<el-dialog

@ -48,7 +48,7 @@
<el-form-item>
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" @click="addProductVisible=true" :disabled="!configParms.basicThirdProducts">新增</el-button>
<!--<el-button type="primary" icon="search" @click="clearAll"></el-button>-->
<!--<el-upload-->
@ -203,6 +203,10 @@ export default {
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
if (this.filterQuery.thirdSys == null) {
this.$message.warning("请先选择第三方系统!")

Loading…
Cancel
Save