linweizeng 3 år sedan
förälder
incheckning
313a177054
5 ändrade filer med 774 tillägg och 20 borttagningar
  1. 1 1
      pages.json
  2. 1 1
      pages/index/index.vue
  3. 8 10
      pages/jiance/jindu.vue
  4. 674 8
      pages/jiance/order.vue
  5. 90 0
      pages/jiance/order/test.json

+ 1 - 1
pages.json

@@ -235,7 +235,7 @@
 			"allowsBounceVertical": "NO"
 			"allowsBounceVertical": "NO"
 		},
 		},
 		"navigationBarBackgroundColor": "#0081ff",
 		"navigationBarBackgroundColor": "#0081ff",
-		"navigationBarTitleText": "明鉴细胞检测公司",
+		"navigationBarTitleText": "罗湖细胞检测公司",
 		"navigationStyle": "custom",
 		"navigationStyle": "custom",
 		"navigationBarTextStyle": "white"
 		"navigationBarTextStyle": "white"
 	},
 	},

+ 1 - 1
pages/index/index.vue

@@ -23,7 +23,7 @@
 
 
 
 
 		<uni-notice-bar show-icon scrollable style="position: fixed;bottom: 0rpx;"
 		<uni-notice-bar show-icon scrollable style="position: fixed;bottom: 0rpx;"
-			text="号外号外!明鉴网上委托平台上线啦!从此下单无忧,报告查询无忧,吃得好,睡得好,顶呱呱!" />
+			text="号外号外!罗湖网上委托平台上线啦!从此下单无忧,报告查询无忧,吃得好,睡得好,顶呱呱!" />
 
 
 	</view>
 	</view>
 </template>
 </template>

+ 8 - 10
pages/jiance/jindu.vue

@@ -183,25 +183,23 @@
 					page = this.current * 10
 					page = this.current * 10
 				}
 				}
 
 
+
 				// let sql =
 				// let sql =
-				// 	`{"sql":"select tb.*,td.he_tong_bian_hao_ as he_tong_ming_cheng_ from t_mjwtsqb tb, t_bjd td where tb.he_tong_bian_hao_ = td.id_ and tb.create_by_= '${useId}' and tb.wei_tuo_bian_hao_ like '%${keyworks}%' ORDER BY tb.id_ desc LIMIT ${page},10"}`
+				// 	`{"sql":"select tb.*,td.he_tong_bian_hao_ as he_tong_ming_cheng_,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_mjwtsqb tb, t_bjd td,t_yxkh ty where tb.he_tong_bian_hao_ = td.id_ and td.ke_hu_ming_cheng_ = ty.id_ and tb.create_by_= '${useId}' and tb.wei_tuo_bian_hao_ like '%${keyworks}%' ORDER BY tb.id_ desc LIMIT ${page},10"}`
 
 
 				let sql =
 				let sql =
-					`{"sql":"select tb.*,td.he_tong_bian_hao_ as he_tong_ming_cheng_,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_mjwtsqb tb, t_bjd td,t_yxkh ty where tb.he_tong_bian_hao_ = td.id_ and td.ke_hu_ming_cheng_ = ty.id_ and tb.create_by_= '${useId}' and tb.wei_tuo_bian_hao_ like '%${keyworks}%' ORDER BY tb.id_ desc LIMIT ${page},10"}`
+					`select * from t_lhwtsqb where create_by_= '${useId}' ORDER BY create_time_ desc LIMIT ${page},10`
+				let requestData = this.$sig(sql)
+
 
 
-				let md5 = this.sig(sql) //加密, 获取md5密文
-				let requestData = sql.slice(0, 1) + '"sig":"' + md5 + '",' + sql.slice(1) //结果拼接
 				this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
 				this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
 					if (res.data.state == 200) {
 					if (res.data.state == 200) {
 						const data = res.data.variables.data
 						const data = res.data.variables.data
 						// this.resdata.push(...data)
 						// this.resdata.push(...data)
 						data.forEach((item, index) => {
 						data.forEach((item, index) => {
-							// let zhuangtai = this.getZhuangtai(item.wei_tuo_bian_hao_)
-							this.getZhuangtai(item.wei_tuo_bian_hao_, (result) => {
-								this.$set(item, 'zhuangtai', result)
-							})
-							// console.log(this.getZhuangtai(item.wei_tuo_bian_hao_))
-							// this.$set(item, 'zhuangtai', zhuangtai)
+							// this.getZhuangtai(item.wei_tuo_bian_hao_, (result) => {
+							// 	this.$set(item, 'zhuangtai', result)
+							// })
 							this.resdata.push(item)
 							this.resdata.push(item)
 						})
 						})
 						uni.stopPullDownRefresh();
 						uni.stopPullDownRefresh();

+ 674 - 8
pages/jiance/order.vue

@@ -4,16 +4,215 @@
 			<block slot="backText">返回</block>
 			<block slot="backText">返回</block>
 			<block slot="content">检测委托</block>
 			<block slot="content">检测委托</block>
 		</cu-custom>
 		</cu-custom>
-		<form :model="form" :rules="rules" ref="form">
+		<u-form :model="form" ref="form" label-width="220">
 			<uni-group mode="card" title="委托信息">
 			<uni-group mode="card" title="委托信息">
-				<u-form-item label="委托类型" prop="name">
-					<u-input v-model="form.name" />
+				<u-form-item label="委托类型">
+					<u-input v-model="form.weiTuoLeiXing" disabled />
 				</u-form-item>
 				</u-form-item>
-				<u-form-item label="委托来源" prop="name">
-					<u-input v-model="form.name" />
+				<u-form-item label="委托编号">
+					<u-input v-model="form.weiTuoBianHao" disabled/>
 				</u-form-item>
 				</u-form-item>
+				<u-form-item label="合同选择" prop="heTongId" required>
+					<uni-data-select v-model="form.heTongId" :localdata="hetong" @change="hetongChange">
+					</uni-data-select>
+				</u-form-item>
+				<u-form-item label="委托来源">
+					<u-input v-model="form.weiTuoDanLaiYuan" disabled/>
+					<!-- <u-radio-group v-model="form.weiTuoDanLaiYuan">
+						<u-radio v-for="(item, index) in reportSourceList" :key="index" :name="item.name">
+							{{item.name}}
+						</u-radio>
+					</u-radio-group> -->
+				</u-form-item>
+				<u-form-item label="合同类型" prop="weiTuoHeTong" required>
+					<u-input v-model="form.weiTuoHeTong" disabled/>
+				</u-form-item>
+				<u-form-item label="委托单位">
+					<u-input v-model="form.weiTuoDanWei" />
+				</u-form-item>
+				<u-form-item label="送检单位" prop="songJianDanWei" required>
+					<u-input v-model="form.songJianDanWei" />
+				</u-form-item>
+				
 			</uni-group>
 			</uni-group>
-		</form>
+
+			<uni-group mode="card" :title="'记录' + (index+1)" v-for="(item,index) in form.lhypb" :key="index">
+				<u-form-item label="样品名称" prop="yangPinMingCheng" required>
+					<u-input v-model="item.yangPinMingCheng" />
+				</u-form-item>
+				<u-form-item label="样品编号">
+					<u-input v-model="item.yangPinBianHao" disabled/>
+				</u-form-item>
+				<u-form-item label="姓名">
+					<u-input v-model="item.xingMing" />
+				</u-form-item>
+				<u-form-item label="性别">
+					<u-radio-group v-model="item.xingBie">
+						<u-radio v-for="(it, index) in sexList" :key="index" :name="it.name">
+							{{it.name}}
+						</u-radio>
+					</u-radio-group>
+				</u-form-item>
+				<u-form-item label="年龄">
+					<u-input v-model="item.nianLing" />
+				</u-form-item>
+				<u-form-item label="送检批号/编号" prop="songJianPiHaoBian" required>
+					<u-input v-model="item.songJianPiHaoBian" />
+				</u-form-item>
+				<u-form-item label="样本状态" prop="yangBenZhuangTai" required>
+					<u-input type="select" v-model="item.yangBenZhuangTai" @click="sheetClick('state',index)" />
+				</u-form-item>
+				<u-form-item label="送检时间" prop="songJianShiJian" required>
+					<u-input type="select" v-model="item.songJianShiJian" @click="dateClick('inspect',index)" />
+				</u-form-item>
+			
+				<u-form-item label="样本类型一" required>
+					<u-input type="select" v-model="item.yangPinLeiXing" @click="sheetClick('yangpinType1',index)" />
+				</u-form-item>
+				<u-form-item label="样本运输条件一" required>
+					<u-input type="select" v-model="item.yangBenYunShuTiao"
+						@click="sheetClick('transportType1',index)" />
+				</u-form-item>
+				<u-form-item label="数量一">
+					<u-number-box v-model="item.shuLiang"></u-number-box>
+				</u-form-item>
+				<u-form-item label="样品规格一" required>
+					<u-input v-model="item.yangPinGuiGe" />
+					<u-button slot="right" type="success" size="mini" @click="sheetClick('specification1',index)">规格
+					</u-button>
+				</u-form-item>	
+				
+				
+				<u-form-item label="样本类型二" required>
+					<u-input type="select" v-model="item.yangPinLeiXingEr" @click="sheetClick('yangpinType2',index)" />
+				</u-form-item>
+				<u-form-item label="样本运输条件二" required>
+					<u-input type="select" v-model="item.yangPinYunShuTiao"
+						@click="sheetClick('transportType2',index)" />
+				</u-form-item>
+				<u-form-item label="数量二">
+					<u-number-box v-model="item.shuLiangEr"></u-number-box>
+				</u-form-item>
+				<u-form-item label="样品规格二" required>
+					<u-input v-model="item.yangPinGuiGeEr" />
+					<u-button slot="right" type="success" size="mini" @click="sheetClick('specification2',index)">规格
+					</u-button>
+				</u-form-item>
+				
+				<u-form-item label="样本类型三" required>
+					<u-input type="select" v-model="item.yangPinLeiXingSan" @click="sheetClick('yangpinType3',index)" />
+				</u-form-item>
+				<u-form-item label="样本运输条件三" required>
+					<u-input type="select" v-model="item.yangPinYunShuSan"
+						@click="sheetClick('transportType3',index)" />
+				</u-form-item>
+				<u-form-item label="数量三">
+					<u-number-box v-model="item.shuLiangSan"></u-number-box>
+				</u-form-item>
+				<u-form-item label="样品规格三" required>
+					<u-input v-model="item.yangPinGuiGeSan" />
+					<u-button slot="right" type="success" size="mini" @click="sheetClick('specification3',index)">规格
+					</u-button>
+				</u-form-item>
+				
+				<u-form-item label="样本类型四" required>
+					<u-input type="select" v-model="item.yangPinLeiXingSi" @click="sheetClick('yangpinType4',index)" />
+				</u-form-item>
+				<u-form-item label="样本运输条件四" required>
+					<u-input type="select" v-model="item.yangPinYunShuSi"
+						@click="sheetClick('transportType4',index)" />
+				</u-form-item>
+				<u-form-item label="数量四">
+					<u-number-box v-model="item.shuLiangSi"></u-number-box>
+				</u-form-item>
+				<u-form-item label="样品规格四" required>
+					<u-input v-model="item.yangPinGuiGeSi" />
+					<u-button slot="right" type="success" size="mini" @click="sheetClick('specification4',index)">规格
+					</u-button>
+				</u-form-item>
+				
+				<u-form-item label="检测项目" prop="name" label-position="top">
+					<div>55</div>
+				</u-form-item>
+
+				<u-button type="error" class="btn" @click="deletSing(index)">删除记录{{index+1}}</u-button>
+			</uni-group>
+
+			<u-button type="success" class="btn" @click="getSing()">添加记录</u-button>
+
+			<uni-group mode="card">
+				<u-form-item label="付款方式">
+					<u-input v-model="form.fuKuanFangShi" disabled/>
+				</u-form-item>
+				<u-form-item label="报告类型">
+					<u-radio-group v-model="form.baoGaoLeiXing">
+						<u-radio v-for="(item, index) in reportTypeList" :key="index" :name="item.name">
+							{{item.name}}
+						</u-radio>
+					</u-radio-group>
+				</u-form-item>
+				<u-form-item label="出报告要求" prop="name">
+					<u-radio-group v-model="form.chuJuBaoGaoYaoQiu">
+						<u-radio v-for="(item, index) in reportRequireList" :key="index" :name="item.name">
+							{{item.name}}
+						</u-radio>
+					</u-radio-group>
+				</u-form-item>
+				<u-form-item label="出报告时间">
+					<u-input type="select" v-model="form.chuBaoGaoShiJian" @click="dateClick('report')" />
+				</u-form-item>
+				<u-form-item label="样本处理" prop="yangBenChuLi" required>
+					<u-input type="select" v-model="form.yangBenChuLi" @click="sheetClick('disposition')" />
+				</u-form-item>
+			</uni-group>
+
+			<uni-group mode="card" title="委托人信息">
+				<u-form-item label="委托方">
+					<u-input v-model="form.weiTuoFangMingChe" />
+				</u-form-item>
+				<u-form-item label="联系人">
+					<u-input v-model="form.weiTuoFangLianXiR" />
+				</u-form-item>
+				<u-form-item label="联系电话">
+					<u-input v-model="form.weiTuoFangLianXiD" />
+				</u-form-item>
+				<u-form-item label="委托日期" prop="weiTuoRiQi">
+					<u-input v-model="form.weiTuoRiQi" />
+				</u-form-item>
+				<u-form-item label="委托签名" label-position="top">
+					<view style="width: 100%;">
+						<view style="text-align: right;width: 100%;">
+							<view>
+								<u-button type="primary" size="mini" @click="qianming(0)">
+									签名</u-button>
+								<u-button type="primary" size="mini" @click="deqianming(0)" style="margin-left: 15rpx;"
+									v-if="form.weiTuoFangQueRen != ''">
+									取消</u-button>
+							</view>
+						</view>
+						<view style="width: 100%;" v-if="form.weiTuoFangQueRen != ''">
+							<image :src="form.weiTuoFangQueRen"
+								style="width: 100%;height: 500rpx;border: 1px #eee solid;">
+							</image>
+						</view>
+					</view>
+
+				</u-form-item>
+			</uni-group>
+			<u-button type="primary" class="btn" @click="sumbit">提交</u-button>
+		</u-form>
+
+		<u-calendar v-model="dateShow" :mode="mode" max-date="2050-01-01" @change="dateChange"></u-calendar>
+		<u-action-sheet :list="list" v-model="sheetShow" @click="actionSheetCallback"></u-action-sheet>
+
+		<popup ref="centers" :maskColor="true" :center="true" style="z-index: 9999;">
+			<view style="padding: 30rpx;background: #FFFFFF;margin: 10rpx;width: 100%;">
+				<view class="cu-form-group ">
+					<view class="title">签名</view>
+				</view>
+				<autograph @save="save" @clear="clear" @close="close"></autograph>
+			</view>
+		</popup>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -22,6 +221,7 @@
 	import md5 from "@/common/util/md5.js"
 	import md5 from "@/common/util/md5.js"
 	import autograph from '@/components/autograph/autograph'
 	import autograph from '@/components/autograph/autograph'
 	import popup from '@/components/popup/popup.vue'
 	import popup from '@/components/popup/popup.vue'
+	import order from './order/test.json'
 
 
 	import {
 	import {
 		ACCESS_TOKEN,
 		ACCESS_TOKEN,
@@ -32,22 +232,488 @@
 		data() {
 		data() {
 			return {
 			return {
 				form: {
 				form: {
+					weiTuoLeiXing: '',
+					weiTuoDanLaiYuan: '',
+					weiTuoBianHao: '',
+					heTongId: '',
+					weiTuoHeTong: '',
+					weiTuoDanWei: '',
+					songJianDanWei: '',
+					qiWangWanChengShi: '',
+					lhypb: [],
+					fuKuanFangShi: '',
+					baoGaoLeiXing: '',
+					chuJuBaoGaoYaoQiu: '',
+					chuBaoGaoShiJian: '',
+					yangBenChuLi: '',
+					weiTuoFangMingChe: '',
+					weiTuoFangLianXiR: '',
+					weiTuoFangLianXiD: '',
+					weiTuoRiQi: '',
+					weiTuoFangQueRen: ''
 
 
 				},
 				},
-				rules: []
+				rules: {
+					heTongId: [{
+						required: true,
+						message: '请选择合同',
+						trigger: ['change', 'blur'],
+					}],
+					weiTuoHeTong: [{
+						required: true,
+						message: '请选择合同类型',
+						trigger: ['change', 'blur'],
+					}],
+					songJianDanWei: [{
+						required: true,
+						message: '请输入送检单位',
+						trigger: 'blur',
+					}],
+					// qiWangWanChengShi: [{
+					// 	required: true,
+					// 	message: '请输入送检时间',
+					// 	trigger: 'change',
+					// }],
+					yangPinMingCheng: [{
+						required: true,
+						message: '请输入样品名称',
+						trigger: 'blur',
+					}],
+					// songJianPiHaoBian: [{
+					// 	required: true,
+					// 	message: '请输入送检批号/编号',
+					// 	trigger: 'blur',
+					// }],
+					// yangBenZhuangTai: [{
+					// 	required: true,
+					// 	message: '请选择样本状态',
+					// 	trigger: 'change',
+					// }],
+					// yangPinLeiXing: [{
+					// 	required: true,
+					// 	message: '请选择样本类型',
+					// 	trigger: ['change', 'blur'],
+					// }],
+					// yangBenYunShuTiao: [{
+					// 	required: true,
+					// 	message: '请选择样本运输条件',
+					// 	trigger: ['change', 'blur'],
+					// }],
+					// yangPinGuiGe: [{
+					// 	required: true,
+					// 	message: '请选择样品规格',
+					// 	trigger: ['change', 'blur'],
+					// }],
+					yangBenChuLi: [{
+						required: true,
+						message: '请选择样本处理',
+						trigger: ['change', 'blur'],
+					}]
+				},
+
+
+				//日期
+				dateType: 'inspect',
+				dateShow: false,
+				mode: 'date',
+				//委托来源
+				reportSourceList: order.reportSource,
+				//报告类型
+				reportTypeList: order.reportType,
+				//报告要求
+				reportRequireList: order.reportRequire,
+				//样本类型
+				sampleTypeList: order.sampleType,
+				//样本状态
+				sampleStateList: order.sampleState,
+				//样本运输条件
+				transportTypeList: order.transportType,
+				//样本规格
+				specificationList: order.specification,
+				//样品处理
+				dispositionList: order.disposition,
+				//性别
+				sexList: order.sex,
+				//签名显示
+				qianshow: false,
+				qianIndex: 0,
+				//下拉框
+				sheetShow: false,
+				list: [],
+				listType: '',
+				listIndex: 0,
+
+				//账号id
+				userid: '',
+				time: '',
+				orgId: '',
+				
+				//合同
+				hetong: [],
+				hetongList: []
 			}
 			}
 		},
 		},
 		onLoad() {
 		onLoad() {
-
+			this.getInit()
+			this.getLhwtdh()
+			
+			
+		},
+		onReady() {
+			this.$refs.form.setRules(this.rules);
 		},
 		},
 		methods: {
 		methods: {
+			//初始化
+			getInit() {
+				//获取账号id
+				let info = uni.getStorageSync(USER_INFO)
+				console.log(info)
+				if (info.employee.id) {
+					this.userid = info.employee.id || ''
+				}
+				console.log(info.org !== null)
+				if(info.org !== null){
+					this.orgId = info.org.id || ''
+				}
+				this.getDataHetong()
+				
+				//获取时间
+				let nowDate = new Date((new Date).getTime() + 8 * 60 * 60 * 1000)
+				let time = nowDate.toJSON().split('T').join(' ').substr(0, 10)
+				this.time = time
+
+				this.form.weiTuoLeiXing = '客户委托'
+			},
+			//获取委托编号
+			getLhwtdh() {
+				let smsParams = {
+					alias: "lhwtdh"
+				};
+				let this_ = this
+				this.$http.post("/ibps/business/v3/jc/sys/getNextIdByAlias", smsParams).then(res => {
+					if (res.data.state == 200) {
+						const data = res.data.data
+						this_.form.weiTuoBianHao = data
+					}
+				});
+			},
+			//获取样品编号
+			getLhypbh(callback) {
+				let smsParams = {
+					alias: "lhypbh"
+				};
+				let this_ = this
+				this.$http.post("/ibps/business/v3/jc/sys/getNextIdByAlias", smsParams).then(res => {
+					if (res.data.state == 200) {
+						const data = res.data.data
+						callback(data)
+					}
+				});
+			},
+			//获取合同
+			getDataHetong() {
+				let info = uni.getStorageSync(USER_INFO);
+				if (info == undefined) {
+					return;
+				}
+				
+				let sql =
+					`select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and ty.ke_hu_ming_cheng_='${info.employee.name}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
+				let requestData = this.$sig(sql)
+				this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
+					if (res.data.state == 200) {
+						let result = res.data.variables.data
+						if(result.length > 0){
+							this.hetongList = result
+						    result.forEach((item, index) => {
+						    	let obj = {
+						    		text: item.he_tong_bian_hao_,
+						    		value: item.id_
+						    	}
+						    	this.hetong.push(obj);
+						    })
+						}else {
+							uni.showToast({
+								title: '你好,该账户还没有与本公司签订合同,或者你合同已失效。',
+								icon: 'none',
+								duration: 2000
+							})
+						}
+					}
+				});
+			},
+			hetongChange(e){
+				console.log(e)
+				//从合同中选择付款方式
+				if (e != '') {
+					console.log(this.hetong)
+					let data = this.hetongList.find((item, index) => item.id_ == e)
+					console.log(data)
+					this.form.weiTuoDanLaiYuan = data.wei_tuo_dan_lai_y
+					this.form.weiTuoHeTong = data.he_tong_lei_xing_
+					this.form.fuKuanFangShi = data.fu_kuan_fang_shi_
+				}
+			},
+
+
+			//调用日期组件
+			dateClick(type,index) {
+				if (type == 'inspect') {
+					this.type = type
+					this.mode = 'date'
+					this.dateShow = true
+					this.listIndex = index
+				}
+				if (type == 'report') {
+					this.type = type
+					this.mode = 'date'
+					this.dateShow = true
+					
+				}
+			},
+			//日期回调
+			dateChange(e) {
+				if (this.type = 'inspect') {
+					this.form.lhypb[this.listIndex].songJianShiJian = e.result
+				}
+				if (this.type = 'report') {
+					this.form.chuBaoGaoShiJian = e.result
+				}
+			},
+			sheetClick(type, index) {
+				this.listType = type
+				this.sheetShow = true
+				if (type == 'state') {
+					this.list = this.sampleStateList
+					this.listIndex = index
+				}
+				
+				//1
+				if (type.includes('yangpinType')) {
+					this.list = this.sampleTypeList
+					this.listIndex = index
+				}
+				if (type.includes('transportType')) {
+					this.list = this.transportTypeList
+					this.listIndex = index
+				}
+				if (type.includes('specification')) {
+					this.list = this.specificationList
+					this.listIndex = index
+				}
+				if (type == 'disposition') {
+					this.list = this.dispositionList
+				}
+			},
+			//下拉框回调
+			actionSheetCallback(e) {
+				let that = this
+				let lists = that.form.lhypb[this.listIndex]
+				
+				if (this.listType == 'state') {
+					lists.yangBenZhuangTai = this.list[e].text
+				}
+				
+				//1
+				if (this.listType == 'yangpinType1') {
+					lists.yangPinLeiXing = that.list[e].text
+				}
+				if (this.listType == 'transportType1') {
+					lists.yangBenYunShuTiao = that.list[e].text
+				}
+				if (this.listType == 'specification1') {
+					lists.yangPinGuiGe = that.list[e].text
+				}
+				
+				//2
+				if (this.listType == 'yangpinType2') {
+					lists.yangPinLeiXingEr = that.list[e].text
+				}
+				if (this.listType == 'transportType2') {
+					lists.yangPinYunShuTiao = that.list[e].text
+				}
+				if (this.listType == 'specification2') {
+					lists.yangPinGuiGeEr = that.list[e].text
+				}
+				
+				//3
+				if (this.listType == 'yangpinType3') {
+					lists.yangPinLeiXingSan = that.list[e].text
+				}
+				if (this.listType == 'transportType3') {
+					lists.yangPinYunShuSan = that.list[e].text
+				}
+				if (this.listType == 'specification3') {
+					lists.yangPinGuiGeSan = that.list[e].text
+				}
+				
+				//3
+				if (this.listType == 'yangpinType4') {
+					lists.yangPinLeiXingSi = that.list[e].text
+				}
+				if (this.listType == 'transportType4') {
+					lists.yangPinYunShuSi = that.list[e].text
+				}
+				if (this.listType == 'specification4') {
+					lists.yangPinGuiGeSi = that.list[e].text
+				}
+				
+				if (this.listType == 'disposition') {
+					this.form.yangBenChuLi = this.list[e].text
+				}
+			},
+
+			//提交
+			sumbit() {
+				uni.showLoading({
+					mask: true,
+					title: '加载中'
+				});
+				let para = {
+					"parameters": [{
+							"key": "defId",
+							"value": "1033014823429865472"
+						},
+						{
+							"key": "version",
+							"value": "0"
+						},
+						{
+							"key": "data",
+							"value": ""
+						}
+					]
+				}
+
+				this.form.shiFouGuoShen = "待编制"
+				this.form.bianZhiRen = this.userid
+				this.form.bianZhiShiJian = this.time
+				this.form.bianZhiBuMen = this.orgId
 
 
+				para.parameters[2].value = JSON.stringify(this.form)
+
+
+				this.$refs.form.validate(valid => {
+					if (valid) {
+						this.$http.post("ibps/business/v3/bpm/instance/start", para).then(res => {
+							if (res.data.state == 200) {
+								this.$tip.success('提交成功!')
+								uni.hideLoading();
+								this.$Router.replaceAll({
+									name: 'index'
+								})
+							} else {
+								this.$tip.success('提交异常!')
+								this.$Router.replaceAll({
+									name: 'index'
+								})
+							}
+						});
+					} else {
+						uni.showToast({
+							title: '必选项没有填写',
+							icon: 'none',
+							duration: 2000
+						})
+						uni.hideLoading();
+					}
+				});
+			},
+
+
+			//添加样品记录
+			getSing() {
+				this.getLhypbh(res => {
+					let obj = {
+						jianCeXiangMu: '',
+						jianCeXiangMu2: [], //不传到后台
+						yangPinMingCheng: '',
+						yangPinBianHao: res,
+						xingMing: '',
+						xingBie: '',
+						nianLing: '',
+						songJianPiHaoBian: '',
+						yangBenZhuangTai: '',
+						songJianShiJian: '',
+						
+						yangPinLeiXing: '',
+						yangBenYunShuTiao: '',
+						shuLiang: 0,
+						yangPinGuiGe: '',
+						
+						yangPinLeiXingEr: '',
+						yangPinYunShuTiao: '',
+						yangPinGuiGeEr: '',
+						shuLiangEr: 0,
+						
+						yangPinLeiXingSan: '',
+						yangPinGuiGeSan: '',
+						shuLiangSan: 0,
+						yangPinYunShuSan: '',
+						
+						yangPinLeiXingSi: '',
+						yangPinGuiGeSi: '',
+						yangPinYunShuSi: '',
+						shuLiangSi: 0
+						
+					}
+					this.form.lhypb.push(obj)
+				})
+				
+			},
+			deletSing(index) {
+				this.form.lhypb.splice(index, 1)
+			},
+			//弹出框显示
+			qianming(index) {
+				this.qianshow = true
+				this.qianIndex = index
+				this.$refs.centers.show()
+			},
+			//清除签名
+			deqianming(index) {
+				if (index == 0) {
+					this.form.weiTuoFangQueRen = ''
+				}
+			},
+			//保存签名
+			save(val) {
+				if (this.qianIndex == 0) {
+					this.form.weiTuoFangQueRen = val.tempFilePath
+				}
+				this.qianshow = false
+				this.$refs.centers.hide()
+			},
+			//清除签名
+			clear(val) {
+				if (this.qianIndex == 0) {
+					this.form.weiTuoFangQueRen = ''
+				}
+			},
+			/**
+			 * 关闭签名弹窗
+			 */
+			close() {
+				this.$refs.centers.hide()
+			},
 		}
 		}
 	}
 	}
 </script>
 </script>
 
 
 <style scoped lang="scss">
 <style scoped lang="scss">
+	.btn {
+		margin: 15rpx
+	}
+
 	/deep/ .uni-group__content {
 	/deep/ .uni-group__content {
 		padding: 15rpx 25rpx;
 		padding: 15rpx 25rpx;
 	}
 	}
+
+	//换行居中
+	/deep/ uni-text span {
+		white-space: normal;
+		word-break: break-all;
+		text-align: center;
+		display: inline-block;
+	}
 </style>
 </style>

+ 90 - 0
pages/jiance/order/test.json

@@ -0,0 +1,90 @@
+{
+	"reportType": [{
+		"name": "简易"
+	}, {
+		"name": "常规"
+	}],
+	"reportSource": [{
+		"name": "客户"
+	}, {
+		"name": "中介代理"
+	}],
+	"reportRequire": [{
+		"name": "常规"
+	}, {
+		"name": "加急"
+	}, {
+		"name": "特急"
+	}],
+	"sampleType": [{
+		"text": "细胞培养上清",
+		"value": "细胞培养上清"
+	}, {
+		"text": "细胞悬液",
+		"value": "细胞悬液"
+	}, {
+		"text": "贴壁生长的活细胞",
+		"value": "贴壁生长的活细胞"
+	}, {
+		"text": "冻存细胞",
+		"value": "冻存细胞"
+	}, {
+		"text": "血样",
+		"value": "血样"
+	}, {
+		"text": "其他",
+		"value": "其他"
+	}],
+	"transportType": [{
+		"text": "常温",
+		"value": "常温"
+	}, {
+		"text": "冰袋(2-8℃)",
+		"value": "冰袋(2-8℃)"
+	}, {
+		"text": "干冰",
+		"value": "干冰"
+	}, {
+		"text": "液氮",
+		"value": "液氮"
+	}, {
+		"text": "其他",
+		"value": "其他"
+	}],
+	"sampleState": [{
+		"text": "原液或半成品"
+	}, {
+		"text": "终制剂"
+	}, {
+		"text": "其他"
+	}],
+	"sex": [{
+		"name": "男"
+	}, {
+		"name": "女"
+	}],
+	"specification": [{
+		"text": "__支*__ml(规格)*__ml离心管"
+	}, {
+		"text": "__支*__ml(规格)*冻存管"
+	}, {
+		"text": "__支*__ml(规格)*冻存袋"
+	}, {
+		"text": "__支*__ml(规格)*玻璃管"
+	}, {
+		"text": "__支*__ml(规格)*玻璃瓶"
+	}, {
+		"text": "__支*__ml(规格)*EP管"
+	}, {
+		"text": "__支*__ml(规格)*采血管"
+	}, {
+		"text": "其它:数量*容量*包装类型"
+	}],
+	"disposition": [{
+		"text": "按照检测方样本管理规程处理"
+	}, {
+		"text": "退样(邮寄到付)"
+	}, {
+		"text": "自行取回(请于报告发出之日1个月内取回,过期销毁)"
+	}]
+}