Browse Source

检验任务执行时创建上架申请

hella_vue3
niexiting 9 months ago
parent
commit
3c5dd670b2
  1. 10
      src/api/request2.js
  2. 12
      src/pages/inspect/job/inspectDetail.vue
  3. 20
      src/pages/inspect/job/inspectFullDetail.vue
  4. 12
      src/pages/inspect/job/inspectResult.vue
  5. 2
      src/static/config.js

10
src/api/request2.js

@ -990,6 +990,15 @@ export function inspectJobSubmit(params) {
});
}
//根据检验记录单号创建上架申请
export function createPutAwayRequest(number) {
return request({
url: baseApi + "/wms/inspect-record-main/createPutAwayRequest?number=" + number,
method: "post",
data: {},
});
}
/**
* 采购上架 任务
@ -3626,4 +3635,3 @@ export function getMainMessage() {
data: {},
});
}

12
src/pages/inspect/job/inspectDetail.vue

@ -41,7 +41,8 @@
getInspectJobDetail,
inspectJobSubmit,
getFileList,
deleteFileByTable
deleteFileByTable,
createPutAwayRequest
} from '@/api/request2.js';
import {
goHome,
@ -147,8 +148,7 @@
methods: {
deleteFileByTable(id) {
debugger
deleteFileByTable("jobInspectDetail", id).then(res=>{
})
deleteFileByTable("jobInspectDetail", id).then(res => {})
},
clearPicList(subList) {
@ -374,6 +374,12 @@
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录<br>" + res.data)
createPutAwayRequest(res.data).then(putawayres => {
this.showCommitSuccessMessage("生成上架申请单号<br>" + putawayres.data)
}).catch(error => {
uni.hideLoading();
this.showErrorMessage(error);
})
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}

20
src/pages/inspect/job/inspectFullDetail.vue

@ -42,7 +42,8 @@
inspectJobSubmit,
deleteFileById,
getFileList,
deleteFileByTable
deleteFileByTable,
createPutAwayRequest
} from '@/api/request2.js';
import {
goHome,
@ -151,8 +152,7 @@
},
methods: {
deleteFileByTable(id) {
deleteFileByTable("jobInspectDetail", id).then(res=>{
})
deleteFileByTable("jobInspectDetail", id).then(res => {})
},
clearPicList(subList) {
@ -379,10 +379,6 @@
}
}
}
},
submitJob() {
@ -397,6 +393,13 @@
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data)
//
createPutAwayRequest(res.data).then(putawayres => {
this.showCommitSuccessMessage("生成上架申请单号<br>" + putawayres.data)
}).catch(error => {
uni.hideLoading();
this.showErrorMessage(error);
})
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@ -462,7 +465,7 @@
detail.failedQty = detail.failedQty;
detail.crackQty = detail.crackQty;
detail.notPassedQty = detail.failedQty;
var tempQty = calc.sub(detail.handleQt,detail.failedQty)
var tempQty = calc.sub(detail.handleQty, detail.failedQty)
detail.goodQty = calc.sub(tempQty, detail.crackQty);
detail.inspectUser = this.$store.state.user.id
@ -518,6 +521,7 @@
height: 100%;
background-color: #fff;
}
.page-wraper {
display: flex;
flex-direction: column;

12
src/pages/inspect/job/inspectResult.vue

@ -143,7 +143,8 @@
getInspectJobDetail,
takeInspectJob,
cancleTakeInspectJob,
inspectJobSubmit
inspectJobSubmit,
createPutAwayRequest
} from '@/api/request2.js';
import {
@ -159,8 +160,7 @@
} from '@/common/basic.js';
export default {
components: {
},
components: {},
data() {
return {
id: '',
@ -546,6 +546,12 @@
hint = "提交成功<br>生成到货检验任务<br>" + res.data
} else {
hint = "提交成功<br>生成到货检验记录<br>" + res.data
createPutAwayRequest(res.data).then(putawayres => {
this.showCommitSuccessMessage("生成上架申请单号<br>" + putawayres.data)
}).catch(error => {
uni.hideLoading();
this.showErrorMessage(error);
})
}
this.showCommitSuccessMessage(hint)
} else {

2
src/static/config.js

@ -1,6 +1,6 @@
let request_url = "http://dev.ccwin-in.com:25100/api/admin-api"
let isDevelopment = false
let isDevelopment = true
export default {
request_url,

Loading…
Cancel
Save