| | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="报损单单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orderCode"> |
| | | <j-input v-model="model.orderCode" placeholder="系统自动生成" :disabled="true"></j-input> |
| | | <a-input v-model="model.orderCode" placeholder="系统自动生成" :disabled="true"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="报损人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="losser"> |
| | | <j-dict-select-tag :disabled="disableSubmit" |
| | | v-model="model.losser" dictCode="sys_user,realname,id" |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="经手人" :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | prop="handler"> |
| | | |
| | | <j-dict-select-tag :disabled="true" |
| | | v-model="model.handler" dictCode="sys_user,realname,id" |
| | | placeholder="请选择" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | |
| | | <a-col :span="12"> |
| | | <a-form-model-item v-if="addShow" label="经手人" :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | prop="handler"> |
| | | |
| | | <!-- <a-col :span="12"> |
| | | <a-form-model-item label="报损人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="losser"> |
| | | <j-dict-select-tag :disabled="disableSubmit" |
| | | v-model="model.handler" dictCode="sys_user,realname,id" |
| | | v-model="model.losser" dictCode="sys_user,realname,id" |
| | | placeholder="请选择" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | |
| | | <a-col :span="12"> |
| | | <a-form-model-item v-if="addShow" label="审核状态" :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | prop="orderStatus"> |
| | |
| | | placeholder="请选择审核状态" disabled /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item v-if="addShow" label="审核时间" :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | prop="approvalDate"> |
| | | |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item v-if="addShow" label="审核意见" :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | <a-col :span="24"> |
| | | <a-form-model-item v-if="addShow" label="审核意见" :labelCol="{span:2}" :wrapperCol="{span:20}" |
| | | prop="approvalOpinion"> |
| | | <a-input v-model="model.approvalOpinion" placeholder="请输入审核意见" disabled></a-input> |
| | | </a-form-model-item> |
| | |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark"> |
| | | <a-textarea :disabled="disableSubmit" v-model="model.remark" rows="4" placeholder="请输入备注" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="报损原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lossReason"> |
| | | <a-textarea :disabled="disableSubmit" v-model="model.lossReason" rows="4" placeholder="请输入报损原因" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark"> |
| | | <a-textarea :disabled="disableSubmit" v-model="model.remark" rows="4" placeholder="请输入备注" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <template v-for="col in columns" :slot="col.dataIndex" slot-scope="text, record, index"> |
| | | <div v-if="col.dataIndex == 'lossNumber'"> |
| | | <a-input-number |
| | | :disabled="disableSubmit" |
| | | :disabled="record.accuracyClass === '1'" |
| | | :value="text" |
| | | :min="0" |
| | | :min="1" |
| | | :max="99999" |
| | | @change="(e) => handleChange(e, record.key, col, index)" |
| | | style="width: 100%;" |
| | |
| | | goodsShelvesId: data[i].positionCode, |
| | | toolMaterial: data[i].toolMaterial, |
| | | partMaterial: data[i].partMaterial, |
| | | lossNumber: null, // 初始化报损数量 |
| | | lossNumber: "1", // 初始化报损数量 |
| | | lossNumberError: false, // 校验状态 |
| | | lossNumberMsg: '' // 错误信息 |
| | | lossNumberMsg: '', // 错误信息 |
| | | accuracyClass: data[i].accuracyClass |
| | | }) |
| | | } |
| | | this.ipagination.total = this.dataSource.length |