|
|
@@ -44,91 +44,81 @@
|
|
|
v-if="index == lhypbIndex">
|
|
|
<u-form-item label="样品名称" prop="yangPinMingCheng" required>
|
|
|
<text>{{item.yangPinMingCheng}}</text>
|
|
|
- <!-- <u-input placeholder="请输入样品名称" v-model="item.yangPinMingCheng"
|
|
|
- :disabled="type == 'detail'?true :false" /> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品编号">
|
|
|
<text>{{item.yangPinBianHao}}</text>
|
|
|
- <!-- <u-input placeholder="请输入样品编号" v-model="item.yangPinBianHao" disabled /> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="姓名">
|
|
|
<text>{{item.xingMing}}</text>
|
|
|
- <!-- <u-input placeholder="请输入姓名" v-model="item.xingMing" :disabled="type == 'detail'?true :false" /> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="性别">
|
|
|
<text>{{item.xingBie}}</text>
|
|
|
- <!-- <u-radio-group v-model="item.xingBie" v-if="type != 'detail'">
|
|
|
- <u-radio v-for="(it, index) in sexList" :key="index" :name="it.name">
|
|
|
- {{it.name}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- <text v-else>{{item.xingBie}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="年龄">
|
|
|
<text>{{item.nianLing}}</text>
|
|
|
- <!-- <u-input placeholder="请输入年龄" v-model="item.nianLing" /> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="送检批号/编号" prop="songJianPiHao" required>
|
|
|
<text>{{item.songJianPiHao}}</text>
|
|
|
- <!-- <u-input placeholder="请输入送检批号/编号" v-model="item.songJianPiHao"
|
|
|
- :disabled="type == 'detail'?true :false" /> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样本状态" prop="yangPinZhuangTai" required>
|
|
|
<text>{{item.yangPinZhuangTai}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样本状态" type="select" v-model="item.yangPinZhuangTai"
|
|
|
- @click="sheetClick('state',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinZhuangTai}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="送检时间" prop="songJianShiJian" required>
|
|
|
<text>{{item.songJianShiJian}}</text>
|
|
|
- <!-- <u-input placeholder="请选择送检时间" type="select" v-model="item.songJianShiJian"
|
|
|
- @click="dateClick('inspect',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.songJianShiJian}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="备注">
|
|
|
<text>{{item.beiZhu1}}</text>
|
|
|
- <!-- <u-input placeholder="请输入备注" v-model="item.beiZhu1" :disabled="type == 'detail'?true :false" /> -->
|
|
|
</u-form-item>
|
|
|
- <!-- <u-form-item label="检测类型" v-if="type != 'detail'">
|
|
|
- <u-input placeholder="请选择检测类型" type="select" v-model="item.jianCeType"
|
|
|
- @click="selectClick('jianCeType',index)" />
|
|
|
- </u-form-item> -->
|
|
|
|
|
|
- <u-form-item label="检测项目" prop="name" label-position="top">
|
|
|
- <!-- <checkbox-group v-for="(it, x) in item.jianCeList" :key="x" @click="changeIndex(it,index,x)"
|
|
|
- v-if="type != 'detail'">
|
|
|
- <label class=" uni-list-cell uni-list-cell-pd"
|
|
|
- v-show="(it.jian_ce_lei_bie_==item.jianCeType) || it.checked"
|
|
|
- style="display: flex;margin: 15rpx 10rpx;font-size: 20rpx;line-height: 40rpx;">
|
|
|
- <view>
|
|
|
- <checkbox :checked="it.checked" :value="it.id_" />
|
|
|
- </view>
|
|
|
- <view style="margin-left: 10rpx;font-size: 28rpx;">
|
|
|
- <view>
|
|
|
- {{it.jian_ce_lei_bie_ || ''}}-{{it.jian_ce_xiang_mu_ || ''}}
|
|
|
- <text style="color: red;">[{{it.zhe_hou_jia_ge_ || '当'}}元]</text>
|
|
|
+ <view>
|
|
|
+ <view class="qingshe" style="background-color: #99cc66;">
|
|
|
+ <view class="qingTitle" style="color: #FFFFFF;">
|
|
|
+ 常规项目
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <u-form-item label="检测项目" prop="name" label-position="top">
|
|
|
+ <view v-for="(it, x) in item.jianCeList" :key="x" v-if="it.checked">
|
|
|
+ <view class="uni-list-cell uni-list-cell-pd">
|
|
|
+ <view
|
|
|
+ style="margin-left: 10rpx;font-size: 28rpx;line-height: 40rpx;background: #eee;padding: 10rpx;">
|
|
|
+ <view>
|
|
|
+ {{it.xiang_mu_bian_hao || ''}}-{{it.jian_ce_xiang_mu_ || ''}}[{{it.zhe_hou_jia_ge_ || ''}}元]
|
|
|
+ </view>
|
|
|
+ <view>{{it.yi_ju_de_biao_zhu || ''}}</view>
|
|
|
+ <view>报告周期(工作日):{{it.bao_gao_zhou_qi_g || '当'}}天</view>
|
|
|
+ <view>送样要求:{{it.yang_pin_tiao_jia || ''}}</view>
|
|
|
</view>
|
|
|
- <view>{{it.yi_ju_de_biao_zhu || ''}}</view>
|
|
|
- <view>报告周期(工作日):{{it.bao_gao_zhou_qi_g || '当'}}天</view>
|
|
|
- <view>送样要求:{{it.yang_pin_tiao_jia || ''}}</view>
|
|
|
</view>
|
|
|
- </label>
|
|
|
- </checkbox-group> -->
|
|
|
- <!-- && type=='detail' -->
|
|
|
- <view v-for="(it, x) in item.jianCeList" :key="x" v-if="it.checked">
|
|
|
- <view class="uni-list-cell uni-list-cell-pd">
|
|
|
- <view
|
|
|
- style="margin-left: 10rpx;font-size: 28rpx;line-height: 40rpx;background: #eee;padding: 10rpx;">
|
|
|
- <view>
|
|
|
- {{it.jian_ce_lei_bie_ || ''}}-{{it.jian_ce_xiang_mu_ || ''}}[{{it.zhe_hou_jia_ge_ || ''}}元]
|
|
|
+ </view>
|
|
|
+ </u-form-item>
|
|
|
+ </view>
|
|
|
+ <view v-if="item.taoCanXiangMuList && item.taoCanXiangMuList.length > 0">
|
|
|
+ <view class="qingshe" style="background-color: #99cc66;margin-bottom: 20rpx;" v-if="taoCanShow">
|
|
|
+ <view class="qingTitle" style="color: #FFFFFF;">
|
|
|
+ 套餐
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <u-form-item label="套餐选择" label-position="top">
|
|
|
+ <view class="btnBox">
|
|
|
+ <u-tag class="btnSin" size="default" :text="it.tao_can_ming_chen" v-if="it.checked"
|
|
|
+ v-for="(it, x) in item.taoCanList" :key="x" />
|
|
|
+ </view>
|
|
|
+ </u-form-item>
|
|
|
+ <view>
|
|
|
+ <view>
|
|
|
+ <view v-for="(it, x) in item.taoCanXiangMuList" :key="x">
|
|
|
+ <view class="jiancexiangm">
|
|
|
+ <view>
|
|
|
+ {{it.xiang_mu_bian_hao || ''}}-{{it.jian_ce_xiang_mu_ || ''}}
|
|
|
+ <text style="color: red;">[{{it.zhe_hou_jia_ge_ || '当'}}元]</text>
|
|
|
+ </view>
|
|
|
+ <view>{{it.yi_ju_de_biao_zhu || ''}}</view>
|
|
|
</view>
|
|
|
- <view>{{it.yi_ju_de_biao_zhu || ''}}</view>
|
|
|
- <view>报告周期(工作日):{{it.bao_gao_zhou_qi_g || '当'}}天</view>
|
|
|
- <view>送样要求:{{it.yang_pin_tiao_jia || ''}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </u-form-item>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
<view class="qingshe" @click="item.showBoolean1 = !item.showBoolean1">
|
|
|
<view>
|
|
|
@@ -142,28 +132,15 @@
|
|
|
<block v-if="item.showBoolean1">
|
|
|
<u-form-item label="样品类型①">
|
|
|
<text>{{item.yangPinLeiXing}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品类型①" type="select" v-model="item.yangPinLeiXing"
|
|
|
- @click="sheetClick('yangpinType1',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinLeiXing}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品运输条件①">
|
|
|
<text>{{item.yangBenYunShuTiao}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品运输条件①" type="select" v-model="item.yangBenYunShuTiao"
|
|
|
- @click="sheetClick('transportType1',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangBenYunShuTiao}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="数量①">
|
|
|
<text>{{item.shuLiang}}</text>
|
|
|
- <!-- <uni-number-box v-model="item.shuLiang" v-if="type != 'detail'"></uni-number-box>
|
|
|
- <text v-else>{{item.shuLiang}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品规格①">
|
|
|
<text>{{item.yangPinGuiGe}}</text>
|
|
|
- <!-- <u-input placeholder="请输入样品规格①" v-model="item.yangPinGuiGe" v-if="type != 'detail'" />
|
|
|
- <u-button slot="right" type="success" size="mini" @click="sheetClick('specification1',index)"
|
|
|
- v-if="type != 'detail'">规格
|
|
|
- </u-button>
|
|
|
- <text v-else>{{item.yangPinGuiGe}}</text> -->
|
|
|
</u-form-item>
|
|
|
</block>
|
|
|
|
|
|
@@ -179,28 +156,15 @@
|
|
|
<block v-if="item.showBoolean2">
|
|
|
<u-form-item label="样品类型②">
|
|
|
<text>{{item.yangPinLeiXingEr}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品类型②" type="select" v-model="item.yangPinLeiXingEr"
|
|
|
- @click="sheetClick('yangpinType2',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinLeiXingEr}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品运输条件②">
|
|
|
<text>{{item.yangPinYunShuTiao}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品运输条件②" type="select" v-model="item.yangPinYunShuTiao"
|
|
|
- @click="sheetClick('transportType2',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinYunShuTiao}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="数量②">
|
|
|
<text>{{item.shuLiangEr}}</text>
|
|
|
- <!-- <uni-number-box v-model="item.shuLiangEr" v-if="type != 'detail'"></uni-number-box>
|
|
|
- <text v-else>{{item.shuLiangEr}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品规格②">
|
|
|
<text>{{item.yangPinGuiGeEr}}</text>
|
|
|
- <!-- <u-input placeholder="请输入样品规格②" v-model="item.yangPinGuiGeEr" v-if="type != 'detail'" />
|
|
|
- <u-button slot="right" type="success" size="mini" @click="sheetClick('specification2',index)"
|
|
|
- v-if="type != 'detail'">规格
|
|
|
- </u-button>
|
|
|
- <text v-else>{{item.yangPinGuiGeEr}}</text> -->
|
|
|
</u-form-item>
|
|
|
</block>
|
|
|
|
|
|
@@ -216,28 +180,15 @@
|
|
|
<block v-if="item.showBoolean3">
|
|
|
<u-form-item label="样品类型③">
|
|
|
<text>{{item.yangPinLeiXingSan}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品类型③" type="select" v-model="item.yangPinLeiXingSan"
|
|
|
- @click="sheetClick('yangpinType3',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinLeiXingSan}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品运输条件③">
|
|
|
<text>{{item.yangPinYunShuSan}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品运输条件③" type="select" v-model="item.yangPinYunShuSan"
|
|
|
- @click="sheetClick('transportType3',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinYunShuSan}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="数量③">
|
|
|
<text>{{item.shuLiangSan}}</text>
|
|
|
- <!-- <uni-number-box v-model="item.shuLiangSan" v-if="type != 'detail'"></uni-number-box>
|
|
|
- <text v-else>{{item.shuLiangSan}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品规格③">
|
|
|
<text>{{item.yangPinGuiGeSan}}</text>
|
|
|
- <!-- <u-input placeholder="请输入样品规格③" v-model="item.yangPinGuiGeSan" v-if="type != 'detail'" />
|
|
|
- <u-button slot="right" type="success" size="mini" @click="sheetClick('specification3',index)"
|
|
|
- v-if="type != 'detail'">规格
|
|
|
- </u-button>
|
|
|
- <text v-else>{{item.yangPinGuiGeSan}}</text> -->
|
|
|
</u-form-item>
|
|
|
</block>
|
|
|
|
|
|
@@ -253,38 +204,22 @@
|
|
|
<block v-if="item.showBoolean4">
|
|
|
<u-form-item label="样品类型④">
|
|
|
<text>{{item.yangPinLeiXingSi}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品类型④" type="select" v-model="item.yangPinLeiXingSi"
|
|
|
- @click="sheetClick('yangpinType4',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinLeiXingSi}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品运输条件④">
|
|
|
<text>{{item.yangPinYunShuSi}}</text>
|
|
|
- <!-- <u-input placeholder="请选择样品运输条件④" type="select" v-model="item.yangPinYunShuSi"
|
|
|
- @click="sheetClick('transportType4',index)" v-if="type != 'detail'" />
|
|
|
- <text v-else>{{item.yangPinYunShuSi}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="数量④">
|
|
|
<text>{{item.shuLiangSi}}</text>
|
|
|
- <!-- <uni-number-box v-model="item.shuLiangSi" v-if="type != 'detail'"></uni-number-box>
|
|
|
- <text v-else>{{item.shuLiangSi}}</text> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品规格④">
|
|
|
<text>{{item.yangPinGuiGeSi}}</text>
|
|
|
- <!-- <u-input placeholder="请输入样品规格④" v-model="item.yangPinGuiGeSi" v-if="type != 'detail'" />
|
|
|
- <u-button slot="right" type="success" size="mini" @click="sheetClick('specification4',index)"
|
|
|
- v-if="type != 'detail'">规格
|
|
|
- </u-button>
|
|
|
- <text v-else>{{item.yangPinGuiGeSi}}</text> -->
|
|
|
</u-form-item>
|
|
|
</block>
|
|
|
<u-form-item label="项目名称" prop="xiangMuMingCheng" v-if="form.weiTuoHeTong == '技术服务协议'">
|
|
|
<text>{{item.xiangMuMingCheng}}</text>
|
|
|
- <!-- <u-input placeholder="请输入项目名称" v-model="item.xiangMuMingCheng"
|
|
|
- :disabled="type == 'detail'?true :false" /> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="样品总价" prop="yangPinZongJia">
|
|
|
<text>{{item.yangPinZongJia}}</text>
|
|
|
- <!-- <u-input v-model="item.yangPinZongJia" disabled /> -->
|
|
|
</u-form-item>
|
|
|
|
|
|
<u-button type="error" class="btn" @click="deletSing(index)" v-if="type != 'detail'">
|
|
|
@@ -390,10 +325,10 @@
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
|
|
|
- <u-popup v-model="lhypbShow" mode="bottom" height="80%">
|
|
|
+ <u-popup v-model="lhypbShow" mode="bottom" height="80%" border-radius="20">
|
|
|
<view>
|
|
|
- <lhypb-message ref="lhypbMessage" :jianCeTypeList="jianCeTypeList" @deletClick="deletClick"
|
|
|
- @sumbitSingClick="sumbitSingClick">
|
|
|
+ <lhypb-message ref="lhypbMessage" :jianCeTypeList="jianCeTypeList" :taoCanShow="taoCanShow"
|
|
|
+ :heTongId="form.heTongId" @deletClick="deletClick" @sumbitSingClick="sumbitSingClick">
|
|
|
</lhypb-message>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
@@ -552,12 +487,17 @@
|
|
|
lhypbIndexData: 'add', //判断样品添加还是修改
|
|
|
buttonFlagNum: '',
|
|
|
|
|
|
- taoCanList: []
|
|
|
+ taoCanList: [],
|
|
|
+ taoCanShow: true,
|
|
|
+ taoCanXiangmMuList: []
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ //一开始查合同 如果修改或者明细 传option.id
|
|
|
+ this.getDataHetong(options.id)
|
|
|
this.getInit()
|
|
|
if (options.saveId) { //是不是暂存信息
|
|
|
+ this.buttonFlagNum = '3'
|
|
|
this.saveId = options.saveId
|
|
|
this.getSaveData(options.saveId)
|
|
|
} else if (options.type && options.type != '') { //是不是修改信息
|
|
|
@@ -567,7 +507,7 @@
|
|
|
}
|
|
|
if (options.id) { //是不是修改信息
|
|
|
this.id = options.id
|
|
|
- this.getDe(options.id)
|
|
|
+ // this.getDe(options.id)
|
|
|
|
|
|
if (options.type == 'edit') {
|
|
|
this.getTaskId(options.id)
|
|
|
@@ -608,7 +548,7 @@
|
|
|
if (info.org !== null) {
|
|
|
this.orgId = info.org.id || ''
|
|
|
}
|
|
|
- this.getDataHetong()
|
|
|
+ // this.getDataHetong()
|
|
|
|
|
|
//获取时间
|
|
|
let nowDate = new Date((new Date).getTime() + 8 * 60 * 60 * 1000)
|
|
|
@@ -653,6 +593,14 @@
|
|
|
const data = res.data.variables.data[0]
|
|
|
if (data.count > 0) {
|
|
|
this.getLhwtdh()
|
|
|
+
|
|
|
+ if (this.form.lhypb.length > 0) {
|
|
|
+ this.form.lhypb.forEach((item, index) => {
|
|
|
+ this.getLhypbh(res => {
|
|
|
+ item.yangPinBianHao = res
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -702,8 +650,9 @@
|
|
|
} else {
|
|
|
this.total = parseFloat(result.zong_jia_)
|
|
|
}
|
|
|
-
|
|
|
- this.getJiance(result.he_tong_id_, this.type, id)
|
|
|
+ this.getTaoCanXiangMu(result.he_tong_id_)
|
|
|
+ this.hetongChange(result.he_tong_id_, this.type, id)
|
|
|
+ // this.getJiance(result.he_tong_id_, this.type, id)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -717,13 +666,31 @@
|
|
|
let result = res.data.variables.data
|
|
|
let list = service.getListForm(result, this.jianCeList)
|
|
|
this.form.lhypb = list
|
|
|
+
|
|
|
+ this.form.lhypb.forEach(item => {
|
|
|
+ let taoCanList = JSON.parse(JSON.stringify(this.taoCanList))
|
|
|
+ let xuanZeTaoCan = item.xuanZeTaoCan.split(',')
|
|
|
+
|
|
|
+ taoCanList.forEach(ite => {
|
|
|
+ let show = xuanZeTaoCan.some(it => it == ite.id_)
|
|
|
+ if (show) {
|
|
|
+ ite.checked = true
|
|
|
+ } else {
|
|
|
+ ite.checked = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ item.taoCanList = taoCanList
|
|
|
+ item.taoCanXiangMuList = this.taoCanXiangmMuList
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
|
|
|
//获取合同 //weiTouId 委托id特殊 在委托详情和修改才出现
|
|
|
- getDataHetong() {
|
|
|
+ getDataHetong(weiTouId) {
|
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
|
if (info == undefined) {
|
|
|
return;
|
|
|
@@ -756,24 +723,30 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ if (weiTouId) {
|
|
|
+ this.getDe(weiTouId)
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- //选择合同
|
|
|
- hetongChange(e) {
|
|
|
+ //选择合同 e 合同id type 判断这个是否添加add 还是 修改 明细 detail id 委托单id
|
|
|
+ hetongChange(e, type = '', weiTouId = '') {
|
|
|
//从合同中选择付款方式
|
|
|
if (e != '') {
|
|
|
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_
|
|
|
- this.form.weiTuoDanWei = data.zhuan_huan_ke_hu_
|
|
|
- this.form.songJianDanWei = data.zhuan_huan_ke_hu_
|
|
|
- this.form.weiTuoFangLianXiD = data.dian_hua_
|
|
|
- this.form.weiTuoFangLianXiR = data.lian_xi_ren_
|
|
|
- this.form.weiTuoFangMingChe = data.ke_hu_dang_wei
|
|
|
- this.getJiance(e, '')
|
|
|
+ if (type == '') {
|
|
|
+ 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_ || ''
|
|
|
+ this.form.weiTuoDanWei = data.zhuan_huan_ke_hu_ || ''
|
|
|
+ this.form.songJianDanWei = data.zhuan_huan_ke_hu_ || ''
|
|
|
+ this.form.weiTuoFangLianXiD = data.dian_hua_ || ''
|
|
|
+ this.form.weiTuoFangLianXiR = data.lian_xi_ren_ || ''
|
|
|
+ this.form.weiTuoFangMingChe = data.ke_hu_dang_wei || ''
|
|
|
+ }
|
|
|
+
|
|
|
+ this.getJiance(e, type, weiTouId)
|
|
|
this.getTaoCanList(data.xuan_ze_tao_can_)
|
|
|
}
|
|
|
},
|
|
|
@@ -828,10 +801,23 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- //根据合同查询套餐
|
|
|
- getTaoCanList(id) {
|
|
|
+ //获取属于合同套餐的全部项目
|
|
|
+ getTaoCanXiangMu(heTongid) {
|
|
|
+ let sql =
|
|
|
+ `select tm.*,tt.zhe_hou_jia_ge_,tt.tao_can_zhu_jian_,tt.id_ as tczbId from t_mjjcnlfw tm,t_httcb tt where tm.id_ = tt.jian_ce_xiang_mu_ and parent_id_ = '${heTongid}'`
|
|
|
+ let requestData = this.$sig(sql)
|
|
|
+ this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
+ if (res.data.state == 200) {
|
|
|
+ const datas = res.data.variables.data
|
|
|
+ this.taoCanXiangmMuList = datas
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //根据合同查询套餐 1根据合同人套餐id里面选择套餐 2.根据合同id选择套餐
|
|
|
+ getTaoCanList(id, type) {
|
|
|
let sql =
|
|
|
`select * from t_jctc where FIND_IN_SET(id_,'${id}')`
|
|
|
+
|
|
|
let requestData = this.$sig(sql)
|
|
|
this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
|
@@ -839,7 +825,7 @@
|
|
|
if (datas.length > 0) {
|
|
|
this.taoCanShow = true
|
|
|
datas.forEach(item => {
|
|
|
- this.$set(item, 'chacked', false)
|
|
|
+ this.$set(item, 'checked', false)
|
|
|
})
|
|
|
this.taoCanList = datas
|
|
|
} else {
|
|
|
@@ -881,8 +867,14 @@
|
|
|
itemTotal += parseFloat(it.zhe_hou_jia_ge_ || 0)
|
|
|
}
|
|
|
})
|
|
|
+ item.taoCanXiangMuList.forEach((it, x) => {
|
|
|
+ total += parseFloat(it.zhe_hou_jia_ge_ || 0)
|
|
|
+ itemTotal += parseFloat(it.zhe_hou_jia_ge_ || 0)
|
|
|
+ })
|
|
|
item.yangPinZongJia = (itemTotal).toFixed(2)
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
this.form.zongJia = total
|
|
|
this.total = total
|
|
|
this.getMultiple()
|
|
|
@@ -899,56 +891,28 @@
|
|
|
},
|
|
|
//调用日期组件
|
|
|
dateClick(type, index) {
|
|
|
- // if (type == 'inspect') {
|
|
|
- // this.type = type
|
|
|
- // this.mode = 'date'
|
|
|
- // this.dateShow = true
|
|
|
- // this.listIndex = index
|
|
|
- // }
|
|
|
+ this.listType = type
|
|
|
if (type == 'report') {
|
|
|
- this.type = type
|
|
|
this.mode = 'date'
|
|
|
this.dateShow = true
|
|
|
}
|
|
|
if (type == 'weiTuo') {
|
|
|
- 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') {
|
|
|
+ if (this.listType == 'report') {
|
|
|
this.form.chuBaoGaoShiJian = e.result
|
|
|
}
|
|
|
- if (this.type == 'weiTuo') {
|
|
|
+ if (this.listType == 'weiTuo') {
|
|
|
this.form.weiTuoRiQi = 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
|
|
|
}
|
|
|
@@ -959,55 +923,6 @@
|
|
|
actionSheetCallback(e) {
|
|
|
let that = this
|
|
|
let lists = that.form.lhypb[this.listIndex]
|
|
|
-
|
|
|
- // if (this.listType == 'state') {
|
|
|
- // lists.yangPinZhuangTai = 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
|
|
|
}
|
|
|
@@ -1071,6 +986,12 @@
|
|
|
]
|
|
|
}
|
|
|
|
|
|
+ //如果是暂存数据 id清楚
|
|
|
+ if (this.buttonFlagNum === '3') {
|
|
|
+ this.form.id = ''
|
|
|
+ this.form.zhanShiBiaoId = this.generateUUID()
|
|
|
+ }
|
|
|
+
|
|
|
this.form.shiFouGuoShen = "已编制"
|
|
|
this.form.bianZhiRen = this.userid
|
|
|
this.form.bianZhiShiJian = this.time
|
|
|
@@ -1079,6 +1000,15 @@
|
|
|
this.form.fuKuanZhuangTai = '未结清'
|
|
|
|
|
|
this.form.lhypb.forEach((item, index) => {
|
|
|
+ if (this.buttonFlagNum === '3') {
|
|
|
+ item.id = ''
|
|
|
+ item.parentId = ''
|
|
|
+ }
|
|
|
+ let list1 = []
|
|
|
+ let list2 = []
|
|
|
+ let list3 = []
|
|
|
+ let list4 = []
|
|
|
+ let list5 = []
|
|
|
item.jianCeXiangMu2 = []
|
|
|
item.weiTuoDanHao = this.form.weiTuoBianHao
|
|
|
item.weiTuoDanWei = this.form.weiTuoDanWei
|
|
|
@@ -1094,6 +1024,26 @@
|
|
|
item.yangPinZongShu = parseInt(item.shuLiangSi) + parseInt(item.shuLiangSan) + parseInt(item
|
|
|
.shuLiangEr) +
|
|
|
parseInt(item.shuLiang)
|
|
|
+
|
|
|
+ item.taoCanList.forEach(it => {
|
|
|
+ if (it.checked) {
|
|
|
+ list1.push(it.id_)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ item.xuanZeTaoCan = list1.join(',')
|
|
|
+
|
|
|
+ if (item.taoCanXiangMuList.length > 0) {
|
|
|
+ item.taoCanXiangMuList.forEach(it => {
|
|
|
+ list2.push(it.id_)
|
|
|
+ list3.push(it.zhe_hou_jia_ge_)
|
|
|
+ list4.push(it.jian_ce_xiang_mu_)
|
|
|
+ list5.push(it.tczbId)
|
|
|
+ })
|
|
|
+ item.taoCanZiBiaoId = list5.join(',')
|
|
|
+ item.taoCanMingCheng = list4.join(',')
|
|
|
+ item.taoCanJiaGe = list3.join(',')
|
|
|
+ item.taoCanXiangMu = list2.join(',')
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
//委托提交判断
|
|
|
@@ -1283,7 +1233,6 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
}
|
|
|
- console.log("9")
|
|
|
|
|
|
this.getLhypbh(res => {
|
|
|
let obj = {
|
|
|
@@ -1338,11 +1287,17 @@
|
|
|
showBoolean4: false,
|
|
|
mingChengShow: false,
|
|
|
|
|
|
- taoCanList: JSON.parse(JSON.stringify(this.taoCanList))
|
|
|
+ taoCanList: JSON.parse(JSON.stringify(this.taoCanList)),
|
|
|
+ taoCanXiangMuList: [],
|
|
|
+
|
|
|
+ taoCanZiBiaoId: '',
|
|
|
+ taoCanMingCheng: '',
|
|
|
+ taoCanJiaGe: '',
|
|
|
+ taoCanXiangMu: '',
|
|
|
+ xuanZeTaoCan: ''
|
|
|
}
|
|
|
this.lhypbShow = true
|
|
|
this.lhypbIndexData = 'add'
|
|
|
- console.log("555")
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.lhypbMessage.getInit(obj)
|
|
|
})
|
|
|
@@ -1468,6 +1423,31 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .jiancexiangm {
|
|
|
+ padding: 10rpx 30rpx;
|
|
|
+ // width: 100%;
|
|
|
+ padding: 20rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ background-color: #f1f1f1;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ color: #606266;
|
|
|
+
|
|
|
+ view {
|
|
|
+ line-height: 30rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .btnBox {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ .btnSin {
|
|
|
+ margin: 10rpx 5rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/deep/ .uni-group__content {
|
|
|
padding: 15rpx 25rpx;
|
|
|
}
|