diff --git a/src/api/system/pmsOrderIn.js b/src/api/system/pmsOrderIn.js index 651539b..8ef5cf6 100644 --- a/src/api/system/pmsOrderIn.js +++ b/src/api/system/pmsOrderIn.js @@ -49,4 +49,12 @@ export function createOrderIn(data){ method: 'post', data: data }) -} \ No newline at end of file +} +//新增出库通知单 +export function updateOrderIn(data){ + return request({ + url: '/app/pms/updateOrderIn', + method: 'post', + data: data + }) +} diff --git a/src/views/system/pmsOrderIn/components/InboundDialog.vue b/src/views/system/pmsOrderIn/components/InboundDialog.vue index 0c36893..6f698ad 100644 --- a/src/views/system/pmsOrderIn/components/InboundDialog.vue +++ b/src/views/system/pmsOrderIn/components/InboundDialog.vue @@ -31,12 +31,12 @@ @@ -113,7 +113,7 @@ export default { if(response.code === 200){ response.data.forEach(item => { mockData.push({ - value: item.goodsId, + value: item.goodsId, goodsId: item.goodsId, goodsDesc: item.goodsDesc, goodsCode: item.goodsCode, @@ -123,7 +123,7 @@ export default { } }); callback(mockData); - + }, // 选择物料 @@ -182,9 +182,9 @@ export default { handleSubmit() { // 验证数据 const invalidRow = this.tableData.find(item => - !item.goodsId || + !item.goodsId || !item.goodsDesc || - item.goodsNum < 1 + item.goodsNum < 1 ); if (invalidRow) { diff --git a/src/views/system/pmsOrderIn/index.vue b/src/views/system/pmsOrderIn/index.vue index 4b0bfd1..1182f24 100644 --- a/src/views/system/pmsOrderIn/index.vue +++ b/src/views/system/pmsOrderIn/index.vue @@ -84,6 +84,16 @@ v-hasPermi="['app:pmsOrderIn:export']" >导出 + + 导入 + @@ -113,24 +123,6 @@ - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + + + + + +
将文件拖到此处,或点击上传
+
+ 仅允许导入xls、xlsx格式文件。 + 下载模板 +
+
+ +