<template>
	<view class="container">
		<cu-custom bgColor="bg-gradual-pink" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">历史委托单</block>
		</cu-custom>
		
	 <view v-for="(item,i) in resdata" :key="i" style="margin-left: 8rpx;margin-right: 8rpx;">
		 
			<uni-section :title="'委托单号:'+item.wei_tuo_dan_hao_"  :subTitle="'姓名:'+item.lian_xi_ren_" type="line" padding>
				<view style=" display: flex; width: 100%; justify-content: space-between; ">
					<view style="display: flex;" >状态: <view style="color: #5E00FF;"> {{item.wei_tuo_zhuang_ta}} </view></view>
					<view style="display: flex;" >金额:{{item.zong_jin_e_}} 付款状态: 
					
					<view v-if="item.fu_kuan_zhuang_ta=='yfk'">
						<view style="color: #7349ff;"> 已付款 </view>
					</view>
					<view v-else-if="item.fu_kuan_zhuang_ta=='ykp'">
						<view style="color: #7349ff;"> 已开票 </view>
					</view>
					<view v-else><view style="color: #7349ff;"> 未付款 </view></view>
					
					</view>               
				</view>
				<view style=" width: 100%; text-align: right; padding-top: 5rpx;padding-bottom: 0rpx;">
					<button style="margin-right: 15rpx; height: 50rpx;"   size="mini" @click="editOrder(item.id_)">查看</button>
					<button style="margin-right: 15rpx; height: 50rpx;"   size="mini" @click="editOrder(item.id_)">修改</button>
					<button style="margin-right: 15rpx; height: 50rpx;"  @click="goto(item.id_)" size="mini">查看报告</button>	
				</view>
			</uni-section>
	   </view> 
       
	<view v-if="resdata.length==0">    <uni-card is-full :is-shadow="false">
      <text class="">暂无数据</text>
      </uni-card>
	</view>
	
	<view v-else>
			<uni-pagination style="background-color: #f3f8ff;" :total=total title="标题文字" prev-text="前一页" next-text="后一页" @change="change" />	  
	</view>



	</view>
</template>

<script>
	import { ACCESS_TOKEN,USER_NAME,USER_INFO } from "@/common/util/constants"
	export default {
		components: {},
		data() {
			return {
               url:'https://www.szjyxt.com/demo/reportJsp/pdfReport.jsp?rpx=%E4%B8%AD%E6%B1%87%E7%91%9E%E5%BE%B7%E6%A3%80%E6%B5%8B%E4%B8%AD%E5%BF%83/39%E6%A0%B7%E5%93%81%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F/GDYR-CX11-R01A%20%E6%A3%80%E6%B5%8B%E5%A7%94%E6%89%98%E5%8D%95.rpx&id_=',
			   resdata:[],
			   current: 1,
			   total: 10,
			   pageSize: 10
			}
		},
		onLoad:function(){
			this.getData(this.current,this.pageSize,this.total);

		},
		methods:{
			add() {
				this.total += 10
			},
			reset() {
				this.total = 0
				this.current = 1
			},
			change(e) {
				this.getData(this.current,this.pageSize,this.total);
				console.log(this.total)
				console.log(e)
				this.current = e.current
			},
			
			editOrder(option){
				console.log(option)
				uni.navigateTo({
					url:"/pages/jiance/editOrder?id="+option
				}) 
				
				
			},
			
			getData(pageNo,limit,totalCount){			
				let info= uni.getStorageSync(USER_INFO);
							//console.info(info)
							//info.employee.id
							let para={
				    "parameters": [
				        {
				            "key": "Q^fu_ze_jian_ce_yua^SL",
				            "value": info.employee.id
				        },
				        {
				            "key": "response_data",
				            "value": "{\"template_id\":\"976138902182035456\",\"template_type\":\"\",\"attrs\":{\"init_query\":\"Y\",\"need_page\":\"Y\",\"page_size\":20,\"display_field\":\"订单发起列表\"},\"query_columns\":[{\"label\":\"负责检测员\",\"name\":\"fu_ze_jian_ce_yua\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"}],\"display_columns\":[{\"label\":\"订单号\",\"name\":\"ding_dan_hao_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"120\",\"same\":\"Y\",\"field_type\":\"autoNumber\",\"field_options\":{\"placeholder\":\"自动生成无需填写\",\"default_value_type\":\"fixed\",\"init\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"display\":true,\"clearable\":true,\"identity\":\"ddh\"},\"data_type\":\"varchar\"},{\"label\":\"渠道\",\"name\":\"qu_dao_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"120\",\"same\":\"Y\",\"field_type\":\"linkdata\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"multiple\":\"N\",\"linkdata\":\"qdzly\",\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true,\"default_value\":\"\",\"link_linkage\":null,\"link_config\":{\"id\":\"id_\",\"text\":\"qu_dao_ming_cheng\",\"type\":\"first\",\"structure\":\"list\"},\"link_condition\":null,\"link_attr\":null},\"data_type\":\"varchar\"},{\"label\":\"客户名称\",\"name\":\"wei_tuo_dan_wei_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"100\",\"same\":\"Y\",\"field_type\":\"customDialog\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"multiple\":\"N\",\"store\":\"id\",\"dialog_type\":\"dialog\",\"icon\":\"search-plus\",\"required\":false,\"hide_rights\":false,\"read_rights\":true,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"options\":[{\"val\":\"1\",\"label\":\"质量部\",\"checked\":false},{\"val\":\"2\",\"label\":\"零件一车间\",\"checked\":false}],\"display\":true,\"dialog\":\"yxkhdhk\",\"default_value\":\"\",\"link_linkage\":null,\"link_config\":null,\"link_condition\":null,\"link_attr\":null},\"data_type\":\"varchar\"},{\"label\":\"委托单号\",\"name\":\"wei_tuo_dan_hao_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"160\",\"same\":\"Y\",\"field_type\":\"autoNumber\",\"field_options\":{\"placeholder\":\"\",\"default_value_type\":\"fixed\",\"init\":true,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"display\":true,\"clearable\":true,\"identity\":\"gzyrwtbh\"},\"data_type\":\"varchar\"},{\"label\":\"状态\",\"name\":\"wei_tuo_zhuang_ta\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"100\",\"same\":\"Y\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请输入\",\"required\":false,\"is_min_length\":false,\"is_max_length\":false,\"hide_rights\":true,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"下单时间\",\"name\":\"create_time_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"100\",\"same\":\"Y\",\"field_type\":\"datePicker\",\"field_options\":{\"datefmt\":\"yyyy-MM-dd\"},\"data_type\":\"date\"},{\"label\":\"期望完成时间\",\"name\":\"qi_wang_wan_cheng\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"120\",\"same\":\"Y\",\"field_type\":\"datePicker\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"datefmt_type\":\"date\",\"datefmt\":\"yyyy-MM-dd\",\"required\":true,\"is_start_date\":true,\"is_end_date\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":140,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true,\"start_date\":1,\"start_date_type\":\"after\",\"start_date_interval\":\"d\"},\"data_type\":\"varchar\"},{\"label\":\"总金额\",\"name\":\"zong_jin_e_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"80\",\"same\":\"Y\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请输入\",\"required\":false,\"is_min_length\":false,\"is_max_length\":false,\"hide_rights\":false,\"read_rights\":true,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":0,\"label_width_unit\":null,\"clearable\":true,\"mobile\":true,\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"委托人\",\"name\":\"lian_xi_ren_\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"100\",\"same\":\"Y\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true,\"display\":true,\"clearable\":true,\"label_width\":180,\"width\":100,\"is_width\":false,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width_unit\":\"px\"},\"data_type\":\"varchar\"},{\"label\":\"业务人员\",\"name\":\"xiao_shou_ren_yua\",\"rights\":[{\"type\":\"all\"}],\"noRightStyle\":\"\",\"align\":\"left\",\"sortable\":false,\"width\":\"\",\"same\":\"Y\",\"field_type\":\"selector\",\"field_options\":{\"default_value_type\":\"present\",\"placeholder\":\"请选择\",\"selector_type\":\"user\",\"store\":\"id\",\"bind\":\"id\",\"bindFiled\":\"\",\"multiple\":false,\"filter\":[{\"userType\":\"position\",\"descVal\":\"3\",\"includeSub\":true,\"scriptContent\":\"\",\"partyName\":\"销售员,销售精英,营销组长\",\"partyId\":\"971745705372680192,971745657977044992,971745573021417472\",\"old\":\"position\",\"type\":\"user\"}],\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true,\"default_value\":\"\",\"link_linkage\":[]},\"data_type\":\"varchar\"},{\"label\":\"负责检测员\",\"name\":\"fu_ze_jian_ce_yua\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"辅助检测员\",\"name\":\"fu_zhu_jian_ce_yu\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"联系方式\",\"name\":\"lian_xi_fang_shi_\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true,\"display\":true,\"clearable\":true,\"label_width\":0,\"width\":100,\"is_width\":false,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width_unit\":null},\"data_type\":\"varchar\"},{\"label\":\"检测类别\",\"name\":\"jian_ce_lei_bie_\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_label_width\":true,\"label_width\":190,\"label_width_unit\":\"px\",\"mobile\":true,\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"委托检测\",\"label\":\"委托检测\",\"checked\":true},{\"val\":\"抽样检测\",\"label\":\"抽样检测\",\"checked\":false}],\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"报告份数\",\"name\":\"bao_gao_fen_shu_\",\"field_type\":\"inputNumber\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请输入\",\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":true,\"width\":95,\"width_unit\":\"px\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"min\":1,\"max\":200,\"step\":1,\"controls\":true,\"controls_position\":\"\",\"display\":true,\"clearable\":true,\"default_value\":1},\"data_type\":\"varchar\"},{\"label\":\"检测项目\",\"name\":\"jian_ce_xiang_mu_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"检测方法\",\"name\":\"jian_ce_fang_fa_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"取报告方式及要求\",\"name\":\"qu_bao_gao_fang_s\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"自取\",\"label\":\"自取\",\"checked\":true},{\"val\":\"电子邮件\",\"label\":\"电子邮件\",\"checked\":false},{\"val\":\"其他\",\"label\":\"其他\",\"disabled\":false,\"checked\":false}],\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"其他要求\",\"name\":\"qi_ta_yao_qiu_\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true,\"display\":true,\"clearable\":true,\"default_value\":\"无特殊要求\",\"hide_rights\":false,\"label_width\":200,\"is_label_width\":true,\"label_width_unit\":\"px\"},\"data_type\":\"varchar\"},{\"label\":\"样品处置\",\"name\":\"yang_pin_chu_zhi_\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_label_width\":true,\"label_width\":190,\"label_width_unit\":\"px\",\"mobile\":true,\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"返回给委托人\",\"label\":\"返回给委托人\",\"checked\":true},{\"val\":\"自取\",\"label\":\"自取\",\"checked\":false},{\"val\":\"不取回\",\"label\":\"不取回\",\"disabled\":false,\"checked\":false}],\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"检测结果做出意见和解释的要求\",\"name\":\"jian_ce_jie_guo_z\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"要\",\"label\":\"要\",\"checked\":false},{\"val\":\"不要\",\"label\":\"不要\",\"checked\":true}],\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"检测结论\",\"name\":\"jian_ce_jie_lun_\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"要\",\"label\":\"要\",\"checked\":false},{\"val\":\"不要\",\"label\":\"不要\",\"checked\":true}],\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"检测报告中给出测量不确定度的要求\",\"name\":\"jian_ce_bao_gao_z\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"mobile\":true,\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"要\",\"label\":\"要\",\"checked\":false},{\"val\":\"不要\",\"label\":\"不要\",\"checked\":true}],\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"样品状态\",\"name\":\"yang_pin_zhuang_t\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"样品具体说明\",\"name\":\"yang_pin_ju_ti_sh\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"提供工装夹具\",\"name\":\"ti_gong_gong_zhua\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"相似委托\",\"name\":\"xiang_si_wei_tuo_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"预审通过\",\"name\":\"yu_shen_tong_guo_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"是否过审\",\"name\":\"shi_fou_guo_shen_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"留样日期\",\"name\":\"liu_yang_ri_qi_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"存放位置\",\"name\":\"cun_fang_wei_zhi_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"返样日期\",\"name\":\"fan_yang_ri_qi_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"接样人\",\"name\":\"jie_yang_ren_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"设备编号\",\"name\":\"she_bei_bian_hao_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"测量探头温度\",\"name\":\"ce_liang_tan_tou_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"样品检测前温度\",\"name\":\"yang_pin_jian_ce_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"样品检测后温度\",\"name\":\"hou_wen_du_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"被检测位置点图片\",\"name\":\"bei_jian_ce_wei_z\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"环境温度\",\"name\":\"huan_jing_wen_du_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"环境湿度\",\"name\":\"huan_jing_shi_du_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"委托方\",\"name\":\"wei_tuo_fang_\",\"field_type\":\"hidden\",\"field_options\":{\"default_value_type\":\"fixed\",\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"完成时间\",\"name\":\"wan_cheng_shi_jia\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"备注\",\"name\":\"bei_zhu_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"编制人\",\"name\":\"bian_zhi_ren_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"客户要求\",\"name\":\"ke_hu_yao_qiu_\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请输入\",\"required\":false,\"is_min_length\":false,\"is_max_length\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":190,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true,\"default_value\":\"无特殊要求\"},\"data_type\":\"varchar\"},{\"label\":\"报告编号\",\"name\":\"bao_gao_bian_hao_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"检测开始时间\",\"name\":\"jian_ce_kai_shi_s\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"评审附件\",\"name\":\"fu_jian_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"委托受理\",\"name\":\"wei_tuo_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"报告状态\",\"name\":\"bao_gao_zhuang_ta\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"授权人签字\",\"name\":\"shou_quan_ren_qia\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"标准物质\",\"name\":\"biao_zhun_wu_zhi_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"受理时间\",\"name\":\"shou_li_shi_jian_\",\"field_type\":\"currentDate\",\"field_options\":{\"default_value_type\":\"today\",\"placeholder\":\"请选择\",\"datefmt_type\":\"date\",\"datefmt\":\"yyyy-MM-dd\",\"required\":false,\"hide_rights\":true,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"mobile\":true,\"display\":true,\"clearable\":true},\"data_type\":\"varchar\"},{\"label\":\"受理人\",\"name\":\"shou_li_ren_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"取样人\",\"name\":\"qu_yang_ren_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"取样日期\",\"name\":\"qu_yang_ri_qi_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"当前状态\",\"name\":\"dang_qian_zhuang_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"检测完成时间\",\"name\":\"jian_ce_wan_cheng\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"报告发放时间\",\"name\":\"bao_gao_fa_fang_s\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"发报告人\",\"name\":\"fa_bao_gao_ren_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"受理部门\",\"name\":\"shou_li_bu_men_\",\"field_type\":\"linkdata\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"multiple\":\"N\",\"linkdata\":\"bmzxzjczx\",\"required\":false,\"hide_rights\":true,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true,\"default_value\":\"\",\"link_linkage\":null,\"link_config\":{\"id\":\"ID_\",\"text\":\"NAME_\",\"type\":\"first\",\"structure\":\"list\"},\"link_condition\":null,\"link_attr\":null},\"data_type\":\"varchar\"},{\"label\":\"检测位置\",\"name\":\"jian_ce_wei_zhi_\",\"field_type\":\"linkdata\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"multiple\":\"N\",\"linkdata\":\"jcwzzly\",\"required\":false,\"hide_rights\":true,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"options\":[{\"val\":\"1\",\"label\":\"选项一\",\"checked\":false},{\"val\":\"2\",\"label\":\"选项二\",\"checked\":false}],\"display\":true,\"default_value\":\"\",\"link_linkage\":null,\"link_config\":{\"id\":\"id_\",\"text\":\"jian_ce_wei_zhi_\"},\"link_condition\":null,\"link_attr\":null},\"data_type\":\"varchar\"},{\"label\":\"样品接收备注\",\"name\":\"yang_pin_jie_shou\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"盖章报告附件\",\"name\":\"gai_zhang_bao_gao\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"clob\"},{\"label\":\"能力范围类型\",\"name\":\"neng_li_fan_wei_l\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"委托类型\",\"name\":\"wei_tuo_lei_xing_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"委托单号转换\",\"name\":\"wei_tuo_dan_hao_z\",\"field_type\":\"hidden\",\"field_options\":{\"default_value_type\":\"fixed\",\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"检测对象ID\",\"name\":\"jian_ce_dui_x_id_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"检测类型ID\",\"name\":\"jian_ce_lei_xing_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"样品编号转换标识\",\"name\":\"yang_pin_bian_hao\",\"field_type\":\"autoNumber\",\"field_options\":{\"placeholder\":\"自动生成无需填写\",\"default_value_type\":\"fixed\",\"init\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"mobile\":true,\"display\":true,\"clearable\":true,\"identity\":\"yrqcypbh\",\"hide_rights\":true},\"data_type\":\"varchar\"},{\"label\":\"crm状态\",\"name\":\"crm_zhuang_tai_\",\"field_type\":\"hidden\",\"field_options\":{\"default_value_type\":\"fixed\",\"display\":true,\"default_value\":\"crm\"},\"data_type\":\"varchar\"},{\"label\":\"报价单\",\"name\":\"bao_jia_dan_\",\"field_type\":\"customDialog\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"multiple\":\"N\",\"store\":\"id\",\"dialog_type\":\"dialog\",\"icon\":\"search-plus\",\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true,\"dialog\":\"bjdspdhk\",\"default_value\":\"\",\"link_linkage\":[{\"name\":\"ke_hu_ming_cheng_\",\"label\":\"客户名称\",\"field\":\"weiTuoDanWei\"},{\"name\":\"lian_xi_ren_\",\"label\":\"联系人\",\"field\":\"lianXiRen\"},{\"name\":\"dian_zi_you_jian_\",\"label\":\"电子邮件\",\"field\":\"\"},{\"name\":\"gong_si_di_zhi_\",\"label\":\"公司地址\",\"field\":\"tongXunDiZhi\"},{\"name\":\"dian_hua_\",\"label\":\"电话\",\"field\":\"lianXiFangShi\"},{\"name\":\"yuan_jia_\",\"label\":\"原价\",\"field\":\"\"},{\"name\":\"zhe_kou_jia_\",\"label\":\"折扣价\",\"field\":\"zongJinE\"},{\"name\":\"lai_yuan_qu_dao_\",\"label\":\"来源渠道\",\"field\":\"quDao\"},{\"name\":\"bian_zhi_ren_\",\"label\":\"编制人\",\"field\":\"\"},{\"name\":\"bian_zhi_shi_jian\",\"label\":\"编制时间\",\"field\":\"\"}],\"link_config\":null,\"link_condition\":null,\"link_attr\":null},\"data_type\":\"varchar\"},{\"label\":\"订单审核意见\",\"name\":\"ding_dan_shen_he_\",\"field_type\":\"textarea\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请输入\",\"required\":false,\"is_min_length\":false,\"is_max_length\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"订单审批意见\",\"name\":\"ding_dan_shen_pi_\",\"field_type\":\"textarea\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请输入\",\"required\":false,\"is_min_length\":false,\"is_max_length\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"应收款附件\",\"name\":\"ying_shou_kuan_fu\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"发票附件\",\"name\":\"fa_piao_fu_jian_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"应收款备注\",\"name\":\"ying_shou_kuan_be\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"发票备注\",\"name\":\"fa_piao_bei_zhu_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"订单来源\",\"name\":\"ding_dan_lai_yuan\",\"field_type\":\"select\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"hide_label\":false,\"is_width\":false,\"width\":100,\"width_unit\":\"%\",\"is_label_width\":true,\"label_width\":180,\"label_width_unit\":\"px\",\"clearable\":true,\"mobile\":true,\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"multiple\":false,\"datasource\":\"custom\",\"options\":[{\"val\":\"客户直接下单\",\"label\":\"客户直接下单\",\"checked\":false},{\"val\":\"业务人员下单\",\"label\":\"业务人员下单\",\"checked\":true}],\"display\":true},\"data_type\":\"varchar\"},{\"label\":\"提醒标志1\",\"name\":\"ti_xing_biao_zhi_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"提醒标志2\",\"name\":\"ti_xing_biao_zhi2\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"提醒标志3\",\"name\":\"ti_xing_biao_zhi3\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"提醒标志4\",\"name\":\"ti_xing_biao_zhi4\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"订单成交时间\",\"name\":\"ding_dan_cheng_ji\",\"field_type\":\"datePicker\",\"field_options\":{\"datefmt\":\"yyyy-MM-dd\"},\"data_type\":\"date\"},{\"label\":\"付款状态\",\"name\":\"fu_kuan_zhuang_ta\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"},{\"label\":\"手机客户id\",\"name\":\"shou_ji_ke_hu_id_\",\"field_type\":\"text\",\"field_options\":{},\"data_type\":\"varchar\"}],\"orig_display_columns\":\"\",\"filter_conditions\":[],\"result_columns\":\"\",\"sort_columns\":[{\"label\":\"委托单号\",\"name\":\"wei_tuo_dan_hao_\",\"direction\":\"desc\"}],\"buttons\":{\"function_buttons\":[{\"button_type\":\"search\",\"label\":\"查询\",\"position\":\"toolbar\"},{\"label\":\"发起订单\",\"button_type\":\"add\",\"rights\":[{\"type\":\"all\"}],\"position\":\"toolbar\",\"style\":\"success\"},{\"label\":\"编辑\",\"button_type\":\"edit\",\"rights\":[{\"type\":\"all\"}],\"position\":\"manage\",\"style\":\"primary\"},{\"button_type\":\"remove\",\"label\":\"删除\",\"rights\":[{\"type\":\"all\"}],\"position\":\"toolbar\",\"style\":\"danger\"}],\"edit_buttons\":[{\"button_type\":\"close\",\"label\":\"关闭\"},{\"button_type\":\"save\",\"label\":\"保存\"}]},\"export_columns\":\"\",\"ext_columns\":\"\",\"datasetKey\":\"gzyrqcwtd\",\"unique\":\"id_\",\"dynamic_params\":{}}"
				        },
				        {
				            "key": "filter_condition_key",
				            "value": ""
				        }
				    ],
				    "requestPage": {
				        "pageNo": pageNo,
				        "limit": limit,
				        "totalCount": totalCount
				    },
				    "sorts": []
				}
							let this_=this;
							this.$http.post("ibps/business/v3/data/template/queryDataTable",para).then(res=>{
							   if(res.data.state==200){
								   console.log(res.data.data.dataResult)
								   this_.resdata=res.data.data.dataResult;
								   console.log(res.data.data.pageResult) 
								   
								 //设置分页数  
								   this.total=res.data.data.pageResult.totalCount;
								   this.pageSize=res.data.data.pageResult.limit;
								   }
							})
			},
			goto(option){
				
				uni.navigateTo({
					url:"/pages/fileView/fileView?id="+option
				}) 
				
				
/* 				uni.downloadFile({
				  url: 'https://www.szjyxt.com/group1/M00/00/0C/rBKdLGHuElCAVpUEAAY6VxViWJE056.pdf',
				  success: function (res) {
				    var filePath = res.tempFilePath;
				    uni.openDocument({
				      filePath: filePath,
				      showMenu: true,
				      success: function (res) {
				        console.log('打开文档成功');
				      }
				    });
				  }
				}); */
				
				
			}
			
		}
		
		
		
		
		
	}
	
	
</script>

<style>
	
	.chat-custom-right {
		flex: 1;
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-end;
	}
	
	.chat-custom-text {
		font-size: 12px;
		color: #999;
	}
		.example-body {
			/* #ifndef APP-NVUE */
			display: block;
			/* #endif */
		}
	
		.btn-view {
			/* #ifndef APP-NVUE */
			display: flex;
			flex-direction: column;
			/* #endif */
			padding: 15px;
			text-align: center;
			background-color: #fff;
			justify-content: center;
			align-items: center;
		}
	
		.btn-flex {
			display: flex;
			flex-direction: row;
			justify-content: center;
			align-items: center;
		}
	
		.button {
			margin: 20px;
			width: 150px;
			font-size: 14px;
			color: #333;
		}

</style>
