| | |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="服务单编号" prop="serviceNumber"> |
| | | <!-- <el-input v-model="editConfig.infomation.serviceNumber" style="width: 100%"></el-input> --> |
| | | <WordInput |
| | | v-if="codenumer && (explain != '' || isIdDisabled) && method == 0" |
| | | :codenumer="codenumer" |
| | | :sum="sum" |
| | | :disabled="editConfig.infomation.id || isIdDisabled" |
| | | :inputValue="inputValue" |
| | | @codeList="codeList" |
| | | /> |
| | | <span v-else-if="method == 0" style="color: #f56c6c" |
| | | >请优先配置编码规范 <el-button type="text" @click="numberClick"> 配置规范 </el-button></span |
| | | > |
| | | <span v-else>自动生成</span> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="客户名称" prop="client_name"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="服务单编号" prop="serviceNumber"> |
| | | <el-input v-model="editConfig.infomation.serviceNumber" style="width: 100%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="12"> |
| | | <el-form-item label="服务合同"> |
| | | <div class="custom-name"> |
| | |
| | | getTimeSpentList |
| | | } from "@/api/common/other" |
| | | import Status from "@/common/const/commonStatus" |
| | | import codeMixin from "./mixin/codeMixin" |
| | | |
| | | export default { |
| | | name: "AddClientServiceOrderDialog", |
| | | mixins: [pageMixin], |
| | | mixins: [pageMixin, codeMixin], |
| | | props: { |
| | | editCommonConfig: { |
| | | type: Object, |
| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | serviceNumber: [{ required: true, message: "请输入服务单编号", trigger: "blur" }], |
| | | // faultTypeId: [{ required: true, message: "请选择故障类别", trigger: "change" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | subject: [{ required: true, message: "请输入主题", trigger: "blur" }], |
| | | // productCategory: [{ required: true, message: "请选择产品类别", trigger: "change" }], |
| | | serviceManId: [{ required: true, message: "请选择产品类别", trigger: "change" }], |
| | |
| | | this.getSeverityList() |
| | | this.getPriorityLevelList() |
| | | this.getTimeSpentList() |
| | | this.formInfo() |
| | | }, |
| | | watch: { |
| | | "editCommonConfig.visible"(val) { |
| | | if (val) { |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | "editCommonConfig.infomation.codeStandID"() { |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | methods: { |
| | | formInfo() { |
| | | this.objCode.codeStandID = "" |
| | | if (this.editConfig.infomation.codeStandID) { |
| | | this.objCode.codeStandID = this.editConfig.infomation.codeStandID |
| | | } |
| | | this.getRCodeStandardList() |
| | | }, |
| | | setTable() { |
| | | this.recordTableList = { |
| | | tableInfomation: [], |
| | |
| | | solutionRemark: data.solutionRemark || "", |
| | | serviceOrderStatusId: data.serviceOrderStatusId || 0, |
| | | subject: data.subject || "", |
| | | timeSpentId: data.timeSpentId || 0 |
| | | timeSpentId: data.timeSpentId || 0, |
| | | codeStandID: data.ID, |
| | | codeRule: this.codeRule |
| | | } |
| | | return params |
| | | }, |