diff --git a/public/config.json b/public/config.json
index d9c3d49..b0ef407 100644
--- a/public/config.json
+++ b/public/config.json
@@ -1,4 +1,4 @@
{
- "BASE_URL": "http://127.0.0.1:9996",
- "SERVER_IP": "http://127.0.0.1:9996"
+ "BASE_URL": "http://192.168.0.109:9996",
+ "SERVER_IP": "http://192.168.0.109:9996"
}
diff --git a/src/api/basic/basicUnitMaintain.js b/src/api/basic/basicUnitMaintain.js
index 62ac2c8..0be069e 100644
--- a/src/api/basic/basicUnitMaintain.js
+++ b/src/api/basic/basicUnitMaintain.js
@@ -7,6 +7,15 @@ export function getBasicUnitMaintains(query) {
params: query
});
}
+export function getCorpFilter(query) {
+ return axios({
+ url: "/sale/info/company/product/corp/filter",
+ method: "get",
+ params: query
+ });
+}
+
+
export function getBasicUnitMaintains2(query) {
return axios({
diff --git a/src/api/basic/udiRelevance.js b/src/api/basic/udiRelevance.js
index e43a741..a57d404 100644
--- a/src/api/basic/udiRelevance.js
+++ b/src/api/basic/udiRelevance.js
@@ -112,6 +112,14 @@ export function uploadSmp(query) {
});
}
+export function disableUdi(query) {
+ return axios({
+ url: "/udi/udirel/disable",
+ method: "post",
+ data: query
+ });
+}
+
export function thirdSysDetail(query) {
return axios({
url: "/udiwms/udirel/thirdSys/detail",
diff --git a/src/api/warehouse/order.js b/src/api/warehouse/order.js
index ca7de18..72afbc2 100644
--- a/src/api/warehouse/order.js
+++ b/src/api/warehouse/order.js
@@ -237,6 +237,15 @@ export function updateBindSup(query) {
)
}
+export function updateCodeBindSup(query) {
+ return axios(
+ {
+ url: "/udiwms/addCode/updateBindSup",
+ method: "post",
+ data: query
+ }
+ )
+}
export function backStock(query) {
return axios(
diff --git a/src/views/basic/BussinessTypeModify.vue b/src/views/basic/BussinessTypeModify.vue
index db74888..d847b65 100644
--- a/src/views/basic/BussinessTypeModify.vue
+++ b/src/views/basic/BussinessTypeModify.vue
@@ -120,7 +120,6 @@
-
@@ -146,34 +145,30 @@
特殊单据往来:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
@@ -373,6 +368,7 @@ import {
} from "../../api/basic/busLocalType";
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
import {getCandidateBussinessType} from "../../api/receipts/bussinessType";
+import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
export default {
name: "inputQuery",
@@ -392,6 +388,7 @@ export default {
},
storageList: [],
orderTypeList: [],
+ fromSpecialOptions: [],
thirdSys: [],
localTypes: [],
options: [{
@@ -404,6 +401,9 @@ export default {
{
value: '2',
label: '客户信息'
+ }, {
+ value: '3',
+ label: '特殊往来'
}],
twoCheck: false,
@@ -440,6 +440,16 @@ export default {
.catch(() => {
});
},
+ findSpecialMethod() {
+ let query = {
+ corpType: 4,
+ };
+ getBasicUnitMaintains(query).then((response) => {
+ this.fromSpecialOptions = response.data.page.list || [];
+ }).catch(() => {
+
+ })
+ },
oneCheck(type) {
console.log(type);
if (!type) {
@@ -490,6 +500,7 @@ export default {
}
this.getList();
this.getStorage();
+ this.findSpecialMethod();
},
};
diff --git a/src/views/basic/CorpMaintain.vue b/src/views/basic/CorpMaintain.vue
index b74880f..0deb45c 100644
--- a/src/views/basic/CorpMaintain.vue
+++ b/src/views/basic/CorpMaintain.vue
@@ -7,8 +7,10 @@
+
+
@@ -267,10 +269,17 @@
往来单位类型:
+
+
-
-
-
+
+
+
+
@@ -347,6 +356,21 @@ export default {
0: "选入往来单位信息",
1: "关联往来单位信息",
},
+
+ corpTypeList: [
+ {
+ value: 1,
+ label: "客户"
+ },
+ {
+ value: 2,
+ label: "供应商"
+ },
+ {
+ value: 4,
+ label: "特殊往来"
+ }
+ ],
formRules: {
// name: [
// {required: true, message: "请输入名称", trigger: "blur"}
diff --git a/src/views/basic/UdiInfoManage.vue b/src/views/basic/UdiInfoManage.vue
index 4a6a2d9..c556f0f 100644
--- a/src/views/basic/UdiInfoManage.vue
+++ b/src/views/basic/UdiInfoManage.vue
@@ -683,6 +683,7 @@
是否禁用
@@ -769,7 +770,7 @@ import {
updateErpProduct,
uploadSmp,
thirdSysDetail,
- removeRl, sysFilter, spcombie, lockStatus, removeDiRl
+ removeRl, sysFilter, spcombie, lockStatus, removeDiRl, disableUdi
} from "../../api/basic/udiRelevance";
import {selectSysParamByKey} from "../../api/param/systemParamConfig";
import {filterByUuid} from "../../api/basic/udiInfo";
@@ -871,6 +872,23 @@ export default {
this.total = 0;
});
},
+ diableChange() {
+ let query = {
+ relId: this.editQuery.id
+ }
+ disableUdi(query)
+ .then((response) => {
+ if (response.code != 20000) {
+ this.editQuery.isDisable = false;
+ this.$message.error(response.message);
+ }
+
+ })
+ .catch(() => {
+ this.loading = false;
+ this.detailList = [];
+ });
+ },
keyup_submit(event) {
this.filterQuery.page = 1;
this.getList();
diff --git a/src/views/basic/invWarehouse.vue b/src/views/basic/invWarehouse.vue
index 355b610..4ae148c 100644
--- a/src/views/basic/invWarehouse.vue
+++ b/src/views/basic/invWarehouse.vue
@@ -64,15 +64,18 @@
{{ enableMap[scope.row.advanceType] }}
@@ -80,11 +83,13 @@
@@ -149,11 +154,11 @@
stripe
style="width: 100%">
-
-
-
-
-
+
+
-
+
-
+
禁用
正常
@@ -895,7 +902,12 @@ export default {
},
formSubmit() {
this.$refs["dataForm"].validate((valid) => {
+
if (valid) {
+ if (this.formData.pcode == null && this.formData.level != 1) {
+ this.$message.warning("上级仓库不能为空");
+ return;
+ }
this.formLoading = true;
let data = Object.assign({}, this.formData);
saveWarehouse(data, this.formName)
@@ -1063,9 +1075,14 @@ export default {
},
changeLevel(row) {
this.formData.pcode = null;
+ //TODO
this.getParentInv(this.formData.level);
},
+ pcodeChange() {
+ this.$forceUpdate()
+ },
+
loadLinkData(row) {
let query = {
code: row.code
diff --git a/src/views/inventory/InvPreProductsDetail.vue b/src/views/inventory/InvPreProductsDetail.vue
index 515d74c..5355322 100644
--- a/src/views/inventory/InvPreProductsDetail.vue
+++ b/src/views/inventory/InvPreProductsDetail.vue
@@ -225,6 +225,7 @@ export default {
this.query.productIdFk = this.idQuery.relIdFk;
this.query.batchNo = this.idQuery.batchNo;
this.query.supId = this.idQuery.supId;
+ this.query.invStorageCode = this.idQuery.invStorageCode;
filterDetailProducts(this.query) //查找该单号下的所有条码
.then((response) => {
this.loading = false;
@@ -242,6 +243,7 @@ export default {
this.query.productIdFk = this.idQuery.relIdFk;
this.query.batchNo = this.idQuery.batchNo;
this.query.customerId = store.getters.customerId;
+ this.query.invStorageCode = this.idQuery.invStorageCode;
statDetailProducts(this.query) //查找该单号下的所有条码
.then((response) => {
this.loading = false;
diff --git a/src/views/inventory/InvProducts.vue b/src/views/inventory/InvProducts.vue
index 731d586..438558c 100644
--- a/src/views/inventory/InvProducts.vue
+++ b/src/views/inventory/InvProducts.vue
@@ -1,8 +1,8 @@
-
-
+
+
@@ -12,7 +12,6 @@
-
- {{ item.name }}
+ {{ item.companyName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -48,7 +60,6 @@
-
-
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{{ (scope.row.inCount - scope.row.outCount) }}
-
+
+
+
+ show-overflow-tooltip width="120">
{
+ // this.loading = false;
+ // this.fromOptions = response.data.page.list || [];
+ // })
+ // .catch(() => {
+ // this.loading = false;
+ // });
+ filterCustomers(cQuery)
.then((response) => {
- this.loading = false;
- this.fromOptions = response.data.page.list || [];
+ this.fromOptions = response.data.list || [];
})
.catch(() => {
- this.loading = false;
+ this.fromOptions = [];
});
},
getStorage() {
@@ -344,6 +369,7 @@ export default {
created() {
this.getStorage();
this.getBusType();
+ this.findMethod();
let query = this.$route.query;
this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.limit = parseInt(this.filterQuery.limit);
diff --git a/src/views/inventory/InvProductsDetail.vue b/src/views/inventory/InvProductsDetail.vue
index dc977f4..f28489f 100644
--- a/src/views/inventory/InvProductsDetail.vue
+++ b/src/views/inventory/InvProductsDetail.vue
@@ -1,293 +1,296 @@
-
+
-
-
-
- 产品名称
-
- {{ idQuery.cpmctymc }}
-
-
-
- 产品标识
-
- {{ idQuery.nameCode }}
-
+
+
+
+ 产品名称
+
+ {{ idQuery.cpmctymc }}
+
+
+
+ 产品标识
+
+ {{ idQuery.nameCode }}
+
-
-
- 批次号
-
- {{ idQuery.batchNo }}
-
-
-
- 规格型号
-
- {{ idQuery.ggxh }}
-
-
-
- 生产日期
-
- {{ idQuery.productionDate }}
-
-
-
- 失效日期
-
- {{ idQuery.expireDate }}
-
-
+
+
+ 批次号
+
+ {{ idQuery.batchNo }}
+
+
+
+ 规格型号
+
+ {{ idQuery.ggxh }}
+
+
+
+ 生产日期
+
+ {{ idQuery.productionDate }}
+
+
+
+ 失效日期
+
+ {{ idQuery.expireDate }}
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
- 查询
-
-
-
-
-
-
-
-
-
- {{ getActionName(scope.row.action) }}
-
-
-
-
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+ {{ getActionName(scope.row.action) }}
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
diff --git a/src/views/inventory/InvStatistics.vue b/src/views/inventory/InvStatistics.vue
index 7c6b93c..10a310b 100644
--- a/src/views/inventory/InvStatistics.vue
+++ b/src/views/inventory/InvStatistics.vue
@@ -1,111 +1,108 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
+ {{ item.companyName }}
+
+
+
-
-
-
- {{ item.name }}
-
-
-
-
-
-
- 统计
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 统计
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{{ (scope.row.inCount - scope.row.outCount) }}
-
+
+
+
+
diff --git a/src/views/inventory/invPreProducts.vue b/src/views/inventory/invPreProducts.vue
index 5fbdfae..c921375 100644
--- a/src/views/inventory/invPreProducts.vue
+++ b/src/views/inventory/invPreProducts.vue
@@ -1,40 +1,64 @@
-
-
+
+
-
+
- {{ item.name }}
+ {{ item.companyName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{{ (scope.row.inCount - scope.row.outCount) }}
-
-
+
+
+
+
{
+ // this.loading = false;
+ // this.fromOptions = response.data.page.list || [];
+ // })
+ // .catch(() => {
+ // this.loading = false;
+ // });
+ filterCustomers(cQuery)
.then((response) => {
- this.loading = false;
- this.fromOptions = response.data.page.list || [];
+ this.fromOptions = response.data.list || [];
})
.catch(() => {
- this.loading = false;
+ this.fromOptions = [];
});
},
@@ -313,6 +354,7 @@ export default {
};
},
created() {
+ this.findMethod();
this.getBusType();
let query = this.$route.query;
this.filterQuery = Object.assign(this.filterQuery, query);
diff --git a/src/views/inventory/supInvPreProducts.vue b/src/views/inventory/supInvPreProducts.vue
index 70d43bb..5bad32c 100644
--- a/src/views/inventory/supInvPreProducts.vue
+++ b/src/views/inventory/supInvPreProducts.vue
@@ -45,25 +45,25 @@
-
-
- 详情
-
+
+
+
+
+
+
+
+
+
- 删除
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/views/inventory/supInvProducts.vue b/src/views/inventory/supInvProducts.vue
index a98ed8b..269a45b 100644
--- a/src/views/inventory/supInvProducts.vue
+++ b/src/views/inventory/supInvProducts.vue
@@ -45,25 +45,25 @@
-
-
- 详情
-
+
+
+
+
+
+
+
+
+
- 删除
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index e790a51..1eae648 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -3,7 +3,7 @@
-
医院UDI自助平台
+ zhaoan医院UDI自助平台
@@ -169,7 +169,7 @@
:close-on-press-escape="false"
:visible.sync="formVisible"
:before-close="hideForm"
- width="60%"
+ width="40%"
top="5vh"
>
diff --git a/src/views/warehouse/DialogSelectRl.vue b/src/views/warehouse/DialogSelectRl.vue
index 86353da..e863ee5 100644
--- a/src/views/warehouse/DialogSelectRl.vue
+++ b/src/views/warehouse/DialogSelectRl.vue
@@ -704,21 +704,27 @@
});
},
bindId(val) {
- let query = {
- id: this.curRow.id,
- bindStatus: 0,
- bindRlFk: val.id
- };
- updateBind(query).then((response) => {
- if (response.code == 20000) {
- this.$message.success("绑定成功");
- this.closeBindDialog(this.curRow.id);
- } else {
- this.$message.error("绑定失败");
- }
- }).catch(() => {
+ if(this.curRow.code!=null){
+ this.$emit("selectBindRl", val);
+ this.$emit("closeBindDialog",true);
+ }else {
+ let query = {
+ id: this.curRow.id,
+ bindStatus: 0,
+ bindRlFk: val.id
+ };
+ updateBind(query).then((response) => {
+ if (response.code == 20000) {
+ this.$message.success("绑定成功");
+ this.closeBindDialog(this.curRow.id);
+ } else {
+ this.$message.error("绑定失败");
+ }
+ }).catch(() => {
+
+ });
+ }
- });
},
diff --git a/src/views/warehouse/DialogSelectUnit.vue b/src/views/warehouse/DialogSelectUnit.vue
index 739b956..80f05f6 100644
--- a/src/views/warehouse/DialogSelectUnit.vue
+++ b/src/views/warehouse/DialogSelectUnit.vue
@@ -12,6 +12,13 @@
>查询
+ 确定
+
@@ -19,7 +26,8 @@
v-loading="loading"
:data="unitlist"
style="width: 100%"
- @row-click="selectUnit"
+ highlight-current-row
+ @current-change="handleDetail"
>
import {updateUnit} from "@/api/warehouse/order";
-import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
+import {getBasicUnitMaintains, getCorpFilter} from "@/api/basic/basicUnitMaintain";
export default {
name: "DialogSelectUnit",
+ props: {
+ codeId: {
+ type: Object,
+ required: true,
+ },
+ },
data() {
return {
unitquery: {key: "", page: 1, limit: 20},
@@ -76,11 +90,43 @@ export default {
this.loading = false;
});
},
- selectUnit(row) {
- console.log(row.id);
- this.$emit("selectUnit", row);
+ getUnitListByCode(row) {
+ let query = {
+ udiRlIdFk: row.relId,
+ }
+ getCorpFilter(query)
+ .then((response) => {
+ this.loading = false;
+ if (response.code == 20000) {
+ this.unitlist = response.data || [];
+ } else {
+ this.$message.warning(response.message);
+ }
+
+ })
+ .catch(() => {
+ this.loading = false;
+ });
+ },
+
+ handleDetail(row) {
+ this.curUnitRow = row;
},
+ selectUnit() {
+ this.$emit("selectSupUnit", this.curUnitRow);
+ this.$emit("closeBindDialog", true);
+ },
+ },
+ created() {
+
},
+ mounted() {
+ console.log("this.codeId = " + this.codeId)
+ if (this.codeId != null) {
+ this.getUnitListByCode(this.codeId)
+ }
+ }
+
}
diff --git a/src/views/warehouse/IOCheckErrOrder.vue b/src/views/warehouse/IOCheckErrOrder.vue
index 700fca4..3309784 100644
--- a/src/views/warehouse/IOCheckErrOrder.vue
+++ b/src/views/warehouse/IOCheckErrOrder.vue
@@ -13,16 +13,16 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+ 草稿保存
+
提交订单
@@ -33,7 +32,7 @@
- 日期:
+ 单据时间:
@@ -49,7 +48,6 @@
-
@@ -97,7 +95,6 @@
-
@@ -108,7 +105,7 @@
+ v-if="curAction.corpType ==0 || curAction.corpType == 3 || (curAction.corpType == 2 && !curAction.genUnit)">
-
+
-
@@ -174,7 +171,6 @@
@focus="getInputFocus($event)"
@keypress.enter.native="addCode()"
v-model="formData.code"
- auto-complete="off"
ref='inputRef'
>
@@ -195,6 +191,7 @@
+
+
+
删除
+ 选择产品
+
+ 选择供应商
+
@@ -235,12 +255,41 @@
+
+
+
+
+
+
+
+