更新代码

This commit is contained in:
xiao-fajia 2024-09-23 08:43:30 +08:00
parent a850c6f694
commit ed3391a071

View File

@ -105,29 +105,33 @@
<StaffChoose v-model="selectStaff" />
</el-descriptions-item>
</el-descriptions>
<el-row v-if="createTicketType" :gutter="5" style="margin-bottom: 1rem">
<el-col :span="4.8">
<el-row :gutter="5" style="margin-bottom: 1rem">
<el-col v-if="createTicketType" :span="4.8">
<el-button size="small" @click="$refs['repairAdvice'].open()">维修建议</el-button>
</el-col>
<el-col :span="4.8">
<el-col v-if="createTicketType" :span="4.8">
<el-button size="small" @click="$refs['qualityExplain'].open()">质保说明</el-button>
</el-col>
<el-col :span="4.8">
<el-col v-if="createTicketType" :span="4.8">
<el-button size="small" v-if="formData.endCheck.toString() === '1'" @click="formData.endCheck = 0">终检</el-button>
<el-button size="small" v-if="formData.endCheck.toString() === '0'" @click="formData.endCheck = 1">不终检</el-button>
</el-col>
<el-col :span="4.8">
<el-col v-if="createTicketType" :span="4.8">
<el-select v-model="formData.partDisposal" size="small">
<el-option v-for="item in this.getDictDatas(DICT_TYPE.REPAIR_PART_DISPOSAL)" :key="item.value"
:label="item.label" :value="item.value"/>
</el-select>
</el-col>
<el-col :span="4.8">
<el-col v-if="createTicketType" :span="4.8">
<el-select v-model="formData.repairType" size="small">
<el-option v-for="item in this.getDictDatas(DICT_TYPE.REPAIR_TYPE)" :key="item.value" :label="item.label"
:value="item.value"/>
</el-select>
</el-col>
<el-col :span="4">
<el-button size="small" v-if="formData.ticketType === '01'" @click="formData.ticketType = '02'">A单</el-button>
<el-button size="small" v-if="formData.ticketType === '02'" @click="formData.ticketType = '01'">B单</el-button>
</el-col>
</el-row>
<TicketItem item-type="project" :in-list-data="projectList" @tableData="projectData" ref="projectTable"/>
<TicketItem v-if="createTicketType" :in-list-data="partList" item-type="part" @tableData="partData" ref="partTable"/>
@ -267,9 +271,9 @@ export default {
},
qualityMileage: null,
qualityDay: null,
ticketType: null,
ticketType: "01",
itemList: [],
ticketsStatus: "01"
ticketsStatus: "01",
},
selectUser: {},
selectCar: {},