Pārlūkot izejas kodu

spa错误字段

Shan9312 7 mēneši atpakaļ
vecāks
revīzija
b3cd80fc6e

+ 1 - 0
src/views/custom/purchase/index.vue

@@ -680,6 +680,7 @@
               </template>
             </el-table-column>
             <el-table-column label="srm错误" prop="srmError" min-width="110px" align="center" />
+              <el-table-column label="sap错误" prop="sapError" min-width="110px" align="center" />
             <el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width" fixed="right">
               <template slot-scope="{row}">
                 <el-button v-if="isPurchaseSee" type="primary" size="mini" @click="form_see2(row)">查看</el-button>

+ 11 - 6
src/views/custom/storage/index.vue

@@ -256,7 +256,10 @@
             <el-col :span="8">
               <el-form-item label="牧场:" prop="pastureId">
                 <el-select v-model="storage.pastureId" placeholder="牧场" class="filter-item" style="width:100%">
-                  <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.id" />
+                  <el-option v-for="item in findAllPasture"
+                   :key="item.id"
+                   :label="item.name"
+                   :value="item.id" />
                 </el-select>
               </el-form-item>
             </el-col>
@@ -887,8 +890,9 @@ export default {
         laidType: 0,
         providerId: '',
         storageTime: parseTime(new Date(), '{y}-{m}-{d}'),
-        empId: this.$store.state.user.employeid,
-        pastureId: this.$store.state.user.pastureid
+        empId: this.$store.state.user.employeid ||  Cookies.get('employeid'),
+        pastureId: this.$store.state.user.pastureid ||  Cookies.get('pastureid'),
+        departmentId: Cookies.get('departmentid'),
       },
       TotalAmount: 0,
       orderPart: {},
@@ -1290,9 +1294,10 @@ export default {
       this.storage.laidCode = ''
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
-      this.storage.pastureId = Cookies.get('pastureid')
-      this.storage.employeId = Cookies.get('employeid')
-      console.log(this.storage)
+      this.storage.pastureId = Number(Cookies.get('pastureid'))
+      this.storage.pastureName = Cookies.get('pasturename')
+      this.storage.employeId = Number(Cookies.get('employeid'))
+      console.log(this.storage.pastureId ,'666')
       this.$nextTick(() => {
         this.$refs['temp'].clearValidate()
       })