diff --git a/api/productionMaterial/inventory.js b/api/productionMaterial/inventory.js index ccebfc7..42ed398 100644 --- a/api/productionMaterial/inventory.js +++ b/api/productionMaterial/inventory.js @@ -11,3 +11,14 @@ export function listMmInventory(query) { params: query, }); } + +/** + * 获取物料编码列表 + */ +export function getMaterialOption(query) { + return request({ + url: 'mes/productionMaterial/MmInventory/GetMaterialOption/', + method: 'post', + data: query + }) +} diff --git a/api/productionMaterial/recordIOutbound.js b/api/productionMaterial/recordIOutbound.js new file mode 100644 index 0000000..98cb20b --- /dev/null +++ b/api/productionMaterial/recordIOutbound.js @@ -0,0 +1,49 @@ +import request from "@/utils/request"; + +/** + * 物料表查询 + * @param {查询条件} data + */ +export function listMmMaterial(query) { + return request({ + url: '/mes/productionMaterial/MmMaterial/list', + method: 'get', + params: query + }) +} + +/** + * 库位表查询 + * @param {查询条件} data + */ +export function listMmLocation(query) { + return request({ + url: '/mes/productionMaterial/MmLocation/list', + method: 'get', + params: query + }) +} + +/** + * 出入库类别对照表查询 + * @param {查询条件} data + */ +export function listMmTransactionType(query) { + return request({ + url: '/mes/productionMaterial/MmTransactionType/list', + method: 'get', + params: query + }) +} + +/** + * 新增出库记录表 + * @param data + */ +export function addMmRecordOutbound(data) { + return request({ + url: '/mes/productionMaterial/MmRecordOutbound', + method: 'post', + data: data + }) +} diff --git a/api/productionMaterial/recordInbound.js b/api/productionMaterial/recordInbound.js new file mode 100644 index 0000000..b36831e --- /dev/null +++ b/api/productionMaterial/recordInbound.js @@ -0,0 +1,49 @@ +import request from "@/utils/request"; + +/** + * 物料表查询 + * @param {查询条件} data + */ +export function listMmMaterial(query) { + return request({ + url: '/mes/productionMaterial/MmMaterial/list', + method: 'get', + params: query + }) +} + +/** + * 库位表查询 + * @param {查询条件} data + */ +export function listMmLocation(query) { + return request({ + url: '/mes/productionMaterial/MmLocation/list', + method: 'get', + params: query + }) +} + +/** + * 出入库类别对照表查询 + * @param {查询条件} data + */ +export function listMmTransactionType(query) { + return request({ + url: '/mes/productionMaterial/MmTransactionType/list', + method: 'get', + params: query + }) +} + +/** + * 新增入库单 + * @param data + */ +export function createInboundReceipt(data) { + return request({ + url: '/mes/productionMaterial/MmInventory/CreateInboundReceipt', + method: 'post', + data: data + }) +} diff --git a/pages/materialManagement/inventory/index.vue b/pages/materialManagement/inventory/index.vue index 5113d78..2911b57 100644 --- a/pages/materialManagement/inventory/index.vue +++ b/pages/materialManagement/inventory/index.vue @@ -80,7 +80,7 @@ export default { this.currentPage = page; this.scanConfirm(this.lastScanValue); }, - // 扫工单码结果 + // 扫物料编码结果 scanConfirm(val) { this.lastScanValue = val; const params = { diff --git a/pages/materialManagement/recordIOutbound/index.css b/pages/materialManagement/recordIOutbound/index.css new file mode 100644 index 0000000..72419d6 --- /dev/null +++ b/pages/materialManagement/recordIOutbound/index.css @@ -0,0 +1,36 @@ +.example { + padding: 15px; + background-color: #fff; +} + +.segmented-control { + margin-bottom: 15px; +} + +.button-group { + margin-top: 15px; + display: flex; + justify-content: space-around; +} + +.form-item { + display: flex; + align-items: center; +} + +.button { + display: flex; + align-items: center; + height: 35px; + margin-left: 10px; +} + +.form-box { + padding: 12px; +} + +.location-name { + color: #999; + font-size: 12px; + margin-left: 10px; +} \ No newline at end of file diff --git a/pages/materialManagement/recordIOutbound/index.vue b/pages/materialManagement/recordIOutbound/index.vue index 1c07732..5a37f49 100644 --- a/pages/materialManagement/recordIOutbound/index.vue +++ b/pages/materialManagement/recordIOutbound/index.vue @@ -1,35 +1,380 @@ -vue \ No newline at end of file +@import "./index.css"; + diff --git a/pages/materialManagement/recordInbound/index.css b/pages/materialManagement/recordInbound/index.css index af26c14..72419d6 100644 --- a/pages/materialManagement/recordInbound/index.css +++ b/pages/materialManagement/recordInbound/index.css @@ -27,4 +27,10 @@ .form-box { padding: 12px; +} + +.location-name { + color: #999; + font-size: 12px; + margin-left: 10px; } \ No newline at end of file diff --git a/pages/materialManagement/recordInbound/index.vue b/pages/materialManagement/recordInbound/index.vue index 408cf53..9d49191 100644 --- a/pages/materialManagement/recordInbound/index.vue +++ b/pages/materialManagement/recordInbound/index.vue @@ -19,11 +19,6 @@ label-width="120" > - - + @select="handleLocationSelect" + > + + @@ -78,11 +80,19 @@ /> - - + + + + @@ -121,15 +131,22 @@ diff --git a/uni_modules/uni-combox/components/uni-combox/uni-combox.vue b/uni_modules/uni-combox/components/uni-combox/uni-combox.vue index 83454e5..b8721b5 100644 --- a/uni_modules/uni-combox/components/uni-combox/uni-combox.vue +++ b/uni_modules/uni-combox/components/uni-combox/uni-combox.vue @@ -16,7 +16,9 @@ {{emptyTips}} - {{item}} + + {{item}} + @@ -39,7 +41,7 @@ */ export default { name: 'uniCombox', - emits: ['input', 'update:modelValue'], + emits: ['input', 'update:modelValue', 'select'], props: { border: { type: Boolean, @@ -143,10 +145,12 @@ } }, onSelectorClick(index) { - this.inputVal = this.filterCandidates[index] + const selectedItem = this.filterCandidates[index] + this.inputVal = selectedItem this.showSelector = false this.$emit('input', this.inputVal) this.$emit('update:modelValue', this.inputVal) + this.$emit('select', selectedItem) }, onInput() { setTimeout(() => { @@ -232,9 +236,12 @@ display: flex; cursor: pointer; /* #endif */ + flex-direction: row; + justify-content: flex-start; + align-items: center; line-height: 36px; font-size: 14px; - text-align: center; + text-align: left; // border-bottom: solid 1px #DDDDDD; padding: 0px 10px; }