|
|
|
@ -2,10 +2,7 @@
|
|
|
|
|
<transition name="el-zoom-in-center">
|
|
|
|
|
<div class="JNPF-preview-main">
|
|
|
|
|
<div class="JNPF-common-page-header">
|
|
|
|
|
<el-page-header
|
|
|
|
|
@back="goBack"
|
|
|
|
|
:content="!dataForm.id ? '新建' : '编辑'"
|
|
|
|
|
/>
|
|
|
|
|
<el-page-header @back="goBack" :content="!dataForm.id ? '新建' : '编辑'" />
|
|
|
|
|
<div class="options">
|
|
|
|
|
<el-dropdown class="dropdown" placement="bottom">
|
|
|
|
|
<el-button style="width:70px">
|
|
|
|
@ -20,131 +17,67 @@
|
|
|
|
|
{{ "下一条" }}
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</template>
|
|
|
|
|
<el-dropdown-item
|
|
|
|
|
type="primary"
|
|
|
|
|
@click.native="dataFormSubmit(2)"
|
|
|
|
|
:loading="continueBtnLoading"
|
|
|
|
|
:disabled="btnLoading"
|
|
|
|
|
>
|
|
|
|
|
<el-dropdown-item type="primary" @click.native="dataFormSubmit(2)" :loading="continueBtnLoading"
|
|
|
|
|
:disabled="btnLoading">
|
|
|
|
|
{{
|
|
|
|
|
!dataForm.id ? "确定并新增" : "确定并继续"
|
|
|
|
|
}}</el-dropdown-item
|
|
|
|
|
>
|
|
|
|
|
}}</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="dataFormSubmit()"
|
|
|
|
|
:loading="btnLoading"
|
|
|
|
|
:disabled="continueBtnLoading"
|
|
|
|
|
>
|
|
|
|
|
保 存</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading" :disabled="continueBtnLoading">
|
|
|
|
|
保 存</el-button>
|
|
|
|
|
<el-button @click="goBack"> 取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-row
|
|
|
|
|
:gutter="15"
|
|
|
|
|
class=" main"
|
|
|
|
|
:style="{ margin: '0 auto', width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
ref="formRef"
|
|
|
|
|
:model="dataForm"
|
|
|
|
|
:rules="dataRule"
|
|
|
|
|
size="small"
|
|
|
|
|
label-width="150px"
|
|
|
|
|
label-position="right"
|
|
|
|
|
>
|
|
|
|
|
<el-row :gutter="15" class=" main" :style="{ margin: '0 auto', width: '100%' }">
|
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="150px"
|
|
|
|
|
label-position="right">
|
|
|
|
|
<template v-if="!loading">
|
|
|
|
|
<!-- 具体表单 -->
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-collapse
|
|
|
|
|
:accordion="false"
|
|
|
|
|
v-model="activeripxar"
|
|
|
|
|
class="mb-20"
|
|
|
|
|
>
|
|
|
|
|
<el-collapse :accordion="false" v-model="activeripxar" class="mb-20">
|
|
|
|
|
<el-collapse-item title="投递情况" name="1">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="投递单号" prop="orderNo">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.orderNo"
|
|
|
|
|
@change="changeData('orderNo', -1)"
|
|
|
|
|
placeholder="系统自动生成"
|
|
|
|
|
readonly
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.orderNo" @change="changeData('orderNo', -1)" placeholder="系统自动生成"
|
|
|
|
|
readonly :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="投递机柜" prop="deviceCode">
|
|
|
|
|
<JnpfSelect
|
|
|
|
|
v-model="dataForm.deviceCode"
|
|
|
|
|
@change="changeData('deviceCode', -1)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
:options="deviceCodeOptions"
|
|
|
|
|
:props="deviceCodeProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfSelect v-model="dataForm.deviceCode" @change="changeData('deviceCode', -1)" placeholder="请选择"
|
|
|
|
|
clearable :style="{ width: '100%' }" :options="deviceCodeOptions" :props="deviceCodeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="投递人手机" prop="phone">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.phone"
|
|
|
|
|
@change="changeData('phone', -1)"
|
|
|
|
|
placeholder="投递员手机"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.phone" @change="changeData('phone', -1)" placeholder="投递员手机"
|
|
|
|
|
clearable :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="门号" prop="doorNum">
|
|
|
|
|
<JnpfSelect
|
|
|
|
|
v-model="dataForm.doorNum"
|
|
|
|
|
@change="changeData('doorNum', -1)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
:options="doorNumOptions"
|
|
|
|
|
:props="doorNumProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfSelect v-model="dataForm.doorNum" @change="changeData('doorNum', -1)" placeholder="请选择"
|
|
|
|
|
clearable :style="{ width: '100%' }" :options="doorNumOptions" :props="doorNumProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="回收品大类" prop="productCode">
|
|
|
|
|
<JnpfSelect
|
|
|
|
|
v-model="dataForm.productCode"
|
|
|
|
|
@change="changeData('productCode', -1)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
:options="productCodeOptions"
|
|
|
|
|
:props="productCodeProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfSelect v-model="dataForm.productCode" @change="changeData('productCode', -1)"
|
|
|
|
|
placeholder="请选择" clearable :style="{ width: '100%' }" :options="productCodeOptions"
|
|
|
|
|
:props="productCodeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
|
label="回收品子类"
|
|
|
|
|
prop="productSubCode"
|
|
|
|
|
>
|
|
|
|
|
<JnpfSelect
|
|
|
|
|
v-model="dataForm.productSubCode"
|
|
|
|
|
@change="changeData('productSubCode', -1)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
:options="productSubCodeOptions"
|
|
|
|
|
:props="productSubCodeProps"
|
|
|
|
|
>
|
|
|
|
|
<jnpf-form-tip-item label="回收品子类" prop="productSubCode">
|
|
|
|
|
<JnpfSelect v-model="dataForm.productSubCode" @change="changeData('productSubCode', -1)"
|
|
|
|
|
placeholder="请选择" clearable :style="{ width: '100%' }" :options="productSubCodeOptions"
|
|
|
|
|
:props="productSubCodeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
<!-- <JnpfCascader
|
|
|
|
|
v-model="dataForm.productSubCode"
|
|
|
|
@ -162,149 +95,86 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="上报重量" prop="reportWeight">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.reportWeight"
|
|
|
|
|
@change="changeData('reportWeight', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
addonAfter="KG"
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.reportWeight" :disabled="!changeId"
|
|
|
|
|
@change="changeData('reportWeight', -1)" placeholder="请输入" addonAfter="KG"
|
|
|
|
|
:style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="单价" prop="price">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.price"
|
|
|
|
|
@change="changeData('price', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
addonAfter="元"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.price" :disabled="!changeId" @change="changeData('price', -1)"
|
|
|
|
|
placeholder="请输入" addonAfter="元" clearable :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="总价" prop="totalPrice">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.totalPrice"
|
|
|
|
|
@change="changeData('totalPrice', -1)"
|
|
|
|
|
placeholder="审核后本单总价"
|
|
|
|
|
addonAfter="元"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.totalPrice" :disabled="!changeId"
|
|
|
|
|
@change="changeData('totalPrice', -1)" placeholder="审核后本单总价" addonAfter="元" clearable
|
|
|
|
|
:style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="桶内原重" prop="originalWeight">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.originalWeight"
|
|
|
|
|
@change="changeData('originalWeight', -1)"
|
|
|
|
|
placeholder="投递前桶内重量"
|
|
|
|
|
addonAfter="KG"
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.originalWeight" :disabled="!changeId"
|
|
|
|
|
@change="changeData('originalWeight', -1)" placeholder="投递前桶内重量" addonAfter="KG"
|
|
|
|
|
:style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="审核重量" prop="adjustWeight">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.adjustWeight"
|
|
|
|
|
@change="changeData('adjustWeight', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
addonAfter="KG"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.adjustWeight" :disabled="!changeId"
|
|
|
|
|
@change="changeData('adjustWeight', -1)" placeholder="请输入" addonAfter="KG" clearable
|
|
|
|
|
:style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="审核总价" prop="adjustPrice">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.adjustPrice"
|
|
|
|
|
@change="changeData('adjustPrice', -1)"
|
|
|
|
|
placeholder="审核后本单总价"
|
|
|
|
|
addonAfter="元"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.adjustPrice" :disabled="!changeId"
|
|
|
|
|
@change="changeData('adjustPrice', -1)" placeholder="审核后本单总价" addonAfter="元" clearable
|
|
|
|
|
:style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="审核状态 " prop="adjustStatus">
|
|
|
|
|
<JnpfRadio
|
|
|
|
|
v-model="dataForm.adjustStatus"
|
|
|
|
|
@change="changeData('adjustStatus', -1)"
|
|
|
|
|
optionType="button"
|
|
|
|
|
direction="horizontal"
|
|
|
|
|
size="small"
|
|
|
|
|
:options="adjustStatusOptions"
|
|
|
|
|
:props="adjustStatusProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfRadio v-model="dataForm.adjustStatus" @change="changeData('adjustStatus', -1)"
|
|
|
|
|
optionType="button" direction="horizontal" size="small" :options="adjustStatusOptions"
|
|
|
|
|
:props="adjustStatusProps">
|
|
|
|
|
</JnpfRadio>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="审核设置" prop="adjustSet">
|
|
|
|
|
<JnpfRadio
|
|
|
|
|
v-model="dataForm.adjustSet"
|
|
|
|
|
@change="changeData('adjustSet', -1)"
|
|
|
|
|
disabled
|
|
|
|
|
optionType="button"
|
|
|
|
|
direction="horizontal"
|
|
|
|
|
size="small"
|
|
|
|
|
:options="adjustSetOptions"
|
|
|
|
|
:props="adjustSetProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfRadio v-model="dataForm.adjustSet" @change="changeData('adjustSet', -1)" disabled
|
|
|
|
|
optionType="button" direction="horizontal" size="small" :options="adjustSetOptions"
|
|
|
|
|
:props="adjustSetProps">
|
|
|
|
|
</JnpfRadio>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="审核说明" prop="adjustComm">
|
|
|
|
|
<JnpfTextarea
|
|
|
|
|
v-model="dataForm.adjustComm"
|
|
|
|
|
@change="changeData('adjustComm', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
true
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 4 }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfTextarea v-model="dataForm.adjustComm" @change="changeData('adjustComm', -1)"
|
|
|
|
|
placeholder="请输入" :style="{ width: '100%' }" true type="textarea"
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 4 }">
|
|
|
|
|
</JnpfTextarea>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="投递照片" prop="photo">
|
|
|
|
|
<JnpfUploadImg
|
|
|
|
|
v-model="dataForm.photo"
|
|
|
|
|
@change="changeData('photo', -1)"
|
|
|
|
|
disabled
|
|
|
|
|
:fileSize="2"
|
|
|
|
|
sizeUnit="MB"
|
|
|
|
|
:limit="4"
|
|
|
|
|
pathType="defaultPath"
|
|
|
|
|
:isAccount="0"
|
|
|
|
|
>
|
|
|
|
|
<JnpfUploadImg v-model="dataForm.photo" @change="changeData('photo', -1)" disabled :fileSize="2"
|
|
|
|
|
sizeUnit="MB" :limit="4" pathType="defaultPath" :isAccount="0">
|
|
|
|
|
</JnpfUploadImg>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="桶编号" prop="bucketCode">
|
|
|
|
|
<JnpfSelect
|
|
|
|
|
v-model="dataForm.bucketCode"
|
|
|
|
|
@change="changeData('bucketCode', -1)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
:options="bucketCodeOptions"
|
|
|
|
|
:props="bucketCodeProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfSelect v-model="dataForm.bucketCode" @change="changeData('bucketCode', -1)" placeholder="请选择"
|
|
|
|
|
clearable :style="{ width: '100%' }" :options="bucketCodeOptions" :props="bucketCodeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
<!-- <JnpfCascader
|
|
|
|
|
v-model="dataForm.bucketCode"
|
|
|
|
@ -322,39 +192,22 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="垃圾袋编号" prop="bagNo">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.bagNo"
|
|
|
|
|
@change="changeData('bagNo', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.bagNo" @change="changeData('bagNo', -1)" placeholder="请输入" clearable
|
|
|
|
|
:style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="机柜单号" prop="deviceOrderNo">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.deviceOrderNo"
|
|
|
|
|
@change="changeData('deviceOrderNo', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.deviceOrderNo" @change="changeData('deviceOrderNo', -1)"
|
|
|
|
|
placeholder="请输入" clearable :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="登录方式" prop="loginType">
|
|
|
|
|
<JnpfRadio
|
|
|
|
|
v-model="dataForm.loginType"
|
|
|
|
|
@change="changeData('loginType', -1)"
|
|
|
|
|
optionType="button"
|
|
|
|
|
direction="horizontal"
|
|
|
|
|
size="small"
|
|
|
|
|
:options="loginTypeOptions"
|
|
|
|
|
:props="loginTypeProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfRadio v-model="dataForm.loginType" @change="changeData('loginType', -1)" optionType="button"
|
|
|
|
|
direction="horizontal" size="small" :options="loginTypeOptions" :props="loginTypeProps">
|
|
|
|
|
</JnpfRadio>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -362,44 +215,23 @@
|
|
|
|
|
<el-collapse-item title="清运情况" name="2">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="清运单号" prop="cleanNo">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.cleanNo"
|
|
|
|
|
@change="changeData('cleanNo', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
readonly
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.cleanNo" @change="changeData('cleanNo', -1)" placeholder="请输入"
|
|
|
|
|
readonly clearable :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
|
label="清运员手机号"
|
|
|
|
|
prop="cleanerPhone"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.cleanerPhone"
|
|
|
|
|
@change="changeData('cleanerPhone', -1)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
readonly
|
|
|
|
|
clearable
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<jnpf-form-tip-item label="清运员手机号" prop="cleanerPhone">
|
|
|
|
|
<JnpfInput v-model="dataForm.cleanerPhone" @change="changeData('cleanerPhone', -1)"
|
|
|
|
|
placeholder="请输入" readonly clearable :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="清运状态" prop="cleanStatus">
|
|
|
|
|
<JnpfRadio
|
|
|
|
|
v-model="dataForm.cleanStatus"
|
|
|
|
|
@change="changeData('cleanStatus', -1)"
|
|
|
|
|
optionType="button"
|
|
|
|
|
direction="horizontal"
|
|
|
|
|
size="small"
|
|
|
|
|
:options="cleanStatusOptions"
|
|
|
|
|
:props="cleanStatusProps"
|
|
|
|
|
>
|
|
|
|
|
<JnpfRadio v-model="dataForm.cleanStatus" @change="changeData('cleanStatus', -1)"
|
|
|
|
|
optionType="button" direction="horizontal" size="small" :options="cleanStatusOptions"
|
|
|
|
|
:props="cleanStatusProps">
|
|
|
|
|
</JnpfRadio>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -419,28 +251,15 @@
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="修改时间" prop="lastModifyTime">
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.lastModifyTime"
|
|
|
|
|
@change="changeData('lastModifyTime', -1)"
|
|
|
|
|
placeholder="系统自动生成"
|
|
|
|
|
readonly
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput v-model="dataForm.lastModifyTime" @change="changeData('lastModifyTime', -1)"
|
|
|
|
|
placeholder="系统自动生成" readonly :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
|
label="修改用户"
|
|
|
|
|
prop="lastModifyUserId"
|
|
|
|
|
>
|
|
|
|
|
<JnpfInput
|
|
|
|
|
v-model="dataForm.lastModifyUserId"
|
|
|
|
|
@change="changeData('lastModifyUserId', -1)"
|
|
|
|
|
placeholder="系统自动生成"
|
|
|
|
|
readonly
|
|
|
|
|
:style="{ width: '100%' }"
|
|
|
|
|
>
|
|
|
|
|
<jnpf-form-tip-item label="修改用户" prop="lastModifyUserId">
|
|
|
|
|
<JnpfInput v-model="dataForm.lastModifyUserId" @change="changeData('lastModifyUserId', -1)"
|
|
|
|
|
placeholder="系统自动生成" readonly :style="{ width: '100%' }">
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -467,14 +286,8 @@
|
|
|
|
|
<!-- 表单结束 -->
|
|
|
|
|
</template>
|
|
|
|
|
</el-form>
|
|
|
|
|
<SelectDialog
|
|
|
|
|
v-if="selectDialogVisible"
|
|
|
|
|
:config="currTableConf"
|
|
|
|
|
:formData="dataForm"
|
|
|
|
|
ref="selectDialog"
|
|
|
|
|
@select="addForSelect"
|
|
|
|
|
@close="selectDialogVisible = false"
|
|
|
|
|
/>
|
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
|
|
|
|
|
@select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
@ -606,7 +419,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
pattern: /^([1-9][\d]*|0)(\.[\d]+)?$/,
|
|
|
|
|
message: "请输入正确的重量",
|
|
|
|
|
message: "请输入正确的金额",
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
@ -779,6 +592,9 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
changeId() {
|
|
|
|
|
return !this.dataForm.id;
|
|
|
|
|
},
|
|
|
|
|
...mapGetters(["userInfo"])
|
|
|
|
|
},
|
|
|
|
|
watch: {},
|
|
|
|
@ -787,7 +603,7 @@ export default {
|
|
|
|
|
this.initDefaultData();
|
|
|
|
|
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm));
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
prev() {
|
|
|
|
|
this.index--;
|
|
|
|
@ -886,10 +702,10 @@ export default {
|
|
|
|
|
if (relationFieldAll.length > 1 && index > -1) {
|
|
|
|
|
val =
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"] &&
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
? this.dataForm[relationFieldAll[0] + "List"][index][
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
: "";
|
|
|
|
|
} else {
|
|
|
|
|
val = this.dataForm[relationFieldAll];
|
|
|
|
@ -919,10 +735,10 @@ export default {
|
|
|
|
|
if (relationFieldAll.length > 1 && index > -1) {
|
|
|
|
|
val =
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"] &&
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
? this.dataForm[relationFieldAll[0] + "List"][index][
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
: "";
|
|
|
|
|
} else {
|
|
|
|
|
val = this.dataForm[relationFieldAll];
|
|
|
|
@ -958,10 +774,10 @@ export default {
|
|
|
|
|
if (relationFieldAll.length > 1 && index > -1) {
|
|
|
|
|
val =
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"] &&
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
? this.dataForm[relationFieldAll[0] + "List"][index][
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
: "";
|
|
|
|
|
} else {
|
|
|
|
|
val = this.dataForm[relationFieldAll];
|
|
|
|
@ -1007,10 +823,10 @@ export default {
|
|
|
|
|
if (relationFieldAll.length > 1 && index > -1) {
|
|
|
|
|
val =
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"] &&
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
this.dataForm[relationFieldAll[0] + "List"].length
|
|
|
|
|
? this.dataForm[relationFieldAll[0] + "List"][index][
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
relationFieldAll[1]
|
|
|
|
|
]
|
|
|
|
|
: "";
|
|
|
|
|
} else {
|
|
|
|
|
val = this.dataForm[relationFieldAll];
|
|
|
|
@ -1069,7 +885,7 @@ export default {
|
|
|
|
|
this.$store.commit("generator/UPDATE_RELATION_DATA", {});
|
|
|
|
|
},
|
|
|
|
|
//初始化默认数据
|
|
|
|
|
initDefaultData() {},
|
|
|
|
|
initDefaultData() { },
|
|
|
|
|
// 表单提交
|
|
|
|
|
dataFormSubmit(type) {
|
|
|
|
|
this.dataFormSubmitType = type ? type : 0;
|
|
|
|
|