diff --git a/src/api/purchase/goodsEntry.js b/src/api/purchase/goodsEntry.js
index b5e9b9ed..b6452df6 100644
--- a/src/api/purchase/goodsEntry.js
+++ b/src/api/purchase/goodsEntry.js
@@ -17,4 +17,14 @@ export function purchaseWarehouse(data) {
method: 'post',
data: data
})
-}
\ No newline at end of file
+}
+
+
+// 查询入库编码列表
+export function getMachineById(data) {
+ return request({
+ url: '/material/purchase/storage/getMachineById',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/src/views/material/back/component/home.vue b/src/views/material/back/component/home.vue
index 36c20499..078762b9 100644
--- a/src/views/material/back/component/home.vue
+++ b/src/views/material/back/component/home.vue
@@ -124,13 +124,13 @@
退料接收
-
+
-
验收结论:
+
验收结论:
{
- this.tableList = response.rows;
- this.total = response.total;
+ this.tableList = response.data.rows;
+ this.total = response.data.total;
this.loading = false;
});
},
diff --git a/src/views/material/purchase/goodsArrived/component/addTools.vue b/src/views/material/purchase/goodsArrived/component/addTools.vue
index 226816ac..598c772f 100644
--- a/src/views/material/purchase/goodsArrived/component/addTools.vue
+++ b/src/views/material/purchase/goodsArrived/component/addTools.vue
@@ -794,7 +794,7 @@ export default {
}
})
this.equipmentList.forEach((item, index) => {
- if (item.id == row.id) {
+ if (item.typeId == row.typeId) {
this.equipmentList.splice(index, 1)
}
})
diff --git a/src/views/material/purchase/goodsArrived/component/home.vue b/src/views/material/purchase/goodsArrived/component/home.vue
index 724f7982..20da8ccf 100644
--- a/src/views/material/purchase/goodsArrived/component/home.vue
+++ b/src/views/material/purchase/goodsArrived/component/home.vue
@@ -187,7 +187,12 @@
未完成
-->
-
+
{
- this.typeList = response.rows;
- this.total = response.total;
+ this.typeList = response.data.rows;
+ this.total = response.data.total;
this.loading = false;
});
},
diff --git a/src/views/material/purchase/goodsBind/component/home.vue b/src/views/material/purchase/goodsBind/component/home.vue
index 9ed48139..33a76968 100644
--- a/src/views/material/purchase/goodsBind/component/home.vue
+++ b/src/views/material/purchase/goodsBind/component/home.vue
@@ -240,8 +240,8 @@ export default {
this.loading = true
this.queryParams.statusList=[3,13]
const res = await getNewBuyBindListApi(this.queryParams)
- this.bindList = res.rows
- this.total = res.total
+ this.bindList = res.data.rows
+ this.total = res.data.total
this.loading = false
},
// 搜索按钮
diff --git a/src/views/material/purchase/goodsEntry/detail.vue b/src/views/material/purchase/goodsEntry/detail.vue
index d7338bb0..f336b003 100644
--- a/src/views/material/purchase/goodsEntry/detail.vue
+++ b/src/views/material/purchase/goodsEntry/detail.vue
@@ -65,7 +65,7 @@
-->
-
+
@@ -79,15 +79,30 @@
+
+
+
+ 编码管理
+ 数量管理
+
+
报告管理
-
+
+
+
+
+
+
-
+
入库
+
+
+
+ 入库
+
+
+
+
+
+
+
+ {{ codeRowData.maTypeName }}
+
+
+
+
+ {{ codeRowData.typeName }}
+
+
+
+
+
+
+
@@ -158,11 +205,12 @@
import { getDeviceType} from "@/api/ma/device";
import { getManufacturerSelect} from "@/api/ma/supplier";
import { getPurchaseDetailsList,getPurchaseFileList,uploadPurchaseFile } from "@/api/purchase/goodsAccept";
-import { purchaseWarehouse } from "@/api/purchase/goodsEntry";
+import { purchaseWarehouse,getMachineById } from "@/api/purchase/goodsEntry";
import { downloadFile } from '@/utils/download'
import { getToken } from '@/utils/auth'
export default {
name: "GoodsAcceptDetail",
+ dicts: ["purchase_task_status"],
data() {
return {
Id:'',
@@ -216,6 +264,11 @@ export default {
// 上传的地址
url: process.env.VUE_APP_BASE_API + '/file/upload'
},
+ //编码入库
+ openCode:false,
+ codeRowData:{},
+ codeTableData:[],
+ inPutList:[],
};
},
mounted() {
@@ -269,12 +322,13 @@ export default {
this.loading = true;
this.queryParams.id=this.Id
this.queryParams.taskId=this.taskId
- this.queryParams.statusList=[4,14,19]
+ this.queryParams.statusList=[3,13,4,14,19]
getPurchaseDetailsList(this.queryParams).then(response => {
this.tableList = response.data.purchaseCheckDetailsList;
this.tableList.forEach((item) => {
item.fixCodeStr = this.fixCodeList[Number(item.fixCode)]
})
+ console.log(this.tableList)
// this.total = response.total;
this.loading = false;
});
@@ -297,25 +351,73 @@ export default {
this.multiple = !selection.length
},
//入库
- pass(row) {
- let obj = {
- // taskId: this.taskId,
- purchaseId: row.id
- };
- console.log(obj)
- purchaseWarehouse(obj).then((res)=>{
- console.log(res)
- if(res.code==200){
- this.$modal.msgSuccess('操作成功')
- this.getList()
- }
- })
+ pass(row) {
+ if(row.manageType==0){//编码
+ this.codeRowData=row
+ let param={
+ taskId:this.taskId,
+ typeId:this.codeRowData.typeId
+ }
+ getMachineById(param).then((res)=>{
+ this.codeTableData=res.data
+ this.inPutList=[]
+ this.openCode=true
+ })
+ }else{
+ let obj = {
+ taskId: this.taskId,
+ typeId:row.typeId,
+ purchaseId: row.id
+ };
+ this.$modal.confirm('是否确认新购入库该物资类型?')
+ .then(function() {
+ console.log(obj)
+ return purchaseWarehouse(obj)
+ }).then(() => {
+ this.$modal.msgSuccess('入库成功')
+ this.getList()
+ }).catch(() => {});
+ }
+ },
+ //编码勾选
+ codeSelection(selection){
+ console.log(selection)
+ this.inPutList = selection.map(item => {return {'maCode':item.maCode}})
+ },
+ //编码入库
+ codeWarehouse(){
+ if(this.inPutList.length>0){
+ let obj = {
+ taskId: this.taskId,
+ typeId:this.codeRowData.typeId,
+ purchaseId: this.codeRowData.id,
+ inPutList: this.inPutList
+ };
+ console.log(obj)
+ this.$modal.confirm('是否确认新购入库勾选的编码?')
+ .then(function() {
+ return purchaseWarehouse(obj)
+ }).then(() => {
+ // let param={
+ // taskId:this.taskId,
+ // typeId:this.codeRowData.typeId
+ // }
+ // getMachineById(param).then((res)=>{
+ // this.codeTableData=res.data
+ // })
+ this.openCode=false
+ this.getList()
+ this.$modal.msgSuccess('入库成功')
+ }).catch(() => {});
+ }else{
+ this.$modal.msgError('请先勾选入库编码!')
+ }
+
},
//不合格
reject(row) {
},
-
//文件管理
openFileDialog(row){
this.rowData=row;
diff --git a/src/views/material/purchase/goodsEntry/index.vue b/src/views/material/purchase/goodsEntry/index.vue
index 3eb2a3a2..78415531 100644
--- a/src/views/material/purchase/goodsEntry/index.vue
+++ b/src/views/material/purchase/goodsEntry/index.vue
@@ -60,7 +60,7 @@
-
+
{
- this.tableList = response.rows
- this.total = response.total
+ this.tableList = response.data.rows
+ this.total = response.data.total
this.loading = false
})
},
diff --git a/vue.config.js b/vue.config.js
index 05ad4b79..142c3c0c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,7 +35,11 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: `http://192.168.2.72:18080`,
+ // target: `http://localhost:18080`,
+ target: `http://192.168.2.246:18080`,//马
+ // target: `http://192.168.0.110:18080`,//洪
+ // target: `http://192.168.0.234:18080`,//阮
+ // target: `http://192.168.137.1:18080`,//
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",