This commit is contained in:
bb_pan 2025-06-06 16:51:25 +08:00
parent dd7f6f00ee
commit a6564d5bc5
3 changed files with 42 additions and 52 deletions

View File

@ -829,25 +829,29 @@ export default {
//
async GetViewByApply(params) {
const res = await getBackApplyInfo(this.rowId)
console.log('🚀 ~ GetViewByApply ~ res:', res)
if (res.msg && res.msg != '操作成功') {
this.$message.warning(res.msg)
}
console.log(res)
const data = res.data
this.queryParams.teamId = data.backApplyInfo.teamId
console.log('🚀 ~ GetViewByApply ~ data:', data)
this.queryParams = data.backApplyInfo
// this.unitId = this.treeParentsById(this.unitList, this.queryParams.unitId)
this.GetProData()
setTimeout(() => {
this.queryParams.proId = data.backApplyInfo.proId
}, 500)
// this.GetProData()
// setTimeout(() => {
// this.queryParams.proId = data.backApplyInfo.proId
// }, 500)
// this.projectId = this.treeParentsById(this.proList, this.queryParams.proId)
this.queryParams.phone = data.backApplyInfo.phone
this.queryParams.backPerson = data.backApplyInfo.backPerson
this.queryParams.agreementId = data.backApplyInfo.agreementId
this.queryParams.remark = data.backApplyInfo.remark
// this.queryParams.phone = data.backApplyInfo.phone
// this.queryParams.backPerson = data.backApplyInfo.backPerson
// this.queryParams.agreementId = data.backApplyInfo.agreementId
// this.queryParams.remark = data.backApplyInfo.remark
this.equipmentList = data.backApplyDetailsList
this.equipmentList.forEach(item => {
item.tempMaCodeList = item.maCodeList
const temp = item.typeName
item.typeName = item.materialName
item.typeModel = temp
})
this.GetDeviceTypeTreeFn(data.backApplyInfo.agreementId)
},
@ -915,7 +919,8 @@ export default {
phone: this.queryParams.phone,
remark: this.queryParams.remark,
agreementId: this.queryParams.agreementId,
isBack
isBack,
taskId: this.queryParams.taskId,
// backTime: this.queryParams.backTime,
// createBy: this.queryParams.createBy,
// companyId: this.queryParams.companyId,

View File

@ -10,18 +10,18 @@
label-width="100px"
>
<el-row>
<el-form-item label="退料单位" prop="proName">
<el-form-item label="退料班组" prop="teamName">
<el-input
v-model="queryParams.proName"
v-model="queryParams.teamName"
placeholder="退料单位"
clearable
style="width: 240px"
:disabled="isView"
/>
</el-form-item>
<el-form-item label="退料工程" prop="unitName">
<el-form-item label="退料工程" prop="proName">
<el-input
v-model="queryParams.unitName"
v-model="queryParams.proName"
placeholder="退料工程"
clearable
style="width: 240px"
@ -446,32 +446,8 @@ export default {
type: 'number',
},
],
backPerson: [
{
required: true,
message: '请输入班组长',
trigger: 'blur',
},
],
// backTime: [
// {
// required: true,
// message: '退',
// trigger: 'change',
// },
// ],
phone: [
{
required: true,
trigger: 'blur',
message: '请输入班组长的手机号',
},
{
pattern: /^1[3456789]\d{9}$/,
message: '请输入正确的手机号码',
trigger: 'blur',
},
],
},
unitList: [], //
proList: [], //
@ -498,8 +474,8 @@ export default {
}
},
mounted() {
this.GetUnitData()
this.GetProData()
// this.GetUnitData()
// this.GetProData()
if (this.backId) {//
console.log(this.backId)
@ -636,16 +612,22 @@ export default {
console.log(res)
const data = res.data
console.log(data)
this.queryParams.teamId = data.backApplyInfo.teamId
this.queryParams.proId = data.backApplyInfo.proId
this.queryParams.unitName = data.backApplyInfo.unitName
this.queryParams.proName = data.backApplyInfo.proName
this.queryParams.phone = data.backApplyInfo.phone
this.queryParams.backPerson = data.backApplyInfo.backPerson
this.queryParams.agreementId = data.backApplyInfo.agreementId
this.queryParams.remark = data.backApplyInfo.remark
this.queryParams = data.backApplyInfo
// this.queryParams.teamId = data.backApplyInfo.teamId
// this.queryParams.proId = data.backApplyInfo.proId
// this.queryParams.unitName = data.backApplyInfo.unitName
// this.queryParams.proName = data.backApplyInfo.proName
// this.queryParams.phone = data.backApplyInfo.phone
// this.queryParams.backPerson = data.backApplyInfo.backPerson
// this.queryParams.agreementId = data.backApplyInfo.agreementId
// this.queryParams.remark = data.backApplyInfo.remark
this.equipmentList = data.backApplyDetailsList
this.GetDeviceTypeTreeFn(data.backApplyInfo.agreementId)
// this.GetDeviceTypeTreeFn(data.backApplyInfo.agreementId)
this.equipmentList.forEach((item) => {
const temp = item.typeName
item.typeName = item.materialName
item.typeModel = temp
})
// this.$set(this.queryParams, 'phone', data.phone)
// this.queryParams.backPerson = data.backPerson
// this.queryParams.backTime = data.backTime

View File

@ -601,6 +601,9 @@ export default {
async getTaskInfo() {
// this.loading = true;
await getApplyInfo(this.id).then(response => {
if (response.msg && response.msg != '操作成功') {
this.$message.warning(response.msg)
}
this.maForm = response.data.leaseApplyInfo
this.maForm.teamId = response.data.leaseApplyInfo.teamId
this.maForm.projectId = response.data.leaseApplyInfo.projectId