src/views/business/productOrder/components/addOrder.vue
@@ -126,7 +126,7 @@
            <el-col :span="6">
              <el-form-item label="生产日期">
                <el-date-picker v-model="addObj.productionDate" type="date" value-format="yyyy-MM-dd"
                                :disabled="active>1" size="small"/>
                                :disabled="active>1" clearable placeholder="不选择时报告显示/" size="small"/>
              </el-form-item>
            </el-col>
            <el-col :span="6">
@@ -853,6 +853,8 @@
        quarterItemId: '',
        sampleView: '', // 样品名称(报告展示字段)
        sampleViewEn: '', // 样品名称英文(报告展示字段)
        productionDate: null,
        sampleDate: null,
      },
      addObjRules: { // 表单校验规则
        orderType: [
@@ -1567,9 +1569,15 @@
    },
    saveData(sampleList) {
      this.saveLoad = true
      const insOrder = {
        ...this.addObj,
        productionDate: this.addObj.productionDate === '/' || !this.addObj.productionDate
          ? null : this.addObj.productionDate,
        typeSource: -1,
      }
      if (this.tabIndex == 4 && this.active == 2) {
        // 退回后提交
        updateInsOrder({insOrder: this.addObj, sampleProduct: sampleList}).then(res => {
        updateInsOrder({insOrder, sampleProduct: sampleList}).then(res => {
          this.saveLoad = false
          this.$message.success('已提交')
          this.bsm3Dia = false;
@@ -1579,7 +1587,7 @@
        })
      } else {
        // 常规提交
        const newJuOrder = {...this.addObj, typeSource: -1}
        const newJuOrder = {...insOrder}
        delete newJuOrder.temperature
        delete newJuOrder.humidity
        const payload = this.addObj.standardTreeId
@@ -1589,7 +1597,7 @@
            sampleCode: this.sampleCode,
            templateList: this.boundTemplateList.map((item, index) => ({templateId: item.templateId, sort: index}))
          }
          : {insOrder: {...this.addObj, typeSource: -1}, sampleList: sampleList}
          : {insOrder, sampleList: sampleList}
        addInsOrder(payload).then(res => {
          this.saveLoad = false
          this.$message.success('已提交')