Browse Source

备品备件

java8
ruanqi 12 months ago
parent
commit
9e36197b78
  1. 17
      src/views/modules/partspare/partSpareLocation.vue

17
src/views/modules/partspare/partSpareLocation.vue

@ -148,6 +148,18 @@
</el-select>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="BU">
<el-select v-model="modalData.buNo" placeholder="请选择" style="width: 221px" >
<el-option
v-for = "i in buList"
:key = "i.buNo"
:label = "i.buDesc"
:value = "i.buNo">
</el-option>
</el-select>
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
@ -564,6 +576,7 @@ export default {
}
this.modalDisableFlag = false
this.modalFlag = true
this. getBu ()
},
//
@ -606,6 +619,10 @@ export default {
this.$message.warning("请选择是否在用!")
return false
}
if (this.modalData.buNo === '' || this.modalData.buNo == null) {
this.$message.warning("请选择BU!")
return false
}
if(this.modalData.flag === '1'){
savePartSpareLocation(this.modalData).then(({data}) => {
if (data && data.code === 0) {

Loading…
Cancel
Save