|
|
|
@ -159,24 +159,21 @@
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
|
@click.native.stop="addUser(scope.row)"
|
|
|
|
|
>管理用户
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
|
@click.native.stop="addBussinessType(scope.row)"
|
|
|
|
|
>管理单据类型
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
|
@click.native.stop="handleSubForm( scope.row, 'edit')"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button
|
|
|
|
@ -227,6 +224,8 @@
|
|
|
|
|
@click.native="relBusttype(scope.row)">
|
|
|
|
|
关联单据类型
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -292,6 +291,15 @@
|
|
|
|
|
<el-table-column label="用户名" prop="employeeName" fixed></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
:page-size="hospitalUserQuery.limit"
|
|
|
|
|
@current-change="getHospitalUser"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="hospitalUserTotal"
|
|
|
|
|
:current-page="hospitalUserQuery.page"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="userFormVisible = !userFormVisible"
|
|
|
|
|
>取消
|
|
|
|
@ -317,13 +325,22 @@
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="selection"
|
|
|
|
|
:reserve-selection="false"
|
|
|
|
|
:reserve-selection="true"
|
|
|
|
|
width="55">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单据类型编码" prop="action" fixed></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型名称" prop="name" fixed></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
:page-size="bussinessTypeQuery.limit"
|
|
|
|
|
@current-change="getBussinessType"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="bussinessTypeTotal"
|
|
|
|
|
:current-page="bussinessTypeQuery.page"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="bussinessTypeFormVisible = !bussinessTypeFormVisible"
|
|
|
|
|
>取消
|
|
|
|
@ -638,7 +655,7 @@
|
|
|
|
|
<el-form :inline="true" :model="thirdSubQuery" class="query-form" size="mini">
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="thirdSubQuery.key"
|
|
|
|
|
v-model="thirdSubQuery.name"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="分库名称"
|
|
|
|
|
style="width: 400px"
|
|
|
|
@ -693,7 +710,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!--用戶關聯單據類型-->
|
|
|
|
|
<!--用户关联单据类型-->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="业务类型关联"
|
|
|
|
|
:visible.sync="relBusUserVisile"
|
|
|
|
@ -715,6 +732,7 @@ import {
|
|
|
|
|
deleteWarehouse, warehouseBussinessTypeList,
|
|
|
|
|
warehouseUserList, saveWarehouseBussinessType,
|
|
|
|
|
saveWarehouseUser, updateDirector, disableWarehouse,
|
|
|
|
|
deleteWarehouseBussinessType,
|
|
|
|
|
bindThrWarehouse, unbindThrWarehouse, filterThridSubByInv, getThrsysDetail
|
|
|
|
|
} from "../../api/basic/invWarehouse";
|
|
|
|
|
import {
|
|
|
|
@ -802,8 +820,8 @@ export default {
|
|
|
|
|
uploadFileUrl: null,
|
|
|
|
|
userData: [],
|
|
|
|
|
bussinessTypeData: [],
|
|
|
|
|
userList: [],
|
|
|
|
|
bussinessTypeList: [],
|
|
|
|
|
userList: null,
|
|
|
|
|
bussinessTypeList: null,
|
|
|
|
|
userFormVisible: false,
|
|
|
|
|
relBusUserVisile: false,
|
|
|
|
|
currentCode: null,
|
|
|
|
@ -834,7 +852,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
thirdSubQuery: {
|
|
|
|
|
parentId: null,
|
|
|
|
|
key: null,
|
|
|
|
|
name: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
thirdSysFk: "thirdId",
|
|
|
|
@ -856,6 +874,17 @@ export default {
|
|
|
|
|
limit: 10
|
|
|
|
|
},
|
|
|
|
|
busTotal: 0,
|
|
|
|
|
hospitalUserQuery: {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
},
|
|
|
|
|
hospitalUserTotal: 0,
|
|
|
|
|
bussinessTypeQuery: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 100
|
|
|
|
|
},
|
|
|
|
|
bussinessTypeTotal: 0,
|
|
|
|
|
curSeleUser: null,
|
|
|
|
|
busTableTitle: null
|
|
|
|
|
};
|
|
|
|
@ -1230,17 +1259,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
loadSubData(parentId) {
|
|
|
|
|
|
|
|
|
|
this.userData = [];
|
|
|
|
|
this.bussinessTypeData = [];
|
|
|
|
|
let subQuery = {
|
|
|
|
|
parentId: parentId,
|
|
|
|
|
}
|
|
|
|
|
filterSubAll(subQuery).then((res) => {
|
|
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.subList = res.data;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
});
|
|
|
|
@ -1297,16 +1323,21 @@ export default {
|
|
|
|
|
this.$message.error("请先选择当前分库!")
|
|
|
|
|
} else {
|
|
|
|
|
this.userFormVisible = true;
|
|
|
|
|
this.hospitalUserQuery.page = 1;
|
|
|
|
|
this.getHospitalUser();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cancelRelBusDiaolog() {
|
|
|
|
|
this.relBusUserVisile = false;
|
|
|
|
|
},
|
|
|
|
|
getHospitalUser() {
|
|
|
|
|
getHospitalUserList().then((res) => {
|
|
|
|
|
getHospitalUser(val) {
|
|
|
|
|
if (val != null) {
|
|
|
|
|
this.hospitalUserQuery.page = val;
|
|
|
|
|
}
|
|
|
|
|
getHospitalUserList(this.hospitalUserQuery).then((res) => {
|
|
|
|
|
this.selectUserList = [];
|
|
|
|
|
this.userList = res.data;
|
|
|
|
|
this.hospitalUserTotal = res.data.total;
|
|
|
|
|
var that = this;
|
|
|
|
|
that.$nextTick(() => {
|
|
|
|
|
if (that.$refs.checkUserList) {
|
|
|
|
@ -1322,11 +1353,14 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getBussinessType() {
|
|
|
|
|
getJoinBussinessType().then((res) => {
|
|
|
|
|
getBussinessType(val) {
|
|
|
|
|
if (val != null) {
|
|
|
|
|
this.bussinessTypeQuery.page = val;
|
|
|
|
|
}
|
|
|
|
|
getJoinBussinessType(this.bussinessTypeQuery).then((res) => {
|
|
|
|
|
this.selectBussinessTypeList = [];
|
|
|
|
|
this.bussinessTypeList = res.data.list;
|
|
|
|
|
|
|
|
|
|
this.bussinessTypeTotal = res.data.total;
|
|
|
|
|
var that = this;
|
|
|
|
|
that.$nextTick(() => {
|
|
|
|
|
if (that.$refs.typeList) {
|
|
|
|
@ -1410,6 +1444,7 @@ export default {
|
|
|
|
|
this.$message.error("请先选择当前分库!")
|
|
|
|
|
} else {
|
|
|
|
|
this.bussinessTypeFormVisible = true;
|
|
|
|
|
this.bussinessTypeQuery.page = 1;
|
|
|
|
|
this.getBussinessType();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -1423,20 +1458,27 @@ export default {
|
|
|
|
|
bussinessTypes: JSON.stringify(this.selectBussinessTypeList)
|
|
|
|
|
};
|
|
|
|
|
saveWarehouseBussinessType(query).then((res) => {
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
//重新加载数据表格
|
|
|
|
|
this.busQuery = {
|
|
|
|
|
code: this.currentCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.$message.success("修改成功!");
|
|
|
|
|
//重新加载数据表格
|
|
|
|
|
this.busQuery = {
|
|
|
|
|
code: this.currentCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
warehouseBussinessTypeList(this.busQuery).then((res) => {
|
|
|
|
|
this.bussinessTypeData = res.data.list;
|
|
|
|
|
this.busTotal = res.data.total;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.bussinessTypeData = [];
|
|
|
|
|
this.busTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
warehouseBussinessTypeList(this.busQuery).then((res) => {
|
|
|
|
|
this.bussinessTypeData = res.data.list;
|
|
|
|
|
this.busTotal = res.data.total;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.bussinessTypeData = [];
|
|
|
|
|
this.busTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -1464,6 +1506,24 @@ export default {
|
|
|
|
|
this.relBusUserVisile = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
delWarehouseBussinessType(id) {
|
|
|
|
|
let params = {id: id};
|
|
|
|
|
deleteWarehouseBussinessType(params).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.$message.success("已移除");
|
|
|
|
|
for (let i = 0; i < this.bussinessTypeData.length; i++) {
|
|
|
|
|
if (this.bussinessTypeData[i].id == id) {
|
|
|
|
|
this.bussinessTypeData.splice(i, 1);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("移除失败");
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error("移除失败");
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//绑定第三方仓库
|
|
|
|
|
bindThrWarehouse() {
|
|
|
|
|
this.thrWareHouseVisible = false;
|
|
|
|
@ -1530,7 +1590,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
intentSelect(row) {
|
|
|
|
|
if (row != null && row.sysId != undefined)
|
|
|
|
|
if (row != null)
|
|
|
|
|
this.currentSysId = row.sysId;
|
|
|
|
|
//加载第三方仓库数据
|
|
|
|
|
this.thirdQuery.thirdSysFk = this.currentSysId;
|
|
|
|
@ -1548,10 +1608,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
intentSubSelect(row) {
|
|
|
|
|
|
|
|
|
|
if (row != null) {
|
|
|
|
|
this.thirdSubQuery.parentId = this.superRow.code;
|
|
|
|
|
this.thirdSubQuery.thirdSysFk = row.sysId;
|
|
|
|
|
if (row.sysId != null && row.sysId != undefined) {
|
|
|
|
|
this.thirdSubQuery.thirdSysFk = row.sysId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.thrSubWarehouseData = [];
|
|
|
|
|
this.thrSubWareHouseVisible = true;
|
|
|
|
@ -1634,8 +1695,7 @@ export default {
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
},
|
|
|
|
|
filters: {
|
|
|
|
|
statusFilterType(status) {
|
|
|
|
|
const statusMap = {
|
|
|
|
@ -1643,8 +1703,7 @@ export default {
|
|
|
|
|
1: "success",
|
|
|
|
|
};
|
|
|
|
|
return statusMap[status];
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
},
|
|
|
|
|
statusFilterName(status) {
|
|
|
|
|
const statusMap = {
|
|
|
|
|
0: "禁用",
|
|
|
|
@ -1652,12 +1711,9 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
return statusMap[status];
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
relBusUserDialog,
|
|
|
|
|
},
|
|
|
|
@ -1667,9 +1723,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getSyncConfig();
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style type="text/scss" lang="scss">
|
|
|
|
|