zouyu
2023-10-18 99494d05f34ad75fc82fd9a5355dbe6118a1639c
src/views/plan/customerorder/customerorder-form.vue
@@ -26,7 +26,7 @@
      class="l-mes"
      :disabled="!editable"
    >
      <el-tabs type="border-card" ref="tabs">
      <el-tabs type="border-card" ref="tabs" @tab-click="tabsClick">
        <el-tab-pane label="主要" type="card">
          <el-row>
            <el-col :span="6">
@@ -196,7 +196,7 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="产品类型" prop="productType">
              <el-form-item label="隶属品牌" prop="productType">
                <el-input
                  v-model="dataForm.productType"
                  placeholder=""
@@ -255,28 +255,34 @@
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
          </el-row>
          <el-row>
            <!-- <el-col :span="6">
              <el-form-item label="质量要求" prop="qualityRequire">
            <el-col :span="6">
              <el-form-item label="单位" prop="otcUnit">
                <el-select
                  v-model="dataForm.otcUnit"
                  placeholder=""
                  filterable
                  style="width: 100%"
                >
                  <el-option
                    v-for="item in units"
                    :key="item.id"
                    :label="item.label"
                    :value="item.value"
                  />
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="产品型号" prop="customerPartSpec">
                <el-input
                  v-model="dataForm.qualityRequire"
                  v-model="dataForm.customerPartSpec"
                  placeholder=""
                  disabled
                ></el-input>
              </el-form-item>
            </el-col> -->
            <!-- <el-col :span="6">
              <el-form-item label="生产需求说明" prop="otherProductRequire">
                <el-input
                  v-model="dataForm.otherProductRequire"
                  placeholder=""
                  disabled
                ></el-input>
              </el-form-item>
            </el-col> -->
            </el-col>
          </el-row>
          <el-row>
            <!-- <el-col :span="6">
              <el-form-item label="系统" prop="divisionSystem">
                <el-input
@@ -659,14 +665,14 @@
                  @click="synchronizeFile(scope.row)"
                  type="text"
                  size="small"
                  :disabled="scope.row.lineNumber !== dataForm.otcLineNo"
                  :disabled="scope.row.lineNumber !== dataForm.customerNo"
                  >同步</el-button
                >
                <el-button
                  @click="delProcessConfigFile(scope.row)"
                  type="text"
                  size="small"
                  :disabled="scope.row.lineNumber !== dataForm.otcLineNo"
                  :disabled="scope.row.lineNumber !== dataForm.customerNo"
                  >删除</el-button
                >
                <el-button
@@ -782,7 +788,6 @@
      showSynchronize: false,
      selectOrderParam: null,
      selectOrderObj: {},
      aaaaa:{},
      dataForm: {
        id: 0,
        sourceId: '',
@@ -990,6 +995,11 @@
    this.getManufactureAttrs('manufacture_attr_type')
  },
  methods: {
    tabsClick(tab,even){
      if(tab.index == 2){
          this.getConfigFiles();
      }
    },
    init(id) {
      this.orderParamList = []
      this.dataForm.id = id || 0
@@ -1015,9 +1025,9 @@
            // } else {
            //   console.log('2')
            this.dataForm = response.data.data
            // }
            // this.fileList = response.data.data.customerOrderAttachmentList
            console.log(response.data.data.sourceId);
            const sourceId = response.data.data.sourceId
            if(sourceId === '0'){
              this.getFileList()
@@ -1033,7 +1043,6 @@
            // this.this.configContent.modelType = '01'
            // this.configContent.orderId = this.dataForm.id
            // this.configContent.orderId = response.data.data.customerOrderNo
            console.log(response.data.data)
            if (response.data.data.processConfigDTO) {
              // 有保存的数据
              this.configContent = response.data.data.processConfigDTO
@@ -1233,8 +1242,8 @@
    delOutPutBatch(row) {},
    addOutPutBatch() {},
    submitUpload() {
      this.paramData.orderNumber = this.dataForm.customerOrderNo
      this.paramData.lineNumber = this.dataForm.otcLineNo
      this.paramData.orderNumber = this.dataForm.contractNo
      this.paramData.lineNumber = this.dataForm.customerNo
      this.progrecessFileLoading = true
    },
    uploadSuccess() {
@@ -1243,8 +1252,8 @@
    },
    getConfigFiles() {
      const param = {
        orderNumber: this.dataForm.customerOrderNo,
        lineNumber: this.dataForm.otcLineNo
        orderNumber: this.dataForm.contractNo,
        lineNumber: this.dataForm.customerNo
      }
      getProcessConfigFiles(param).then((res) => {
        this.processConfigFileTableData = res.data.data