施工完成1/2
This commit is contained in:
parent
e9fb87dec7
commit
fdcc7367e3
@ -288,7 +288,7 @@ export default {
|
||||
save(row) {
|
||||
// console.log(row)
|
||||
if (row.id) {
|
||||
row.itemStatus = (row.repair && this.itemType === 'project') ? "02" : "01"
|
||||
row.itemStatus = "01"
|
||||
row.totalPrice = row.count * row.price * (row.discount / 10)
|
||||
}
|
||||
const id = row.id
|
||||
|
@ -50,13 +50,13 @@
|
||||
<el-button v-if="userRole === 'service_advisor' && scope.row.ticketsWorkStatus === '01'" size="mini" type="text" icon="el-icon-check" @click="handleNotify(scope.row)">
|
||||
通知施工
|
||||
</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgz')">
|
||||
<el-button size="mini" v-if="userRole === 'repair_staff'" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgz')">
|
||||
过程记录
|
||||
</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'kssg')">
|
||||
<el-button size="mini" v-if="userRole === 'repair_staff'" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'kssg')">
|
||||
开始施工
|
||||
</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgwczj')">
|
||||
<el-button size="mini" v-if="userRole === 'repair_staff'" type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgwczj')">
|
||||
施工完成
|
||||
</el-button>
|
||||
<el-dropdown @command="(command) => handleCommand(command, scope.$index, scope.row)">
|
||||
|
@ -28,7 +28,11 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="doUpdate">确 定</el-button>
|
||||
<el-button v-if="formData.recordType !== 'sgwczj'" type="primary" @click="doUpdate">确 定</el-button>
|
||||
<el-button v-if="formData.recordType === 'sgwczj'" type="primary">部分完成</el-button>
|
||||
<el-button v-if="formData.recordType === 'sgwczj'" type="success">
|
||||
{{isNext ? "整体完成并指派下一项目" : (isEndCheck ? "整体完成并移交总检" : "整体完成")}}
|
||||
</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -63,6 +67,10 @@ export default {
|
||||
},
|
||||
formLoading: false,
|
||||
projectList: [],
|
||||
// 有没有下一个项目
|
||||
isNext: false,
|
||||
// 是否需要总检
|
||||
isEndCheck: true,
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
@ -85,6 +93,7 @@ export default {
|
||||
},
|
||||
async open(row){
|
||||
this.init()
|
||||
this.isEndCheck = row.endCheck === '1'
|
||||
this.formData.id = row.id
|
||||
this.formData.recordType = row.clickType
|
||||
await this.listProject(row.id)
|
||||
@ -103,6 +112,9 @@ export default {
|
||||
this.formData.ticketsWorkStatus = "02"
|
||||
this.formData.item.itemStatus = "02"
|
||||
this.projectList = this.projectList.filter(item => item.itemStatus === '02')
|
||||
}else {
|
||||
this.isNext = this.projectList.filter(item => item.itemStatus !== '03').length > 0
|
||||
this.projectList = this.projectList.filter(item => item.itemStatus === '02')
|
||||
}
|
||||
}finally {
|
||||
this.formLoading = false
|
||||
@ -111,7 +123,7 @@ export default {
|
||||
async doUpdate(){
|
||||
try {
|
||||
await this.$refs.formRef.validate()
|
||||
this.formData.image = this.formData.image.map(item => item.url).join(",")
|
||||
// this.formData.image = this.formData.image.map(item => item.url).join(",")
|
||||
this.formLoading = true
|
||||
await updateStatus(this.formData)
|
||||
this.$modal.msgSuccess("操作成功")
|
||||
|
Loading…
Reference in New Issue
Block a user