huahaiyan il y a 6 ans
Parent
commit
8ab5864648

+ 4 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/index.vue

@@ -184,7 +184,7 @@
         <el-row>
           <el-col :span="24">
             <el-form-item label="审批人">
-              <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 90%" filterable
+              <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable
                 allow-create default-first-option>
                 <el-option v-for="item in auditerOption" :key="item.id" :label="item.realname" :value="item.id">
                 </el-option>
@@ -341,8 +341,8 @@
         this.entityForm.SupplierName = obj.Realname
       },
       addAnnualAudit() {
-        console.log("----this.entityForm--", this.entityForm)
-        api.addEntity(this.entityForm, this.entityForm.FirstAudit, this.$axios).then(res => {
+        console.log("----this.auditer--", this.auditer)
+        api.addEntity(this.entityForm, this.auditer, this.$axios).then(res => {
           if (res.data.code === 0) {
             console.log("--------res.data----", res.data)
             //保存成功后,初始化数据,变成修改
@@ -395,6 +395,7 @@
             return
           }
           this.auditerOption = res.data.item
+          console.log("---this.auditerOption--",this.auditerOption)
         }).catch(err => {
           console.error(err)
         })