diff --git a/src/api/basic/busChangeType.js b/src/api/basic/busChangeType.js index e1b491a..60c227a 100644 --- a/src/api/basic/busChangeType.js +++ b/src/api/basic/busChangeType.js @@ -7,6 +7,13 @@ export function getChangeBusType(query) { params: query }); } +export function filterAll(query) { + return axios({ + url: "/spms/busTypeChange/filter", + method: "get", + params: query + }); +} export function addChangeBusType(query) { diff --git a/src/router/index.js b/src/router/index.js index bf080df..3e723ca 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,6 +65,7 @@ import stockDeliveryOrder from "../views/warehouse/stockDeliveryOrder"; 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"; //基础数据维护 @@ -383,7 +384,6 @@ export const asyncRouterMap = [ authRule: ["product/BussinessTypeLocl"] } }, - { path: "bussinessTypeChange", name: "单据流转设置", @@ -393,6 +393,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 bbbdd0b..c2eb735 100644 --- a/src/views/basic/BussinessTypeLoclModify.vue +++ b/src/views/basic/BussinessTypeLoclModify.vue @@ -116,38 +116,34 @@ - -
- - 自动补单 - -
-
- -
- 全量补单 - -
-
+ + + + + + + + + + + + + + + + +
- - - - - + @@ -91,9 +91,13 @@ - - + + + + + + @@ -245,7 +249,7 @@ export default { listApplyDetail(query) //查找该单号下的所有条码 .then((response) => { this.detailList = response.data.list || []; - + this.loading = false; }) .catch(() => { diff --git a/src/views/purchase/purApplyEditDiaolog.vue b/src/views/purchase/purApplyEditDiaolog.vue index 8d0a20e..a2b511b 100644 --- a/src/views/purchase/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApplyEditDiaolog.vue @@ -85,7 +85,7 @@ - +
申购说明:
@@ -96,7 +96,7 @@
- +
@@ -104,7 +104,7 @@
- + @@ -140,18 +140,7 @@ prop="spec" show-overflow-tooltip > - - - - + + + + + + - + + @@ -86,9 +87,11 @@ - - + + + + diff --git a/src/views/purchase/purPlanDetailDialog.vue b/src/views/purchase/purPlanDetailDialog.vue index 21272a5..53d7fa3 100644 --- a/src/views/purchase/purPlanDetailDialog.vue +++ b/src/views/purchase/purPlanDetailDialog.vue @@ -87,30 +87,88 @@
- 采购说明: + 审核说明:
- - + +
- 审核说明: + 采购说明:
- + + + + + 是否生成采购入库单 + + +
+ + + + +
+ 入库仓库: +
+
+ + + + + + {{ item.name }} + + + + + + +
+ 入库单据类型: +
+
+ + + + + {{ item.localName }} + + + + + + +
@@ -199,6 +257,7 @@
@@ -210,6 +269,7 @@ import stockOrderNewSelectProduct from "../warehouse/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 fb53f18..177db2e 100644 --- a/src/views/purchase/purPlanEditDialog.vue +++ b/src/views/purchase/purPlanEditDialog.vue @@ -55,25 +55,25 @@ - -
- 采购类型: -
-
- - - - - {{ item.originName }} - - - - + + + + + + + + + + + + + + + + + + +
@@ -107,9 +107,7 @@ - -
采购说明: @@ -120,35 +118,49 @@ -   -
-                            拒绝原因: -                       
-                   
-                    -                        -                            -                        -                    + + +
+ 拒绝原因: +
+
+ + + + + + + - - 产品录入 - - + + + + + + 产品录入 + + 选入申购单 + + + + + @@ -163,18 +175,7 @@ prop="spec" show-overflow-tooltip > - - - - + + + + + + + + + + + + - + + @@ -85,9 +86,11 @@ - - + + + + @@ -242,7 +245,7 @@ export default { listApplyDetail(query) //查找该单号下的所有条码 .then((response) => { this.detailList = response.data.list || []; - + this.loading = false; }) .catch(() => { diff --git a/src/views/purchase/pureApplyAudit.vue b/src/views/purchase/pureApplyAudit.vue index 86f1e55..ad5ac5d 100644 --- a/src/views/purchase/pureApplyAudit.vue +++ b/src/views/purchase/pureApplyAudit.vue @@ -52,10 +52,14 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + + + + +