Browse Source

蔬菜上报

master
juwei001 1 year ago
parent
commit
867c285530
  1. 16
      src/api/zdyf.js
  2. 130
      src/views/next/dialog-module/zdyf-left/yfclz.vue
  3. 2
      src/views/next/dialog-module/zdyf-right/kyll/keyEnterprises.vue
  4. 38
      src/views/next/screen-content-left/zdyf-left/index.vue
  5. 1
      src/views/next/screen-content-right/hsyf-right/index.vue
  6. 8
      src/views/next/screen-content-right/szyf-right/index.vue
  7. 1
      src/views/next/screen-content-right/zdyf-right/index.vue

16
src/api/zdyf.js

@ -84,6 +84,13 @@ export function seedCompanyDetail (id) {
method: 'GET' method: 'GET'
}) })
} }
// 种都力量-企业详情
export function getVegetableOutputListDetail () {
return request({
url: '/api/resi/partymember/screenenterpriseoutput/yifengScreen/getVegetableOutputListDetail',
method: 'GET'
})
}
// 党组织数量 // 党组织数量
export function prcCollectionListForGov (params) { export function prcCollectionListForGov (params) {
@ -94,3 +101,12 @@ export function prcCollectionListForGov (params) {
params params
}) })
} }
// 党组织数量
export function getVegetableOutputList (params) {
return request({
url: '/api/resi/partymember/screenenterpriseoutput/yifengScreen/getVegetableOutputList',
method: 'GET',
data: params,
params
})
}

130
src/views/next/dialog-module/zdyf-left/yfclz.vue

@ -18,13 +18,13 @@
<div class="content-left-list"> <div class="content-left-list">
<div <div
v-for="item in titleList" v-for="item in titleList"
:key="item.id" :key="item.vegetableCategory"
@click="onDatils(item)" @click="onDatils(item)"
:class="`content-left-list-item ${ :class="`content-left-list-item ${
currentId === item.id ? 'action' : '' currentId === item.vegetableCategory ? 'action' : ''
}`" }`"
> >
{{ item.name }} {{ item.vegetableCategory }}
</div> </div>
</div> </div>
</div> </div>
@ -35,16 +35,16 @@
v-for="(item, index) in numList" v-for="(item, index) in numList"
:key="'item' + index" :key="'item' + index"
> >
<div class="title">{{ item.company }}</div> <div class="title">{{ item.placeOrgName }}</div>
<div class="content"> <div class="content">
<div> <div>
种植时间<span class="txt">{{ item.zzDate }}</span> 种植时间<span class="txt">{{ item.growTime }}</span>
</div> </div>
<div> <div>
上市时间<span class="txt">{{ item.ssDate }}</span> 上市时间<span class="txt">{{ item.marketTime }}</span>
</div> </div>
<div> <div>
产量<span class="txt">{{ item.num }}</span> 产量<span class="txt">{{ item.output }}</span>
</div> </div>
</div> </div>
</div> </div>
@ -59,102 +59,75 @@
</template> </template>
<script> <script>
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from 'vuex'
import { partyPlacePage, partyPlace } from "@/api/hsyf"; import { getVegetableOutputListDetail } from '@/api/zdyf'
export default { export default {
name: "", name: '',
data () { data () {
return { return {
dialogTitle: "移风菜篮子", dialogTitle: '移风菜篮子',
currentId: 0, currentId: 0,
titleList: [ titleList: [],
{ numList: [],
name: "土豆",
id: 0,
},
{
name: "白菜",
id: 1,
},
{
name: "生菜",
id: 2,
},
{
name: "西红柿",
id: 3,
},
{
name: "西蓝花",
id: 4,
},
],
numList: [
{
company: "XXXX种植基地有限公司",
zzDate: "2024-01-10",
ssDate: "2024-03-20",
num: "120万吨",
},
{
company: "XXXX种植基地有限公司",
zzDate: "2024-01-10",
ssDate: "2024-03-20",
num: "120万吨",
},
{
company: "XXXX种植基地有限公司",
zzDate: "2024-01-10",
ssDate: "2024-03-20",
num: "120万吨",
},
{
company: "XXXX种植基地有限公司",
zzDate: "2024-01-10",
ssDate: "2024-03-20",
num: "120万吨",
},
{
company: "XXXX种植基地有限公司",
zzDate: "2024-01-10",
ssDate: "2024-03-20",
num: "120万吨",
},
],
loading: false, loading: false,
info: { description: "" }, info: { description: '' }
}; }
}, },
computed: { computed: {
...mapGetters(["yfclz"]), ...mapGetters(['yfclz'])
}, },
components: {}, components: {},
mounted () {}, mounted () {},
created () { created () {
// partyPlacePage({ page: 1, limit: 100, type: 1 }).then((res) => { getVegetableOutputListDetail().then((res) => {
// this.currentId = res.data.list.id this.titleList = res.data
this.numList = res.data[0].detailList.map((item1) => {
return {
...item1,
growTime: this.formatDateTime(new Date(item1.growTime)),
marketTime: this.formatDateTime(new Date(item1.marketTime))
}
})
this.currentId = res.data[0].vegetableCategory
// this.titleList = res.data.list // this.titleList = res.data.list
// if (this.titleList.length > 0) { // if (this.titleList.length > 0) {
// this.onDatils(this.titleList[0]) // this.onDatils(this.titleList[0])
// } // }
// }) })
}, },
methods: { methods: {
...mapActions({ ...mapActions({
showGlobalDialog: "showGlobalDialog", showGlobalDialog: 'showGlobalDialog'
}), }),
closeDialog () { closeDialog () {
this.showGlobalDialog(""); this.showGlobalDialog('')
},
formatDateTime (date) {
function padZero (num) {
return num < 10 ? '0' + num : num
}
var year = date.getFullYear()
var month = padZero(date.getMonth() + 1)
var day = padZero(date.getDate())
return year + '-' + month + '-' + day
}, },
onDatils (item) { onDatils (item) {
this.currentId = item.id; this.currentId = item.vegetableCategory
this.numList = item.detailList.map((item1) => {
return {
...item1,
growTime: this.formatDateTime(new Date(item1.growTime)),
marketTime: this.formatDateTime(new Date(item1.marketTime))
}
})
// partyPlace(item.id).then((res) => { // partyPlace(item.id).then((res) => {
// // console.log('res::', res); // // console.log('res::', res);
// this.info = res.data // this.info = res.data
// }) // })
}, }
}, }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -194,7 +167,8 @@ export default {
.title-container { .title-container {
align-items: center; align-items: center;
background: url("~@/assets/images/common/dialog-header-yfclz.png") no-repeat; background: url("~@/assets/images/common/dialog-header-yfclz.png")
no-repeat;
// background: url("~@/assets/images/common/dialog-header-big-red.png") // background: url("~@/assets/images/common/dialog-header-big-red.png")
// no-repeat; // no-repeat;
// background-size: 100% 100%; // background-size: 100% 100%;

2
src/views/next/dialog-module/zdyf-right/kyll/keyEnterprises.vue

@ -85,7 +85,7 @@ export default {
components: {}, components: {},
watch: {}, watch: {},
created () { created () {
seedCompanyList({ pageNo: 1, pages: 100 }).then((res) => { seedCompanyList({ pageNo: 1, pages: 100, type: '1' }).then((res) => {
this.list = res.data this.list = res.data
}) })
}, },

38
src/views/next/screen-content-left/zdyf-left/index.vue

@ -173,7 +173,7 @@
<div style="height: 180px; overflow: hidden"> <div style="height: 180px; overflow: hidden">
<vue-seamless-scroll <vue-seamless-scroll
:class-option="optionHover1" :class-option="optionHover1"
:data="shichangList" :data="yfclzList"
> >
<div class="scroll-box" @click="openClz"> <div class="scroll-box" @click="openClz">
<div <div
@ -182,8 +182,8 @@
:key="'dyfc' + index" :key="'dyfc' + index"
> >
<div class="npdt-yfclz-row"> <div class="npdt-yfclz-row">
<div>{{ item.name }}</div> <div>{{ item.vegetableCategory }}</div>
<div>{{ item.num && item.num.toFixed(2) }}</div> <div>{{ item.output && item.output.toFixed(2) }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -197,7 +197,7 @@
<script> <script>
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { prcCollectionListForGov } from '@/api/zdyf' import { prcCollectionListForGov, getVegetableOutputList } from '@/api/zdyf'
export default { export default {
data () { data () {
return { return {
@ -233,32 +233,7 @@ export default {
jzr: 1 jzr: 1
} }
], ],
yfclzList: [ yfclzList: [],
{
name: '豌豆荚',
num: 460
},
{
name: '白玉菇',
num: 389
},
{
name: '生菜球',
num: 322
},
{
name: '秋葵',
num: 266
},
{
name: '苦菊',
num: 198
},
{
name: '白菜',
num: 890
}
],
optionHover1: { optionHover1: {
step: 0.5, // step: 0.5, //
limitMoveNum: 6, // this.dataList.length limitMoveNum: 6, // this.dataList.length
@ -334,6 +309,9 @@ export default {
}) })
} }
}) })
getVegetableOutputList().then(res => {
this.yfclzList = res.data
})
}, },
getDayScTData () { getDayScTData () {
prcCollectionListForGov({ prcCollectionListForGov({

1
src/views/next/screen-content-right/hsyf-right/index.vue

@ -25,7 +25,6 @@
<div> <div>
{{ item.topic }} {{ item.topic }}
</div> </div>
<!-- <div>{{ item.publishPartyOrgName }}</div> -->
</section> </section>
</div> </div>
</div> </div>

8
src/views/next/screen-content-right/szyf-right/index.vue

@ -21,14 +21,6 @@
<screen-title-sz> <screen-title-sz>
<div slot="left" class="screen-title-left">治风采</div> <div slot="left" class="screen-title-left">治风采</div>
</screen-title-sz> </screen-title-sz>
<!-- <div class="card-item-sjcl">
<div class="item" v-for="(item, index) in monitorList" :key="index">
<img :src="item.src" alt="" />
<span class="time">{{ item.time }}</span>
<div class="name">{{ item.name }}</div>
</div>
</div> -->
<div style="overflow: hidden; margin: 16px 16px 21px 16px"> <div style="overflow: hidden; margin: 16px 16px 21px 16px">
<vue-seamless-scroll :class-option="optionHover" :data="partList"> <vue-seamless-scroll :class-option="optionHover" :data="partList">
<div class="card-item-dyfc"> <div class="card-item-dyfc">

1
src/views/next/screen-content-right/zdyf-right/index.vue

@ -275,7 +275,6 @@ export default {
this.yfwlList = res.data.list this.yfwlList = res.data.list
}) })
seedPowerCompanyList({}).then((res) => { seedPowerCompanyList({}).then((res) => {
// console.log('res::', res);
this.yjyList = res.data.list this.yjyList = res.data.list
}) })
}, },

Loading…
Cancel
Save