配件领退修改最后完善

This commit is contained in:
xiaofajia 2024-10-22 15:57:07 +08:00
parent 13382730d3
commit 5a3b3c3aaf
5 changed files with 17 additions and 6 deletions

View File

@ -121,7 +121,7 @@ export default {
userId: null, userId: null,
userName: null, userName: null,
soType: this.soByType ? "01" : "02", soType: this.soByType ? "01" : "02",
purchaseType: this.goodsYes ? "02" : "01", purchaseType: null,
soStatus: "06" soStatus: "06"
}, },
showSearch: true, showSearch: true,
@ -139,6 +139,9 @@ export default {
if (this.isBack){ if (this.isBack){
this.queryParams.soType = "04" this.queryParams.soType = "04"
} }
if (this.soByType){
this.queryParams.purchaseType = this.goodsYes ? "02" : "01"
}
this.loading = true this.loading = true
const res = await getRepairSoPage(this.queryParams) const res = await getRepairSoPage(this.queryParams)
this.list = res.data.records this.list = res.data.records

View File

@ -20,7 +20,8 @@
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单据号" align="center" prop="no" /> <el-table-column label="单据号" align="center" prop="no" width="200"/>
<el-table-column label="客户车牌" align="center" prop="licenseNumber" />
<el-table-column label="服务顾问" align="center" prop="adviserName" /> <el-table-column label="服务顾问" align="center" prop="adviserName" />
<el-table-column label="申请人" align="center" prop="repairName" /> <el-table-column label="申请人" align="center" prop="repairName" />
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
@ -312,6 +313,9 @@ export default {
item.isStock = this.type ? count <= item.wares.stock : true item.isStock = this.type ? count <= item.wares.stock : true
}) })
this.items = this.items.filter(item => this.type ? item.waresStatus === '02' : item.waresAlreadyCount) this.items = this.items.filter(item => this.type ? item.waresStatus === '02' : item.waresAlreadyCount)
if (!this.type){
this.items = this.items.filter(item => item.waresAlreadyCount !== item.waresBackCount)
}
}finally { }finally {
this.dialogLoading = false this.dialogLoading = false
} }
@ -464,7 +468,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
::v-deep .el-table .stock td{ ::v-deep .el-table .stock td{
background-color: #ff0000 !important; /* 红色背景 */ color: #ff0000 !important; /* 红色背景 */
} }
.item { .item {
.item__input { .item__input {

View File

@ -27,6 +27,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单据号" align="center" prop="no"/> <el-table-column label="单据号" align="center" prop="no"/>
<el-table-column label="客户车牌" align="center" prop="licenseNumber" />
<el-table-column label="服务顾问" align="center" prop="adviserName"/> <el-table-column label="服务顾问" align="center" prop="adviserName"/>
<el-table-column label="申请人" align="center" prop="repairName"/> <el-table-column label="申请人" align="center" prop="repairName"/>
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">

View File

@ -295,7 +295,8 @@ export default {
items: [], items: [],
remark: null, remark: null,
adviserId: null, adviserId: null,
adviserName: null adviserName: null,
licenseNumber: null,
}, },
addWaresVisible: false, addWaresVisible: false,
waresFormData:{ waresFormData:{
@ -360,7 +361,8 @@ export default {
items: [], items: [],
remark: this.formData.remark, remark: this.formData.remark,
adviserId: null, adviserId: null,
adviserName: null adviserName: null,
licenseNumber: null,
} }
this.formData.no = createUniqueCodeByHead(this.info.type ? 'LLSQ' : 'TLSQ') this.formData.no = createUniqueCodeByHead(this.info.type ? 'LLSQ' : 'TLSQ')
this.formData.ticketId = this.info.id this.formData.ticketId = this.info.id
@ -368,6 +370,7 @@ export default {
this.formData.status = '01' this.formData.status = '01'
this.formData.adviserId = this.info.adviserId this.formData.adviserId = this.info.adviserId
this.formData.adviserName = this.info.adviserName this.formData.adviserName = this.info.adviserName
this.formData.licenseNumber = this.info.carNo
this.formData.items = [ this.formData.items = [
...this.chooseList.map(item => { ...this.chooseList.map(item => {
return { return {

View File

@ -151,7 +151,7 @@
</div> </div>
</el-card> </el-card>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm" :disabled="formLoading"> </el-button> <el-button type="primary" @click="submitForm" :disabled="!this.selectedRows"> </el-button>
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>