|
@@ -214,7 +214,7 @@ export default {
|
|
orderBaseDetail({
|
|
orderBaseDetail({
|
|
orderBaseId: this.id
|
|
orderBaseId: this.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- this.workOrderType = res?.data?.saleType
|
|
|
|
|
|
+ this.workOrderType = Number(res?.data?.saleType)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.detailFormBool = true
|
|
this.detailFormBool = true
|
|
})
|
|
})
|
|
@@ -332,7 +332,7 @@ export default {
|
|
edit: {
|
|
edit: {
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
this.id = row.id
|
|
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.$nextTick(() => {
|
|
this.detailFormBool = true
|
|
this.detailFormBool = true
|
|
})
|
|
})
|