diff --git a/src/api/StockIn/index.ts b/src/api/StockIn/index.ts index bd7fda3..438c974 100644 --- a/src/api/StockIn/index.ts +++ b/src/api/StockIn/index.ts @@ -174,3 +174,16 @@ export function UpdateDeliveryStates(ChangeParams: any) { }); } +/** + * 辅材盘盈盘亏确认 + * @param data + * @returns + */ +export function confirm(data: any) { + return request({ + url: '/api/MaterialReceiveAct/confirm', + method: 'post', + data: data, + }); +} + diff --git a/src/api/StockOut/index.ts b/src/api/StockOut/index.ts index fd1ef4a..c4d6bdf 100644 --- a/src/api/StockOut/index.ts +++ b/src/api/StockOut/index.ts @@ -175,4 +175,17 @@ export function CompleteShipRequestStockUp(data: any) { method: 'post', data: data, }); +} + +/** + * 临时出库(补过账)-出库过账 + * @param data + * @constructor + */ +export function CompleteShipRequestRepairStockOut(data: any) { + return request({ + url: '/api/SaleOut/completeShipRequestRepairStockOut', + method: 'post', + data: data, + }); } \ No newline at end of file diff --git a/src/views/Query/StockQuery/StockTransaction/index.vue b/src/views/Query/StockQuery/StockTransaction/index.vue index e43bac5..3cc8e64 100644 --- a/src/views/Query/StockQuery/StockTransaction/index.vue +++ b/src/views/Query/StockQuery/StockTransaction/index.vue @@ -56,7 +56,7 @@ - + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 确认 +
+
+ +
+
+
+
+ 生成信息 +
+
+
+ + + +
+ + + + + + + + + + + 提交 + + + +
+
+
+ + + + \ No newline at end of file diff --git a/src/views/label/newMaterialSpecLabelPrint/index.vue b/src/views/label/newMaterialSpecLabelPrint/index.vue index 85a5c2e..ba0cf66 100644 --- a/src/views/label/newMaterialSpecLabelPrint/index.vue +++ b/src/views/label/newMaterialSpecLabelPrint/index.vue @@ -67,6 +67,7 @@ v-model="state.queryParams.params.ERPLOCATION" placeholder="选择仓库" clearable + @change="getLocationName" style="width: 170px" > @@ -295,6 +295,7 @@ import { bTableHeight } from '../../../composables/calcTableHeight' import { getORG } from '@/api/auth' import { cals } from '@/utils/cal' import { search } from '@/api/wareHouse' +import { areAllNotEmpty } from '@/utils/CommonUtil' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(280) const queryFormRef = ref(ElForm) @@ -326,7 +327,7 @@ const state = reactive({ remark: '', queryParams: { queryId: 'GetlabelList', - version: 'sdk005', + version: 'sdk006', listCode: '', // 查询类型 params: { MATERIALSPECNAME: '', @@ -376,6 +377,7 @@ const state = reactive({ total: 0, loading: false, MaterialList: [] as any, + locDecListAll: [] as any, dialog: { title: '新增用户', visible: false @@ -417,7 +419,8 @@ const state = reactive({ ERPFactoryList: [] as any, ERPLocationList: [] as any, LocationList: [] as any, - AllLocationList: [] as any + AllLocationList: [] as any, + locDecList2: [] as any, }) const materialTableConfig = ref({ @@ -512,7 +515,28 @@ const handleQuery = () => { state.queryParams.version = 'sdk005' } */ - getQueryPageList(state.queryParams) + let locationNameString = '' + for (let i = 0; i < state.queryParams.params.LOCATIONNAME.length; i++) { + locationNameString = locationNameString + state.queryParams.params.LOCATIONNAME[i] + ',' + } + getQueryPageList({ + queryId: 'GetlabelList', + version: 'sdk006', + listCode: '', // 查询类型 + params: { + MATERIALSPECNAME: state.queryParams.params.MATERIALSPECNAME, + SITENAME: 'SDK', + RECEIVEACTNO: state.queryParams.params.RECEIVEACTNO, + RECEIVEREQUESTNAME: state.queryParams.params.RECEIVEREQUESTNAME, + CHARGE: state.queryParams.params.CHARGE, + ERPFACTORY: state.queryParams.params.ERPFACTORY, + ERPLOCATION: state.queryParams.params.ERPLOCATION, + LOCATIONNAME: locationNameString, + DESC_CN: state.queryParams.params.DESC_CN, + }, + pageNum: 1, + pageSize: 10 + }) .then((res: any) => { if (res.data.list.length == 0) { state.MaterialList = [] @@ -557,10 +581,13 @@ function getGetPrintLabelType() { state.queryParams.params.LOCATIONNAME = '' state.AllLocationList = [] state.PRINTLABELLIST = [ - {"LABEINAME":"PET","LABELCODE":"PET标签-电晕.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\WMS\\WHRePrint","SITENAME":"SDK"}, + {"LABEINAME":"PET","LABELCODE":"PET标签-电晕.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\WMS\\WHRePrint\\","SITENAME":"SDK"}, + {"LABEINAME":"SKD2","LABELCODE":"Sdk2.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\","SITENAME":"SDK"}, + {"LABEINAME":"SKD2","LABELCODE":"Sdk2.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\","SITENAME":"SDK"}, + {"LABEINAME":"SKD2","LABELCODE":"Sdk2.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\","SITENAME":"SDK"}, {"LABEINAME":"SKD2","LABELCODE":"Sdk2.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\","SITENAME":"SDK"}, - {"LABEINAME":"胶水原料","LABELCODE":"胶水原材.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\","SITENAME":"SDK"}, + {"LABEINAME":"胶水原料","LABELCODE":"胶水原材.btw","LABELURL":"C:\\inetpub\\wwwroot\\BarTender\\wwwroot\\Templates\\","SITENAME":"SDK"}, ] } @@ -871,6 +898,54 @@ function Queryprinter() { const updateList = (col: any) => { materialTableConfig.value.column = col } + +function getLocationName(value: any) { + state.queryParams.params.ERPLOCATION = value + state.queryParams.params.LOCATIONNAME = '' + state.LocationList = [] + if (!areAllNotEmpty(state.queryParams.params.ERPFACTORY)) { + proxy.$ElMessage.warning('当前还未选择组织'); + return + } else { + /*let erpLocationString = '' + for (let i = 0; i < state.queryParams.params.ERPLOCATION.length; i++) { + erpLocationString = erpLocationString + state.queryParams.params.ERPLOCATION[i] + ',' + }*/ + getQueryList({ + queryId: 'GetLocationForCreatePO', + version: '00002', + params: { + ERPLOCATION: state.queryParams.params.ERPLOCATION, + SITENAME: 'SDK' + } + }).then((res: any) => { + state.locDecListAll = res.data + //getlocDec('') + }) + } +} + + +function getlocDec(query: any) { + if (!areAllNotEmpty(state.queryParams.params.ERPLOCATION)) { + proxy.$ElMessage.warning('当前还未选择仓库'); + state.queryParams.params.LOCATIONNAME = '' + state.locDecList2 = [] + return + } + + // console.log(query) + //let arr = state.locDecListAll; + let arr = state.locDecListAll.filter((item: any) => { + return item.LABEL.includes(query) || item.VALUE.includes(query) + }) + // console.log(arr) + if (arr.length > 50) { + state.locDecList2 = arr.slice(0, 50) + } else { + state.locDecList2 = arr + } +} diff --git a/src/views/stockOut/TemporaryStockOutRepairSAPPage/index.vue b/src/views/stockOut/TemporaryStockOutRepairSAPPage/index.vue new file mode 100644 index 0000000..7934fa0 --- /dev/null +++ b/src/views/stockOut/TemporaryStockOutRepairSAPPage/index.vue @@ -0,0 +1,1120 @@ + + + + + + + diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index 4a653ec..7c08dcb 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -524,7 +524,7 @@ onMounted(() => { state.orgNo = JSON.parse(pwd).orgNo; state.queryParams.params.ERPFACTORY = state.orgNo } - + changeFac(state.queryParams.params.ERPFACTORY) // state.queryParams.params.ERPFACTORY = JSON.parse(pwd).orgNo; // state.queryParamsERPLocation.params.ERPFACTORYNAME = JSON.parse(pwd).orgNo; ERPFactoryQuery() diff --git a/src/views/stocked/careerAssistanceInquiry/index.vue b/src/views/stocked/careerAssistanceInquiry/index.vue index f8ecbd7..64f185e 100644 --- a/src/views/stocked/careerAssistanceInquiry/index.vue +++ b/src/views/stocked/careerAssistanceInquiry/index.vue @@ -17,7 +17,6 @@ filterable v-model="queryParams.params.ERPFACTORY" placeholder="下拉选择组织" - style="width: 240px" @change="GetERPLocationForList" > @@ -72,7 +70,6 @@ placeholder="请选择货位" popper-class="custom-header" :max-collapse-tags="1" - style="width: 240px" remote :remote-method="handleInput" filterable @@ -101,7 +98,6 @@
+ + + + +
@@ -194,6 +199,7 @@ v-if="!col.hide" :label="col.header" :prop="col.field" + :width="col.width" show-overflow-tooltip :sort-orders="['descending', 'ascending']" :sortable="true" @@ -418,7 +424,8 @@ const state = reactive({ CAREER_ASSISTANCE: '', DESC_CN: '', OQARESULTSTATE: '', - PACKINGGRADE: '' + PACKINGGRADE: '', + SALESHIPREQUESTNAME: '' }, pageNum: 1, pageSize: 10 @@ -548,12 +555,12 @@ onMounted(() => { // { header: "主数量", field: "MATERIALQUANTITY", hide: false }, // { header: "主单位", field: "FNAME", hide: false }, // { header: "仓库编码", field: "ERPLOCATION", hide: false }, - { header: '仓库名称', field: 'ERPLOCATIONDESC', hide: false }, + { header: '仓库名称', field: 'ERPLOCATIONDESC', hide: false, width: 120 }, // { header: "货位编码", field: "LOCATIONNAME", hide: false }, - { header: '货位名称', field: 'LOCATIONNAMEDESC', hide: false }, + { header: '货位名称', field: 'LOCATIONNAMEDESC', hide: false, width: 150 }, { header: '物料编号', field: 'MATERIALSPECNAME', hide: false }, - { header: '品名', field: 'DESC_CN', hide: false }, - { header: '批次号', field: 'CHARGE', hide: false }, + { header: '品名', field: 'DESC_CN', hide: false, width: 120 }, + { header: '批次号', field: 'CHARGE', hide: false, width: 180 }, { header: '阶段', field: 'PHASE', hide: false }, { header: '系统规格', field: 'DESCRIPTION', hide: false }, { header: 'SDK规格', field: 'SPECNAME', hide: false }, @@ -570,6 +577,7 @@ onMounted(() => { // { header: "供应商", field: "SUPPLIERNAME", hide: false }, { header: '业助', field: 'CAREER_ASSISTANCE', hide: false }, { header: '客户', field: 'CUSTOMNO', hide: false }, + { header: '销售订单', field: 'SALESHIPREQUESTNAME', hide: false }, { header: '业务', field: 'SALESPERSON', hide: false }, { header: '事业部', field: 'BUSINESS_UNIT', hide: false } // { header: "管芯类型", field: "DURABLETYPE", hide: false }, @@ -667,6 +675,7 @@ function modifiedRemark() { return } console.log(state.multipleSelection) + state.loadings = true // return let boxLists = [] for (var i = 0; i < state.multipleSelection.length; ++i) { @@ -695,13 +704,14 @@ function modifiedRemark() { updateCareerAssistance(PRINT) .then((res: any) => { console.log(res.success) + state.loadings = false // state.COUSTOMNO = '' if (res.success) { state.SALESHIPREQUESTNAME = '' state.SALESHIPREQUESTDETAILNAME = '' state.CAREER_ASSISTANCE = '' // proxy.$ElMessage.success('备注更新成功'); - ElMessageBox.alert('业助更新成功', '提醒框', { + ElMessageBox.alert('E库存更新成功', '提醒框', { confirmButtonText: 'OK' }) handleQuery()