|
@@ -1,11 +1,9 @@
|
|
|
<template>
|
|
|
<zj-page-container>
|
|
|
<zj-page-fill class="neibuview">
|
|
|
- <zj-form-container ref="formRef" :form-data="orderInfo" :form-rules="formRules"
|
|
|
- :form-attributes="{ size: 'mini' }">
|
|
|
+ <zj-form-container ref="formRef" :form-data="orderInfo" :form-rules="formRules" :form-attributes="{ size: 'mini' }">
|
|
|
<!-- 派工信息 创建不需要 -->
|
|
|
- <zj-form-module title="派工信息" label-width="68px" :form-data="orderInfo"
|
|
|
- :form-items="dispatchInfo">
|
|
|
+ <zj-form-module title="派工信息" label-width="68px" :form-data="orderInfo" :form-items="dispatchInfo">
|
|
|
<div slot="internal-bottom">
|
|
|
<copy-info text="复制工单信息" :info="dispatchInfo" :order-info="orderInfo" />
|
|
|
</div>
|
|
@@ -19,62 +17,55 @@
|
|
|
</div>
|
|
|
</zj-form-module>
|
|
|
<!-- 基本信息 -->
|
|
|
- <zj-form-module title="基本信息" label-width="100px" :form-data="orderInfo"
|
|
|
- :form-items="basicInfo" />
|
|
|
+ <zj-form-module title="基本信息" label-width="100px" :form-data="orderInfo" :form-items="basicInfo" />
|
|
|
<!-- 服务信息 -->
|
|
|
- <zj-form-module title="服务信息" label-width="100px" :form-data="orderInfo"
|
|
|
- :form-items="serviceInfo" />
|
|
|
+ <zj-form-module title="服务信息" label-width="100px" :form-data="orderInfo" :form-items="serviceInfo" />
|
|
|
<!-- 产品信息 -->
|
|
|
- <zj-form-module
|
|
|
- :title="`<span style='color:red'>*</span> ${orderInfo.serviceCategoryId == 1 ? '产品信息' : '服务内容'}`"
|
|
|
+ <zj-form-module :title="`<span style='color:red'>*</span> ${orderInfo.serviceCategoryId == 1 ? '产品信息' : '服务内容'}`"
|
|
|
:form-data="orderInfo" :form-items="product">
|
|
|
</zj-form-module>
|
|
|
<!-- 其它信息 -->
|
|
|
- <zj-form-module title="其它信息" label-width="80px" :form-data="orderInfo"
|
|
|
- :form-items="otherInfo" />
|
|
|
+ <zj-form-module title="其它信息" label-width="80px" :form-data="orderInfo" :form-items="otherInfo" />
|
|
|
<!-- 派单信息 -->
|
|
|
- <zj-form-module label-width="100px" title="派单信息" :form-data="orderInfo"
|
|
|
- :form-items="pandanxinxi" />
|
|
|
+ <zj-form-module label-width="100px" title="派单信息" :form-data="orderInfo" :form-items="pandanxinxi" />
|
|
|
</zj-form-container>
|
|
|
</zj-page-fill>
|
|
|
<!-- 操作按钮 -->
|
|
|
<div>
|
|
|
<div style="box-sizing: border-box;padding: 10px 10px 0;" v-if="id">
|
|
|
<!-- 关闭 -->
|
|
|
- <close-button :options="options" />
|
|
|
+ <close-button />
|
|
|
<!-- 临时保存 -->
|
|
|
- <commit-temp-save v-if="~btnRestrict.indexOf(25)" :order-info="orderInfo"
|
|
|
- :order-type="orderType" :options="options" @upoptions="upoptions" />
|
|
|
+ <commit-temp-save v-if="~btnRestrict.indexOf(25)" :order-info="orderInfo" :order-type="orderType"
|
|
|
+ @upoptions="upoptions" />
|
|
|
<!-- 关闭工单 -->
|
|
|
- <close-order v-if="~btnRestrict.indexOf(1)" :order-info="{ ...orderInfo }"
|
|
|
- :order-type="orderType" :options="options" @upoptions="upoptions" />
|
|
|
+ <close-order v-if="~btnRestrict.indexOf(1)" :order-info="{ ...orderInfo }" :order-type="orderType"
|
|
|
+ @upoptions="upoptions" />
|
|
|
<!-- 过程反馈 -->
|
|
|
- <process-feedback v-if="~btnRestrict.indexOf(11)" :order-info="orderInfo"
|
|
|
- :order-type="orderType" @upoptions="upoptions" />
|
|
|
+ <process-feedback v-if="~btnRestrict.indexOf(11)" :order-info="orderInfo" :order-type="orderType"
|
|
|
+ @upoptions="upoptions" />
|
|
|
<!-- 驳回 -->
|
|
|
<div class="withinLine">
|
|
|
- <rejectOrder v-if="~btnRestrict.indexOf(13)" :order-info="orderInfo"
|
|
|
- @upoptions="upoptions" />
|
|
|
+ <rejectOrder v-if="~btnRestrict.indexOf(13)" :order-info="orderInfo" @upoptions="upoptions" />
|
|
|
</div>
|
|
|
<!-- 备注 -->
|
|
|
- <process-feedback v-if="~btnRestrict.indexOf(14) " :order-info="orderInfo"
|
|
|
- :order-type="orderType" resultCode_="999" resultCodeName="备注" @upoptions="upoptions" />
|
|
|
+ <process-feedback v-if="~btnRestrict.indexOf(14)" :order-info="orderInfo" :order-type="orderType"
|
|
|
+ resultCode_="999" resultCodeName="备注" @upoptions="upoptions" />
|
|
|
<!-- 作废 -->
|
|
|
<void-view v-if="~btnRestrict.indexOf(15)" :order-info="orderInfo" :order-type="orderType"
|
|
|
@upoptions="upoptions" />
|
|
|
<!-- 激活工单 -->
|
|
|
- <activate v-if="~btnRestrict.indexOf(16)" :order-info="orderInfo"
|
|
|
- :order-type="orderType" @upoptions="upoptions" />
|
|
|
+ <activate v-if="~btnRestrict.indexOf(16)" :order-info="orderInfo" :order-type="orderType"
|
|
|
+ @upoptions="upoptions" />
|
|
|
</div>
|
|
|
<div style="box-sizing: border-box;padding: 10px 10px 0;" v-else>
|
|
|
<!-- 关闭 -->
|
|
|
- <close-button :options="options" />
|
|
|
+ <close-button />
|
|
|
<!-- 临时保存 -->
|
|
|
- <commit-temp-save :order-info="orderInfo"
|
|
|
- :order-type="orderType" :options="options" @upoptions="upoptions" />
|
|
|
+ <commit-temp-save :order-info="orderInfo" :order-type="orderType" @upoptions="upoptions" />
|
|
|
<!-- 下派工单 -->
|
|
|
- <commit-save :order-info="orderInfo" :order-type="orderType"
|
|
|
- :options="options" :cp_gpsAddress="cp_gpsAddress" @upoptions="upoptions" />
|
|
|
+ <commit-save :order-info="orderInfo" :order-type="orderType" :cp_gpsAddress="cp_gpsAddress"
|
|
|
+ @upoptions="upoptions" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</zj-page-container>
|
|
@@ -123,19 +114,17 @@ export default {
|
|
|
],
|
|
|
methods: {
|
|
|
upoptions() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- vjy(cb) {
|
|
|
+ allVerify(cb) {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
cb && cb()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- appointVjy(arr, cb) {
|
|
|
- this.$refs.formRef.validateField_fx(
|
|
|
- arr,
|
|
|
- (valid, invalidFields, errLabels) => {
|
|
|
+ appointVerify(arr, cb) {
|
|
|
+ this.$refs.formRef.validateField_fx(arr, (valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
cb && cb()
|
|
|
}
|
|
@@ -150,10 +139,12 @@ export default {
|
|
|
.neibuview {
|
|
|
box-sizing: border-box;
|
|
|
padding-left: 16px;
|
|
|
+
|
|
|
::v-deep .zj-page-fill-scroll {
|
|
|
box-sizing: border-box;
|
|
|
padding-right: 16px;
|
|
|
- &>div:nth-child(1){
|
|
|
+
|
|
|
+ &>div:nth-child(1) {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
}
|