parent
e901e4b78b
commit
98b31edb7e
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="jnpf.mapper.WarehousingInspectionConclusionMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="jnpf.mapper.WarehousingInspectionMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="jnpf.mapper.WarehousingInspectionProductMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="jnpf.mapper.WarehousingInspectionVoucherMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@
|
||||
const columnList = [{"jnpfKey":"billRule","fullName":"质检单编号","label":"质检单编号","sortable":false,"align":"left","__config__":{"formId":102,"visibility":["pc","app"],"jnpfKey":"billRule","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"rule":"warehousingInspection","className":[],"label":"质检单编号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_inspection","renderKey":1708665599300,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"质检单","tag":"JnpfInput","span":10},"readonly":true,"prop":"inspectionCode","width":0,"__vModel__":"inspectionCode","fixed":"none","style":{"width":"100%"},"id":"inspectionCode","placeholder":"系统自动生成"},{"jnpfKey":"createTime","fullName":"制单时间","label":"制单时间","sortable":false,"align":"left","type":"currTime","__config__":{"formId":103,"visibility":["pc","app"],"jnpfKey":"createTime","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"制单时间","showLabel":true,"required":false,"tableName":"jg_warehousing_inspection","renderKey":1708665647691,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-createtime","tag":"JnpfOpenData","span":10},"readonly":true,"prop":"creatorTime","width":0,"__vModel__":"creatorTime","fixed":"none","style":{"width":"100%"},"id":"creatorTime","placeholder":""},{"filterable":false,"clearable":true,"jnpfKey":"select","multiple":false,"fullName":"质检类型","label":"质检类型","sortable":false,"align":"left","props":{"label":"fullName","value":"id"},"__config__":{"formId":113,"visibility":["pc","app"],"jnpfKey":"select","defaultValue":"","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"质检类型","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_inspection","renderKey":1708665744875,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","propsName":"","tag":"JnpfSelect","regList":[],"span":8},"prop":"inspectionType","width":0,"options":[{"fullName":"入库质检","id":"1"},{"fullName":"出库质检","id":"2"}],"__vModel__":"inspectionType","fixed":"none","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"inspectionType","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"clearable":true,"jnpfKey":"userSelect","ableIds":[],"multiple":false,"fullName":"质检人员","label":"质检人员","sortable":false,"align":"left","relationField":"","__config__":{"formId":114,"visibility":["pc","app"],"jnpfKey":"userSelect","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"质检人员","trigger":"change","showLabel":true,"required":true,"relationField":"","tableName":"jg_warehousing_inspection","renderKey":1708665776213,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-user","defaultCurrent":false,"tag":"JnpfUserSelect","regList":[],"span":8},"prop":"belongUserId","width":0,"__vModel__":"belongUserId","fixed":"none","style":{"width":"100%"},"selectType":"all","disabled":false,"id":"belongUserId","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"clearable":true,"jnpfKey":"datePicker","format":"yyyy-MM-dd HH:mm","fullName":"质检时间","label":"质检时间","sortable":false,"align":"left","type":"datetime","__config__":{"endRelationField":"","defaultValue":"","dragDisabled":false,"className":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_inspection","renderKey":1708665793517,"tagIcon":"icon-ym icon-ym-generator-date","startRelationField":"","defaultCurrent":false,"tag":"JnpfDatePicker","formId":115,"visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"endTimeTarget":1,"tipLabel":"","startTimeType":1,"endTimeRule":false,"label":"质检时间","startTimeRule":false,"startTimeValue":"","trigger":"change","endTimeValue":"","endTimeType":1,"layout":"colFormItem","startTimeTarget":1,"regList":[],"span":8},"readonly":false,"prop":"inspectionTime","width":0,"__vModel__":"inspectionTime","fixed":"none","style":{"width":"100%"},"disabled":false,"startTime":null,"id":"inspectionTime","placeholder":"请选择","endTime":null,"on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}}]
|
||||
export default columnList
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,818 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<template>
|
||||
<div :style="{margin: '0 auto',width:'100%'}">
|
||||
<el-row :gutter="15" class="">
|
||||
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px"
|
||||
label-position="right" :disabled="setting.readonly">
|
||||
<template v-if="!loading && formOperates">
|
||||
<!-- 具体表单 -->
|
||||
<el-col :span="24">
|
||||
<jnpf-form-tip-item>
|
||||
<JnpfGroupTitle content="基础信息" contentPosition="left">
|
||||
</JnpfGroupTitle>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="10" v-if="judgeShow('inspectionCode')">
|
||||
<jnpf-form-tip-item label="质检单编号" v-if="judgeShow('inspectionCode')"
|
||||
prop="inspectionCode">
|
||||
<JnpfInput v-model="dataForm.inspectionCode" @change="changeData('inspectionCode',-1)"
|
||||
placeholder="系统自动生成" :disabled="judgeWrite('inspectionCode')" readonly
|
||||
:style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="10" v-if="judgeShow('creatorTime')">
|
||||
<jnpf-form-tip-item label="制单时间" v-if="judgeShow('creatorTime')" prop="creatorTime">
|
||||
<JnpfOpenData v-model="dataForm.creatorTime" @change="changeData('creatorTime',-1)"
|
||||
placeholder="系统自动生成" :disabled="judgeWrite('creatorTime')" readonly
|
||||
:style='{"width":"100%"}' type="currTime">
|
||||
</JnpfOpenData>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" v-if="judgeShow('inspectionType')">
|
||||
<jnpf-form-tip-item label="质检类型" v-if="judgeShow('inspectionType')"
|
||||
prop="inspectionType">
|
||||
<JnpfSelect v-model="dataForm.inspectionType"
|
||||
@change="changeData('inspectionType',-1)" placeholder="请选择"
|
||||
:disabled="judgeWrite('inspectionType')" clearable :style='{"width":"100%"}'
|
||||
:options="inspectionTypeOptions" :props="inspectionTypeProps">
|
||||
</JnpfSelect>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" v-if="judgeShow('belongUserId')">
|
||||
<jnpf-form-tip-item label="质检人员" v-if="judgeShow('belongUserId')" prop="belongUserId">
|
||||
<JnpfUserSelect v-model="dataForm.belongUserId"
|
||||
@change="changeData('belongUserId',-1)" placeholder="请选择" selectType="all"
|
||||
:ableIds="ableAll.belongUserIdableIds" :disabled="judgeWrite('belongUserId')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfUserSelect>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8" v-if="judgeShow('inspectionTime')">
|
||||
<jnpf-form-tip-item label="质检时间" v-if="judgeShow('inspectionTime')"
|
||||
prop="inspectionTime">
|
||||
<JnpfDatePicker v-model="dataForm.inspectionTime"
|
||||
@change="changeData('inspectionTime',-1)" :startTime="dateTime(false,1,1,'','')"
|
||||
:endTime="dateTime(false,1,1,'','')" placeholder="请选择"
|
||||
:disabled="judgeWrite('inspectionTime')" clearable :style='{"width":"100%"}'
|
||||
type="datetime" format="yyyy-MM-dd HH:mm">
|
||||
</JnpfDatePicker>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24" v-if="judgeShow('remark')">
|
||||
<jnpf-form-tip-item label="备注" v-if="judgeShow('remark')" prop="remark">
|
||||
<JnpfInput v-model="dataForm.remark" @change="changeData('remark',-1)"
|
||||
placeholder="请输入" :disabled="judgeWrite('remark')" clearable
|
||||
:style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<jnpf-form-tip-item>
|
||||
<JnpfGroupTitle content="关联信息" contentPosition="left">
|
||||
</JnpfGroupTitle>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
|
||||
<jnpf-form-tip-item label-width="0">
|
||||
<div class="JNPF-common-title">
|
||||
<h2></h2>
|
||||
</div>
|
||||
<el-table :data="dataForm.warehousinginspectionvoucherList" size='mini'>
|
||||
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||
<el-table-column label="凭证单据编号"
|
||||
v-if="judgeShow('warehousinginspectionvoucher-voucheId')" prop="voucheId">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionvoucherList-voucheId')">*</span>凭证单据编号
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfPopupSelect v-model="scope.row.voucheId"
|
||||
@change="changeData('warehousinginspectionvoucher-voucheId',scope.$index)"
|
||||
:rowIndex="scope.$index" :formData="dataForm"
|
||||
:templateJson="interfaceRes.warehousinginspectionvouchervoucheId"
|
||||
placeholder="请选择"
|
||||
:disabled="judgeWrite('warehousinginspectionvoucherList')||judgeWrite('warehousinginspectionvoucherList-voucheId')"
|
||||
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
||||
relationField='voucher_code' :field="'voucheId'+scope.$index"
|
||||
interfaceId="530709323597241349" :pageSize="20"
|
||||
:columnOptions="warehousinginspectionvouchervoucheIdcolumnOptions" clearable
|
||||
:style='{"width":"100%"}'>
|
||||
</JnpfPopupSelect>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="50"
|
||||
v-if="!judgeWrite('warehousinginspectionvoucherList')">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
||||
@click="delwarehousinginspectionvoucherList(scope.$index)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="table-actions" @click="addwarehousinginspectionvoucherList()"
|
||||
v-if="!judgeWrite('warehousinginspectionvoucherList')">
|
||||
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
||||
</div>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<jnpf-form-tip-item>
|
||||
<JnpfGroupTitle content="商品数据" contentPosition="left">
|
||||
</JnpfGroupTitle>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24" v-if="judgeShow('warehousinginspectionvoucher-voucher_code')">
|
||||
<jnpf-form-tip-item label-width="0">
|
||||
<div class="JNPF-common-title">
|
||||
<h2></h2>
|
||||
</div>
|
||||
<el-table :data="dataForm.warehousinginspectionproductList" size='mini'>
|
||||
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||
<el-table-column label="商品名称"
|
||||
v-if="judgeShow('warehousinginspectionproduct-productId')" prop="productId">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionproductList-productId')">*</span>商品名称
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfPopupSelect v-model="scope.row.productId"
|
||||
@change="changeData('warehousinginspectionproduct-productId',scope.$index)"
|
||||
:rowIndex="scope.$index" :formData="dataForm"
|
||||
:templateJson="interfaceRes.warehousinginspectionproductproductId"
|
||||
placeholder="请选择"
|
||||
:disabled="judgeWrite('warehousinginspectionproductList')||judgeWrite('warehousinginspectionproductList-productId')"
|
||||
hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
|
||||
popupType="dialog" relationField='name' :field="'productId'+scope.$index"
|
||||
interfaceId="530714636022995973" :pageSize="20"
|
||||
:columnOptions="warehousinginspectionproductproductIdcolumnOptions" clearable
|
||||
:style='{"width":"100%"}'>
|
||||
</JnpfPopupSelect>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="50"
|
||||
v-if="!judgeWrite('warehousinginspectionproductList')">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
||||
@click="delwarehousinginspectionproductList(scope.$index)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="table-actions" @click="addwarehousinginspectionproductList()"
|
||||
v-if="!judgeWrite('warehousinginspectionproductList')">
|
||||
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
||||
</div>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<jnpf-form-tip-item>
|
||||
<JnpfGroupTitle content="检测结论" contentPosition="left">
|
||||
</JnpfGroupTitle>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24" v-if="judgeShow('warehousinginspectionproduct-name')">
|
||||
<jnpf-form-tip-item label-width="0">
|
||||
<div class="JNPF-common-title">
|
||||
<h2></h2>
|
||||
</div>
|
||||
<el-table :data="dataForm.warehousinginspectionconclusionList" size='mini'>
|
||||
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||
<el-table-column label="毛重"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-grossWeight')"
|
||||
prop="grossWeight">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-grossWeight')">*</span>毛重
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.grossWeight"
|
||||
@change="changeData('warehousinginspectionconclusion-grossWeight',scope.$index)"
|
||||
placeholder="请输入"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-grossWeight')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="皮重"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-tareWeight')" prop="tareWeight">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-tareWeight')">*</span>皮重
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.tareWeight"
|
||||
@change="changeData('warehousinginspectionconclusion-tareWeight',scope.$index)"
|
||||
placeholder="请输入"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-tareWeight')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="扣重"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-buckleWeight')"
|
||||
prop="buckleWeight">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-buckleWeight')">*</span>扣重
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.buckleWeight"
|
||||
@change="changeData('warehousinginspectionconclusion-buckleWeight',scope.$index)"
|
||||
placeholder="请输入"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-buckleWeight')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="净重(自动计算)"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-netWeight')" prop="netWeight">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-netWeight')">*</span>净重(自动计算)
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.netWeight"
|
||||
@change="changeData('warehousinginspectionconclusion-netWeight',scope.$index)"
|
||||
placeholder="请输入"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-netWeight')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否降级"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-reduceLevel')"
|
||||
prop="reduceLevel">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-reduceLevel')">*</span>是否降级
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfSelect v-model="scope.row.reduceLevel"
|
||||
@change="changeData('warehousinginspectionconclusion-reduceLevel',scope.$index)"
|
||||
placeholder="请选择"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-reduceLevel')"
|
||||
clearable :style='{"width":"100%"}'
|
||||
:options="warehousinginspectionconclusionreduceLevelOptions"
|
||||
:props="warehousinginspectionconclusionreduceLevelProps">
|
||||
</JnpfSelect>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="等级"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-grade')" prop="grade">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-grade')">*</span>等级
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.grade"
|
||||
@change="changeData('warehousinginspectionconclusion-grade',scope.$index)"
|
||||
placeholder="请输入"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-grade')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建用户"
|
||||
v-if="judgeShow('warehousinginspectionconclusion-creatorUserId')"
|
||||
prop="creatorUserId">
|
||||
<template slot="header">
|
||||
<span class="required-sign"
|
||||
v-if="judgeRequired('warehousinginspectionconclusionList-creatorUserId')">*</span>创建用户
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.creatorUserId"
|
||||
@change="changeData('warehousinginspectionconclusion-creatorUserId',scope.$index)"
|
||||
placeholder="请输入"
|
||||
:disabled="judgeWrite('warehousinginspectionconclusionList')||judgeWrite('warehousinginspectionconclusionList-creatorUserId')"
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="50"
|
||||
v-if="!judgeWrite('warehousinginspectionconclusionList')">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
||||
@click="delwarehousinginspectionconclusionList(scope.$index)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="table-actions" @click="addwarehousinginspectionconclusionList()"
|
||||
v-if="!judgeWrite('warehousinginspectionconclusionList')">
|
||||
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
||||
</div>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" v-if="judgeShow('conclusionType')">
|
||||
<jnpf-form-tip-item label="检测结论" v-if="judgeShow('conclusionType')"
|
||||
prop="conclusionType">
|
||||
<JnpfSelect v-model="dataForm.conclusionType"
|
||||
@change="changeData('conclusionType',-1)" placeholder="请选择"
|
||||
:disabled="judgeWrite('conclusionType')" clearable :style='{"width":"100%"}'
|
||||
:options="conclusionTypeOptions" :props="conclusionTypeProps">
|
||||
</JnpfSelect>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24" v-if="judgeShow('conclusionRemark')">
|
||||
<jnpf-form-tip-item label="检验结果" v-if="judgeShow('conclusionRemark')"
|
||||
prop="conclusionRemark">
|
||||
<JnpfInput v-model="dataForm.conclusionRemark"
|
||||
@change="changeData('conclusionRemark',-1)" placeholder="请输入"
|
||||
:disabled="judgeWrite('conclusionRemark')" clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<!-- 表单结束 -->
|
||||
</template>
|
||||
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
|
||||
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false" />
|
||||
</el-form>
|
||||
</el-row>
|
||||
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from '@/utils/request'
|
||||
import { mapGetters } from "vuex";
|
||||
import { getFormById } from '@/api/workFlow/FormDesign'
|
||||
import comMixin from '@/views/workFlow/workFlowForm/mixin';
|
||||
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
|
||||
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
|
||||
import { getDefaultCurrentValueUserId } from '@/api/permission/user'
|
||||
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
|
||||
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
|
||||
import { thousandsFormat } from "@/components/Generator/utils/index"
|
||||
export default {
|
||||
mixins: [comMixin],
|
||||
components: {},
|
||||
props: [],
|
||||
data() {
|
||||
return {
|
||||
dataFormSubmitType: 0,
|
||||
continueBtnLoading: false,
|
||||
index: 0,
|
||||
prevDis: false,
|
||||
nextDis: false,
|
||||
allList: [],
|
||||
visible: false,
|
||||
loading: false,
|
||||
btnLoading: false,
|
||||
formRef: 'formRef',
|
||||
setting: {},
|
||||
eventType: '',
|
||||
userBoxVisible: false,
|
||||
selectDialogVisible: false,
|
||||
currTableConf: {},
|
||||
dataValueAll: {},
|
||||
addTableConf: {
|
||||
warehousinginspectionvoucherList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
||||
warehousinginspectionproductList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
||||
warehousinginspectionconclusionList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
||||
},
|
||||
//可选范围默认值
|
||||
ableAll: {
|
||||
},
|
||||
tableRows: {
|
||||
warehousinginspectionvoucherList: {
|
||||
voucheId: '',
|
||||
voucheIdOptions: [],
|
||||
enabledmark: undefined
|
||||
},
|
||||
warehousinginspectionproductList: {
|
||||
productId: '',
|
||||
productIdOptions: [],
|
||||
enabledmark: undefined
|
||||
},
|
||||
warehousinginspectionconclusionList: {
|
||||
grossWeight: '',
|
||||
grossWeightOptions: [],
|
||||
tareWeight: '',
|
||||
tareWeightOptions: [],
|
||||
buckleWeight: '',
|
||||
buckleWeightOptions: [],
|
||||
netWeight: '',
|
||||
netWeightOptions: [],
|
||||
reduceLevelOptions: [],
|
||||
grade: '',
|
||||
gradeOptions: [],
|
||||
creatorUserId: '',
|
||||
creatorUserIdOptions: [],
|
||||
enabledmark: undefined
|
||||
},
|
||||
},
|
||||
Vmodel: "",
|
||||
currVmodel: "",
|
||||
dataForm: {
|
||||
inspectionCode: undefined,
|
||||
creatorTime: undefined,
|
||||
inspectionType: undefined,
|
||||
belongUserId: undefined,
|
||||
inspectionTime: undefined,
|
||||
remark: undefined,
|
||||
creatorUserId: undefined,
|
||||
lastModifyTime: undefined,
|
||||
lastModifyUserId: undefined,
|
||||
conclusionType: undefined,
|
||||
conclusionRemark: undefined,
|
||||
warehousinginspectionvoucherList: [],
|
||||
warehousinginspectionproductList: [],
|
||||
warehousinginspectionconclusionList: [],
|
||||
version: 0,
|
||||
},
|
||||
tableRequiredData: {},
|
||||
dataRule:
|
||||
{
|
||||
inspectionType: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'change'
|
||||
},
|
||||
],
|
||||
belongUserId: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'change'
|
||||
},
|
||||
],
|
||||
inspectionTime: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'change'
|
||||
},
|
||||
],
|
||||
conclusionType: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'change'
|
||||
},
|
||||
],
|
||||
},
|
||||
inspectionTypeOptions: [{ "fullName": "入库质检", "id": "1" }, { "fullName": "出库质检", "id": "2" }],
|
||||
inspectionTypeProps: { "label": "fullName", "value": "id" },
|
||||
conclusionTypeOptions: [{ "fullName": "合格", "id": "1" }, { "fullName": "不合格", "id": "2" }],
|
||||
conclusionTypeProps: { "label": "fullName", "value": "id" },
|
||||
warehousinginspectionvouchervoucheIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "documentTypes" }, { "label": "凭证类型", "value": "voucherTypes" }, { "label": "车辆信息", "value": "vehicle_number" },],
|
||||
warehousinginspectionproductproductIdcolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "规格", "value": "spec" },],
|
||||
warehousinginspectionconclusionreduceLevelOptions: [{ "fullName": "是", "id": "1" }, { "fullName": "否", "id": "2" }],
|
||||
warehousinginspectionconclusionreduceLevelProps: { "label": "fullName", "value": "id" },
|
||||
childIndex: -1,
|
||||
isEdit: false,
|
||||
interfaceRes: {
|
||||
inspectionCode: [],
|
||||
creatorTime: [],
|
||||
inspectionType: [],
|
||||
belongUserId: [],
|
||||
inspectionTime: [],
|
||||
remark: [],
|
||||
creatorUserId: [],
|
||||
lastModifyTime: [],
|
||||
lastModifyUserId: [],
|
||||
conclusionType: [],
|
||||
conclusionRemark: [],
|
||||
warehousinginspectionvouchervoucheId: [{ "fieldName": "这是质检单的类型", "field": "inspectionType", "defaultValue": "", "jnpfKey": "select", "dataType": "varchar", "id": "q3dbiy1", "relationField": "inspectionType", "required": "1" }],
|
||||
warehousinginspectionproductproductId: [{ "fieldName": "根据凭证带出的商品进行查询", "field": "product", "defaultValue": "", "jnpfKey": "billRule", "dataType": "varchar", "id": "rBzgiy1", "relationField": "inspectionCode", "required": "1" }],
|
||||
warehousinginspectionconclusiongrossWeight: [],
|
||||
warehousinginspectionconclusiontareWeight: [],
|
||||
warehousinginspectionconclusionbuckleWeight: [],
|
||||
warehousinginspectionconclusionnetWeight: [],
|
||||
warehousinginspectionconclusionreduceLevel: [],
|
||||
warehousinginspectionconclusiongrade: [],
|
||||
warehousinginspectionconclusioncreatorUserId: [],
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
formOperates() {
|
||||
return this.setting.formOperates
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
created() {
|
||||
this.getFormById()
|
||||
if (this.dataForm.id == null || this.dataForm.id == '' && this.dataForm.id == undefined || this.dataForm.id == 0) {
|
||||
this.initDefaultData()
|
||||
}
|
||||
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
|
||||
},
|
||||
mounted() { },
|
||||
methods: {
|
||||
changeData(model, index) {
|
||||
this.isEdit = false
|
||||
this.childIndex = index
|
||||
let modelAll = model.split("-");
|
||||
let faceMode = "";
|
||||
for (let i = 0; i < modelAll.length; i++) {
|
||||
faceMode += modelAll[i];
|
||||
}
|
||||
for (let key in this.interfaceRes) {
|
||||
if (key != faceMode) {
|
||||
let faceReList = this.interfaceRes[key]
|
||||
for (let i = 0; i < faceReList.length; i++) {
|
||||
if (faceReList[i].relationField == model) {
|
||||
let options = 'get' + key + 'Options';
|
||||
if (this[options]) {
|
||||
this[options]()
|
||||
}
|
||||
this.changeData(key, index)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
changeDataFormData(type, data, model, index, defaultValue) {
|
||||
if (!this.isEdit) {
|
||||
if (type == 2) {
|
||||
for (let i = 0; i < this.dataForm[data].length; i++) {
|
||||
if (index == -1) {
|
||||
this.dataForm[data][i][model] = defaultValue
|
||||
} else if (index == i) {
|
||||
this.dataForm[data][i][model] = defaultValue
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.dataForm[data] = defaultValue
|
||||
}
|
||||
}
|
||||
},
|
||||
dataAll() {
|
||||
},
|
||||
selfGetInfo(dataForm) {
|
||||
this.dataInfo(dataForm)
|
||||
},
|
||||
beforeSubmit() {
|
||||
const _data = this.dataList()
|
||||
return _data
|
||||
},
|
||||
selfInit() {
|
||||
this.dataAll()
|
||||
},
|
||||
getFormById() {
|
||||
getFormById("530702377393609733").then(res => {
|
||||
this.dataForm.flowId = res.data && res.data.flowId
|
||||
// this.encode = res.data&&res.data.encode
|
||||
})
|
||||
},
|
||||
exist() {
|
||||
let isOk = true
|
||||
for (let key in this.tableRequiredData) {
|
||||
if (this.dataForm[key] && Array.isArray(this.dataForm[key])) {
|
||||
for (let i = 0; i < this.dataForm[key].length; i++) {
|
||||
let item = this.dataForm[key][i]
|
||||
inner: for (let id in item) {
|
||||
let arr = this.tableRequiredData[key].filter(o => o.id === id) || []
|
||||
if (!arr.length) continue inner
|
||||
if (arr[0].required) {
|
||||
let msg = `${arr[0].name}不能为空`
|
||||
let boo = true
|
||||
if (arr[0].dataType === 'array') {
|
||||
boo = !this.jnpf.isEmptyArray(item[id])
|
||||
} else {
|
||||
boo = !this.jnpf.isEmpty(item[id])
|
||||
}
|
||||
if (!boo) {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: 'error',
|
||||
duration: 1000
|
||||
})
|
||||
isOk = false
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!this.warehousinginspectionvoucherExist()) return
|
||||
if (!this.warehousinginspectionproductExist()) return
|
||||
if (!this.warehousinginspectionconclusionExist()) return
|
||||
return isOk
|
||||
},
|
||||
warehousinginspectionvoucherExist() {
|
||||
let isOk = true;
|
||||
for (let i = 0; i < this.dataForm.warehousinginspectionvoucherList.length; i++) {
|
||||
const e = this.dataForm.warehousinginspectionvoucherList[i];
|
||||
if (!e.voucheId) {
|
||||
this.$message({
|
||||
message: '凭证单据编号不能为空',
|
||||
type: 'error',
|
||||
duration: 1000
|
||||
});
|
||||
isOk = false
|
||||
break
|
||||
}
|
||||
}
|
||||
return isOk;
|
||||
},
|
||||
warehousinginspectionproductExist() {
|
||||
let isOk = true;
|
||||
for (let i = 0; i < this.dataForm.warehousinginspectionproductList.length; i++) {
|
||||
const e = this.dataForm.warehousinginspectionproductList[i];
|
||||
if (!e.productId) {
|
||||
this.$message({
|
||||
message: '商品名称不能为空',
|
||||
type: 'error',
|
||||
duration: 1000
|
||||
});
|
||||
isOk = false
|
||||
break
|
||||
}
|
||||
}
|
||||
return isOk;
|
||||
},
|
||||
warehousinginspectionconclusionExist() {
|
||||
let isOk = true;
|
||||
for (let i = 0; i < this.dataForm.warehousinginspectionconclusionList.length; i++) {
|
||||
const e = this.dataForm.warehousinginspectionconclusionList[i];
|
||||
}
|
||||
return isOk;
|
||||
},
|
||||
clearData() {
|
||||
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
|
||||
},
|
||||
//初始化默认数据
|
||||
initDefaultData() {
|
||||
|
||||
},
|
||||
addwarehousinginspectionvoucherList() {
|
||||
let item = {
|
||||
voucheId: '',
|
||||
}
|
||||
this.getwarehousinginspectionvoucherList(item)
|
||||
},
|
||||
delwarehousinginspectionvoucherList(index) {
|
||||
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.dataForm.warehousinginspectionvoucherList.splice(index, 1);
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
getwarehousinginspectionvoucherList(value) {
|
||||
let item = { ...this.tableRows.warehousinginspectionvoucherList, ...value }
|
||||
this.dataForm.warehousinginspectionvoucherList.push(item)
|
||||
this.childIndex = this.dataForm.warehousinginspectionvoucherList.length - 1
|
||||
this.isEdit = true
|
||||
this.isEdit = false
|
||||
this.childIndex = -1
|
||||
},
|
||||
addwarehousinginspectionproductList() {
|
||||
let item = {
|
||||
productId: '',
|
||||
}
|
||||
this.getwarehousinginspectionproductList(item)
|
||||
},
|
||||
delwarehousinginspectionproductList(index) {
|
||||
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.dataForm.warehousinginspectionproductList.splice(index, 1);
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
getwarehousinginspectionproductList(value) {
|
||||
let item = { ...this.tableRows.warehousinginspectionproductList, ...value }
|
||||
this.dataForm.warehousinginspectionproductList.push(item)
|
||||
this.childIndex = this.dataForm.warehousinginspectionproductList.length - 1
|
||||
this.isEdit = true
|
||||
this.isEdit = false
|
||||
this.childIndex = -1
|
||||
},
|
||||
addwarehousinginspectionconclusionList() {
|
||||
let item = {
|
||||
grossWeight: undefined,
|
||||
tareWeight: undefined,
|
||||
buckleWeight: undefined,
|
||||
netWeight: undefined,
|
||||
reduceLevel: '',
|
||||
grade: undefined,
|
||||
creatorUserId: undefined,
|
||||
}
|
||||
this.getwarehousinginspectionconclusionList(item)
|
||||
},
|
||||
delwarehousinginspectionconclusionList(index) {
|
||||
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.dataForm.warehousinginspectionconclusionList.splice(index, 1);
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
getwarehousinginspectionconclusionList(value) {
|
||||
let item = { ...this.tableRows.warehousinginspectionconclusionList, ...value }
|
||||
this.dataForm.warehousinginspectionconclusionList.push(item)
|
||||
this.childIndex = this.dataForm.warehousinginspectionconclusionList.length - 1
|
||||
this.isEdit = true
|
||||
this.isEdit = false
|
||||
this.childIndex = -1
|
||||
},
|
||||
openSelectDialog(key) {
|
||||
this.currTableConf = this.addTableConf[key]
|
||||
this.currVmodel = key
|
||||
this.selectDialogVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.selectDialog.init()
|
||||
})
|
||||
},
|
||||
addForSelect(data) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
let t = data[i]
|
||||
if (this['get' + this.currVmodel]) {
|
||||
this['get' + this.currVmodel](t)
|
||||
}
|
||||
}
|
||||
},
|
||||
dateTime(timeRule, timeType, timeTarget, timeValueData, dataValue) {
|
||||
let timeDataValue = null;
|
||||
let timeValue = Number(timeValueData)
|
||||
if (timeRule) {
|
||||
if (timeType == 1) {
|
||||
timeDataValue = timeValue
|
||||
} else if (timeType == 2) {
|
||||
timeDataValue = dataValue
|
||||
} else if (timeType == 3) {
|
||||
timeDataValue = new Date().getTime()
|
||||
} else if (timeType == 4) {
|
||||
let previousDate = '';
|
||||
if (timeTarget == 1 || timeTarget == 2) {
|
||||
previousDate = getDateDay(timeTarget, timeType, timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else if (timeTarget == 3) {
|
||||
previousDate = getBeforeData(timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else {
|
||||
timeDataValue = getBeforeTime(timeTarget, timeValue).getTime()
|
||||
}
|
||||
} else if (timeType == 5) {
|
||||
let previousDate = '';
|
||||
if (timeTarget == 1 || timeTarget == 2) {
|
||||
previousDate = getDateDay(timeTarget, timeType, timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else if (timeTarget == 3) {
|
||||
previousDate = getLaterData(timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else {
|
||||
timeDataValue = getLaterTime(timeTarget, timeValue).getTime()
|
||||
}
|
||||
}
|
||||
}
|
||||
return timeDataValue;
|
||||
},
|
||||
time(timeRule, timeType, timeTarget, timeValue, formatType, dataValue) {
|
||||
let format = formatType == 'HH:mm' ? 'HH:mm:00' : formatType
|
||||
let timeDataValue = null
|
||||
if (timeRule) {
|
||||
if (timeType == 1) {
|
||||
timeDataValue = timeValue || '00:00:00'
|
||||
if (timeDataValue.split(':').length == 3) {
|
||||
timeDataValue = timeDataValue
|
||||
} else {
|
||||
timeDataValue = timeDataValue + ':00'
|
||||
}
|
||||
} else if (timeType == 2) {
|
||||
timeDataValue = dataValue
|
||||
} else if (timeType == 3) {
|
||||
timeDataValue = this.jnpf.toDate(new Date(), format)
|
||||
} else if (timeType == 4) {
|
||||
let previousDate = '';
|
||||
previousDate = getBeforeTime(timeTarget, timeValue)
|
||||
timeDataValue = this.jnpf.toDate(previousDate, format)
|
||||
} else if (timeType == 5) {
|
||||
let previousDate = '';
|
||||
previousDate = getLaterTime(timeTarget, timeValue)
|
||||
timeDataValue = this.jnpf.toDate(previousDate, format)
|
||||
}
|
||||
}
|
||||
return timeDataValue;
|
||||
},
|
||||
dataList() {
|
||||
var _data = this.dataForm;
|
||||
return _data;
|
||||
},
|
||||
dataInfo(dataAll) {
|
||||
let _dataAll = dataAll
|
||||
this.dataForm = _dataAll
|
||||
this.isEdit = true
|
||||
this.dataAll()
|
||||
for (let i = 0; i < _dataAll.warehousinginspectionvoucherList.length; i++) {
|
||||
this.childIndex = i
|
||||
}
|
||||
for (let i = 0; i < _dataAll.warehousinginspectionproductList.length; i++) {
|
||||
this.childIndex = i
|
||||
}
|
||||
for (let i = 0; i < _dataAll.warehousinginspectionconclusionList.length; i++) {
|
||||
this.childIndex = i
|
||||
}
|
||||
this.childIndex = -1
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
</script>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue