| | |
| | | <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"> |
| | |
| | | quarterItemId: '', |
| | | sampleView: '', // 样品名称(报告展示字段) |
| | | sampleViewEn: '', // 样品名称英文(报告展示字段) |
| | | productionDate: null, |
| | | sampleDate: null, |
| | | }, |
| | | addObjRules: { // 表单校验规则 |
| | | orderType: [ |
| | |
| | | }, |
| | | 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; |
| | |
| | | }) |
| | | } else { |
| | | // 常规提交 |
| | | const newJuOrder = {...this.addObj, typeSource: -1} |
| | | const newJuOrder = {...insOrder} |
| | | delete newJuOrder.temperature |
| | | delete newJuOrder.humidity |
| | | const payload = this.addObj.standardTreeId |
| | |
| | | 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('已提交') |