<template>
	<div class="job-list g_bg_page">
		<div>
			<template v-for="(item, index) in query.list" :key="index">
				<view class="g_p_12">
					{{ item.itemType }}
				</view>
				<view class="item g_pt_18 g_pl_10 g_pr_10 g_pb_18 g_bg_f g_border_e_b" hover-class="g_bg_f_5 " @click="goDetail(item, index)">
					<view class="g_flex_row_start">
						<view class="g_flex_none g_mr_12 g_w_44 g_h_44 g_radius_50 g_flex_c" @click.stop="goTel(item.tel)">
							<image :src="cdnBaseImg + 'tel.svg'" class="g_w_44 g_h_44" v-if="item.tel"></image>
							<image :src="cdnBaseImg + 'order_tel_gray.svg'" class="g_w_44 g_h_44" v-else></image>
						</view>
						<view class="g_flex_1 g_flex_row_start">
							<view class="g_flex_1 g_flex_column_between">
								<view class="g_fs_16 g_c_3 g_fw_bold g_ell_1"> {{ item.userName }}{{ item.setTitle }} </view>
								<view class="g_fs_14 g_c_6 g_ell_1">{{ item.storeJobName + "@" + (item.upFullName || item.upAgencyName) }}</view>
							</view>
							<view class="g_flex_none g_ml_20 g_flex_column_between">
								<view class="g_fs_14 g_c_9 g_flex_row_end">{{ item.time }}</view>
								<view class="g_fs_14 g_c_3 g_flex_row_end">{{ item.status_text }}</view>
							</view>
						</view>
					</view>
					<view class="g_flex_row_end flex_center g_mt_8" v-if="item.from == 'chat'" @click.stop>
						<g-button btnText="发送" fontSize="14" type="primary" size="mini" @clickBtn="sendApply(item)" />
					</view>
				</view>
			</template>
		</div>
	</div>
</template>

<script>
export default {
	// 组件名称
	name: "",
	// 局部注册的组件
	components: {},
	// 组件参数 接收来自父组件的数据
	props: {},
	// 组件状态值
	data() {
		return {
			cdnBaseImg: this.G.store().cdnBaseImg,
			query: {
				list: [
					{
						itemType: "聊天发送工单",
						from: "chat",
						age: 50,
						agencyId: 3087,
						agencyReturnFeeDesp: "利润：1元/小时+3个月；不满7天无费用，旷自离/闹离无费用",
						appClassify: 3,
						appName: "商家后台",
						applyUserId: 122240,
						applyUserName: "晨曦/常笑",
						canEdit: false,
						createTime: 1757903468000,
						desp: "看我选择的面试位置对吗",
						downAgencyId: 3087,
						downAgencyName: "晨曦/常笑",
						downAgencyUserId: 122240,
						downFullName: "稻田工作",
						downProviderId: "",
						downProviderName: "",
						employeeSalary: "员工薪资22元/小时（含餐补），极少夜班，夜班另补20元/天；月工时稳定，综合月薪按工时核算；,每月20号发薪；不满7天无薪资，旷自离/闹离无薪资；服务费100元/月",
						entryTime: "",
						id: 19126,
						idCard: "411022197411150044",
						idCardImageUrl: "",
						interviewTime: 1757998800000,
						jobAgencyId: 114827,
						leaveTime: "",
						levels: 1,
						nation: "汉",
						onSiteInfo: "",
						onSiteUsers: "",
						orderType: 2,
						policy: "",
						prevRecordId: "",
						realDownAgencyId: 3087,
						realDownAgencyUserId: 122240,
						receptionTime: 1757998800000,
						recommend: 0,
						relationId: 39760,
						returnFeeDesp: "利润：1元/小时+3个月；不满7天无费用，旷自离/闹离无费用",
						setTitle: "/女/50/汉",
						sex: 2,
						sourceFrom: 7,
						status: 20,
						status_text: "待接待",
						storeJobName: "合肥美菱小家电小时工",
						storeName: "",
						tel: "15037427029",
						time: "09-16 13:00",
						upAgencyId: 114827,
						upAgencyName: "郑州金马人力资源服务有限公司",
						upFullName: "金马人力",
						upProviderId: "",
						upProviderName: "",
						updateTime: 1757914949000,
						userName: "段新棉",
						weixinConfigId: 60,
						weixinConfigTitle: "商家后台",
						willEntryTime: "",
						willLeaveTime: "",
					},
					{
						itemType: "默认工单列表",
						age: 50,
						agencyId: 3087,
						agencyReturnFeeDesp: "利润：1元/小时+3个月；不满7天无费用，旷自离/闹离无费用",
						appClassify: 3,
						appName: "商家后台",
						applyUserId: 122240,
						applyUserName: "晨曦/常笑",
						canEdit: false,
						createTime: 1757903468000,
						desp: "看我选择的面试位置对吗",
						downAgencyId: 3087,
						downAgencyName: "晨曦/常笑",
						downAgencyUserId: 122240,
						downFullName: "稻田工作",
						downProviderId: "",
						downProviderName: "",
						employeeSalary: "员工薪资22元/小时（含餐补），极少夜班，夜班另补20元/天；月工时稳定，综合月薪按工时核算；,每月20号发薪；不满7天无薪资，旷自离/闹离无薪资；服务费100元/月",
						entryTime: "",
						id: 19126,
						idCard: "411022197411150044",
						idCardImageUrl: "",
						interviewTime: 1757998800000,
						jobAgencyId: 114827,
						leaveTime: "",
						levels: 1,
						nation: "汉",
						onSiteInfo: "",
						onSiteUsers: "",
						orderType: 2,
						policy: "",
						prevRecordId: "",
						realDownAgencyId: 3087,
						realDownAgencyUserId: 122240,
						receptionTime: 1757998800000,
						recommend: 0,
						relationId: 39760,
						returnFeeDesp: "利润：1元/小时+3个月；不满7天无费用，旷自离/闹离无费用",
						setTitle: "/女/50/汉",
						sex: 2,
						sourceFrom: 7,
						status: 20,
						status_text: "待接待",
						storeJobName: "合肥美菱小家电小时工",
						storeName: "",
						tel: "15037427029",
						time: "09-16 13:00",
						upAgencyId: 114827,
						upAgencyName: "郑州金马人力资源服务有限公司",
						upFullName: "金马人力",
						upProviderId: "",
						upProviderName: "",
						updateTime: 1757914949000,
						userName: "段新棉",
						weixinConfigId: 60,
						weixinConfigTitle: "商家后台",
						willEntryTime: "",
						willLeaveTime: "",
					},
				],
			},
		};
	},
	// 计算属性
	computed: {},
	// 侦听器
	watch: {},
	created() {},
	mounted() {},
	// 组件方法
	methods: {},
};
</script>

<style scoped lang="less"></style>
