guoyuji
2024-06-21 8e1ab69f9008eadc4941aa4f6ab21022962c0274
north-glass-erp/northglass-erp/src/views/sd/basicData/CreateBasicData.vue
@@ -11,7 +11,8 @@
let basic = ref({
  basicType : ['',''],
  input:''
  input:'',
  nickname:''
})
let options=ref([
  { "label": t('orderBasicData.order'),
@@ -128,6 +129,7 @@
    basic.value.basicType[0] =  props.rowIndex.basicType
    basic.value.basicType[1] =  props.rowIndex.basicCategory
    basic.value.input =  props.rowIndex.basicName
    basic.value.nickname =  props.rowIndex.nickname
  }
})
@@ -145,6 +147,7 @@
  submitArr.basicType = basic.value.basicType[0]
  submitArr.basicCategory = basic.value.basicType[1]
  submitArr.basicName = basic.value.input
  submitArr.nickname = basic.value.nickname
  request.post(`/basicData/updateBasicData`, submitArr).then(res => {
    if (res.data) {
      ElMessage.success(t('basicData.msg.saveSuccess'))
@@ -184,6 +187,12 @@
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="4">{{ $t('orderBasicData.alias') }}:</el-col>
      <el-col :span="12">
        <el-input v-model="basic.nickname"/>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="4"></el-col>
      <el-col :span="12">
        <el-button v-show="!props.rowIndex" @click="saveBasicData" type="primary">{{ $t('basicData.insert') }}</el-button>