|
@@ -178,15 +178,37 @@
|
|
|
证明出库
|
|
|
</el-button>
|
|
|
</div>
|
|
|
-
|
|
|
- <el-button
|
|
|
- v-if="scope.row.status !== 0 && scope.row.status !== 1 && scope.row.status !== 2 && scope.row.status !== 4 && scope.row.status !== 5 && scope.row.status !== 6"
|
|
|
- link
|
|
|
- type="success"
|
|
|
- @click=" openForm(scope.row.id)"
|
|
|
- >
|
|
|
+ <div
|
|
|
+ v-if="scope.row.status !== 0
|
|
|
+ && scope.row.status !== 1
|
|
|
+ && scope.row.status !== 2
|
|
|
+ && scope.row.status !== 4
|
|
|
+ && scope.row.status !== 5
|
|
|
+ && scope.row.status !== 6">
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="success"
|
|
|
+ @click=" openForm(scope.row.id)"
|
|
|
+ v-if="scope.row.returnConfirm == null"
|
|
|
+ >
|
|
|
回库
|
|
|
- </el-button>
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="danger"
|
|
|
+ v-else-if="scope.row.returnConfirm != null && scope.row.isFirstRet"
|
|
|
+ >
|
|
|
+ 待证明回库
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="success"
|
|
|
+ @click=" returnConfirm(scope.row.id)"
|
|
|
+ v-else
|
|
|
+ >
|
|
|
+ 证明回库
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -287,8 +309,6 @@ const handleExport = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/** 查看详情页面 **/
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
|
|
@@ -323,6 +343,16 @@ const openForm = (id?: number) => {
|
|
|
formRef.value.open( id)
|
|
|
}
|
|
|
|
|
|
+const returnConfirm = async (projectId?: number) => {
|
|
|
+ let hhh = reactive({id:-1})
|
|
|
+ hhh.id = projectId
|
|
|
+ await SpecimenOutboundApi.updateSpecimenOutbound(hhh)
|
|
|
+ message.success(t('回库成功'))
|
|
|
+ queryFormRef.value.resetFields()
|
|
|
+ handleQuery()
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// const isOut ()+>{
|
|
|
//
|
|
|
// } scope.row.status !== 0 && scope.row.status !== 1 && scope.row.status !== 2 && scope.row.status !== 3 && scope.row.status !== 4 && scope.row.status !== 6 && scope.row.operator !== null && (scope.row.operator !== null)
|