Browse Source

工单添加查看来源申请单

xiaohaizhao 1 year ago
parent
commit
b3fd85ef68

+ 6 - 0
Eservice/workOrderDetail/index.js

@@ -12,6 +12,12 @@ Page({
       url: '/Eservice/agent/billCanUseProduct/index?id=' + this.data.billData.sa_workorderid
     })
   },
+  toServiceBillDetail() {
+    console.log("查看来源申请单")
+    wx.navigateTo({
+      url: '/Eservice/saler/serviceBillDetail/index?id=' + this.data.billData.sa_serviceorderid,
+    })
+  },
   // 添加物料
   async getAdd(selection) {
     let arr = selection.map(e => {

+ 20 - 13
Eservice/workOrderDetail/index.scss

@@ -1,42 +1,49 @@
-page{
+page {
   background-color: #f1f2f3;
 }
-.type{
+
+.type {
   padding: 5px;
   font-size: 22rpx;
-  color:#fff;
+  color: #fff;
   letter-spacing: 3px;
   writing-mode: vertical-lr;
   background: #4F7BFD;
   border-radius: 3px;
-  margin-right:5px ;
+  margin-right: 5px;
 }
-.flex-column-between{
+
+.flex-column-between {
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }
-.small{
+
+.small {
   font-size: 26rpx;
-  color:#333;
+  color: #333;
   line-height: 25px;
 }
-.mr-5{
+
+.mr-5 {
   margin-right: 5px;
 }
-.mt-5{
+
+.mt-5 {
   margin-bottom: 5px;
 }
-.textIndentNodeChild{
+
+.textIndentNodeChild {
   padding-left: 10px;
 }
-.smallChild{
+
+.smallChild {
   font-size: 24rpx;
-  color:#666
+  color: #666
 }
 
-.footer{
+.footer {
   width: 100vw;
   position: fixed;
   bottom: 0;

+ 4 - 1
Eservice/workOrderDetail/index.wxml

@@ -19,8 +19,11 @@
     </view>
   </card>
   <card>
-    <view slot="content">
+    <view style="position: relative;" slot="content">
       <view style="margin-bottom: 5px;" class="small"><text class="label">工单编号:</text>{{billData.billno}}</view>
+      <view style="margin-bottom: 5px;" class="small">
+        <t-button size="extra-small" theme="light" bind:tap="toServiceBillDetail">查看来源申请单</t-button>
+      </view>
       <view class="small"><text class="label">工单状态:</text><text style='color: var(--error);'>{{billData.status}}</text></view>
       <view style="margin-bottom: 5px;" class="small" wx:if="{{billData.status!='待接单' &&billData.status!='待开始'}}">
         <t-button size="extra-small" theme="light" bind:tap="toWorkConfirmInfo">查看工单确认信息</t-button>

+ 7 - 1
Eservice/workerLeader/editworkOrderDetail/index.js

@@ -12,6 +12,12 @@ Page({
         showTeams: false,
         teams: []
     },
+    toServiceBillDetail() {
+        console.log("查看来源申请单", this.data.billData)
+        wx.navigateTo({
+            url: '/Eservice/saler/serviceBillDetail/index?id=' + this.data.billData.sa_serviceorderid,
+        })
+    },
     async mainData() {
         const res = await api._post({
             "id": "20230208140103",
@@ -214,7 +220,7 @@ Page({
             if (!teams.some(v => v.userid == this.data.actLeader.userid)) {
 
             }
-            
+
             const res = await api._post({
                 "id": "20220930103703",
                 "content": {

+ 3 - 0
Eservice/workerLeader/editworkOrderDetail/index.wxml

@@ -21,6 +21,9 @@
   <card>
     <view slot="content">
       <view style="margin-bottom: 5px;" class="small"><text class="label">工单编号:</text>{{billData.billno}}</view>
+      <view style="margin-bottom: 5px;" class="small">
+        <t-button size="extra-small" theme="light" bind:tap="toServiceBillDetail">查看来源申请单</t-button>
+      </view>
       <view style="margin-bottom: 5px;" class="small">
         <t-button size="extra-small" theme="light" bind:tap="toWorkConfirmInfo">查看工单确认信息</t-button>
       </view>