licp
2024-04-12 786a139a5855dfec193dc3e7b794127ed3e62fe2
优化
已修改5个文件
40 ■■■■■ 文件已修改
src/views/common/ztt-table.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/customerorder/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/finishedProductInspection/finishedProduct-form.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/processInspect/processInspect-form.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/rawMaterial/rawMaterial-form.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/common/ztt-table.vue
@@ -556,10 +556,6 @@
      type: Object,
      default: null
    },
    expandRowKeys: {
      type: Array,
      default: ()=>[]
    }
  },
  render: (h, data) => {
    const params = {
@@ -574,6 +570,10 @@
  name: 'TTable',
  components: { exSlot, advancedSearchDialog, zttdraggable },
  props: {
    expandRowKeys: {
      type: Array,
      default: ()=>[]
    },
    rowKey: {
      type: String,
      default: ()=>{
src/views/plan/customerorder/index.vue
@@ -11,7 +11,6 @@
        :toolbarMaxLength="4"
        :paramArr="type"
        ref="customerOrderTable"
        :expandRowKeys="expandRowKeys"
      >
        <template #toolbar>
          <el-dropdown
@@ -415,7 +414,7 @@
        selectTime: null,
        exportTime: null,
      },
      expandRowKeys: [],
      expandRowKeys: null,
      dataRule: {
        exportTime: [
          { required: true, message: '导出日期不能为空', trigger: 'change' },
@@ -1201,8 +1200,12 @@
      this.getData()
    },
    getData() {
      this.$refs.customerOrderTable.getDataList()
    async getData() {
      await this.$refs.customerOrderTable.getDataList()
      this.$refs.customerOrderTable.tableData.forEach((ele) => {
        this.$refs.customerOrderTable.$refs.lmesTable.toggleRowExpansion(ele,false)
      })
      this.expandRowKeys && this.$refs.customerOrderTable.$refs.lmesTable.toggleRowExpansion(this.expandRowKeys,true)
    },
    // 获取数据列表去除已完成状态的
    handleDataList(command) {
@@ -1282,7 +1285,11 @@
          this.$refs.addSampleForm.init(row ? row.contractNo : null)
        })
      }
      this.expandRowKeys=[row.id]
      this.$refs.customerOrderTable.tableData.forEach((item) => {
        if(item.children&&item.children.find(m=>m.id==row.id)){
            this.expandRowKeys = item;
        }
      })
    },
    // 新增样品订单
    addSampleCustomerOrder() {
src/views/quality/finishedProductInspection/finishedProduct-form.vue
@@ -817,10 +817,10 @@
                if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) {
                    this.empiricalValueAdd = this.empiricalValueAdd - 1;
                    // this.changeRowResult()
                    this.saveTable()
                    this.inspectionItems.forEach(i => {
                        i.empiricalValueAddss.splice(this.empiricalValueAdd, 1);
                    });
                    this.saveTable()
                }
            }
        },
src/views/quality/processInspect/processInspect-form.vue
@@ -858,7 +858,6 @@
                if (_than.empiricalValueAddMaxNumber != _than.empiricalValueAdd - 1) {
                    _than.empiricalValueAdd = _than.empiricalValueAdd - 1;
                    // _than.changeRowResult()
                    _than.saveTable();
                    _than.inspectionItems.forEach(i => {
                        if(i.children){
                            i.children.forEach(ele=>{
@@ -866,6 +865,7 @@
                            })
                        }
                    });
                    _than.saveTable();
                }
            }
        },
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -773,10 +773,12 @@
          if(this.list){
              this.list.forEach(e=>{
                  if(e.children){
                      e.children.forEach(i=>{
                      e.children.map(i=>{
                          if(i.testValueList.length>1){
                              let arr = i.testValue.split(",")
                              arr.splice((arr.length-1),1)
                            i.testValueList = i.testValueList.splice(i.testValueList.length-1,1)
                            return i
                            //   let arr = i.testValue.split(",")
                            //   arr.splice((arr.length-1),1)
                            //   let obj = {
                            //     deviceId: i.deviceId,
                            //     rpId: i.rpId,
@@ -799,7 +801,7 @@
        if (this.empiricalValueAdd - 1 > 0) {
          if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) {
            this.empiricalValueAdd = this.empiricalValueAdd - 1;
            this.changeRowResult()
            // this.changeRowResult()
            this.list.forEach(i => {
              if(i.children){
                i.children.forEach(ele=>{
@@ -807,6 +809,7 @@
                })
              }
            });
            this.saveTable()
          }
        }
      },