linwenxin 1 rok pred
rodič
commit
98c018349c

+ 2 - 2
src/views/workOrder/workOrderPool/index.vue

@@ -214,7 +214,7 @@ export default {
         orderBaseDetail({
           orderBaseId: this.id
         }).then(res => {
-          this.workOrderType = res?.data?.saleType
+          this.workOrderType = Number(res?.data?.saleType)
           this.$nextTick(() => {
             this.detailFormBool = true
           })
@@ -332,7 +332,7 @@ export default {
         edit: {
           click: ({ row, index, column }) => {
             this.id = row.id
-            this.workOrderType = Object.entries(row.selectMapData.saleType).find(([key, val]) => val == row.saleType)?.[0]
+            this.workOrderType = Number(Object.entries(row.selectMapData.saleType).find(([key, val]) => val == row.saleType)?.[0] || 1)
             this.$nextTick(() => {
               this.detailFormBool = true
             })