|
@@ -153,61 +153,7 @@
|
|
|
<view style="height: 100rpx;"></view>
|
|
<view style="height: 100rpx;"></view>
|
|
|
</u-form>
|
|
</u-form>
|
|
|
|
|
|
|
|
- <view class="bottomBtn" v-if="buttonFlagNum == '3' || buttonFlagNum == ''">
|
|
|
|
|
- <u-row>
|
|
|
|
|
- <u-col :span="activeNum != 1 ? 4 : 6" v-if="activeNum != 1">
|
|
|
|
|
- <u-button type="warning" class="btn" @click="lastStep">
|
|
|
|
|
- 上一步
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- <u-col :span="activeNum == 1 ? 6 : 4">
|
|
|
|
|
- <u-button type="success" @click="onSubmit(1)" class="btn green-back-color" style="margin-bottom: 15rpx;" v-if="type != 'detail'">
|
|
|
|
|
- 暂存
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- <u-col :span="4" v-if="activeNum == 3">
|
|
|
|
|
- <u-button type="success" class="btn btn-back-color" @click="onSubmit(2)" v-if="type != 'detail'">提交
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- <u-col :span="activeNum == 1 ? 6 : 4" v-if="activeNum != 3">
|
|
|
|
|
- <u-button type="warning" @click="nextStep" class="btn btn-green-color"> 下一步 </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- </u-row>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="bottomBtn" v-else-if="buttonFlagNum == '1'">
|
|
|
|
|
- <u-row>
|
|
|
|
|
- <u-col :span="activeNum == 1 ? 12 : 6" v-if="activeNum != 1">
|
|
|
|
|
- <u-button type="warning" @click="lastStep" class="btn">
|
|
|
|
|
- 上一步
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- <u-col :span="activeNum == 3 ? 6 :12" v-if="activeNum == 3">
|
|
|
|
|
- <u-button type="error" @click="onSubmit(3)">提交
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- <u-col :span="activeNum == 1 ?12 : 6" v-if="activeNum != 3">
|
|
|
|
|
- <u-button type="warning" @click="nextStep" class="btn btn-green-color">下一步
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- </u-row>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="bottomBtn" v-else-if="buttonFlagNum == '0'">
|
|
|
|
|
- <u-row>
|
|
|
|
|
- <u-col :span="activeNum == 2 ? 6 : 12" v-if="activeNum != 1">
|
|
|
|
|
- <u-button type="warning" @click="lastStep" class="btn">
|
|
|
|
|
- 上一步
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- <u-col :span="activeNum == 2 ? 6 : 12" v-if="activeNum != 3">
|
|
|
|
|
- <u-button type="warning" @click="nextStep" class="btn btn-green-color">下一步
|
|
|
|
|
- </u-button>
|
|
|
|
|
- </u-col>
|
|
|
|
|
- </u-row>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <order-buttom :type="type" :activeNum="activeNum" :buttonFlagNum="buttonFlagNum" @nextStep="nextStep" @lastStep="lastStep" @onSubmit="onSubmit"></order-buttom>
|
|
|
|
|
|
|
|
<u-back-top :scroll-top="scrollTop" :icon-style="iconStyle" bottom="400" top="100"></u-back-top>
|
|
<u-back-top :scroll-top="scrollTop" :icon-style="iconStyle" bottom="400" top="100"></u-back-top>
|
|
|
|
|
|
|
@@ -257,6 +203,7 @@
|
|
|
import message from '@/pages/jiance/order/message.vue'
|
|
import message from '@/pages/jiance/order/message.vue'
|
|
|
import top from '@/pages/jiance/order/top.vue'
|
|
import top from '@/pages/jiance/order/top.vue'
|
|
|
import lhypbCom from '@/pages/jiance/order/lhypbCom.vue'
|
|
import lhypbCom from '@/pages/jiance/order/lhypbCom.vue'
|
|
|
|
|
+ import orderButtom from '@/pages/jiance/order/orderButtom.vue'
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
ACCESS_TOKEN,
|
|
ACCESS_TOKEN,
|
|
@@ -270,7 +217,8 @@
|
|
|
lhypbMessage,
|
|
lhypbMessage,
|
|
|
message,
|
|
message,
|
|
|
top,
|
|
top,
|
|
|
- lhypbCom
|
|
|
|
|
|
|
+ lhypbCom,
|
|
|
|
|
+ orderButtom
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -496,10 +444,8 @@
|
|
|
//下一步
|
|
//下一步
|
|
|
nextStep() {
|
|
nextStep() {
|
|
|
let index = JSON.parse(JSON.stringify(this.activeNum))
|
|
let index = JSON.parse(JSON.stringify(this.activeNum))
|
|
|
- if (index == '1') {
|
|
|
|
|
- if (!service.getActiveNum1(this.form)) {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (index == '1' && !service.getActiveNum1(this.form)) {
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
this.$refs.top.activeNum = index + 1
|
|
this.$refs.top.activeNum = index + 1
|
|
|
this.activeNum = index + 1
|
|
this.activeNum = index + 1
|
|
@@ -553,11 +499,7 @@
|
|
|
//初始化
|
|
//初始化
|
|
|
getInit() {
|
|
getInit() {
|
|
|
let info = uni.getStorageSync(USER_INFO)
|
|
let info = uni.getStorageSync(USER_INFO)
|
|
|
- if (info.org !== null) {
|
|
|
|
|
- this.orgId = info.org.id || ''
|
|
|
|
|
- }
|
|
|
|
|
- // this.getDataHetong()
|
|
|
|
|
- //获取时间
|
|
|
|
|
|
|
+ this.orgId = info.org?.id || ''
|
|
|
this.time = meth.time(10)
|
|
this.time = meth.time(10)
|
|
|
this.time2 = meth.time(19)
|
|
this.time2 = meth.time(19)
|
|
|
this.form.weiTuoLeiXing = '客户委托'
|
|
this.form.weiTuoLeiXing = '客户委托'
|
|
@@ -644,6 +586,10 @@
|
|
|
},
|
|
},
|
|
|
//获取样品编号
|
|
//获取样品编号
|
|
|
getLhypbh(callback) {
|
|
getLhypbh(callback) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '生成样品编号中',
|
|
|
|
|
+ mask: true
|
|
|
|
|
+ })
|
|
|
let smsParams = {
|
|
let smsParams = {
|
|
|
alias: "lhypbh"
|
|
alias: "lhypbh"
|
|
|
};
|
|
};
|
|
@@ -651,6 +597,7 @@
|
|
|
this.$http.post("/ibps/business/v3/jc/sys/getNextIdByAlias", smsParams).then(res => {
|
|
this.$http.post("/ibps/business/v3/jc/sys/getNextIdByAlias", smsParams).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
if (res.data.state == 200) {
|
|
|
const data = res.data.data
|
|
const data = res.data.data
|
|
|
|
|
+ uni.hideLoading()
|
|
|
callback(data)
|
|
callback(data)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -669,18 +616,9 @@
|
|
|
let result = res.data.variables.data[0]
|
|
let result = res.data.variables.data[0]
|
|
|
let form = service.getForm(result)
|
|
let form = service.getForm(result)
|
|
|
this.form = form
|
|
this.form = form
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- if (result.chu_ju_bao_gao_ya == '特急') {
|
|
|
|
|
- this.total = parseFloat(result.zong_jia_) / 1.5
|
|
|
|
|
- } else if (result.chu_ju_bao_gao_ya == '加急') {
|
|
|
|
|
- this.total = parseFloat(result.zong_jia_) / 1.2
|
|
|
|
|
- } else {
|
|
|
|
|
- this.total = parseFloat(result.zong_jia_)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.total = parseFloat(result.zong_jia_) / (result.chu_ju_bao_gao_ya === '特急' ? 1.5 : result.chu_ju_bao_gao_ya === '加急' ? 1.2 : 1)
|
|
|
this.getTaoCanXiangMu(result.he_tong_id_)
|
|
this.getTaoCanXiangMu(result.he_tong_id_)
|
|
|
this.hetongChange(result.he_tong_id_, this.type, id)
|
|
this.hetongChange(result.he_tong_id_, this.type, id)
|
|
|
- // this.getJiance(result.he_tong_id_, this.type, id)
|
|
|
|
|
this.getZhanShiBiao(result.zhan_shi_biao_id_)
|
|
this.getZhanShiBiao(result.zhan_shi_biao_id_)
|
|
|
// uni.hideLoading()
|
|
// uni.hideLoading()
|
|
|
} else {
|
|
} else {
|
|
@@ -697,7 +635,6 @@
|
|
|
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) {
|
|
|
let result = res.data.variables.data
|
|
let result = res.data.variables.data
|
|
|
-
|
|
|
|
|
let list = []
|
|
let list = []
|
|
|
result.forEach(item => {
|
|
result.forEach(item => {
|
|
|
list.push(item.id_)
|
|
list.push(item.id_)
|
|
@@ -740,17 +677,8 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
let sql = ``
|
|
let sql = ``
|
|
|
- // 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 tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
sql =
|
|
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 tb.ke_hu_zhang_hao_ ='${userId}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
`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 tb.ke_hu_zhang_hao_ ='${userId}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
-
|
|
|
|
|
- // if (this.administrator && this.type == '') {
|
|
|
|
|
- // 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 tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
|
|
- // }
|
|
|
|
|
let requestData = this.$sig(sql)
|
|
let requestData = this.$sig(sql)
|
|
|
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) {
|
|
@@ -814,7 +742,8 @@
|
|
|
// text: item.jian_ce_lei_bie_
|
|
// text: item.jian_ce_lei_bie_
|
|
|
value: item.jian_ce_lei_bie_,
|
|
value: item.jian_ce_lei_bie_,
|
|
|
text: item.jian_ce_lei_bie_,
|
|
text: item.jian_ce_lei_bie_,
|
|
|
- id: item.jian_ce_lei_bie_
|
|
|
|
|
|
|
+ id: item.jian_ce_lei_bie_,
|
|
|
|
|
+ name: item.jian_ce_lei_bie_
|
|
|
}
|
|
}
|
|
|
this.jianCeTypeList.push(obj)
|
|
this.jianCeTypeList.push(obj)
|
|
|
} else {
|
|
} else {
|
|
@@ -825,7 +754,8 @@
|
|
|
// text: item.jian_ce_lei_bie_
|
|
// text: item.jian_ce_lei_bie_
|
|
|
value: item.jian_ce_lei_bie_,
|
|
value: item.jian_ce_lei_bie_,
|
|
|
text: item.jian_ce_lei_bie_,
|
|
text: item.jian_ce_lei_bie_,
|
|
|
- id: item.jian_ce_lei_bie_
|
|
|
|
|
|
|
+ id: item.jian_ce_lei_bie_,
|
|
|
|
|
+ name: item.jian_ce_lei_bie_
|
|
|
}
|
|
}
|
|
|
this.jianCeTypeList.push(obj)
|
|
this.jianCeTypeList.push(obj)
|
|
|
}
|
|
}
|
|
@@ -938,22 +868,20 @@
|
|
|
//调用日期组件
|
|
//调用日期组件
|
|
|
dateClick(type, index) {
|
|
dateClick(type, index) {
|
|
|
this.listType = type
|
|
this.listType = type
|
|
|
- if (type == 'report') {
|
|
|
|
|
- this.mode = 'date'
|
|
|
|
|
- this.dateShow = true
|
|
|
|
|
- }
|
|
|
|
|
- if (type == 'weiTuo') {
|
|
|
|
|
|
|
+ if (type == 'report' || type == 'weiTuo') {
|
|
|
this.mode = 'date'
|
|
this.mode = 'date'
|
|
|
this.dateShow = true
|
|
this.dateShow = true
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//日期回调
|
|
//日期回调
|
|
|
dateChange(e) {
|
|
dateChange(e) {
|
|
|
- if (this.listType == 'report') {
|
|
|
|
|
- this.form.chuBaoGaoShiJian = e.result
|
|
|
|
|
- }
|
|
|
|
|
- if (this.listType == 'weiTuo') {
|
|
|
|
|
- this.form.weiTuoRiQi = e.result
|
|
|
|
|
|
|
+ switch (this.listType) {
|
|
|
|
|
+ case 'report':
|
|
|
|
|
+ this.form.chuBaoGaoShiJian = e.result
|
|
|
|
|
+ break
|
|
|
|
|
+ case 'weiTuo':
|
|
|
|
|
+ this.form.weiTuoRiQi = e.result
|
|
|
|
|
+ break
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
sheetClick(type, index) {
|
|
sheetClick(type, index) {
|
|
@@ -962,8 +890,6 @@
|
|
|
if (type == 'disposition') {
|
|
if (type == 'disposition') {
|
|
|
this.list = this.dispositionList
|
|
this.list = this.dispositionList
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
//下拉框回调
|
|
//下拉框回调
|
|
|
actionSheetCallback(e) {
|
|
actionSheetCallback(e) {
|
|
@@ -972,7 +898,6 @@
|
|
|
if (this.listType == 'disposition') {
|
|
if (this.listType == 'disposition') {
|
|
|
this.form.yangBenChuLi = this.list[e].text
|
|
this.form.yangBenChuLi = this.list[e].text
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
selectClick(type, index) {
|
|
selectClick(type, index) {
|
|
|
this.listType = type
|
|
this.listType = type
|
|
@@ -1000,9 +925,7 @@
|
|
|
success: function(res) {
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
that.sumbit(valueType)
|
|
that.sumbit(valueType)
|
|
|
- } else if (res.cancel) {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ } else if (res.cancel) {}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -1095,6 +1018,7 @@
|
|
|
let list7 = []
|
|
let list7 = []
|
|
|
let list8 = []
|
|
let list8 = []
|
|
|
let list9 = []
|
|
let list9 = []
|
|
|
|
|
+ //常规检测项目处理
|
|
|
item.jianCeXiangMu2 = []
|
|
item.jianCeXiangMu2 = []
|
|
|
item.jianCeList.forEach((it, x) => {
|
|
item.jianCeList.forEach((it, x) => {
|
|
|
if (it.checked) {
|
|
if (it.checked) {
|
|
@@ -1127,6 +1051,7 @@
|
|
|
item.xuanZeTaoCan = list1.join(',')
|
|
item.xuanZeTaoCan = list1.join(',')
|
|
|
|
|
|
|
|
if (item.taoCanXiangMuList.length > 0) {
|
|
if (item.taoCanXiangMuList.length > 0) {
|
|
|
|
|
+ //套餐检测项目处理
|
|
|
item.taoCanXiangMuList.forEach(it => {
|
|
item.taoCanXiangMuList.forEach(it => {
|
|
|
list2.push(it.id_)
|
|
list2.push(it.id_)
|
|
|
let listTo = 0
|
|
let listTo = 0
|
|
@@ -1219,9 +1144,6 @@
|
|
|
// }
|
|
// }
|
|
|
//end
|
|
//end
|
|
|
para.parameters[2].value = JSON.stringify(this.form)
|
|
para.parameters[2].value = JSON.stringify(this.form)
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
//数据添加到展示表上
|
|
//数据添加到展示表上
|
|
|
var lhwt = []
|
|
var lhwt = []
|
|
|
if (valueType == 2 || valueType == 3) {
|
|
if (valueType == 2 || valueType == 3) {
|