|
|
@ -21,11 +21,11 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">制单部门</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createDept }}</span></el-form-item> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.dept }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">制单日期</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createDate }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -41,7 +41,7 @@ |
|
|
|
<div class="span-sty">科目</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.subject" placeholder="请选择" @change="changeSubject" clearable filterable> |
|
|
|
<el-option v-for="item in subject_list" :key="item.subjectSid" :label="item.subjectName" :value="item.subjectName"></el-option> |
|
|
|
<el-option v-for="item in subject_list" :key="item.subjectSid" :label="item.subject" :value="item.subject"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -310,14 +310,14 @@ |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="维修人" width="100" align="center"> |
|
|
|
<el-table-column label="维修人" width="200" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select class="addinputInfo" v-model="scope.row.staffList" placeholder="请选择" @change="userChange(scope.row, scope.row.staffList)" clearable filterable> |
|
|
|
<el-select v-model="scope.row.staffList" placeholder="请选择" @change="userChange(scope.row, scope.row.staffList)" clearable filterable multiple> |
|
|
|
<el-option v-for="item in user_list" :key="item.sid" :label="item.name" :value="item.sid"></el-option> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="考核工时" align="center" width="100"> |
|
|
|
<el-table-column label="考核工时" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.examineHourPrice" @keyup.native="scope.row.examineHourPrice = getNumber(scope.row.examineHourPrice, 2)" clearable placeholder="" /> |
|
|
|
</template> |
|
|
@ -327,7 +327,7 @@ |
|
|
|
<el-input @input="computeXSJ(scope.row)" v-model="scope.row.hourPrice" @keyup.native="scope.row.hourPrice = getNumber(scope.row.hourPrice, 2)" clearable placeholder="" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="工时数" align="center" width="100"> |
|
|
|
<el-table-column label="工时数" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input @input="computeXSJ(scope.row)" v-model="scope.row.hours" @keyup.native="scope.row.hours = getNumber(scope.row.hours, 2)" clearable placeholder="" /> |
|
|
|
</template> |
|
|
@ -796,24 +796,31 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
this.init() |
|
|
|
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
this.formobj.createByName = window.sessionStorage.getItem('name') |
|
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|
|
|
this.formobj.createDept = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) |
|
|
|
this.formobj.createDeptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
this.formobj.dept = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) |
|
|
|
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
var nowDate = new Date() |
|
|
|
var date = { |
|
|
|
year: nowDate.getFullYear(), |
|
|
|
month: nowDate.getMonth() + 1, |
|
|
|
day: nowDate.getDate() |
|
|
|
} |
|
|
|
this.formobj.createTime = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) |
|
|
|
this.formobj.createDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) |
|
|
|
}, |
|
|
|
showEdit() { |
|
|
|
showEdit(sid) { |
|
|
|
this.viewTitle = '【编辑】维修单' |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.init() |
|
|
|
req.fetchBySid(sid).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
selectCustomer() { |
|
|
|
this.viewState = 2 |
|
|
@ -839,7 +846,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
changeSubject(value) { |
|
|
|
const choose = this.subject_list.filter((item) => item.subjectName === value) |
|
|
|
const choose = this.subject_list.filter((item) => item.subject === value) |
|
|
|
if (choose.length > 0 && choose !== null) { |
|
|
|
this.formobj.subjectSid = choose[0].subjectSid |
|
|
|
} else { |
|
|
|