From 41d50b20c975faeaa9e5277bdcff13b5acecb575 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期三, 13 十二月 2023 16:57:37 +0800
Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop

---
 src/views/eam/modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal.vue |  632 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 632 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal.vue b/src/views/eam/modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal.vue
new file mode 100644
index 0000000..1290a4a
--- /dev/null
+++ b/src/views/eam/modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal.vue
@@ -0,0 +1,632 @@
+<template>
+  <a-modal
+    :width="800"
+    :visible="visible"
+    :maskClosable="false"
+    @ok="handleOk"
+    cancelText="鍏抽棴"
+    @cancel="handleCancel"
+    :confirmLoading="confirmLoading"
+    title="闄勫綍3"
+  >
+    <span
+      class="ant-descriptions-title"
+      style="font-size: large;font-size: 15px;float: right;"
+    >{{this.model.receiptsNum}}</span>
+
+    <a-divider
+      orientation="center"
+      style="font-size: large;font-style: normal;font-size: 30px;color: #66aeed;"
+    > {{this.model.receiptsName}} </a-divider>
+    <a-row :gutter="24">
+      <a-col :span="12">
+        <a-form-item
+          label="浣跨敤鍗曚綅"
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >
+          {{this.model.departName}}
+        </a-form-item>
+      </a-col>
+      <a-col :span="12">
+        <a-form-item
+          label="妫�鏌ユ棩鏈�"
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+        >
+          {{this.model.updateTime}}
+        </a-form-item>
+      </a-col>
+    </a-row>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >璁惧鍚嶇О</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '19%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >{{this.model.equipmentName}}</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >璁惧鍨嬪彿</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '18%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >{{this.model.equipmentModel}}</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '15%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >缁熶竴缂栧彿</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '18%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >{{this.model.equipmentNum}}</span>
+      </div>
+
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >妫�鏌ラ儴浣�</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >妫�鏌ユ爣鍑�</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >妫�鏌ョ粨鏋�(鍚堟牸/涓嶅悎鏍�)</span>
+      </div>
+    </div>
+
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >鎿嶇旱鎵嬫焺鍙婂紑鍏�</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >瀹夊叏銆佹棤鐮存崯</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_1 == '0'"
+          @change="handleSwitch(model.result_1)"
+        />
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >浼犲姩绯荤粺</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >鐏垫椿銆佹棤寮傚搷</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_2 == '0'"
+          @change="handle2Switch(model.result_2)"
+        />
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >瀹夊叏瑁呯疆</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >瀹夊叏銆佺伒鏁忋�佸彲闈�</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_3 == '0'"
+          @change="handle3Switch(model.result_3)"
+        />
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >璁惧澶栬</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >鏁存磥</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_4 == '0'"
+          @change="handle4Switch(model.result_4)"
+        />
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >鐢垫皵绾胯矾</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >绾胯矾鏁撮綈銆佹帴绾挎纭�</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_5 == '0'"
+          @change="handle5Switch(model.result_5)"
+        />
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >妫�鏌ュ悇绱у浐瑁呯疆</span>
+      </div>
+      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;"
+        >鏃犳澗鍔�</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_6 == '0'"
+          @change="handle6Switch(model.result_6)"
+        />
+
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+        <span
+          class="ant-descriptions-title"
+          style="font-size: large;font-style: normal;font-size: 15px;float: center"
+        >鏄惁婊¤冻鐢熶骇鍔犲伐瑕佹眰</span>
+      </div>
+      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+
+        <a-switch
+          checked-children="鍚堟牸"
+          un-checked-children="涓嶅悎鏍�"
+          :checked="model.result_7 == '0'"
+          @change="handle7Switch(model.result_7)"
+        />
+      </div>
+    </div>
+    <div>
+      <div :style="{height: '130px',float: 'left',width: '100%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
+
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <a-form-item
+              style="font-size: large;font-style: normal;font-size: 15px;"
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              label="閴村畾缁撹"
+            >
+              <j-dict-select-tag
+                style="font-size: large;font-style: normal;font-size: 15px;width: 100%"
+                allow-clear
+                :triggerChange="true"
+                dictCode="technology_status"
+                v-model="model.technologyStatus"
+              />
+              <!-- :placeholder="璇烽�夋嫨閴村畾缁撹" -->
+            </a-form-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="12">
+            <span
+              class="ant-descriptions-title"
+              style="font-size: large;font-style: normal;font-size: 15px;"
+            >&nbsp;&nbsp;&nbsp;閴村畾浜哄憳绛惧瓧锛�&nbsp;&nbsp;&nbsp;</span>
+            <span v-if="this.model != null">{{ this.model.appraiser }}</span>
+            <span v-else>-</span>
+          </a-col>
+          <a-col :span="12">
+            <span
+              class="ant-descriptions-title"
+              style="font-size: large;font-style: normal;font-size: 15px;"
+            >&nbsp;&nbsp;&nbsp;鍗曚綅棰嗗绛惧瓧:&nbsp;&nbsp;&nbsp;</span>
+            <span v-if="this.model != null">{{ this.model.leadership }}</span>
+            <span v-else>-</span>
+          </a-col>
+        </a-row>
+      </div>
+    </div>
+
+    <template slot="footer">
+      <a-button
+        :style="{marginRight: '8px'}"
+        @click="handleCancel()"
+      >
+        鍏抽棴
+      </a-button>
+
+      <a-button
+        @click="handleOk1('1')"
+        type="primary"
+        :loading="confirmLoading"
+        :disabled="disableSubmit || confirmLoading"
+        v-has="'technologyStatusAuthenticate:admin'"
+      >纭畾</a-button>
+      <a-button
+        @click="handleOk2('2')"
+        type="primary"
+        :loading="confirmLoading"
+        :disabled="disableSubmit || confirmLoading"
+        v-has="'technologyStatusAuthenticate:appraiser'"
+      >纭畾</a-button>
+      <a-button
+        @click="handleOk3('3')"
+        type="primary"
+        :loading="confirmLoading"
+        :disabled="disableSubmit || confirmLoading"
+        v-has="'technologyStatusAuthenticate:leadership'"
+      >纭畾</a-button>
+    </template>
+  </a-modal>
+
+</template>
+
+<script>
+import { getAction, postAction, requestPut } from '@/api/manage'
+import pick from 'lodash.pick'
+import JMultiSelectTag from '@/components/dict/JMultiSelectTag'
+import Tooltip from 'ant-design-vue/es/tooltip'
+// import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import { ACCESS_TOKEN } from '@/store/mutation-types'
+import { getFileAccessHttpUrl } from '@/api/manage';
+
+export default {
+  name: "StoveCategoryModal",
+  // mixins: [JeecgListMixin],
+  components: {
+    JMultiSelectTag,
+    Tooltip,
+  },
+  data() {
+    return {
+      title: "鎿嶄綔",
+      visible: false,
+      disableSubmit: false,
+      codeDisable: true,
+      dataSource: [],
+      model: {},
+      labelCol: {
+        xs: { span: 24 },
+        sm: { span: 6 },
+      },
+      wrapperCol: {
+        xs: { span: 24 },
+        sm: { span: 18 },
+      },
+      confirmLoading: false,
+      form: this.$form.createForm(this),
+      validatorRules: {
+        num: {
+          rules: [
+            { required: true, message: '璇疯緭鍏ヤ繚鍏诲伐鍗曠紪鐮�!' },
+          ]
+        },
+      },
+      url: {
+        add: "/eam/technologyStatus/technologyStatusAuthenticate",
+        getTechnologyStatus: "/eam/technologyStatus/getTechnologyStatus",
+        list: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId",
+      },
+
+    }
+  },
+
+  methods: {
+
+    edit(record) {
+      let that = this;
+      this.form.resetFields();
+      this.model = Object.assign({}, record);
+      this.getTechnologyStatus()
+      this.visible = true;
+      that.$nextTick(() => {
+        // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark'));
+      });
+
+    },
+
+
+    close() {
+      this.$emit('close');
+      this.visible = false;
+    },
+
+    handleCancel() {
+      this.close();
+    },
+
+    handleOk1(arg) {
+      if (this.model.technologyStatus == "" || this.model.technologyStatus == null) {
+        this.$message.warning("璇峰厛缁存姢閴村畾缁撹锛�");
+        return
+      }
+      this.handleOk(arg);
+    },
+    handleOk2(arg) {
+      this.handleOk(arg);
+    },
+    handleOk3(arg) {
+      if (this.model.technologyStatus == "" || this.model.technologyStatus == null) {
+        this.$message.warning("璇峰厛缁存姢閴村畾缁撹锛�");
+        return
+      }
+      this.handleOk(arg);
+    },
+
+    handleOk(arg) {
+
+      const that = this;
+      // 瑙﹀彂琛ㄥ崟楠岃瘉
+      that.form.validateFields((err, values) => {
+        if (!err) {
+          this.$confirm({
+            title: '鐢熶骇璁惧鎶�鏈姸鎬侀壌瀹氱‘璁�',
+            content: '鎻愮ず锛氳璋ㄦ厧鎿嶄綔锛�',
+            okText: '纭',
+            cancelText: '鍙栨秷',
+            onOk() {
+              let formData = Object.assign(that.model, values);
+              if (arg == '1') {//绠$悊鍛�
+                formData.flag = "1"
+              } else if (arg == '2') {//閴村畾浜哄憳
+                formData.flag = "2"
+              } else {//棰嗗
+                formData.flag = "3"
+              }
+              that.confirmLoading = true;
+              postAction(that.url.add, formData).then((res) => {
+                if (res.success) {
+                  that.$message.success(res.message);
+                  that.$emit('ok', new Date());
+                } else {
+                  that.$message.warning(res.message);
+                }
+              }).finally(() => {
+                that.confirmLoading = false;
+                that.close();
+              })
+            },
+          })
+        }
+      })
+    },
+
+    handleDelete(text, record, index) {
+      this.dataSource.splice(index, 1);
+    },
+
+    getTechnologyStatus() {
+      getAction(this.url.getTechnologyStatus, { orderId: this.model.id }).then((res) => {
+        if (res.success) {
+          this.model = Object.assign(this.model, res.result[0]);
+        }
+      })
+    },
+
+    handleSwitch(result_1) {
+      if ('0' == result_1) {
+        this.model.result_1 = '1'
+      } else {
+        this.model.result_1 = '0'
+      }
+
+      this.model = Object.assign({}, this.model);
+    },
+
+    handle2Switch(result_2) {
+      if ('0' == result_2) {
+        this.model.result_2 = '1'
+      } else {
+        this.model.result_2 = '0'
+      }
+      this.model = Object.assign({}, this.model);
+    },
+
+    handle3Switch(result_3) {
+      if ('0' == result_3) {
+        this.model.result_3 = '1'
+      } else {
+        this.model.result_3 = '0'
+      }
+      this.model = Object.assign({}, this.model);
+    },
+
+    handle4Switch(result_4) {
+      if ('0' == result_4) {
+        this.model.result_4 = '1'
+      } else {
+        this.model.result_4 = '0'
+      }
+      this.model = Object.assign({}, this.model);
+    },
+
+    handle5Switch(result_5) {
+      if ('0' == result_5) {
+        this.model.result_5 = '1'
+      } else {
+        this.model.result_5 = '0'
+      }
+      this.model = Object.assign({}, this.model);
+    },
+
+    handle6Switch(result_6) {
+      if ('0' == result_6) {
+        this.model.result_6 = '1'
+      } else {
+        this.model.result_6 = '0'
+      }
+      this.model = Object.assign({}, this.model);
+    },
+
+    handle7Switch(result_7) {
+      if ('0' == result_7) {
+        this.model.result_7 = '1'
+      } else {
+        this.model.result_7 = '0'
+      }
+      this.model = Object.assign({}, this.model);
+    },
+
+
+
+    // handle21Switch(result_21) {
+    //   if ('0' == result_21) {
+    //     this.model.result_21 = '1'
+    //     this.disabled22Switch = true
+    //   } else {
+    //     this.model.result_21 = '0'
+    //     this.disabled22Switch = false
+    //   }
+    //   this.model = Object.assign({}, this.model);
+    // },
+
+    // handle22Switch(result_22) {
+    //   if ('0' == result_22) {
+    //     this.model.result_22 = '1'
+    //     this.disabled21Switch = true
+    //   } else {
+    //     this.model.result_22 = '0'
+    //     this.disabled21Switch = false
+    //   }
+    //   this.model = Object.assign({}, this.model);
+    // },
+
+
+    // onChangeJudgmentResult(e) {
+    //   this.model.judgmentResult = e.target.value
+    // },
+
+    // handleChange(value, key, column, index) {
+    //   let that = this;
+    //   const temp = [...that.dataSource];
+    //   const target = temp.filter(item => key === item.key)[index];
+    //   if (target) {
+    //     if ('actualMeasure' == column.dataIndex) {
+    //       target['actualMeasure'] = value.target.value;
+    //     }
+    //     //鏄剧ず甯﹁繃鏉ョ殑鏁版嵁
+    //     that.dataSource = temp;
+    //   }
+    // },
+
+  },
+}
+</script>
+
+<style lang="less" scoped>
+/deep/ .frozenRowClass {
+  color: #c9c9c9;
+}
+.fontweight {
+  font-weight: bold;
+}
+.ant-btn {
+  padding: 0 10px;
+  margin-left: 3px;
+}
+
+.ant-form-item-control {
+  line-height: 0px;
+}
+
+/** 涓昏〃鍗曡闂磋窛 */
+.ant-form .ant-form-item {
+  margin-bottom: 10px;
+}
+
+/** Tab椤甸潰琛岄棿璺� */
+.ant-tabs-content .ant-form-item {
+  margin-bottom: 0px;
+}
+.hightColor {
+  height: 10%;
+  font-weight: bold;
+  font-size: 20px;
+  color: #1b1e1e;
+}
+.frozenRowClass {
+  color: #c9c9c9;
+}
+.fontweight {
+  font-weight: bold;
+}
+.hight {
+  color: #f5222d;
+}
+/deep/ .red {
+  color: red;
+}
+
+.line {
+  width: 1px;
+  height: 300px;
+  background-color: #000;
+  border: none;
+  float: left;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3