1.修复禅道bug

fengcang
x_z 3 years ago
parent 1a157b68cb
commit 37c5637c08

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

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

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

@ -66,6 +66,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item style="display: flex"> <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-button type="primary" icon="search" @click="searchErpList"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -315,6 +316,22 @@ export default {
}; };
}, },
methods: { 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() { serchList() {
this.unionQuery.page = 1; this.unionQuery.page = 1;
this.getList(); this.getList();

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

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

Loading…
Cancel
Save