diff --git a/sgzb-ui/src/api/claimAndRefund/return.js b/sgzb-ui/src/api/claimAndRefund/return.js index 5f297fb5..3845eff0 100644 --- a/sgzb-ui/src/api/claimAndRefund/return.js +++ b/sgzb-ui/src/api/claimAndRefund/return.js @@ -27,7 +27,7 @@ export function ApiSubmitBackApply(query) { }) } -// 详情查看或编辑 +// 申请页面 详情查看 export function getViewByApply(query) { return request({ url: '/material/backApply/getViewByApply', @@ -35,7 +35,7 @@ export function getViewByApply(query) { params: query }) } -// 详情查看或编辑 +// 审批页面 详情查看或编辑 export function getViewByExamine(query) { return request({ url: '/material/backApply/getViewByExamine', @@ -104,7 +104,7 @@ export function submitBackApplyApi(data) { }) } -// 退料申请-退料单详情 +// 退料申请-详情 export function materialReturnNoteByApply(query) { return request({ url: '/material/backApply/materialReturnNoteByApply', diff --git a/sgzb-ui/src/api/claimAndRefund/secondStore.js b/sgzb-ui/src/api/claimAndRefund/secondStore.js new file mode 100644 index 00000000..25e951c7 --- /dev/null +++ b/sgzb-ui/src/api/claimAndRefund/secondStore.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' + +// 获取二级库列表 +export function secondaryWarehouseList(query) { + return request({ + url: '/material/secondaryWarehouse/getList', + method: 'get', + params: query + }) + } + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue b/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue index 0123205c..d3c973b8 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue @@ -133,6 +133,9 @@ 退料完成 + + 退料驳回 + @@ -156,7 +159,7 @@ 驳回提交 { - // console.log(res) - this.loadingList = res.data.rows - this.loadingTotal = res.data.total + console.log(res) + this.loadingList = res.rows + this.loadingTotal = res.total }) }, /** 刷新缓存按钮操作 */ diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnApplyAdd.vue b/sgzb-ui/src/views/claimAndRefund/return/returnApplyAdd.vue index 50dd0fd9..7f79caf7 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnApplyAdd.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnApplyAdd.vue @@ -145,13 +145,13 @@ @@ -237,7 +237,7 @@ import { getUseTypeTreee } from '@/api/claimAndRefund/receive' import { ApiSubmitBackApply } from "@/api/claimAndRefund/return" -import { submitBackApplyApi,getViewByApply } from "@/api/claimAndRefund/return.js" +import { submitBackApplyApi,materialReturnNoteByApply } from "@/api/claimAndRefund/return.js" import { mapState } from 'vuex' import { getInfo, h @@ -343,8 +343,8 @@ export default { companyId: null, status: 0, typeId: null, // 树结构第4级 规格id - typeCn: '', //显示的设备类型 - guigeCn: '', //显示的设备规格 + typeName: '', //显示的设备类型 + typeCode: '', //显示的设备规格 unitNames: '', //显示的设备 单位 remark: '', //单条备注 preNum: 1, //预领数量 @@ -488,10 +488,10 @@ export default { // 获取 任务详情数据 async GetViewByApply(Id) { - const res = await getViewByApply({ id:Id }) - const data = res.data.rows[0] + const res = await materialReturnNoteByApply({ id:Id }) + const data = res.data[0] this.queryParams.unitId = data.unitId - this.queryParams.proId = data.projectId + this.queryParams.proId = data.proId this.queryParams.phone = data.phone this.queryParams.backPerson = data.backPerson this.queryParams.backTime = data.backTime @@ -499,9 +499,7 @@ export default { this.queryParams.agreementCode = data.agreementCode this.queryParams.remark = data.remark - this.leaseApplyDetails = res.rows.map(item => { - return this.handelEchoData(item) - }) + this.leaseApplyDetails = res.data }, //生成回显数据 @@ -632,31 +630,6 @@ export default { /** 保存按钮操作 */ handleAdd() { - // this.$refs.queryForm.validate(async (valid) => { - // if (!valid) { - // return false - // } else { - // console.log("this.queryParams.leaseApplyDetails", this.queryParams.leaseApplyDetails) - // if (this.queryParams.leaseApplyDetails.length == 0) { - // this.$message.error('请添加并勾选数据'); - // return - // } - // this.queryParams.createBy = this.user.name - // this.queryParams.companyId = this.user.id - // console.log("ApiSubmitBackApplyInfo", this.queryParams) - // return - // const res = await ApiSubmitBackApply(this.queryParams) - // if (res.code == 200) { - // this.$message({ - // type: 'success', - // message: '申请成功' - // }) - // setTimeout(() => { - // this.$router.back() - // }, 1000) - // } - // } - // }) this.$refs.queryForm.validate(async (valid) => { if (!valid) { return false @@ -816,8 +789,8 @@ export default { // template.typeId = node.data.id template.unitNames = node.data.unitNames template.preNum = node.data.num - template.typeCn = node.pathLabels[2] - template.guigeCn = node.pathLabels[3] + template.typeName = node.pathLabels[2] + template.typeCode = node.pathLabels[3] return template } } diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index e91a1ed1..c243cdef 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -40,11 +40,11 @@ module.exports = { // target: `http://192.168.0.14:21624`,//线上环境 // target: `http://1.12.248.179:23028`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网 - // target: `https://z.csgmall.com.cn/gl`, + target: `https://z.csgmall.com.cn`, // target: `http://10.40.92.14:8080`,//超 // target: `http://10.40.92.4:8080`,//韩 - target: `http://10.40.92.209:8080`,//川 + // target: `http://10.40.92.209:8080`,//川 changeOrigin: true, pathRewrite: {