Qukatie 11 ماه پیش
والد
کامیت
646f0380c8
1فایلهای تغییر یافته به همراه26 افزوده شده و 3 حذف شده
  1. 26 3
      src/views/tirePartsMall/salesManagement/outboundWorkOrder/detailsPage.vue

+ 26 - 3
src/views/tirePartsMall/salesManagement/outboundWorkOrder/detailsPage.vue

@@ -38,16 +38,23 @@
                 <!--<el-button :size="size" :disabled="disabled || isAddDisabled" :type="type"-->
                 <!--  :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">编辑-->
                 <!--</el-button>-->
-                <el-popover placement="left" width="500" trigger="click">
+                <el-popover placement="left" width="500" trigger="hover">
                   <el-table :row-style="{ height: '20px', padding: '0px', fontSize: '12px' }"
                     :cell-style="{ padding: '0px', fontSize: '12px' }" :data="row.recordList"
                     :header-cell-style="tableHeaderCellStyle" border stripe height="300px" style="width: 100%">
-                    <el-table-column property="srcOrd" label="单号"></el-table-column>
+                    <el-table-column property="srcOrd" label="单号">
+                      <template slot-scope="{row}">
+                        <span style="color: #409EFF;cursor: pointer" @click.stop="Jump(row)">{{ row.srcOrd }}
+                        </span>
+                      </template>
+
+                    </el-table-column>
                     <el-table-column property="amount" label="金额"></el-table-column>
                     <el-table-column property="createUserName" label="制单人"></el-table-column>
                     <el-table-column property="createTime" label="制单日期"></el-table-column>
                   </el-table>
-                  <el-button slot="reference" :size="size" :disabled="!row.id" :type="type" icon="el-icon-view" style="margin-right: 8px;">
+                  <el-button slot="reference" :size="size" :disabled="!row.id" :type="type" icon="el-icon-view"
+                    style="margin-right: 8px;">
                     查看记录
                   </el-button>
                 </el-popover>
@@ -577,6 +584,22 @@ export default {
         }
       })
     },
+    Jump(row) {
+      if (this.$store.getters.financingStatus) {
+          this.$alert("融资采购(L)已存在,请关闭融资采购(L)再进行操作", "温馨提示", {
+            confirmButtonText: "确定",
+            type: "warning",
+          });
+        } else {
+          this.$router.$avueRouter.closeTag("/tirePartsMall/purchasingManagement/financingProcurement/index");
+          this.$router.push({
+            path: "/tirePartsMall/purchasingManagement/financingProcurement/index",
+            query: {
+              srcId: row.srcId
+            },
+          });
+        }
+    },
     //修改提交触发
     editCustomer() {
       this.$refs["form"].validate((valid, done) => {