This commit is contained in:
bb_pan 2025-06-06 17:18:14 +08:00
parent a6564d5bc5
commit 8be30fe4a8
2 changed files with 6 additions and 2 deletions

View File

@ -416,6 +416,7 @@ import { getToken } from '@/utils/auth'
import { getBmTeamApi } from '@/api/equipment'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import Cookies from 'js-cookie'
export default {
components: { Treeselect },
name: 'ReturnApplyAdd',
@ -893,11 +894,11 @@ export default {
return false
} else {
// let backApplyInfo = []
if (this.equipmentList.length == 0) {
if (!this.equipmentList || this.equipmentList.length == 0) {
this.$message.error('请先添加数据')
return
}
if (this.queryParams.equipmentList.length == 0) {
if (!this.queryParams.equipmentList || this.queryParams.equipmentList.length == 0) {
this.$message.error('请先勾选数据')
return
}
@ -921,6 +922,7 @@ export default {
agreementId: this.queryParams.agreementId,
isBack,
taskId: this.queryParams.taskId,
createBy: Cookies.get('username')
// backTime: this.queryParams.backTime,
// createBy: this.queryParams.createBy,
// companyId: this.queryParams.companyId,

View File

@ -253,6 +253,7 @@ import { submitOut } from '@/api/lease/out'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import OutCodeDlg from './OutCodeDlg.vue'
import Cookies from 'js-cookie'
export default {
dicts: ['purchase_task_status'],
@ -714,6 +715,7 @@ export default {
.then(function () {})
.then(() => {
this.maForm.isOut = isOut
this.maForm.createBy = Cookies.get('username')
if (this.isEdit) {
this.maForm.leaseProjectId = this.maForm.projectId
console.log('编辑')