业务单据选择校验,业务单据修改,选入产品新增价格字段
parent
bb82c73b78
commit
af2bc77b2a
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"BASE_URL": "http://139.9.178.73:8080/SPMS_SERVER",
|
"BASE_URL": "http://192.168.0.109:9996",
|
||||||
"SERVER_IP": "http://139.9.178.73:8080/SPMS_SERVER",
|
"SERVER_IP": "http://192.168.0.109:9996",
|
||||||
"hosp_name": "诏安县总医院(测试)"
|
"hosp_name": "诏安县总医院(测试)"
|
||||||
}
|
}
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* Created by lk on 17/6/4.
|
|
||||||
*/
|
|
||||||
import axios from "../../utils/axios";
|
|
||||||
|
|
||||||
// 谁最懂我相关
|
|
||||||
|
|
||||||
// 列表
|
|
||||||
export function adList(query) {
|
|
||||||
return axios({
|
|
||||||
url: "/admin/ad/ad/index",
|
|
||||||
method: "get",
|
|
||||||
params: query
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 保存
|
|
||||||
export function adSave(data, formName, method = "post") {
|
|
||||||
var url = formName === "add" ? "/admin/ad/ad/save" : "/admin/ad/ad/edit";
|
|
||||||
return axios({
|
|
||||||
url: url,
|
|
||||||
method: method,
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除
|
|
||||||
export function adDelete(data) {
|
|
||||||
return axios({
|
|
||||||
url: "/admin/ad/ad/delete",
|
|
||||||
method: "post",
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* Created by lk on 17/6/4.
|
|
||||||
*/
|
|
||||||
import axios from "../../utils/axios";
|
|
||||||
|
|
||||||
// 谁最懂我相关
|
|
||||||
|
|
||||||
// 列表
|
|
||||||
export function adSiteList(query) {
|
|
||||||
return axios({
|
|
||||||
url: "/admin/ad/site/index",
|
|
||||||
method: "get",
|
|
||||||
params: query
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 广告列表
|
|
||||||
export function adSiteAdList(query) {
|
|
||||||
return axios({
|
|
||||||
url: "/admin/ad/site/adList",
|
|
||||||
method: "get",
|
|
||||||
params: query
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 保存
|
|
||||||
export function adSiteSave(data, formName, method = "post") {
|
|
||||||
var url =
|
|
||||||
formName === "add" ? "/admin/ad/site/save" : "/admin/ad/site/edit";
|
|
||||||
return axios({
|
|
||||||
url: url,
|
|
||||||
method: method,
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除
|
|
||||||
export function adSiteDelete(data) {
|
|
||||||
return axios({
|
|
||||||
url: "/admin/ad/site/delete",
|
|
||||||
method: "post",
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
}
|
|
@ -0,0 +1,342 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card>
|
||||||
|
|
||||||
|
|
||||||
|
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
|
||||||
|
<el-form-item class="query-form-item">
|
||||||
|
<el-input
|
||||||
|
v-model="filterQuery.name"
|
||||||
|
placeholder="业务类型"
|
||||||
|
style="width: 400px"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item class="query-form-item">
|
||||||
|
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
|
||||||
|
<el-option
|
||||||
|
v-for="item in thirdSys"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.thirdName"
|
||||||
|
:value="item.thirdId">
|
||||||
|
<span style="float: left">{{ item.thirdName }}</span>
|
||||||
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;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="handleAddClick"
|
||||||
|
>新增
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button type="primary" icon="search" @click="updateDownload">更新下载</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
||||||
|
<el-table-column label="序号" type="index" width="55"></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="单据类型名称" prop="name"></el-table-column>
|
||||||
|
<el-table-column label="单据类型代码" prop="action"></el-table-column>
|
||||||
|
<el-table-column label="第三方系统" prop="thirdSys"></el-table-column>
|
||||||
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
||||||
|
<el-table-column label="操作" width="100" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="handleModifyClick(scope.row)"
|
||||||
|
>编辑
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="handleDeleteClick(scope.row)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="新增第三方单据类型"
|
||||||
|
:visible.sync="addDialogVisible"
|
||||||
|
width="70%"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
v-if="addDialogVisible"
|
||||||
|
>
|
||||||
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
||||||
|
<div style="text-align: center">
|
||||||
|
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
|
||||||
|
>提交
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
||||||
|
>取消
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="编辑第三方单据类型"
|
||||||
|
:visible.sync="modifyDialogVisible"
|
||||||
|
width="70%"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
v-if="modifyDialogVisible"
|
||||||
|
>
|
||||||
|
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
|
||||||
|
<div style="text-align: center">
|
||||||
|
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
|
||||||
|
>提交
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
||||||
|
>取消
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-pagination
|
||||||
|
:page-size="filterQuery.limit"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="total"
|
||||||
|
></el-pagination>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getOriginBusType,
|
||||||
|
updateBussinessType, delBussinessType,
|
||||||
|
insertBussinessType, downloadBussinessType
|
||||||
|
} from "../../api/basic/busOriginType";
|
||||||
|
|
||||||
|
import modifyDialog from "./BussinessTypeThirdModify";
|
||||||
|
import axios from "axios";
|
||||||
|
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
name: "",
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
addDialogVisible: false,
|
||||||
|
modifyDialogVisible: false,
|
||||||
|
list: [],
|
||||||
|
inputQuery: {
|
||||||
|
action: "",
|
||||||
|
name: "",
|
||||||
|
enable: "",
|
||||||
|
remark: "",
|
||||||
|
thirdSys: null,
|
||||||
|
thirdSysName: null,
|
||||||
|
|
||||||
|
},
|
||||||
|
enableMap: {
|
||||||
|
true: "是",
|
||||||
|
false: "否",
|
||||||
|
},
|
||||||
|
thirdSys: [],
|
||||||
|
total: 0,
|
||||||
|
multipleSelection: [],
|
||||||
|
uploadFileUrl: null,
|
||||||
|
loading: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
thirdSys: "thirdId",
|
||||||
|
name: null,
|
||||||
|
enable: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
cancelDialog() {
|
||||||
|
this.modifyDialogVisible = false;
|
||||||
|
this.addDialogVisible = false;
|
||||||
|
},
|
||||||
|
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getOriginBusType(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.list = response.data.list || [];
|
||||||
|
this.total = response.data.total || 0;
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getBasicThirdSys() {
|
||||||
|
let query = {
|
||||||
|
enabled: true,
|
||||||
|
};
|
||||||
|
getBasicThirdSys(query)
|
||||||
|
.then((response) => {
|
||||||
|
this.thirdSys = response.data.list || [];
|
||||||
|
this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.list = [];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
updateDownload() {
|
||||||
|
let query = {
|
||||||
|
thirdSys: this.filterQuery.thirdSys,
|
||||||
|
}
|
||||||
|
downloadBussinessType(query)
|
||||||
|
.then((response) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleCurrentChange(val) {
|
||||||
|
this.filterQuery.page = val;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
|
||||||
|
onAddSubmit() {
|
||||||
|
|
||||||
|
|
||||||
|
insertBussinessType(this.inputQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.cancelDialog();
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.cancelDialog();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
onModifySubmit() {
|
||||||
|
updateBussinessType(this.inputQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.cancelDialog();
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.cancelDialog();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleModifyClick(row) {
|
||||||
|
|
||||||
|
this.inputQuery = {
|
||||||
|
id: row.id,
|
||||||
|
remark: row.remark,
|
||||||
|
action: row.action,
|
||||||
|
name: row.name,
|
||||||
|
enable: row.enable,
|
||||||
|
thirdSys: row.thirdSys,
|
||||||
|
thirdSysName: row.thirdSysName
|
||||||
|
};
|
||||||
|
this.modifyDialogVisible = true;
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
handleDeleteClick(row) {
|
||||||
|
this.deleteDialog(row.id)
|
||||||
|
},
|
||||||
|
|
||||||
|
handleAddClick() {
|
||||||
|
this.inputQuery = {
|
||||||
|
action: "",
|
||||||
|
name: "",
|
||||||
|
enable: "",
|
||||||
|
remark: "",
|
||||||
|
thirdSys: null,
|
||||||
|
thirdSysName: null
|
||||||
|
};
|
||||||
|
this.addDialogVisible = true;
|
||||||
|
},
|
||||||
|
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm("此操作将永久删除该单据类型信息, 是否继续?", "提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
let query = {
|
||||||
|
id: rowId,
|
||||||
|
}
|
||||||
|
delBussinessType(query)
|
||||||
|
.then((response) => {
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
thirdSysChange() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
|
||||||
|
init() {
|
||||||
|
axios.get("./config.json").then(res => {
|
||||||
|
// 基础地址
|
||||||
|
let response = res.data.BASE_URL;
|
||||||
|
this.uploadFileUrl = response + "udiwms/busstiness/file/upload";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
modifyDialog,
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.init();
|
||||||
|
this.getBasicThirdSys();
|
||||||
|
this.getList();
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,156 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-row :gutter="20" class="el-row" type="flex">
|
||||||
|
<el-col :span="10" class="el-col">
|
||||||
|
<div class="text item">
|
||||||
|
<div class="itemTag">
|
||||||
|
<span>单据类型名称: </span>
|
||||||
|
</div>
|
||||||
|
<el-input
|
||||||
|
style="width: 200px"
|
||||||
|
size="small"
|
||||||
|
splaceholder="请输入内容"
|
||||||
|
:disabled="!isAdd"
|
||||||
|
v-model="inputQuery.name"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10" class="el-col">
|
||||||
|
<div class="text item">
|
||||||
|
<div class="itemTag">
|
||||||
|
<span>单据类型代码: </span>
|
||||||
|
</div>
|
||||||
|
<el-input
|
||||||
|
style="width: 200px"
|
||||||
|
:disabled="!isAdd"
|
||||||
|
size="small"
|
||||||
|
splaceholder="请输入内容"
|
||||||
|
v-model="inputQuery.action"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row :gutter="20" class="el-row" type="flex">
|
||||||
|
<el-col :span="10" class="el-col">
|
||||||
|
<div class="text item">
|
||||||
|
<div class="itemTag">
|
||||||
|
<span>第三方系统: </span>
|
||||||
|
</div>
|
||||||
|
<el-select v-model="inputQuery.thirdSys" placeholder="请选择" clearable="true">
|
||||||
|
<el-option
|
||||||
|
v-for="item in thirdSys"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.thirdName"
|
||||||
|
:value="item.thirdId">
|
||||||
|
<span style="float: left">{{ item.thirdName }}</span>
|
||||||
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10" class="el-col">
|
||||||
|
<div class="text item">
|
||||||
|
<div class="itemTag">
|
||||||
|
<span>备注: </span>
|
||||||
|
</div>
|
||||||
|
<el-input
|
||||||
|
style="width: 200px"
|
||||||
|
size="small"
|
||||||
|
splaceholder="请输入内容"
|
||||||
|
v-model="inputQuery.remark"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-divider></el-divider>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import {
|
||||||
|
getBasicThirdSys,
|
||||||
|
} from "../../api/basic/basicThirdSys";
|
||||||
|
|
||||||
|
import {
|
||||||
|
getLocalBusType,
|
||||||
|
} from "../../api/basic/busLocalType";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "inputQuery",
|
||||||
|
props: {
|
||||||
|
inputQuery: {
|
||||||
|
type: Object,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
enabled: true,
|
||||||
|
isBuType: true,
|
||||||
|
},
|
||||||
|
thirdSys: [],
|
||||||
|
localTypes: [],
|
||||||
|
isAdd: false,
|
||||||
|
value: "",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
getBasicThirdSys(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.thirdSys = response.data.list || [];
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.list = [];
|
||||||
|
});
|
||||||
|
getLocalBusType(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
this.localTypes = response.data.list || [];
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.localTypes = [];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
if (this.inputQuery.action == "") {
|
||||||
|
this.isAdd = true;
|
||||||
|
}
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.itemTag {
|
||||||
|
float: left;
|
||||||
|
text-align: left;
|
||||||
|
margin-top: 10px;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
font-size: 13px;
|
||||||
|
font-family: "Microsoft YaHei";
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-col {
|
||||||
|
border-radius: 4px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue