diff --git a/src/api/system/pmsOrderOut.js b/src/api/system/pmsOrderOut.js
index e32bd5f..cb77da4 100644
--- a/src/api/system/pmsOrderOut.js
+++ b/src/api/system/pmsOrderOut.js
@@ -51,4 +51,13 @@ export function createOrderOut(data){
method: 'post',
data: data
})
-}
\ No newline at end of file
+}
+
+//修改出库通知单
+export function updateOrderOut(data){
+ return request({
+ url: '/app/pms/updateOrderOut',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/src/views/system/goods/index.vue b/src/views/system/goods/index.vue
index d514a25..4608563 100644
--- a/src/views/system/goods/index.vue
+++ b/src/views/system/goods/index.vue
@@ -230,6 +230,9 @@
{{scope.row.goodsStatus=='1'?'禁用':'启用'}}
+
+
+
{{ scope.row[col.prop] }}
diff --git a/src/views/system/pmsOrderOut/components/OutboundDialog.vue b/src/views/system/pmsOrderOut/components/OutboundDialog.vue
index d25f680..7626e0c 100644
--- a/src/views/system/pmsOrderOut/components/OutboundDialog.vue
+++ b/src/views/system/pmsOrderOut/components/OutboundDialog.vue
@@ -22,18 +22,13 @@
{{ item.goodsId }}
-
{{ item.goodsName }}
+
{{ item.goodsDesc }}
-
-
-
-
-
@@ -120,9 +115,8 @@ export default {
if(response.code === 200){
response.data.forEach(item => {
mockData.push({
- value: item.goodsId,
+ value: item.goodsId,
goodsId: item.goodsId,
- goodsName: item.goodsName,
goodsDesc: item.goodsDesc
});
});
@@ -130,7 +124,7 @@ export default {
}
});
callback(mockData);
-
+
},
// 选择物料
@@ -140,7 +134,6 @@ export default {
// console.log("item",item );
// this.$set(this.tableData[index], 'goodsId', item.goodsId);
// this.$set(this.tableData[index], 'goodsDesc', item.goodsDesc);
- // this.$set(this.tableData[index], 'goodsName', item.goodsName);
// this.$set(this.tableData[index], 'remainNum', item.remainNum);
// },
@@ -167,7 +160,7 @@ export default {
this.$emit('update:visible', false);
this.resetForm();
},
- // 选择物料后,更新 goodsName 和 goodsDesc
+ // 选择物料后,更新 goodsDesc
handleMaterialSelect(index,item){
console.log("handleMaterialSelect",index);
const selectedItem = this.tableData[index];
@@ -175,24 +168,22 @@ export default {
// 模拟API返回的数据
// const selectedMaterial = {
// goodsId: selectedItem.goodsId,
- // goodsName: '物料名称示例', // 需要从接口获取实际物料名称
// goodsDesc: '物料描述示例' // 需要从接口获取实际物料描述
// };
this.$set(this.tableData, index, {
...selectedItem,
goodsId: item.goodsId, // 更新物料编码
- goodsName: item.goodsName, // 更新物料名称
goodsDesc: item.goodsDesc, // 更新物料描述
remainNum: item.remainNum, // 更新库存数量
- goodsNum: item.remainNum
+ goodsNum: item.remainNum
});
},
// 提交
handleSubmit() {
// 验证数据
const invalidRow = this.tableData.find(item =>
- !item.goodsId ||
+ !item.goodsId ||
item.goodsNum < 1 ||
item.goodsNum > item.remainNum
);
diff --git a/src/views/system/pmsOrderOut/index.vue b/src/views/system/pmsOrderOut/index.vue
index 8403789..df94710 100644
--- a/src/views/system/pmsOrderOut/index.vue
+++ b/src/views/system/pmsOrderOut/index.vue
@@ -82,6 +82,16 @@
v-hasPermi="['app:pmsOrderOut:export']"
>导出
+
+ 导入
+
-
-
- 修改
- 删除
-
-
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ :trigger-on-focus="false"
+ placeholder="请输入物料编码或名称"
+ clearable
+ @select="handleMaterialSelect(scope.$index,$event)"
+ >
+
+
+
+
@@ -197,6 +183,16 @@
+
+
+
+
+
+
+
+
+
+