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/api/purchase/purApply.js b/src/api/purchase/purApply.js index 90a0a91..7b73129 100644 --- a/src/api/purchase/purApply.js +++ b/src/api/purchase/purApply.js @@ -85,3 +85,6 @@ export function delApplyDetail(id) { }) } + + + diff --git a/src/api/purchase/purPlan.js b/src/api/purchase/purPlan.js index a6f21b6..3950edc 100644 --- a/src/api/purchase/purPlan.js +++ b/src/api/purchase/purPlan.js @@ -83,4 +83,12 @@ export function delApplyDetail(id) { method: 'delete' }) } +export function selectApply(query) { + return axios({ + url: "/purchase/plan/selectApply", + method: "post", + data: 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/store/index.js b/src/store/index.js index 11a58c6..adcc3ee 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -16,7 +16,7 @@ export default new Vuex.Store({ getters, modules: { app, - admin + admin, }, strict: debug // plugins: debug ? [createLogger()] : [] 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 @@ - - - - + + + + + + - {{ typeMap[scope.row.type] }} + {{ enableMap[scope.row.supplementAll] }} - - - - {{ enableMap[scope.row.enable] }} - - - + 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 @@ - - - - 自动补单 - - - - - - 全量补单 - - - + + + + + + + + + + + + + + + + + - - - - { - if(response.code==999){ - this.$message.error(response.message); - }else{ - this.editChangeTypeVisible = false; - this.getList(); - } + if (response.code == 999) { + this.$message.error(response.message); + } else { + this.editChangeTypeVisible = false; + this.getList(); + } }) .catch(() => { }); diff --git a/src/views/basic/BussinessTypeModify.vue b/src/views/basic/BussinessTypeModify.vue index ca33ff8..934b714 100644 --- a/src/views/basic/BussinessTypeModify.vue +++ b/src/views/basic/BussinessTypeModify.vue @@ -202,7 +202,7 @@ 允许手动输入客户信息 - 以使用单元计量出库 + 允许科室多次使用出库 单据详情展示方式: @@ -221,12 +221,13 @@ - + 单据默认自动补单 出库时必须校验预验收库存 - 是否只允许有库存产品出库 + + 是否只允许有库存产品出库 采集UDI码时进行三期校验 diff --git a/src/views/basic/OtherTypeChange.vue b/src/views/basic/OtherTypeChange.vue new file mode 100644 index 0000000..fad0a2b --- /dev/null +++ b/src/views/basic/OtherTypeChange.vue @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + 查询 + 新增 + + + + + + + + + + + + + + {{ typeMap[scope.row.type] }} + + + + + + {{ enableMap[scope.row.enable] }} + + + + + + 编辑 + + 删除 + + + + + + + + + 提交 + + 取消 + + + + + + + + + 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 @@ + + + + + + + 领用类型名称: + + + + + + + + 领用类型代码: + + + + + + + + + + + 目标单据类型: + + + + {{ item.localName }} + {{ item.localAction }} + + + + + + + + + 启用状态: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 备注: + + + + + + + + + + + + diff --git a/src/views/basic/UdIInfoSelect.vue b/src/views/basic/UdIInfoSelect.vue index d7b12e3..c451c64 100644 --- a/src/views/basic/UdIInfoSelect.vue +++ b/src/views/basic/UdIInfoSelect.vue @@ -517,7 +517,7 @@ 以使用单元数量入库 + >允许科室多次使用多人份耗材 diff --git a/src/views/basic/UdiInfoManage.vue b/src/views/basic/UdiInfoManage.vue index 8b0bb33..72d4873 100644 --- a/src/views/basic/UdiInfoManage.vue +++ b/src/views/basic/UdiInfoManage.vue @@ -478,11 +478,7 @@ - - 以使用单元数量入库 - + 是否禁用 @@ -502,6 +498,27 @@ + + + + 启用使用单元 + + + + + + + 允许科室多次使用出库 + + + + @@ -529,7 +546,7 @@ - 最小包装单元内包含使用单元数量: + 最小包装内包含使用单元数量: 包含下级产品编码: - + + + + + + 最小包装可使用次数: + + + + + + @@ -1064,7 +1099,8 @@ export default { isUseDyCheck: false, lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"}, configParms: {}, - activeNames: ['1'] + activeNames: ['1'], + useNumEnable: true, }; }, @@ -1123,6 +1159,27 @@ export default { this.detailList = []; }); }, + + useDyCheckChange(val) { + this.editQuery.useNum = 0; + }, + useDyCountChange(val) { + if (val) { + this.editQuery.useNum = this.editQuery.zxxsbzbhsydysl; + } else { + this.editQuery.useNum = 0; + } + }, + useMutiChange(val) { + if (val) { + this.useNumEnable = false; + this.editQuery.useNum = this.editQuery.zxxsbzbhsydysl; + } else { + this.useNumEnable = true; + this.editQuery.useNum = 0; + } + + }, keyup_submit(event) { this.filterQuery.page = 1; this.getList(); @@ -1152,6 +1209,7 @@ export default { let rlId = this.editQuery.rlId; this.editQuery = row; this.editQuery.rlId = rlId; + this.editQuery.id = rlId; }, @@ -1568,7 +1626,7 @@ export default { float: left; text-align: left; margin-top: 10px; - width: 25%; + width: 35%; } .text { diff --git a/src/views/basic/UdiInfoManageSp.vue b/src/views/basic/UdiInfoManageSp.vue index 2f98b02..625a5e5 100644 --- a/src/views/basic/UdiInfoManageSp.vue +++ b/src/views/basic/UdiInfoManageSp.vue @@ -695,7 +695,7 @@ 以使用单元数量入库 + >启用使用单元 是否禁用 diff --git a/src/views/basic/UdiRlDetailDialog.vue b/src/views/basic/UdiRlDetailDialog.vue index f677ba5..5cc96fa 100644 --- a/src/views/basic/UdiRlDetailDialog.vue +++ b/src/views/basic/UdiRlDetailDialog.vue @@ -360,7 +360,7 @@ 以使用单元数量入库 + >启用使用单元 diff --git a/src/views/basic/basicProductDetail.vue b/src/views/basic/basicProductDetail.vue index 3a9619f..30c35a8 100644 --- a/src/views/basic/basicProductDetail.vue +++ b/src/views/basic/basicProductDetail.vue @@ -485,7 +485,7 @@ 以使用单元数量入库 + >启用使用单元 是否禁用 diff --git a/src/views/basic/basicProductEdit.vue b/src/views/basic/basicProductEdit.vue index acad32c..9e062da 100644 --- a/src/views/basic/basicProductEdit.vue +++ b/src/views/basic/basicProductEdit.vue @@ -327,7 +327,7 @@ 以使用单元数量入库 + >启用使用单元 是否禁用 diff --git a/src/views/home/index-3.0.1.vue b/src/views/home/index-3.0.1.vue index f4caa94..455fa04 100644 --- a/src/views/home/index-3.0.1.vue +++ b/src/views/home/index-3.0.1.vue @@ -375,6 +375,7 @@ export default { height: 130%; line-height: 60px; @include clearfix; + background: #FFFFFF; } .header-right { diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 3c1f7dc..a71c997 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -66,9 +66,14 @@ {{ item.name }} - - + + + + + + + @@ -159,7 +164,7 @@ - + 标签 @@ -191,8 +196,6 @@ - - 提交 - + @@ -334,6 +337,7 @@ export default { components: { SidebarItem, vTags, + }, computed: { ...mapGetters({ diff --git a/src/views/purchase/purApply.vue b/src/views/purchase/purApply.vue index b9035f0..1e1bf66 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 @@ - - + + + + + + @@ -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 73385f0..77ab0ca 100644 --- a/src/views/purchase/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApplyEditDiaolog.vue @@ -86,7 +86,7 @@ - + @@ -130,18 +130,7 @@ prop="spec" show-overflow-tooltip > - - - - + + + + + + @@ -189,6 +199,7 @@ @@ -270,7 +281,7 @@ export default { }, methods: { saveOrder(status) { - + this.$refs["dataForm"].validate(valid => { if (valid) { if (this.codeArray.length < 1) { @@ -281,7 +292,7 @@ export default { if(this.formData.billDate=="" || this.formData.billDate==null){ return this.$message.error("单据日期不能为空!"); } - + if(this.formData.invWarehouseCode=="" || this.formData.invWarehouseCode==null){ return this.$message.error("分库不能为空!"); } @@ -337,7 +348,7 @@ export default { this.thisData.stockOrderLists = this.codeArray; }, closeDialogC2(rData) { - + this.selectProductVisible = false; this.thisData = {}; if (this.$isNotBlank(rData)) { @@ -447,7 +458,7 @@ export default { .catch(() => { }); }, - + }, filters: {}, mounted() { diff --git a/src/views/purchase/purPlan.vue b/src/views/purchase/purPlan.vue index 80464a1..eecdae7 100644 --- a/src/views/purchase/purPlan.vue +++ b/src/views/purchase/purPlan.vue @@ -30,7 +30,7 @@ 查询 - 新增单据 + 新增采购计划 @@ -91,9 +91,11 @@ - - + + + + diff --git a/src/views/purchase/purPlanAudit.vue b/src/views/purchase/purPlanAudit.vue index 90e6ee4..29d4a3c 100644 --- a/src/views/purchase/purPlanAudit.vue +++ b/src/views/purchase/purPlanAudit.vue @@ -43,7 +43,8 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + + @@ -86,9 +87,11 @@ - - + + + + diff --git a/src/views/purchase/purPlanDetailDialog.vue b/src/views/purchase/purPlanDetailDialog.vue index 76cd197..437ae8a 100644 --- a/src/views/purchase/purPlanDetailDialog.vue +++ b/src/views/purchase/purPlanDetailDialog.vue @@ -77,30 +77,88 @@ - 采购说明: + 审核说明: - - + + - 审核说明: + 采购说明: - + + + + + 是否生成采购入库单 + + + + + + + + + 入库仓库: + + + + + + + + {{ item.name }} + + + + + + + + 入库单据类型: + + + + + + + {{ item.localName }} + + + + + + + @@ -189,6 +247,7 @@ @@ -200,6 +259,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", @@ -234,6 +294,10 @@ export default { locStorageCode: null, invWarehouseCode: null, auditRemark: null, + autoPurchase: false, + targetInv: 1000, + targetSubInv: null, + targetBillAction: null, }, formRules: {}, codeArray: [], @@ -265,8 +329,10 @@ export default { thisData: {}, storageList: [], subInvList: [], + tarSubList: [], invQueryData: {}, + }; }, components: { @@ -436,6 +502,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 = ""; @@ -457,6 +555,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(); @@ -469,10 +568,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 ee54d51..627e6f6 100644 --- a/src/views/purchase/purPlanEditDialog.vue +++ b/src/views/purchase/purPlanEditDialog.vue @@ -55,25 +55,25 @@ - - - 采购类型: - - - - - - - {{ item.originName }} - - - - + + + + + + + + + + + + + + + + + + + @@ -83,7 +83,7 @@ - + - - - 拒绝原因: - - - - - - - + + + + 拒绝原因: + + + + + + + + + - - 产品录入 - - + + + + + 产品录入 + + 选入申购单 + + + + + + @@ -155,18 +170,7 @@ prop="spec" show-overflow-tooltip > - - - - + + + + + + + + + + + @@ -213,9 +243,26 @@ > + + + + + @@ -226,6 +273,7 @@ import {inserThrOrderWeb, delApplyDetail, listApplyDetail} from "@/api/purchase/ import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {getBusChange} from "@/api/basic/busTypeChange"; +import SelectApplyListDialog from "@/views/purchase/selectApplyListDialog"; export default { name: "idQuery", @@ -283,6 +331,7 @@ export default { currentRow: {}, selectedIndex: "", selectProductVisible: false, + selectApplyVisible: false, thisData: {}, storageList: [], subInvList: [], @@ -291,6 +340,7 @@ export default { }; }, components: { + SelectApplyListDialog, draggable, stockOrderNewSelectProduct, }, @@ -304,14 +354,14 @@ export default { return; } if (status === '2') { - - if(this.formData.billDate=="" || this.formData.billDate==null){ + + if (this.formData.billDate == "" || this.formData.billDate == null) { return this.$message.error("单据日期不能为空!"); } if(this.formData.billType=="" || this.formData.billType==null){ return this.$message.error("采购类型不能为空!"); } - + if(this.formData.invWarehouseCode=="" || this.formData.invWarehouseCode==null){ return this.$message.error("采购分库不能为空!"); } @@ -365,11 +415,16 @@ export default { this.selectProductVisible = true; }, setLocStorageCode(obj){ - debugger this.formData.locStorageCode= this.subInvList.find(item => item.code == obj).parentId; }, + + selectApply() { + this.selectApplyVisible = true; + }, + closeDialogC2(rData) { this.selectProductVisible = false; + this.selectApplyVisible = false; this.thisData = {}; if (this.$isNotBlank(rData)) { this.codeArray = []; diff --git a/src/views/purchase/purPlanSearch.vue b/src/views/purchase/purPlanSearch.vue index 9c3b90b..fddd467 100644 --- a/src/views/purchase/purPlanSearch.vue +++ b/src/views/purchase/purPlanSearch.vue @@ -43,7 +43,8 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + + @@ -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}') }} - + + + + + @@ -95,9 +99,11 @@ - - + + + + diff --git a/src/views/purchase/pureApplyDetailDialog.vue b/src/views/purchase/pureApplyDetailDialog.vue index 739347a..f835a7e 100644 --- a/src/views/purchase/pureApplyDetailDialog.vue +++ b/src/views/purchase/pureApplyDetailDialog.vue @@ -73,17 +73,20 @@ {{ item.warehouseName }} - + - 当前仓库: + 申购说明: - + + @@ -106,25 +109,25 @@ - - - 生成采购计划: - - - - - - - {{ item.originName }} - - - - + + + + + + + + + + + + + + + + + + + @@ -137,6 +140,14 @@ autosize> + + + + + + 是否生成采购计划 + + @@ -158,10 +169,11 @@ prop="spec" show-overflow-tooltip > - + + - - + + - - + + + + @@ -243,7 +246,7 @@ export default { listApplyDetail(query) //查找该单号下的所有条码 .then((response) => { this.detailList = response.data.list || []; - + this.loading = false; }) .catch(() => { diff --git a/src/views/purchase/selectApplyListDialog.vue b/src/views/purchase/selectApplyListDialog.vue new file mode 100644 index 0000000..f0e7bac --- /dev/null +++ b/src/views/purchase/selectApplyListDialog.vue @@ -0,0 +1,376 @@ + + + + + + + + + + 单据日期: + + + + + + + 查询 + 确定 + + + + + + + + + + + + + {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/warehouse/DialogSelectRl.vue b/src/views/warehouse/DialogSelectRl.vue index ef14d25..2776dd2 100644 --- a/src/views/warehouse/DialogSelectRl.vue +++ b/src/views/warehouse/DialogSelectRl.vue @@ -454,7 +454,7 @@ 以使用单元数量入库 + >启用使用单元启用使用单元 是否禁用 diff --git a/src/views/warehouse/editCode.vue b/src/views/warehouse/editCode.vue index c12b674..3495c3e 100644 --- a/src/views/warehouse/editCode.vue +++ b/src/views/warehouse/editCode.vue @@ -64,7 +64,7 @@ - + @@ -86,7 +86,7 @@ - 是否以使用单元数量入库: + 是否以使用单元数量出入库: diff --git a/src/views/warehouse/stockOrder.vue b/src/views/warehouse/stockOrder.vue index b1afe2d..67e8447 100644 --- a/src/views/warehouse/stockOrder.vue +++ b/src/views/warehouse/stockOrder.vue @@ -502,7 +502,7 @@ export default { this.detailQuery = { orderIdFk: "", page: 1, - limit: 20 + limit: 200 }; this.detailTotal = 0; }, diff --git a/src/views/warehouse/stockOrderEditor.vue b/src/views/warehouse/stockOrderEditor.vue index 33fa953..d5faf39 100644 --- a/src/views/warehouse/stockOrderEditor.vue +++ b/src/views/warehouse/stockOrderEditor.vue @@ -646,7 +646,7 @@ export default { this.detailQuery = { orderIdFk: "", page: 1, - limit: 20 + limit: 200 }; this.detailTotal = 0; }, diff --git a/src/views/warehouse/stockOrderNew.vue b/src/views/warehouse/stockOrderNew.vue index 0e83e76..ca1b459 100644 --- a/src/views/warehouse/stockOrderNew.vue +++ b/src/views/warehouse/stockOrderNew.vue @@ -606,7 +606,7 @@ export default { this.detailTotal = { orderIdFk: "", page: 1, - limit: 20 + limit: 200 }; this.detailTotal = 0; }, diff --git a/src/views/warehouse/stockOrderNewSelectProduct.vue b/src/views/warehouse/stockOrderNewSelectProduct.vue index 1ce7f68..ec8f0bb 100644 --- a/src/views/warehouse/stockOrderNewSelectProduct.vue +++ b/src/views/warehouse/stockOrderNewSelectProduct.vue @@ -174,12 +174,22 @@ export default { type: Function, required: true, }, + purType: { + type: Object, + required: true, + }, + }, data() { return { listQuery: { - billNo: "", + udiCode: "", + unionCode: "", + cpmctymc: "", + ggxh: "", + ylqxzcrbarmc: "", + thrPiId: "", page: 1, limit: 10, }, @@ -189,7 +199,7 @@ export default { erpName: "", keys: [], }, - ids:[], + ids: [], radioCheck: null, dataList: [], pageTotal: 1, @@ -242,16 +252,20 @@ export default { }, methods: { onReset() { - this.$router.push({ - path: "", - }); - this.listQuery.udiCode=null - this.listQuery.unionCode=null - this.listQuery.cpmctymc=null - this.listQuery.ggxh=null - this.listQuery.ylqxzcrbarmc=null - this.listQuery.thrPiId=null - this.getList(); + // this.$router.push({ + // path: "", + // }); + this.listQuery = { + udiCode: "", + unionCode: "", + cpmctymc: "", + ggxh: "", + ylqxzcrbarmc: "", + thrPiId: "", + page: 1, + limit: 10, + }, + this.getList(); }, tableRowClassName({row}) { if (row.checked) return "warning-row"; @@ -318,15 +332,15 @@ export default { this.$message.error('未选择产品'); return; } - - if(this.ids.length>0){ - for(var i=0;i 0) { + // for (var i = 0; i < this.ids.length; i++) { + // if (this.ids[i] == this.multipleSelection.rlId) { + // this.$message.error("该产品已录入!"); + // return + // } + // } + // } let str = this.multipleSelection.zczbhhzbapzbh; if (str.search(",") != -1) { @@ -339,19 +353,18 @@ export default { }, combine() { - let ids = []; let data = { relId: this.multipleSelection.rlId, - supId: this.multipleSelection.customerId - + supId: this.multipleSelection.customerId, + zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh, } ids.push(data); this.loading = true; let tQuery = { datas: ids, stockOrderLists: this.data.stockOrderLists, - zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh + purType: this.purType }; getStockOrderDetailInstrumentById(tQuery).then((response) => { this.loading = false; @@ -374,18 +387,18 @@ export default { selectCert() { if (this.currentCert == null) { this.$message.error("请先选择对应的注册证!"); - }else{ - this.multipleSelection.zczbhhzbapzbh = this.currentCert; - this.combine(); + } else { + this.multipleSelection.zczbhhzbapzbh = this.currentCert; + this.combine(); } - + }, }, components: {udiRlDetailDialog}, created() { if (this.$isNotBlank(this.data)) { - + // this.listQuery.nameCode = this.data.udi; // if (this.data.billType != null) { // this.listQuery.billType = this.data.billType; @@ -397,9 +410,9 @@ export default { // } // this.orderEditor = this.data.orderEditor; // this.orderId = this.data.orderId; - this.ids=[]; - if(this.data.stockOrderLists.length>0){ - for(var i=0;i 0) { + for (var i = 0; i < this.data.stockOrderLists.length; i++) { this.ids.push(this.data.stockOrderLists[i].productId); } } diff --git a/src/views/warehouse/stockOrderSearch.vue b/src/views/warehouse/stockOrderSearch.vue index 7862399..af89e5b 100644 --- a/src/views/warehouse/stockOrderSearch.vue +++ b/src/views/warehouse/stockOrderSearch.vue @@ -523,7 +523,7 @@ export default { detailQuery: { orderIdFk: "", page: 1, - limit: 20 + limit: 100 }, busTypes: [], enableDept: false, @@ -638,7 +638,7 @@ export default { this.detailQuery = { orderIdFk: "", page: 1, - limit: 20 + limit: 200 } this.detailList = []; this.detailTotal = 0;