|
|
@@ -14,50 +14,17 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view v-for="(item,i) in resdata" :key="i" style="margin: 10rpx 20rpx;position: relative;" :style="[{top:'calc('+ CustomBar + 'px + 20rpx)'}]">
|
|
|
- <!-- 新增 -->
|
|
|
- <view>
|
|
|
- 检测委托单位:{{item.wei_tuo_dan_wei_}}
|
|
|
- </view>
|
|
|
|
|
|
- <uni-section :title="'合同编号:'+item.he_tong_ming_cheng_" :subTitle="'检测委托单号:'+item.wei_tuo_bian_hao_" type="line" padding>
|
|
|
- <view style=" display: flex; width: 100%; justify-content: space-between; ">
|
|
|
- <view>
|
|
|
- <view style="display: flex;align-items: center;">
|
|
|
- <view>委托日期:</view>
|
|
|
- <view>{{item.wei_tuo_ri_qi_}} </view>
|
|
|
- </view>
|
|
|
- <view style="display: flex;">
|
|
|
- <view>委托进度:</view>
|
|
|
- <view style="color: #5E00FF;"> {{item.zhuangtai}} </view>
|
|
|
- </view>
|
|
|
- <view style="display: flex;">
|
|
|
- <view>付款状态:</view>
|
|
|
- <view v-if="item.fu_kuan_zhuang_ta=='已结清'">
|
|
|
- <view style="color: #7349ff;"> 已结清 </view>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <view style="color: #7349ff;"> 未结清 </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view v-for="(item,index) in withdrawList" :key="item.id_" style="margin: 10rpx 20rpx;position: relative;" :style="[{top:'calc('+ CustomBar + 'px + 20rpx)'}]">
|
|
|
+ <jinduChild :item="item" :type="1" @editOrder="editOrder" @repulse="repulse"></jinduChild>
|
|
|
+ </view>
|
|
|
|
|
|
- <view style=" width: 100%; text-align: right; padding-top: 5rpx;padding-bottom: 0rpx;">
|
|
|
- <u-button class="m-r-15" type="error" size="mini" @click="repulse(item.id_,item.xiu_gai_bei_zhu_)" v-if="(item.wei_tuo_zhuang_ta == '待审核' || item.wei_tuo_zhuang_ta == '待审批') && item.shi_fou_guo_shen_ != '已退回'">
|
|
|
- 撤回申请
|
|
|
- </u-button>
|
|
|
- <u-button class="m-r-15" type="success" size="mini" @click="editOrder(item.id_,item.he_tong_bian_hao_,'1', 'edit',item.bao_gao_bian_zhi_)" v-if="item.wei_tuo_zhuang_ta == '待编制' || item.shi_fou_guo_shen_ == '已退回'">修改</u-button>
|
|
|
- <u-button class="m-r-15 btn-back-color" type="primary" size="mini" style="" @click="editOrder(item.id_,item.he_tong_bian_hao_,'0', 'detail',item.bao_gao_bian_zhi_)">明细
|
|
|
- </u-button>
|
|
|
- <!-- <u-button type="warning" size="mini" class="m-r-15" @click="getTag(item.id_)">样品标签</u-button>
|
|
|
- <u-button type="warning" size="mini" @click="goto(item.id_)">查看报告</u-button> -->
|
|
|
- </view>
|
|
|
- </uni-section>
|
|
|
+ <view v-for="(item,i) in resdata" :key="i" style="margin: 10rpx 20rpx;position: relative;" :style="[{top:'calc('+ CustomBar + 'px + 20rpx)'}]">
|
|
|
+ <jinduChild :item="item" :type="2" @editOrder="editOrder" @repulse="repulse"></jinduChild>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view v-if="resdata.length==0">
|
|
|
+ <view v-if="withdrawList.length == 0 && resdata.length == 0">
|
|
|
<uni-card is-full :is-shadow="false">
|
|
|
<text class="">暂无数据</text>
|
|
|
</uni-card>
|
|
|
@@ -72,6 +39,7 @@
|
|
|
|
|
|
<script>
|
|
|
import apply from '../jiance/list/apply.vue'
|
|
|
+ import jinduChild from '../jiance/order/jinduChild.vue'
|
|
|
import {
|
|
|
ACCESS_TOKEN,
|
|
|
USER_NAME,
|
|
|
@@ -82,7 +50,8 @@
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
- apply
|
|
|
+ apply,
|
|
|
+ jinduChild
|
|
|
},
|
|
|
// 初始化
|
|
|
data() {
|
|
|
@@ -90,6 +59,7 @@
|
|
|
id: '',
|
|
|
CustomBar: this.CustomBar,
|
|
|
resdata: [],
|
|
|
+ withdrawList: [],
|
|
|
current: 0,
|
|
|
total: 10,
|
|
|
pageSize: 10,
|
|
|
@@ -103,14 +73,12 @@
|
|
|
},
|
|
|
// 页面加载
|
|
|
onLoad: function() {
|
|
|
- this.getData(this.keyword)
|
|
|
+ this.search()
|
|
|
// this.getData(this.current, this.pageSize, this.total);
|
|
|
},
|
|
|
// 下拉刷新
|
|
|
onPullDownRefresh() {
|
|
|
- this.current = 0
|
|
|
- this.resdata = []
|
|
|
- this.getData(this.keyword)
|
|
|
+ this.search()
|
|
|
},
|
|
|
// 上拉加载
|
|
|
onReachBottom() {
|
|
|
@@ -128,15 +96,15 @@
|
|
|
search() {
|
|
|
this.current = 0
|
|
|
this.resdata = []
|
|
|
+ this.withdrawList = []
|
|
|
this.getData(this.keyword)
|
|
|
+ this.getWithdrawList(this.keyword)
|
|
|
},
|
|
|
/**
|
|
|
* 清除搜索框里面信息回调
|
|
|
*/
|
|
|
clear() {
|
|
|
- this.current = 0
|
|
|
- this.resdata = []
|
|
|
- this.getData(this.keyword)
|
|
|
+ this.search()
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
@@ -150,6 +118,30 @@
|
|
|
url: `/pages/jiance/order?id=${editId}&buttonFlag=${buttonFlag}&heTongBianHao=${heTongBianHao}&type=${type}&baoGaoBianZhi=${bao_gao_bian_zhi_}`
|
|
|
})
|
|
|
},
|
|
|
+ getWithdrawList(keyworks) {
|
|
|
+ let info = uni.getStorageSync(USER_INFO);
|
|
|
+ let useId = info.user.id
|
|
|
+
|
|
|
+
|
|
|
+ let sql =
|
|
|
+ `select tl.*,td.he_tong_bian_hao_ as he_tong_ming_cheng_ from t_lhwtsqb tl left join t_bjd td on tl.he_tong_id_ = td.id_ where (tl.create_by_ = '${useId}' or td.ke_hu_zhang_hao_ = '${useId}') and tl.wei_tuo_lei_xing_ = '客户委托' and tl.shi_fou_guo_shen_ = '已退回' and tl.wei_tuo_bian_hao_ like '%${keyworks}%' ORDER BY tl.create_time_ desc`
|
|
|
+ let requestData = this.$sig(sql)
|
|
|
+
|
|
|
+
|
|
|
+ this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
+ if (res.data.state == 200) {
|
|
|
+ const data = res.data.variables.data
|
|
|
+ // this.resdata.push(...data)
|
|
|
+ data.forEach((item, index) => {
|
|
|
+ this.getZhuangtai(item.wei_tuo_bian_hao_, (result) => {
|
|
|
+ this.$set(item, 'zhuangtai', result)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.withdrawList = data
|
|
|
+ uni.hideLoading()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
// 拉取委托列表数据
|
|
|
getData(keyworks) {
|
|
|
@@ -169,7 +161,7 @@
|
|
|
}
|
|
|
|
|
|
let sql =
|
|
|
- `select tl.*,td.he_tong_bian_hao_ as he_tong_ming_cheng_ from t_lhwtsqb tl left join t_bjd td on tl.he_tong_id_ = td.id_ where tl.create_by_ = '${useId}' or td.ke_hu_zhang_hao_ = '${useId}' and tl.wei_tuo_lei_xing_ = '客户委托' and tl.wei_tuo_bian_hao_ like '%${keyworks}%' ORDER BY tl.create_time_ desc LIMIT ${page},10`
|
|
|
+ `select tl.*,td.he_tong_bian_hao_ as he_tong_ming_cheng_ from t_lhwtsqb tl left join t_bjd td on tl.he_tong_id_ = td.id_ where (tl.create_by_ = '${useId}' or td.ke_hu_zhang_hao_ = '${useId}') and tl.wei_tuo_lei_xing_ = '客户委托' and tl.shi_fou_guo_shen_ != '已退回' and tl.wei_tuo_bian_hao_ like '%${keyworks}%' ORDER BY tl.create_time_ desc LIMIT ${page},10`
|
|
|
let requestData = this.$sig(sql)
|
|
|
|
|
|
|
|
|
@@ -295,8 +287,8 @@
|
|
|
color: black;
|
|
|
}
|
|
|
|
|
|
- /deep/ .uni-section__content-sub {
|
|
|
+ /* /deep/ .uni-section__content-sub {
|
|
|
color: rgb(51, 51, 51);
|
|
|
font-size: 28rpx;
|
|
|
- }
|
|
|
+ } */
|
|
|
</style>
|