diff --git a/src/api/basic/busChangeType.js b/src/api/basic/busChangeType.js index 8788771..ae744b6 100644 --- a/src/api/basic/busChangeType.js +++ b/src/api/basic/busChangeType.js @@ -8,6 +8,14 @@ export function getChangeBusType(query) { }); } +export function filterAll(query) { + return axios({ + url: "/spms/busTypeChange/filter", + method: "get", + params: query + }); +} + export function addChangeBusType(query) { return axios({ diff --git a/src/router/index.js b/src/router/index.js index f0a2c52..c8ae0ae 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -28,6 +28,7 @@ import invWarehouse from "../views/basic/invWarehouse" import BussinessType from "../views/basic/BussinessType.vue"; import BussinessTypeLocl from "../views/basic/BussinessTypeLocl.vue"; import bussinessTypeThird from "../views/basic/BussinessTypeThird.vue"; +import otherTypeChange from "../views/basic/OtherTypeChange.vue"; import bussinessTypeChange from "../views/basic/BusTypeChange.vue"; @@ -357,6 +358,15 @@ export const asyncRouterMap = [ } }, + { + path: "otherTypeChange", + name: "耗材领用设置", + component: otherTypeChange, + meta: { + authRule: ["admin/otherTypeChange"] + } + }, + ] }, diff --git a/src/views/basic/BusTypeChange.vue b/src/views/basic/BusTypeChange.vue index 194696a..5447e92 100644 --- a/src/views/basic/BusTypeChange.vue +++ b/src/views/basic/BusTypeChange.vue @@ -16,12 +16,6 @@ style="width: 200px" > - - - - - - @@ -37,21 +31,17 @@ - - - - + + + + + + - - - - - + diff --git a/src/views/basic/BussinessTypeLoclModify.vue b/src/views/basic/BussinessTypeLoclModify.vue index 5573d2c..c1a09aa 100644 --- a/src/views/basic/BussinessTypeLoclModify.vue +++ b/src/views/basic/BussinessTypeLoclModify.vue @@ -124,21 +124,21 @@ - -
- - 自动补单 - -
-
- -
- 全量补单 - -
-
+ + + + + + + + + + + + + + + + + + + + + + + + 查询 + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 提交 + + 取消 + +
+
+ + + + + + diff --git a/src/views/basic/OtherTypeChangeModify.vue b/src/views/basic/OtherTypeChangeModify.vue new file mode 100644 index 0000000..48b633d --- /dev/null +++ b/src/views/basic/OtherTypeChangeModify.vue @@ -0,0 +1,224 @@ + + + + + diff --git a/src/views/basic/UdIInfoSelect.vue b/src/views/basic/UdIInfoSelect.vue index 9bafd45..0b5752f 100644 --- a/src/views/basic/UdIInfoSelect.vue +++ b/src/views/basic/UdIInfoSelect.vue @@ -27,7 +27,7 @@ - + 启用使用单元 + >允许科室多次使用多人份耗材 @@ -529,332 +529,334 @@ diff --git a/src/views/basic/UdiRlDetailDialog.vue b/src/views/basic/UdiRlDetailDialog.vue index 8a92e61..9b38d7e 100644 --- a/src/views/basic/UdiRlDetailDialog.vue +++ b/src/views/basic/UdiRlDetailDialog.vue @@ -385,15 +385,15 @@ export default { data() { return { sysList: [], - checked:false, - detailList:[], - loading:false, + checked: false, + detailList: [], + loading: false, } }, methods: { getThirdSysDetail() { let query = { - id: this.editQuery.rlId, + id: this.editQuery.rlId, }; thirdSysDetail(query) diff --git a/src/views/business/stockOrderNewSelectProduct.vue b/src/views/business/stockOrderNewSelectProduct.vue index 9a28e91..ea5a310 100644 --- a/src/views/business/stockOrderNewSelectProduct.vue +++ b/src/views/business/stockOrderNewSelectProduct.vue @@ -173,11 +173,16 @@ export default { type: Function, required: true, }, + purType: { + type: Object, + required: true, + }, }, data() { return { listQuery: { + purType: null, billNo: "", page: 1, limit: 10, @@ -368,7 +373,8 @@ export default { let tQuery = { datas: ids, stockOrderLists: this.data.stockOrderLists, - zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh + zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh, + purType: this.purType }; getStockOrderDetailInstrumentById(tQuery).then((response) => { this.loading = false; diff --git a/src/views/purchase/purApply.vue b/src/views/purchase/purApply.vue index 1740a12..b753f6a 100644 --- a/src/views/purchase/purApply.vue +++ b/src/views/purchase/purApply.vue @@ -46,7 +46,7 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
- + @@ -91,9 +91,13 @@ - - + + + + + +
diff --git a/src/views/purchase/purApplyEditDiaolog.vue b/src/views/purchase/purApplyEditDiaolog.vue index 7006835..509a2c4 100644 --- a/src/views/purchase/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApplyEditDiaolog.vue @@ -62,7 +62,8 @@ - - + @@ -148,7 +149,7 @@ prop="manufactory" show-overflow-tooltip > - + - + + + + - + + @@ -86,9 +87,11 @@ - - + + + + diff --git a/src/views/purchase/purPlanDetailDialog.vue b/src/views/purchase/purPlanDetailDialog.vue index 8deb7e4..ba1c5b8 100644 --- a/src/views/purchase/purPlanDetailDialog.vue +++ b/src/views/purchase/purPlanDetailDialog.vue @@ -87,34 +87,92 @@
- 采购说明: + 审核说明:
- - + +
- 审核说明: + 采购说明:
- + + + + + 是否生成采购入库单 + + +
+ + + + +
+ 入库仓库: +
+
+ + + + + + {{ item.name }} + + + + + + +
+ 入库单据类型: +
+
+ + + + + {{ item.localName }} + + + + + + +
- +
- + @@ -199,6 +257,7 @@ @@ -210,6 +269,7 @@ import stockOrderNewSelectProduct from "../business/stockOrderNewSelectProduct"; import {auditOrder, delApplyDetail, listApplyDetail} from "@/api/purchase/purPlan"; import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse"; +import {getLocalJoinByUser} from "@/api/basic/busLocalType"; export default { name: "idQuery", @@ -244,6 +304,10 @@ export default { locStorageCode: null, invWarehouseCode: null, auditRemark: null, + autoPurchase: false, + targetInv: 1000, + targetSubInv: null, + targetBillAction: null, }, formRules: {}, codeArray: [], @@ -275,8 +339,10 @@ export default { thisData: {}, storageList: [], subInvList: [], + tarSubList: [], invQueryData: {}, + }; }, components: { @@ -446,6 +512,38 @@ export default { .catch(() => { }); }, + + findTargetSubInvs() { + this.tarSubList = []; + let query = { + pcode: 1000 + }; + filterSubByInv(query) + .then((response) => { + this.tarSubList = response.data || []; + if (this.tarSubList != null && this.tarSubList.length == 1) { + this.formData.targetSubInv = this.tarSubList[0].code; + this.targetInvChange(); + } + }) + .catch(() => { + }); + }, + targetInvChange() { + let query = { + code: this.formData.targetSubInv, + enabled: true, + spUse: true, + }; + getLocalJoinByUser(query) + .then((response) => { + this.busTypes = response.data.list || []; + // this.formData.targetBillAction = this.busTypes[0].localAction; + }) + .catch(() => { + }); + }, + locInChange(item) { if (this.formData.invWarehouseCode != null) { this.formData.invWarehouseCode = ""; @@ -467,6 +565,7 @@ export default { this.query.limit = 100; this.query.orderIdFk = this.idQuery.id; this.formData = this.idQuery.formData; + this.formData.targetInv = 1000; this.orderEditor = true; this.sValue = this.formData.corpName; this.getStockOrderDetailList(); @@ -479,10 +578,16 @@ export default { deptCode: null, locStorageCode: null, invWarehouseCode: null, + auditRemark: null, + autoPurchase: false, + targetInv: 1000, + targetSubInv: null, + targetBillAction: null, }; this.orderEditor = false; } this.getStorage(); + this.findTargetSubInvs(); this.codeArray = []; }, }; diff --git a/src/views/purchase/purPlanEditDialog.vue b/src/views/purchase/purPlanEditDialog.vue index e40729d..4d3c60d 100644 --- a/src/views/purchase/purPlanEditDialog.vue +++ b/src/views/purchase/purPlanEditDialog.vue @@ -55,25 +55,25 @@ - -
- 采购类型: -
-
- - - - - {{ item.originName }} - - - - + + + + + + + + + + + + + + + + + + +
@@ -107,9 +107,7 @@ - -
采购说明: @@ -120,34 +118,49 @@ + + +
+ 拒绝原因: +
+
+ + + + + + - -
-                            拒绝原因: -                       
-                   
-                    -                        -                            -                        -                    + + - - 产品录入 - - + + + + + + 产品录入 + + 选入申购单 + + + + + @@ -162,18 +175,7 @@ prop="spec" show-overflow-tooltip > - - - - + + + + + + + + + + + + - + + @@ -85,9 +86,11 @@ - - + + + + diff --git a/src/views/purchase/pureApplyAudit.vue b/src/views/purchase/pureApplyAudit.vue index 473a86d..e28b7ef 100644 --- a/src/views/purchase/pureApplyAudit.vue +++ b/src/views/purchase/pureApplyAudit.vue @@ -52,7 +52,8 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + + @@ -95,9 +96,11 @@ - - + + + + diff --git a/src/views/purchase/pureApplyDetailDialog.vue b/src/views/purchase/pureApplyDetailDialog.vue index e58f9ca..d4afd11 100644 --- a/src/views/purchase/pureApplyDetailDialog.vue +++ b/src/views/purchase/pureApplyDetailDialog.vue @@ -89,35 +89,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- 当前仓库: + 申购说明:
- - - - - {{ item.name }} - - - - - {{ item.name }} - - + + @@ -128,25 +140,25 @@ - -
- 生成采购计划: -
-
- - - - - {{ item.originName }} - - - - + + + + + + + + + + + + + + + + + + +
@@ -159,6 +171,14 @@ autosize> + + + + + + 是否生成采购计划 + + @@ -180,10 +200,11 @@ prop="spec" show-overflow-tooltip > - + + - - + - + + @@ -230,6 +255,7 @@ > @@ -281,7 +307,8 @@ export default { targetInv: null, targetSubInv: null, targetBillType: null, - auditRemark:"", + auditRemark: "", + audtoPlan: false, }, formRules: {}, codeArray: [], diff --git a/src/views/purchase/pureApplySearch.vue b/src/views/purchase/pureApplySearch.vue index a4e3b7b..e647b66 100644 --- a/src/views/purchase/pureApplySearch.vue +++ b/src/views/purchase/pureApplySearch.vue @@ -52,6 +52,7 @@ + @@ -93,12 +94,15 @@ - - + + + + +