|
|
@ -83,31 +83,39 @@ |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="设备类别" prop="shebeileibie"> |
|
|
|
<el-form-item label="设备类别" prop="shebeileibiedaima"> |
|
|
|
<el-select |
|
|
|
v-model="ysjl.shebeileibie" |
|
|
|
v-model="ysjl.shebeileibiedaima" |
|
|
|
filterable |
|
|
|
allow-create |
|
|
|
default-first-option |
|
|
|
style="width: 100%" |
|
|
|
@change="changXh" |
|
|
|
@change="changeSblb" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in xinghaoList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.xinghao" |
|
|
|
:value="item.xinghao" |
|
|
|
v-for="(item, index) in sblbList" |
|
|
|
:key="index" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="设备品种" prop="shebeipinzhong"> |
|
|
|
<el-input |
|
|
|
v-model="ysjl.shebeipinzhong" |
|
|
|
type="text" |
|
|
|
:disabled="edit" |
|
|
|
<el-form-item label="设备品种" prop="shebeipinzhongdaima"> |
|
|
|
<el-select |
|
|
|
v-model="ysjl.shebeipinzhongdaima" |
|
|
|
filterable |
|
|
|
default-first-option |
|
|
|
style="width: 100%" |
|
|
|
@change="changeSbpz" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="(item, index) in sbpzList" |
|
|
|
:key="index" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -847,7 +855,8 @@ export default { |
|
|
|
ysjlId: this.$route.query.id, |
|
|
|
checkedTab: 'first', |
|
|
|
userList: [], |
|
|
|
xinghaoList: [], |
|
|
|
sblbList: [], |
|
|
|
sbpzList: [], |
|
|
|
jybgData: [], |
|
|
|
cols: [ |
|
|
|
{ |
|
|
@ -968,21 +977,29 @@ export default { |
|
|
|
this.jlbh2 = '(C)' |
|
|
|
} |
|
|
|
this.getJyxm(1) |
|
|
|
this.getSbList() |
|
|
|
this.getSbList(undefined, 2) |
|
|
|
this.getSbList(this.ysjl.shebeileibiedaima, 3) |
|
|
|
this.getMaxBh() |
|
|
|
}) |
|
|
|
}, |
|
|
|
getSbList() { |
|
|
|
this.api({ |
|
|
|
url: '/sedirectory/getList', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
sbzl: this.$route.query.sbzldm, |
|
|
|
sblb: this.$route.query.sblbdm, |
|
|
|
level: 2 |
|
|
|
} |
|
|
|
getSbList(sblb, level) { |
|
|
|
return this.sedirectoryService.getList({ |
|
|
|
sbzl: '3000', |
|
|
|
sblb: sblb, |
|
|
|
level: level |
|
|
|
}).then((data) => { |
|
|
|
this.xinghaoList = data |
|
|
|
switch (level) { |
|
|
|
case 2: |
|
|
|
this.sblbList = data |
|
|
|
break |
|
|
|
case 3: |
|
|
|
this.sbpzList = data |
|
|
|
this.ysjl.shebeipinzhong = this.sbpzList[0].label |
|
|
|
this.ysjl.shebeipinzhongdaima = this.sbpzList[0].value |
|
|
|
break |
|
|
|
default: |
|
|
|
break |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getJyxmInfoByYsjl() { |
|
|
@ -1024,6 +1041,8 @@ export default { |
|
|
|
this.isRepeat = data |
|
|
|
}) |
|
|
|
this.getJyxm(1) |
|
|
|
this.getSbList(undefined, 2) |
|
|
|
this.getSbList(this.ysjl.shebeileibiedaima, 3) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getParam() { |
|
|
@ -1312,8 +1331,18 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
changXh: function(val) { |
|
|
|
// TODO |
|
|
|
changeSblb(val) { |
|
|
|
this.ysjl.shebeileibiedaima = val |
|
|
|
this.ysjl.shebeileibie = this.sblbList.filter(row => row.value === val)[0].label |
|
|
|
this.getSbList(this.ysjl.shebeileibiedaima, 3) |
|
|
|
.then(() => { |
|
|
|
this.shebeipinzhongdaima = this.sbpzList[0].value |
|
|
|
this.shebeipinzhong = this.sbpzList[0].label |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeSbpz(val) { |
|
|
|
this.ysjl.shebeipinzhongdaima = val |
|
|
|
this.ysjl.shebeipinzhong = this.sbpzList.filter(row => row.value === val)[0].label |
|
|
|
}, |
|
|
|
loadPhxsImage(data) { |
|
|
|
this.pic = data |
|
|
|