优化页面
This commit is contained in:
parent
88a9b4fa46
commit
d7f1e5bbcd
|
|
@ -7,14 +7,14 @@
|
||||||
:noticeDialog="noticeDialog"
|
:noticeDialog="noticeDialog"
|
||||||
:noticeList="noticeList"
|
:noticeList="noticeList"
|
||||||
@closeDialog="closeDialog"
|
@closeDialog="closeDialog"
|
||||||
></Notice>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ThemePicker from '@/components/ThemePicker'
|
import ThemePicker from '@/components/ThemePicker'
|
||||||
import { getHomeNoticeApi } from '@/api/system/notice.js'
|
|
||||||
import Notice from '@/components/Notice'
|
import Notice from '@/components/Notice'
|
||||||
|
import { getHomeNoticeApi } from '@/api/system/notice.js'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
unreadNUm: 1,
|
unreadNum: 1,
|
||||||
noticeListDoc: [],
|
noticeListDoc: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -408,6 +408,7 @@ export default {
|
||||||
fileUrl: '',
|
fileUrl: '',
|
||||||
},
|
},
|
||||||
isNumReturnNew: false,
|
isNumReturnNew: false,
|
||||||
|
isHandle: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -544,7 +545,6 @@ export default {
|
||||||
|
|
||||||
setCodeBack(param).then((response) => {
|
setCodeBack(param).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('操作成功')
|
|
||||||
this.$modal.msgSuccess('操作成功')
|
this.$modal.msgSuccess('操作成功')
|
||||||
this.dialogConfigReturn.outerVisible = false
|
this.dialogConfigReturn.outerVisible = false
|
||||||
this.$refs.homeTbRef.getList()
|
this.$refs.homeTbRef.getList()
|
||||||
|
|
@ -608,31 +608,42 @@ export default {
|
||||||
taskId,
|
taskId,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hgNum > 0) {
|
||||||
const detailsInfo = {
|
const detailsInfo = {
|
||||||
parentId: id,
|
parentId: id,
|
||||||
typeId,
|
typeId,
|
||||||
manageType: 1,
|
manageType: 1,
|
||||||
createBy: sessionStorage.getItem('userId'),
|
createBy: sessionStorage.getItem('userId'),
|
||||||
backStatus: '',
|
backStatus: 1,
|
||||||
backNum: '',
|
backNum: hgNum,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hgNum > 0) {
|
|
||||||
detailsInfo.backNum = hgNum
|
|
||||||
detailsInfo.backStatus = 1
|
|
||||||
numReturnParams.arr.push(detailsInfo)
|
numReturnParams.arr.push(detailsInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wxNum > 0) {
|
if (wxNum > 0) {
|
||||||
detailsInfo.backNum = wxNum
|
const detailsInfo = {
|
||||||
detailsInfo.backStatus = 2
|
parentId: id,
|
||||||
|
typeId,
|
||||||
|
manageType: 1,
|
||||||
|
createBy: sessionStorage.getItem('userId'),
|
||||||
|
backStatus: 2,
|
||||||
|
backNum: wxNum,
|
||||||
|
}
|
||||||
|
|
||||||
numReturnParams.arr.push(detailsInfo)
|
numReturnParams.arr.push(detailsInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bfNum > 0) {
|
if (bfNum > 0) {
|
||||||
|
const detailsInfo = {
|
||||||
|
parentId: id,
|
||||||
|
typeId,
|
||||||
|
manageType: 1,
|
||||||
|
createBy: sessionStorage.getItem('userId'),
|
||||||
|
backStatus: 3,
|
||||||
|
backNum: bfNum,
|
||||||
|
}
|
||||||
this.isNumReturnNew = !this.isNumReturnNew
|
this.isNumReturnNew = !this.isNumReturnNew
|
||||||
detailsInfo.backNum = bfNum
|
|
||||||
detailsInfo.backStatus = 3
|
|
||||||
if (
|
if (
|
||||||
this.numDetailsInfo.scrapType === '' ||
|
this.numDetailsInfo.scrapType === '' ||
|
||||||
!this.numDetailsInfo.fileUrl
|
!this.numDetailsInfo.fileUrl
|
||||||
|
|
|
||||||
|
|
@ -437,6 +437,7 @@ export default {
|
||||||
fileUrl: '',
|
fileUrl: '',
|
||||||
},
|
},
|
||||||
isNumReturn: false,
|
isNumReturn: false,
|
||||||
|
isHandle: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -582,9 +583,8 @@ export default {
|
||||||
getScrapReturnSaveApi(param).then((response) => {
|
getScrapReturnSaveApi(param).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('操作成功')
|
this.$modal.msgSuccess('操作成功')
|
||||||
this.$modal.msgSuccess('操作成功')
|
this.isHandle = true
|
||||||
this.dialogConfigReturn.outerVisible = false
|
this.$refs.dialogTbRef.getList()
|
||||||
this.$refs.homeTbRef.getList()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -616,8 +616,9 @@ export default {
|
||||||
getScrapReturnSaveApi(param).then((response) => {
|
getScrapReturnSaveApi(param).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('操作成功')
|
this.$modal.msgSuccess('操作成功')
|
||||||
this.dialogConfigReturn.outerVisible = false
|
// this.dialogConfigReturn.outerVisible = false
|
||||||
this.$refs.homeTbRef.getList()
|
this.isHandle = true
|
||||||
|
this.$refs.dialogTbRef.getList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -645,31 +646,41 @@ export default {
|
||||||
arr: [],
|
arr: [],
|
||||||
flag: 0,
|
flag: 0,
|
||||||
}
|
}
|
||||||
|
console.log(hgNum, wxNum, bfNum, '各数量')
|
||||||
|
|
||||||
|
if (hgNum > 0) {
|
||||||
const detailsInfo = {
|
const detailsInfo = {
|
||||||
parentId: this.parentId,
|
parentId: this.parentId,
|
||||||
typeId,
|
typeId,
|
||||||
manageType: 1,
|
manageType: 1,
|
||||||
createBy: sessionStorage.getItem('userId'),
|
createBy: sessionStorage.getItem('userId'),
|
||||||
backStatus: '',
|
backStatus: 1,
|
||||||
backNum: '',
|
backNum: hgNum,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hgNum > 0) {
|
|
||||||
detailsInfo.backNum = hgNum
|
|
||||||
detailsInfo.backStatus = 1
|
|
||||||
numReturnParams.arr.push(detailsInfo)
|
numReturnParams.arr.push(detailsInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wxNum > 0) {
|
if (wxNum > 0) {
|
||||||
detailsInfo.backNum = wxNum
|
const detailsInfo = {
|
||||||
detailsInfo.backStatus = 2
|
parentId: this.parentId,
|
||||||
|
typeId,
|
||||||
|
manageType: 1,
|
||||||
|
createBy: sessionStorage.getItem('userId'),
|
||||||
|
backStatus: 2,
|
||||||
|
backNum: wxNum,
|
||||||
|
}
|
||||||
numReturnParams.arr.push(detailsInfo)
|
numReturnParams.arr.push(detailsInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bfNum > 0) {
|
if (bfNum > 0) {
|
||||||
detailsInfo.backNum = bfNum
|
const detailsInfo = {
|
||||||
detailsInfo.backStatus = 3
|
parentId: this.parentId,
|
||||||
|
typeId,
|
||||||
|
manageType: 1,
|
||||||
|
createBy: sessionStorage.getItem('userId'),
|
||||||
|
backStatus: 3,
|
||||||
|
backNum: bfNum,
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
this.numDetailsInfo.scrapType === '' ||
|
this.numDetailsInfo.scrapType === '' ||
|
||||||
!this.numDetailsInfo.fileUrl
|
!this.numDetailsInfo.fileUrl
|
||||||
|
|
@ -684,7 +695,6 @@ export default {
|
||||||
detailsInfo.fileUrl = fileUrl
|
detailsInfo.fileUrl = fileUrl
|
||||||
numReturnParams.arr.push(detailsInfo)
|
numReturnParams.arr.push(detailsInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
getScrapReturnSaveApi(numReturnParams).then((res) => {
|
getScrapReturnSaveApi(numReturnParams).then((res) => {
|
||||||
this.numDetailsInfo.scrapReason = ''
|
this.numDetailsInfo.scrapReason = ''
|
||||||
this.numDetailsInfo.scrapType = ''
|
this.numDetailsInfo.scrapType = ''
|
||||||
|
|
@ -792,8 +802,8 @@ export default {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('操作成功')
|
this.$modal.msgSuccess('操作成功')
|
||||||
this.currentRows = null
|
this.currentRows = null
|
||||||
this.dialogConfigReturn.outerVisible = false
|
this.isHandle = true
|
||||||
this.$refs.homeTbRef.getList()
|
this.$refs.dialogTbRef.getList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -832,8 +842,8 @@ export default {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('操作成功')
|
this.$modal.msgSuccess('操作成功')
|
||||||
this.scrapAll = false
|
this.scrapAll = false
|
||||||
this.dialogConfigReturn.outerVisible = false
|
this.isHandle = true
|
||||||
this.$refs.homeTbRef.getList()
|
this.$refs.dialogTbRef.getList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -904,18 +914,6 @@ export default {
|
||||||
this.dialogConfigReturn.outerVisible = false
|
this.dialogConfigReturn.outerVisible = false
|
||||||
this.$emit('closeReturnPage')
|
this.$emit('closeReturnPage')
|
||||||
}
|
}
|
||||||
console.log(res, '退料结果')
|
|
||||||
|
|
||||||
// this.submitScrapParams.deptIds = []
|
|
||||||
|
|
||||||
// const res = await submitScrapApi(this.submitScrapParams)
|
|
||||||
// if (res.code == 200) {
|
|
||||||
// this.$message.success('已提交成功')
|
|
||||||
// this.dialogConfig.outerVisible = false
|
|
||||||
// this.$refs.listingTbRef.getList()
|
|
||||||
// this.submitScrapParams.taskIdList = []
|
|
||||||
// }
|
|
||||||
// this.$refs.selDepartRef.clearNode()
|
|
||||||
},
|
},
|
||||||
/* 外层弹框关闭 */
|
/* 外层弹框关闭 */
|
||||||
closeDialogOuter() {
|
closeDialogOuter() {
|
||||||
|
|
@ -941,6 +939,11 @@ export default {
|
||||||
this.imgUrlList = []
|
this.imgUrlList = []
|
||||||
this.scrapInfoParams.fileList = []
|
this.scrapInfoParams.fileList = []
|
||||||
this.dialogConfigReturn.outerWidth = '70%'
|
this.dialogConfigReturn.outerWidth = '70%'
|
||||||
|
|
||||||
|
if (this.isHandle) {
|
||||||
|
this.$refs.homeTbRef.getList()
|
||||||
|
this.isHandle = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue