|
@@ -18,13 +18,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref,onMounted,defineExpose } from 'vue';
|
|
|
+import { ref,onMounted,defineExpose,defineProps } from 'vue';
|
|
|
import Api from '@/api/api'
|
|
|
import utils from '@/utils/utils'
|
|
|
import setTarget from '../modules/setTarget.vue'
|
|
|
import { useRouter } from "vue-router";
|
|
|
const router = useRouter()
|
|
|
|
|
|
+const props = defineProps(['data'])
|
|
|
+
|
|
|
const columns = ref([
|
|
|
{ title: '企业名称', dataIndex: 'enterprisename'},
|
|
|
{ title: '年度', dataIndex: 'y1l'},
|
|
@@ -47,17 +49,20 @@ const columns = ref([
|
|
|
{ title: '操作', dataIndex: 'operation'},
|
|
|
]);
|
|
|
const data = ref([])
|
|
|
-const targetData = async () => {
|
|
|
+const targetData = async (year) => {
|
|
|
const res = await Api.requested({
|
|
|
"id": "20231018142103",
|
|
|
"content": {
|
|
|
"sa_salestargetbillid":router.currentRoute.value.query.id,
|
|
|
+ "where":{
|
|
|
+ year:year
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
data.value = res.data
|
|
|
}
|
|
|
onMounted(()=>{
|
|
|
- targetData()
|
|
|
+ // targetData()
|
|
|
})
|
|
|
defineExpose({
|
|
|
targetData
|