zouyu
2023-10-23 79f7d8c1fbba7617bfc7610d1578627c2ae0b609
	modified:   src/api/technology/completeproductstructure.js
modified: src/views/technology/completeproductstructure/completeproductstructure-form.vue
modified: src/views/technology/document/document-form.vue
modified: src/views/technology/document/index.vue
已修改4个文件
70 ■■■■■ 文件已修改
src/api/technology/completeproductstructure.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/completeproductstructure/completeproductstructure-form.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/document/document-form.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/document/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/technology/completeproductstructure.js
@@ -82,3 +82,11 @@
    data: ids
  })
}
export function updateObj(obj) {
  return request({
    url: '/mes/bom/updateBom',
    method: 'put',
    data: obj
  })
}
src/views/technology/completeproductstructure/completeproductstructure-form.vue
@@ -25,7 +25,7 @@
          <el-row>
            <el-col :span="24">
              <el-form-item label="BOM编号">
                <el-input v-model="treeForm.number" placeholder="BOM编号">
                <el-input v-model="treeForm.number" disabled placeholder="BOM编号">
                </el-input>
              </el-form-item>
@@ -125,7 +125,7 @@
            style="width: 100%;"
            row-key="id"
            border
            height="580"
            height="720"
            default-expand-all
            @expand-change="expandChange"
            :row-class-name="tableRowClassName"
@@ -238,7 +238,8 @@
  getPartAllStructureExt,
  addObj,
  getObj,
  putObj
  putObj,
  updateObj
} from '@/api/technology/completeproductstructure'
import { remote } from '@/api/admin/dict'
import productStructureDialog from '@/views/common/productstructure.vue'
@@ -339,17 +340,22 @@
      if (this.dataForm.id) {
        getObj(this.dataForm.id).then((response) => {
          var resultData = response.data.data
          this.treeForm.partId = resultData.partId
          this.treeForm.partNo = resultData.partNo
          this.treeForm.partName = resultData.partName
          this.treeForm.number = resultData.number
          this.treeForm.insulationColor = resultData.insulationColor
          this.treeForm.sheathColor = resultData.sheathColor
          this.treeForm.characteristicOne = resultData.characteristicOne
          this.treeForm.version = resultData.version
          this.treeForm.alternativeNo = resultData.alternativeNo
          this.treeForm.alternativeDesc = resultData.alternativeDesc
          this.treeForm.bomTypeDb = resultData.bomTypeDb
          console.log(resultData)
          this.treeForm = resultData
          // this.treeForm.id = resultData.id
          // this.treeForm.partId = resultData.partId
          // this.treeForm.partNo = resultData.partNo
          // this.treeForm.partName = resultData.partName
          // this.treeForm.number = resultData.number
          // this.treeForm.insulationColor = resultData.insulationColor
          // this.treeForm.sheathColor = resultData.sheathColor
          // this.treeForm.characteristicOne = resultData.characteristicOne
          // this.treeForm.version = resultData.version
          // this.treeForm.alternativeNo = resultData.alternativeNo
          // this.treeForm.alternativeDesc = resultData.alternativeDesc
          // this.treeForm.bomTypeDb = resultData.bomTypeDb
          // this.treeForm.state = resultData.state
          // this.treeForm.remark = resultData.remark
          this.dataForm.state = resultData.state
          this.preViewData = []
          this.preViewData.push(resultData.tree)
@@ -412,7 +418,15 @@
      }
    },
    dataFormSubmit() {
      console.log(this.treeForm)
      let data = this.treeForm
      if(data.id != null){
        updateObj(data).then(res=>{
          this.$message.success("保存成功")
        }).catch(error=>{
          this.$message.error("保存失败")
        })
      }
      // const mapTree = (org) => {
      //   const haveChildren =
      //     Array.isArray(org.children) && org.children.length > 0
@@ -1008,7 +1022,7 @@
.completeProductStructure-design {
  float: left;
  width: 100%;
  height: 650px;
  height: 800px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  background-color: #fff;
src/views/technology/document/document-form.vue
@@ -483,14 +483,14 @@
                                ></el-table-column>
                              </el-table>
                            </el-tab-pane>
                            <el-tab-pane label="备注" style="height: 100%">
                            <!-- <el-tab-pane label="备注" style="height: 100%">
                              <rich-text
                                :editorId="
                                  'fwb' + item.id + '-' + ele.id + '-' + j
                                "
                                :richContent="ele.remark"
                              ></rich-text>
                            </el-tab-pane>
                            </el-tab-pane> -->
                            <el-tab-pane label="检测标准">
                              <checkStandardTable
                                ref="documentTestStandardTable"
@@ -511,7 +511,7 @@
                                "
                              ></checkStandardTable>
                            </el-tab-pane>
                            <el-tab-pane label="抽检规则">
                            <!-- <el-tab-pane label="抽检规则">
                              <div>
                                <div style="padding: 0px 20px;">
                                  <el-button
@@ -594,7 +594,7 @@
                                  </el-table>
                                </div>
                              </div>
                            </el-tab-pane>
                            </el-tab-pane> -->
                          </el-tabs>
                        </el-collapse-item>
                      </el-collapse>
src/views/technology/document/index.vue
@@ -11,21 +11,21 @@
        ref="documentTable"
      >
        <template #toolbar>
          <el-button type="primary" :loading="ifsSynsLoading" @click="syncIfs"
          <!-- <el-button type="primary" :loading="ifsSynsLoading" @click="syncIfs"
            >ERP同步</el-button
          >
          > -->
          <el-button
            type="primary"
            @click="deleteBatch"
            v-if="permissions.technology_document_del"
            >批量删除</el-button
          >
          <el-button
          <!-- <el-button
            type="primary"
            @click="bindTestStandard"
            v-if="permissions.technology_document_standard_upload"
            >批量绑定检测标准</el-button
          >
          > -->
        </template>
      </ttable>
      <el-dialog