|
@@ -26,29 +26,26 @@
|
|
|
</row-item>
|
|
|
<row-item>
|
|
|
<a-form-item
|
|
|
- label="公司"
|
|
|
+ label="报修时间"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-select @change="handleCompanyList" v-decorator="['parentPositionId']" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="({id, name}) in companyList"
|
|
|
- :key="id"
|
|
|
- :label="name"
|
|
|
- :value="id">{{ name }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <a-date-picker
|
|
|
+ showTime
|
|
|
+ style="width: 100%"
|
|
|
+ :format="BaseTool.Date.PICKER_NORM_DATETIME_PATTERN"
|
|
|
+ v-decorator="['applyTime', {rules: [{required: true, message: '报修时间不能为空'}]}]" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
|
<a-form-item
|
|
|
- label="建筑物"
|
|
|
+ label="公司"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-select v-decorator="['positionId']" placeholder="请选择">
|
|
|
+ <a-select @change="handleCompanyList" v-decorator="['parentPositionId', {rules: [{required: true, message: '公司不能为空'}]}]" placeholder="请选择">
|
|
|
<a-select-option
|
|
|
- v-for="({id, name}) in sbPositionList"
|
|
|
+ v-for="({id, name}) in companyList"
|
|
|
:key="id"
|
|
|
:label="name"
|
|
|
:value="id">{{ name }}
|
|
@@ -57,30 +54,33 @@
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
|
+
|
|
|
<a-form-item
|
|
|
- label="报修时间"
|
|
|
+ label="要求完成日期"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-date-picker
|
|
|
- showTime
|
|
|
style="width: 100%"
|
|
|
- :format="BaseTool.Date.PICKER_NORM_DATETIME_PATTERN"
|
|
|
- v-decorator="['applyTime', {rules: [{required: true, message: '报修时间不能为空'}]}]" />
|
|
|
+ :format="BaseTool.Date.PICKER_NORM_DATE_PATTERN"
|
|
|
+ v-decorator="['limitHours', {rules: [{required: true, message: '要求完成日期不能为空'}]}]" />
|
|
|
+
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
|
-
|
|
|
<a-form-item
|
|
|
- label="要求完成日期"
|
|
|
+ label="建筑物"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-date-picker
|
|
|
- style="width: 100%"
|
|
|
- :format="BaseTool.Date.PICKER_NORM_DATE_PATTERN"
|
|
|
- v-decorator="['limitHours', {rules: [{required: true, message: '要求完成日期不能为空'}]}]" />
|
|
|
-
|
|
|
+ <a-select v-decorator="['positionId', {rules: [{required: true, message: '建筑物不能为空'}]}]" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="({id, name}) in sbPositionList"
|
|
|
+ :key="id"
|
|
|
+ :label="name"
|
|
|
+ :value="id">{{ name }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -215,10 +215,11 @@ export default {
|
|
|
base (record, companyList) {
|
|
|
this.visible = true
|
|
|
this.companyList = companyList
|
|
|
+ this.sbPositionList = []
|
|
|
// 如果是空标识添加
|
|
|
if (this.BaseTool.Object.isBlank(record)) {
|
|
|
this.modalTitle = '添加工单'
|
|
|
- this.saveTitle = '保存'
|
|
|
+ this.saveTitle = '提交'
|
|
|
return
|
|
|
}
|
|
|
// 获取工单下的建筑物
|