copy from pages/MJGL/mujubaoyangjiludan/mouldMaintainRecordBillList.vue
copy to pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBillList.vue
| File was copied from pages/MJGL/mujubaoyangjiludan/mouldMaintainRecordBillList.vue |
| | |
| | | </view> |
| | | <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view> |
| | | <scroll-view id="pageContent" scroll-y class="page-content" :style="{height: pageContentHeight + 'px'}"> |
| | | <view v-for="(item,index) in listData" :key="index"> |
| | | <uni-card :title="item.产品模具" :extra="item.单据号" style="margin: 10px;" |
| | | <view class="list" v-for="(item,index) in listData" :key="index"> |
| | | <uni-card :title="item.单据状态" :extra="item.单据号" style="margin: 10px;" |
| | | @tap="showDetail = showDetail==index?-1:index"> |
| | | <view class="card-detail"> |
| | | <view class="detail" v-if="item.产品模具编码"> |
| | | <text>产品模具编码:</text>{{item.产品模具编码}} |
| | | <view class="detail" v-if="item.产品名称"> |
| | | <text>产品名称:</text>{{item.产品名称}} |
| | | </view> |
| | | <view class="detail" v-if="item.保养计划编号"> |
| | | <text>保养计划编号:</text>{{item.保养计划编号}} |
| | | <view class="detail" v-if="item.主题"> |
| | | <text>主题:</text>{{item.主题}} |
| | | </view> |
| | | <view class="detail" v-if="item.保养规程编号"> |
| | | <text>保养规程编号:</text>{{item.保养规程编号}} |
| | | <view class="detail" v-if="item.内容"> |
| | | <text>内容:</text>{{item.内容}} |
| | | </view> |
| | | <view class="detail" v-if="item.保养开始日期"> |
| | | <text>保养开始日期:</text>{{item.保养开始日期.substr(0,10)}} |
| | | <view class="detail" v-if="item.异常类型"> |
| | | <text>异常类型:</text>{{item.异常类型}} |
| | | </view> |
| | | <view class="detail" v-if="item.保养结束日期"> |
| | | <text>保养结束日期:</text>{{item.保养结束日期.substr(0,10)}} |
| | | <view class="detail" v-if="item.发送部门"> |
| | | <text>发送部门:</text>{{item.发送部门}} |
| | | </view> |
| | | <view class="detail" v-if="item.最终结论"> |
| | | <text>最终结论:</text>{{item.最终结论}} |
| | | <view class="detail" v-if="item.接收部门"> |
| | | <text>接收部门:</text>{{item.接收部门}} |
| | | </view> |
| | | <view class="detail" v-if="item.发送人"> |
| | | <text>发送人:</text>{{item.发送人}} |
| | | </view> |
| | | <view class="detail" v-if="item.签到人"> |
| | | <text>签到人:</text>{{item.签到人}} |
| | | </view> |
| | | <view class="detail" v-if="item.抄送人"> |
| | | <text>抄送人:</text>{{item.抄送人}} |
| | | </view> |
| | | <view class="detail" v-if="item.设备名称"> |
| | | <text>设备名称:</text>{{item.设备名称}} |
| | | </view> |
| | | <view class="detail" v-if="item.模治具名称"> |
| | | <text>模治具名称:</text>{{item.模治具名称}} |
| | | </view> |
| | | <view class="detail" v-if="item.异常反馈单号"> |
| | | <text>异常反馈单号:</text>{{item.异常反馈单号}} |
| | | </view> |
| | | </view> |
| | | <view class="card-detail" v-if="showDetail == index"> |
| | |
| | | </view> |
| | | |
| | | <view class="op" v-if="operations == index"> |
| | | <button class="op1" size="mini" plain @tap.stop="toSon(item)">子表信息</button> |
| | | <button class="op3" size="mini" plain @tap.stop="edit(item)">编辑</button> |
| | | <button class="op4" size="mini" plain @tap.stop="del(item)">删除</button> |
| | | <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button> |
| | |
| | | } from '@/utils/common.js' |
| | | import { |
| | | getUserInfo |
| | | } from '../../../utils/auth' |
| | | } from '../../../../utils/auth' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | get_DisplayPage(sWhere) { |
| | | CommonUtils.doRequest2({ |
| | | url: '/Sc_MouldMaintainBill/GetMouldMaintainBillListPage', |
| | | url: '/Sc_MESTransFerWorkBill/Get_OA_ErrMsgBackSignBillListPage', |
| | | data: { |
| | | "sWhere": sWhere, |
| | | "user": getUserInfo()["Czymc"], |
| | |
| | | this.onSearchClickHandler() |
| | | this.goTop() |
| | | }, |
| | | // 新增模具保养记录单 |
| | | // 新增异常反馈单 |
| | | onAddClickHandler() { |
| | | uni.navigateTo({ |
| | | url: "/pages/MJGL/mujubaoyangjiludan/form" |
| | | url: "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill?OperationType=1" |
| | | }) |
| | | }, |
| | | //编辑保养记录单 |
| | | //编辑异常反馈签到单 |
| | | edit(item) { |
| | | console.log(item) |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/mujubaoyangjiludan/form?hmainid=' + item.hmainid |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill?OperationType=3&hmainid=' + |
| | | item.hmainid |
| | | }) |
| | | }, |
| | | //删除保养记录单 |
| | | //删除异常反馈签到单 |
| | | del(item) { |
| | | uni.showModal({ |
| | | title: '删除确认', |
| | |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | | CommonUtils.doRequest2({ |
| | | url: '/Sc_MouldMaintainBill/DeltetSc_MouldMaintainBill', |
| | | url: '/Sc_MESTransFerWorkBill/DeleteOA_ErrMsgBackSignBill', |
| | | data: { |
| | | HInterID: item['hmainid'], |
| | | user: getUserInfo()['Czymc'] |
| | |
| | | console.log('用户点击取消'); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | //子表查看 |
| | | toSon(item) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/mujubaoyangjiludan/mouldMaintainRecordBillList_son?HInterID=' + item.hmainid + '&产品模具=' + item |
| | | .产品模具 + '&产品模具代码=' + item.产品模具代码, |
| | | }); |
| | | } |
| | | }, |