|
@@ -67,7 +67,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { nextTick, ref, watch } from 'vue'
|
|
|
-import { getArrValue, getRandom } from 'js-fast-way'
|
|
|
+import { getRandom } from 'js-fast-way'
|
|
|
import HcTaskForm from './task-form.vue'
|
|
|
import HcTaskNotes from './task-notes.vue'
|
|
|
|
|
@@ -131,17 +131,18 @@ const setSplitRef = () => {
|
|
|
|
|
|
//设置任务信息
|
|
|
const setTaskInfo = async () => {
|
|
|
- const { taskName, type } = rowInfo.value
|
|
|
+ //meterType:1中间,2材料,3开工,4变更令
|
|
|
+ const { taskName, meterType } = rowInfo.value
|
|
|
taskInfo.value.taskName = taskName
|
|
|
- taskInfo.value.type = type
|
|
|
- if (type === 1) {
|
|
|
+ taskInfo.value.type = meterType
|
|
|
+ if (meterType === 1) {
|
|
|
tableColumn.value = middlepayTableColumn.value
|
|
|
- } else if (type === 2) {
|
|
|
+ } else if (meterType === 2) {
|
|
|
+ tableColumn.value = materialTableColumn.value
|
|
|
+ } else if (meterType === 3) {
|
|
|
tableColumn.value = startWorkTableColumn.value
|
|
|
- } else if (type === 3) {
|
|
|
+ } else if (meterType === 4) {
|
|
|
tableColumn.value = alterTableColumn.value
|
|
|
- } else if (type === 4) {
|
|
|
- tableColumn.value = materialTableColumn.value
|
|
|
} else {
|
|
|
tableColumn.value = []
|
|
|
}
|