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

View File

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