|
|
@@ -0,0 +1,180 @@
|
|
|
+<!--
|
|
|
+ * @Descripttion:待数据输入列表-重新分配
|
|
|
+ * @version: 1.0
|
|
|
+ * @Author: Liu_jiaYin
|
|
|
+-->
|
|
|
+<!-- 样品接收确认 -->
|
|
|
+<template>
|
|
|
+ <div class="sample-scan">
|
|
|
+ <el-dialog
|
|
|
+ width="20%"
|
|
|
+ top="25vh"
|
|
|
+ :modal-append-to-body="false"
|
|
|
+ title="检测员重新分配"
|
|
|
+ :before-close="handleClose"
|
|
|
+ :visible.sync="visible"
|
|
|
+ @close="closeDialog"
|
|
|
+ >
|
|
|
+ <!--自定义对话框-->
|
|
|
+ <ibps-custom-dialog
|
|
|
+ v-model="jianCeYuan"
|
|
|
+ size="mini"
|
|
|
+ :disabled="false"
|
|
|
+ template-key="bmrydhksy"
|
|
|
+ style="width: 150px;"
|
|
|
+ :multiple="false"
|
|
|
+ type="dialog"
|
|
|
+ />
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="visible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitData('确认')">确认</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import IbpsLinkData from '@/business/platform/data/templaterender/link-data'
|
|
|
+import IbpsCustomDialog from '@/business/platform/data/templaterender/custom-dialog'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ IbpsLinkData,
|
|
|
+ IbpsCustomDialog
|
|
|
+
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ scanVisible: Boolean,
|
|
|
+ obj: {
|
|
|
+ // eslint-disable-next-line vue/require-valid-default-prop
|
|
|
+ default: [],
|
|
|
+ type: Array
|
|
|
+ }},
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ visible: false,
|
|
|
+ jianCeYuan: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ scanVisible: {
|
|
|
+ handler (val, oldName) {
|
|
|
+ if (val) {
|
|
|
+ this.visible = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created () {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ submitData (v) {
|
|
|
+ this.handleUp()
|
|
|
+ },
|
|
|
+ handleClose () {
|
|
|
+ this.$confirm('确认要取消重新分配吗').then((t) => {
|
|
|
+ this.closeDialog()
|
|
|
+ }).catch((e) => {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ closeDialog () {
|
|
|
+ this.visible = false
|
|
|
+ this.$emit('scanOff', false)
|
|
|
+ },
|
|
|
+ handleUp () {
|
|
|
+ const { projectIds, template, this_ } = this.obj[0]
|
|
|
+ const updLists = []
|
|
|
+ for (const i of projectIds) {
|
|
|
+ const dataWhere = {}
|
|
|
+ const where = {
|
|
|
+ id_: i
|
|
|
+ }
|
|
|
+ const param = {
|
|
|
+ jian_ce_yuan_: this.jianCeYuan
|
|
|
+ }
|
|
|
+ dataWhere['where'] = where
|
|
|
+ dataWhere['param'] = param
|
|
|
+ updLists.push(dataWhere)
|
|
|
+ }
|
|
|
+ const param = { tableName: 't_lhjczb', updList: updLists }
|
|
|
+ this_.$curdPost('updatesByWhere', JSON.stringify(param)).then(() => {
|
|
|
+ template.$message.success('重新分配成功。')
|
|
|
+ template.search()
|
|
|
+ this.closeDialog()
|
|
|
+ }).catch(() => {
|
|
|
+ template.$message.error('分配失败,请重新再试。')
|
|
|
+ this.closeDialog()
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+/deep/ .el-form-item__label,
|
|
|
+/deep/ .el-input__inner {
|
|
|
+ color: none;
|
|
|
+}
|
|
|
+
|
|
|
+.sample-scan .popContainer {
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 9999999;
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
+}
|
|
|
+
|
|
|
+// .dynamic-form-table__label:before {
|
|
|
+// content: '*';
|
|
|
+// color: #F56C6C;
|
|
|
+// }
|
|
|
+.dynamic-form-table__label {
|
|
|
+ color: #F56C6C;
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 40px;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+
|
|
|
+/**必须设置.el-form-item__label为none */
|
|
|
+/deep/.zzj .el-form-item__content .el-input__inner {
|
|
|
+ color: #e60c14;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-form-item__content {
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-form-item__label {
|
|
|
+ padding: 0;
|
|
|
+ margin-right: 5px;
|
|
|
+ width: 120px;
|
|
|
+ // width: 101px;
|
|
|
+ // margin-left:25px;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-input__inner {
|
|
|
+ border-top: none !important;
|
|
|
+ border-left: none !important;
|
|
|
+ border-right: none !important;
|
|
|
+ border-radius: 0;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.jiaji {
|
|
|
+ // color: #F56C6C;
|
|
|
+ // font-size: 18px;
|
|
|
+ // line-height: 40px;
|
|
|
+ // font-weight: bold;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-dialog__title {
|
|
|
+ line-height: 24px;
|
|
|
+ color: #e60c14;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+</style>
|