Browse Source

完善项目--维修技师职称管理

master
yunuo970428 5 months ago
parent
commit
b320bcf5be
  1. 22
      yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue

22
yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue

@ -64,7 +64,7 @@
<el-row>
<el-col :span="24">
<div class="span-sty"><span class="icon">*</span>权重</div>
<el-form-item prop="weight"><el-input class="addinputInfo addinputw" @keyup.native="formobj.weight = getNumber(formobj.weight, 0)" v-model="formobj.weight" clearable placeholder="请填写零以上数字" /></el-form-item>
<el-form-item prop="weight"><el-input class="addinputInfo addinputw" :disabled="formobj.sid !== ''" @keyup.native="formobj.weight = getNumber(formobj.weight, 0)" v-model="formobj.weight" clearable placeholder="请填写零以上数字" /></el-form-item>
</el-col>
</el-row>
<el-row>
@ -111,6 +111,7 @@ export default {
dialogVisible: false,
titleName_list: [],
formobj: {
sid: '',
createBySid: '',
remarks: '',
titleNameValue: '',
@ -171,6 +172,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // SIDs
multipleSelection: [],
listLoading: false,
//
listQuery: {
@ -235,6 +237,7 @@ export default {
},
// sid
handleSelectionChange(row) {
this.multipleSelection = row
const aa = []
row.forEach(element => {
aa.push(element.sid)
@ -313,12 +316,16 @@ export default {
this.$refs['form_obj'].clearValidate()
})
if (this.sids.length === 1) {
this.dialogVisible = true
req.fetchBySid(this.sids[0]).then((resp) => {
if (resp.success) {
this.formobj = resp.data
}
})
if (this.multipleSelection[0].state !== '备案中') {
this.dialogVisible = true
req.fetchBySid(this.sids[0]).then((resp) => {
if (resp.success) {
this.formobj = resp.data
}
})
} else {
this.$message({ showClose: true, type: 'error', message: '该记录正在备案中,无法编辑' })
}
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
}
@ -350,6 +357,7 @@ export default {
this.dialogVisible = false
this.$refs['form_obj'].resetFields()
this.formobj = {
sid: '',
createBySid: '',
remarks: '',
titleNameValue: '',

Loading…
Cancel
Save