|
@@ -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()
|
|
|
})
|