单据编辑页面修改

ywj_dev
郑明梁 2 years ago
parent a4dc6c4ec3
commit 2c6ad8e544

@ -128,7 +128,7 @@
v-if="modifyDialogVisible" v-if="modifyDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery" :modifySubmit="onModifySubmit"></modifyDialog> <modifyDialog :inputQuery="inputQuery" :modifySubmit="onModifySubmit"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center;margin-top: 12px">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" <el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParams.typeScan" :disabled="!configParams.typeScan"
>提交 >提交

@ -10,7 +10,8 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item label="单据类型代码" prop="action"> <el-form-item label="单据类型代码" prop="action">
<el-input v-model="inputQuery.action" :disabled="true" size="small" <el-input v-model="inputQuery.action" :disabled="true" size="small"
style="width: 90%"></el-input> style="width: 90%"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -21,7 +22,8 @@
size="small" size="small"
style="width: 90%" style="width: 90%"
placeholder="出入库类型" placeholder="出入库类型"
@change="getOrderType"> @change="getOrderType"
>
<el-option label="入库" value="WareHouseIn"></el-option> <el-option label="入库" value="WareHouseIn"></el-option>
<el-option label="出库" value="WareHouseOut"></el-option> <el-option label="出库" value="WareHouseOut"></el-option>
</el-select> </el-select>
@ -82,12 +84,14 @@
style="width: 90%" style="width: 90%"
v-model="inputQuery.supplementOrderType" v-model="inputQuery.supplementOrderType"
clearable clearable
placeholder="单据类型"> placeholder="单据类型"
>
<el-option <el-option
v-for="item in orderTypeList" v-for="item in orderTypeList"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
:value="item.action"> :value="item.action"
>
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
</el-option> </el-option>
</el-select> </el-select>
@ -158,12 +162,14 @@
size="small" size="small"
style="width: 90%" style="width: 90%"
placeholder="往来信息" placeholder="往来信息"
@change="corpTypeChange"> @change="corpTypeChange"
>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -198,51 +204,17 @@
<el-form-item prop="remark"> <el-form-item prop="remark">
<label slot="label">&emsp;&emsp;</label> <label slot="label">&emsp;&emsp;</label>
<el-input v-model="inputQuery.remark" size="small" style="width: 90%" type="textarea" <el-input v-model="inputQuery.remark" size="small" style="width: 90%" type="textarea"
row="3"></el-input> row="3"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row type="flex">-->
<!-- <el-col :span="23" type="flex">-->
<!-- <el-button type="text" size="large" style="margin-left: 10px;" @click="advancedSettings"></el-button>-->
<!-- </el-col>-->
<!-- </el-row>-->
</el-form> </el-form>
<!-- <el-dialog-->
<!-- title="单据类型高级设置"-->
<!-- :visible.sync="settingDialogVisible"-->
<!-- :close-on-click-modal="false"-->
<!-- :close-on-press-escape="false"-->
<!-- v-if="settingDialogVisible"-->
<!-- class="dialog-two"-->
<!-- width="60%"-->
<!-- top="5vh"-->
<!-- append-to-body-->
<!-- >-->
<!-- <busTypeAdvancedSettings :inputQuery="inputQuery"></busTypeAdvancedSettings>-->
<!-- <div slot="footer" class="dialog-footer">-->
<!-- <el-button type="primary" size="small" @click="saveSettings"-->
<!-- >提交-->
<!-- </el-button-->
<!-- >-->
<!-- <el-button size="small" @click="cancelDialog"-->
<!-- >取消-->
<!-- </el-button-->
<!-- >-->
<!-- </div>-->
<!-- </el-dialog>-->
<div style="margin-left: 25px"> <div style="margin-left: 25px">
<div style="width: 100%;margin: 0 auto;"> <el-collapse>
<el-row style="margin-bottom: 15px"> <el-collapse-item title="单据设置">
<el-col span="5"> <div style="width: 100%;margin: 0 auto;margin-top: 10px">
<span class="spanTitle">单据设置</span>
</el-col>
</el-row>
</div>
<el-divider direction="horizontal"></el-divider>
<div style="width: 100%;margin: 0 auto">
<el-row> <el-row>
<el-col span="5"> <el-col span="5">
<span class="spanHeader">参数</span> <span class="spanHeader">参数</span>
@ -284,7 +256,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.genUnit" :disabled="inputQuery.corpType != 1" style="width: 65%" <el-select v-model="inputQuery.genUnit" :disabled="inputQuery.corpType != 1" style="width: 65%"
placeholder="是否允许" clearable> placeholder="是否允许" clearable
>
<el-option label="允许" :value="true"></el-option> <el-option label="允许" :value="true"></el-option>
<el-option label="不允许" :value="false"></el-option> <el-option label="不允许" :value="false"></el-option>
</el-select> </el-select>
@ -303,7 +276,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.useDyCount" :disabled="inputQuery.corpType != 1" style="width: 65%" <el-select v-model="inputQuery.useDyCount" :disabled="inputQuery.corpType != 1" style="width: 65%"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="允许" :value="true"></el-option> <el-option label="允许" :value="true"></el-option>
<el-option label="不允许" :value="false"></el-option> <el-option label="不允许" :value="false"></el-option>
</el-select> </el-select>
@ -314,126 +288,25 @@
</el-col> </el-col>
</el-row> </el-row>
<el-divider direction="horizontal"></el-divider> <el-divider direction="horizontal"></el-divider>
<!-- <el-row>-->
<!-- <el-col span="5">-->
<!-- <span class="sptext">手持终端提交单据至自助平台</span>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="5">-->
<!-- <el-select v-model="inputQuery.outToSpms" style="width: 65%" placeholder="是否启用" clearable>-->
<!-- <el-option label="启用" :value="true"></el-option>-->
<!-- <el-option label="不启用" :value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="13">-->
<!-- <span class="sptext">手持终端提交单据至自助平台</span>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-divider direction="horizontal"></el-divider>-->
<!-- <el-row>-->
<!-- <el-col span="5">-->
<!-- <span class="sptext">允许验收自助平台单据</span>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="5">-->
<!-- <el-select v-model="inputQuery.entrutSpms" style="width: 65%" placeholder="是否允许" clearable>-->
<!-- <el-option label="允许" :value="true"></el-option>-->
<!-- <el-option label="不允许" :value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="13">-->
<!-- <span class="sptext">允许验收自助平台单据</span>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-divider direction="horizontal"></el-divider>-->
<!-- <el-row>-->
<!-- <el-col span="5">-->
<!-- <span class="sptext">寄售类型单据</span>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="5">-->
<!-- <el-select v-model="inputQuery.advanceType" style="width: 65%" placeholder="是否启用" clearable>-->
<!-- <el-option label="启用" :value="true"></el-option>-->
<!-- <el-option label="不启用" :value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="13">-->
<!-- <span class="sptext">设置此单据是否为寄售单据类型</span>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-divider direction="horizontal"></el-divider>-->
<!-- <el-row>-->
<!-- <el-col span="5">-->
<!-- <span class="sptext">预验收</span>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="5">-->
<!-- <el-select v-model="inputQuery.preIn" style="width: 65%" :disabled="inputQuery.corpType!='2'" placeholder="是否启用" clearable>-->
<!-- <el-option label="启用" :value="true"></el-option>-->
<!-- <el-option label="不启用" :value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="13">-->
<!-- <span class="sptext">设置此单据类型为预验收单据类型</span>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-divider direction="horizontal"></el-divider>-->
<!-- <el-row>-->
<!-- <el-col span="5">-->
<!-- <span class="sptext">允许供应商使用</span>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="5">-->
<!-- <el-select v-model="inputQuery.spUse" style="width: 65%" placeholder="是否允许" clearable>-->
<!-- <el-option label="允许" :value="true"></el-option>-->
<!-- <el-option label="不允许" :value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="13">-->
<!-- <span class="sptext">是否允许供应商使用此单据类型</span>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-divider></el-divider>-->
<el-row> <el-row>
<el-col span="5"> <el-col span="5">
<span class="sptext">预验收是否带回</span> <span class="sptext">预验收是否带回</span>
</el-col> </el-col>
<el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.preInBack" :disabled="inputQuery.actionType != 2" style="width: 65%" <el-select v-model="inputQuery.preInBack" :disabled="inputQuery.actionType != 2" style="width: 65%"
placeholder="是否带回" clearable> placeholder="是否带回" clearable
>
<el-option label="是" :value="true"></el-option> <el-option label="是" :value="true"></el-option>
<el-option label="否" :value="false"></el-option> <el-option label="否" :value="false"></el-option>
</el-select> </el-select>
</el-col> </el-col>
<el-divider direction="vertical"></el-divider>
<el-col span="13"> <el-col span="13">
<span class="sptext">预验收是否带回</span> <span class="sptext">预验收是否带回</span>
</el-col> </el-col>
</el-row> </el-row>
<el-divider direction="horizontal"></el-divider> </el-collapse-item>
<div style="width: 100%;margin: 0 auto;margin-top: 20px">
<el-row style="margin-bottom: 15px">
<el-col span="5">
<span class="spanTitle">单据默认选项</span>
</el-col>
</el-row>
</div>
<el-divider direction="horizontal"></el-divider>
<el-collapse-item title="单据默认选项">
<div style="width: 100%;margin: 0 auto"> <div style="width: 100%;margin: 0 auto">
<el-row> <el-row>
<el-col span="5"> <el-col span="5">
@ -457,7 +330,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.scanPreIn" style="width: 65%" :disabled="inputQuery.corpType!='1'" <el-select v-model="inputQuery.scanPreIn" style="width: 65%" :disabled="inputQuery.corpType!='1'"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -475,8 +349,10 @@
</el-col> </el-col>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.vailInv" style="width: 65%" :disabled="inputQuery.mainAction!='WareHouseOut'" <el-select v-model="inputQuery.vailInv" style="width: 65%"
placeholder="是否启用" clearable> :disabled="inputQuery.mainAction!='WareHouseOut'"
placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -542,9 +418,9 @@
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
</el-collapse-item>
<el-collapse-item title="校验业务单">
<div> <div>
<div style="width: 100%;margin: 0 auto;margin-top: 20px"> <div style="width: 100%;margin: 0 auto;margin-top: 20px">
<el-row style="margin-bottom: 15px"> <el-row style="margin-bottom: 15px">
<el-col span="18"> <el-col span="18">
@ -588,7 +464,6 @@
<!-- <span class="sptext">需要手动校验业务单的单据来源类型</span>--> <!-- <span class="sptext">需要手动校验业务单的单据来源类型</span>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- </el-row>--> <!-- </el-row>-->
<el-divider></el-divider>
<el-row> <el-row>
<el-col span="5"> <el-col span="5">
@ -597,7 +472,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkWebNew" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkWebNew" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -616,7 +492,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkPdaUn" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkPdaUn" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -635,7 +512,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkPdaEd" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkPdaEd" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -654,7 +532,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkUdims" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkUdims" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -673,7 +552,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkPc" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkPc" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -692,7 +572,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkSp" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkSp" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -710,7 +591,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkChange" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkChange" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -729,7 +611,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkBalance" :disabled="!inputQuery.checkEnable" style="width: 65%" <el-select v-model="inputQuery.checkBalance" :disabled="!inputQuery.checkEnable" style="width: 65%"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -747,7 +630,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.checkCopy" style="width: 65%" :disabled="!inputQuery.checkEnable" <el-select v-model="inputQuery.checkCopy" style="width: 65%" :disabled="!inputQuery.checkEnable"
placeholder="是否启用" clearable> placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -757,11 +641,10 @@
<span class="sptext">手动补单</span> <span class="sptext">手动补单</span>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider>
</div> </div>
</el-collapse-item>
<el-collapse-item title="一次审核">
<div> <div>
<div style="width: 100%;margin: 0 auto;margin-top: 20px"> <div style="width: 100%;margin: 0 auto;margin-top: 20px">
<el-row style="margin-bottom: 15px"> <el-row style="margin-bottom: 15px">
<el-col span="18"> <el-col span="18">
@ -795,7 +678,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckWebNew" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckWebNew" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -814,7 +698,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckPdaUn" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckPdaUn" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -833,7 +718,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckPdaEd" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckPdaEd" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -852,7 +738,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckUdims" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckUdims" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -871,7 +758,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckPc" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckPc" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -890,7 +778,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckSp" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckSp" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -909,7 +798,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckChange" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckChange" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -928,7 +818,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckBalance" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckBalance" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -947,7 +838,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.thrCheckCopy" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.thrCheckCopy" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.thrCheckEnable"> :disabled="!inputQuery.thrCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -957,11 +849,10 @@
<span class="sptext">手动补单</span> <span class="sptext">手动补单</span>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider>
</div> </div>
</el-collapse-item>
<el-collapse-item title="二次审核">
<div> <div>
<div style="width: 100%;margin: 0 auto;margin-top: 20px"> <div style="width: 100%;margin: 0 auto;margin-top: 20px">
<el-row style="margin-bottom: 15px"> <el-row style="margin-bottom: 15px">
<el-col span="18"> <el-col span="18">
@ -987,26 +878,8 @@
<span class="spanHeader">参数设置说明</span> <span class="spanHeader">参数设置说明</span>
</el-col> </el-col>
</el-row> </el-row>
<el-divider direction="horizontal"></el-divider>
</div> </div>
<!-- <el-row>-->
<!-- <el-col span="5">-->
<!-- <span class="sptext">必须手工审核的单据来源类型</span>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="5">-->
<!-- <el-select v-model="inputQuery.secCheckEnable" style="width: 65%" placeholder="是否启用" clearable>-->
<!-- <el-option label="启用" :value="true"></el-option>-->
<!-- <el-option label="不启用" :value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- <el-divider direction="vertical"></el-divider>-->
<!-- <el-col span="13">-->
<!-- <span class="sptext">必须手工审核的单据来源类型</span>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-divider></el-divider>-->
<el-row> <el-row>
<el-col span="5"> <el-col span="5">
@ -1015,7 +888,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckWebNew" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckWebNew" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1034,7 +908,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckPdaUn" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckPdaUn" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1053,7 +928,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckPdaEd" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckPdaEd" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1072,7 +948,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckUdims" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckUdims" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1091,7 +968,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckPc" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckPc" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1110,7 +988,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckSp" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckSp" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1129,7 +1008,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckChange" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckChange" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1148,7 +1028,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckBalance" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckBalance" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1167,7 +1048,8 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.secCheckCopy" style="width: 65%" placeholder="是否启用" clearable <el-select v-model="inputQuery.secCheckCopy" style="width: 65%" placeholder="是否启用" clearable
:disabled="!inputQuery.secCheckEnable"> :disabled="!inputQuery.secCheckEnable"
>
<el-option label="启用" :value="true"></el-option> <el-option label="启用" :value="true"></el-option>
<el-option label="不启用" :value="false"></el-option> <el-option label="不启用" :value="false"></el-option>
</el-select> </el-select>
@ -1177,68 +1059,69 @@
<span class="sptext">手动补单</span> <span class="sptext">手动补单</span>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider>
</div> </div>
</el-collapse-item>
</el-collapse>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import {candidateBusType} from "@/api/basic/busType"; import { candidateBusType } from '@/api/basic/busType'
import busTypeAdvancedSettings from "@/views/basic/busType/busTypeAdvancedSettings.vue"; import busTypeAdvancedSettings from '@/views/basic/busType/busTypeAdvancedSettings.vue'
import {isBlank} from "@/utils/strUtil"; import { isBlank } from '@/utils/strUtil'
import {getOriginBusType} from "@/api/basic/busOriginType"; import { getOriginBusType } from '@/api/basic/busOriginType'
import {getBasicUnitMaintains2} from "@/api/basic/basicUnitMaintain"; import { getBasicUnitMaintains2 } from '@/api/basic/basicUnitMaintain'
export default { export default {
name: "BussinessTypeModify", name: 'BussinessTypeModify',
props: { props: {
inputQuery: { inputQuery: {
type: Object, type: Object,
required: true, required: true
}, },
modifySubmit: { modifySubmit: {
type: Function, type: Function,
required: true, required: true
} }
}, },
data() { data() {
return { return {
formRules: { formRules: {
name: [{required: true, message: "请输入单据类型名称", trigger: "blur"}], name: [{ required: true, message: '请输入单据类型名称', trigger: 'blur' }],
mainAction: [ mainAction: [
{ {
required: true, required: true,
message: "请选择出入库类型", message: '请选择出入库类型',
trigger: "change" trigger: 'change'
} }
], ],
inStock: [ inStock: [
{ {
required: true, required: true,
message: "请选择是否更改库存", message: '请选择是否更改库存',
trigger: "change" trigger: 'change'
} }
], ],
busType: [ busType: [
{ {
required: true, required: true,
message: "请选择特定页面", message: '请选择特定页面',
trigger: "change" trigger: 'change'
} }
], ]
}, },
filterQuery: { filterQuery: {
enabled: true, enabled: true,
isBuType: true, isBuType: true,
isFilterBind: true, isFilterBind: true
}, },
orderTypeList: [], orderTypeList: [],
fromSpecialOptions: [], fromSpecialOptions: [],
originTypes: [], originTypes: [],
value: "", value: '',
options: [{ options: [{
value: 1, value: 1,
label: '客户信息' label: '客户信息'
@ -1261,87 +1144,87 @@ export default {
methods: { methods: {
getList() { getList() {
let originQuery = { let originQuery = {
onlyMain: true, onlyMain: true
}; }
getOriginBusType(originQuery) getOriginBusType(originQuery)
.then((response) => { .then((response) => {
this.originTypes = response.data.list || []; this.originTypes = response.data.list || []
}) })
.catch(() => { .catch(() => {
}); })
}, },
findSpecialMethod() { findSpecialMethod() {
let query = { let query = {
corpType: 4, corpType: 4
}; }
getBasicUnitMaintains2(query).then((response) => { getBasicUnitMaintains2(query).then((response) => {
this.fromSpecialOptions = response.data.list || []; this.fromSpecialOptions = response.data.list || []
}).catch(() => { }).catch(() => {
}) })
}, },
corpTypeChange(type) { corpTypeChange(type) {
if (type != 2) { if (type != 2) {
this.inputQuery.genUnit = false; this.inputQuery.genUnit = false
} }
if (this.inputQuery.corpType === 4) { if (this.inputQuery.corpType === 4) {
this.findSpecialMethod(); this.findSpecialMethod()
} else { } else {
this.inputQuery.defaultUnit = null; this.inputQuery.defaultUnit = null
} }
if (this.inputQuery.corpType !== 1) { if (this.inputQuery.corpType !== 1) {
this.inputQuery.genUnit = false; this.inputQuery.genUnit = false
this.inputQuery.useDyCount = false; this.inputQuery.useDyCount = false
} else { } else {
this.inputQuery.genUnit = this.oldData.genUnit; this.inputQuery.genUnit = this.oldData.genUnit
this.inputQuery.useDyCount = this.oldData.useDyCount; this.inputQuery.useDyCount = this.oldData.useDyCount
} }
}, },
// //
getOrderType() { getOrderType() {
this.orderTypeList = []; this.orderTypeList = []
let query = { let query = {
mainAction: this.inputQuery.mainAction, mainAction: this.inputQuery.mainAction,
curAction: this.inputQuery.supplementOrderType, curAction: this.inputQuery.supplementOrderType
}; }
candidateBusType(query).then((response) => { candidateBusType(query).then((response) => {
this.orderTypeList = response.data || []; this.orderTypeList = response.data || []
}).catch(() => { }).catch(() => {
}) })
if (this.inputQuery.mainAction != "WareHouseIn") { if (this.inputQuery.mainAction != 'WareHouseIn') {
this.inputQuery.actionType = null; this.inputQuery.actionType = null
} }
}, },
// //
advancedSettings() { advancedSettings() {
if (isBlank(this.inputQuery.id)) { if (isBlank(this.inputQuery.id)) {
this.$message.warning("请先保存当前单据类型!"); this.$message.warning('请先保存当前单据类型!')
} else { } else {
this.settingDialogVisible = true; this.settingDialogVisible = true
} }
}, },
// //
saveSettings() { saveSettings() {
// //
this.inputQuery.corpType = 2; this.inputQuery.corpType = 2
this.modifySubmit(this.inputQuery); this.modifySubmit(this.inputQuery)
}, },
// //
cancelDialog() { cancelDialog() {
this.settingDialogVisible = false; this.settingDialogVisible = false
}, }
} }
, ,
computed: { computed: {
corpType() { corpType() {
return this.inputQuery.corpType; return this.inputQuery.corpType
} }
} }
, ,
@ -1350,28 +1233,28 @@ export default {
} }
, ,
watch: { watch: {
corpType: function (val) { corpType: function(val) {
if (val != 1) { if (val != 1) {
this.inputQuery.orderTypeEnable = true; this.inputQuery.orderTypeEnable = true
this.inputQuery.supplementOrderType = null; this.inputQuery.supplementOrderType = null
} else { } else {
this.inputQuery.orderTypeEnable = false; this.inputQuery.orderTypeEnable = false
} }
} }
} }
, ,
created() { created() {
if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != "") { if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != '') {
this.getOrderType(); this.getOrderType()
} }
this.getList(); this.getList()
this.findSpecialMethod(); this.findSpecialMethod()
this.oldData = Object.assign({}, this.inputQuery); this.oldData = Object.assign({}, this.inputQuery)
} }
,
} }
;
</script> </script>
<style scoped> <style scoped>
@ -1409,4 +1292,30 @@ export default {
font-size: 13px; font-size: 13px;
font-weight: normal; font-weight: normal;
} }
/deep/ .el-collapse-item__header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
height: 48px;
line-height: 48px;
background-color: #FFFFFF;
color: #000610;
cursor: pointer;
border-bottom: 1px solid #e6ebf5;
font-size: 16px;
font-weight: 700;
-webkit-transition: border-bottom-color 0.3s;
transition: border-bottom-color 0.3s;
outline: none;
}
/deep/ .el-collapse-item__content {
padding-bottom: 10px;
font-size: 13px;
color: #303133;
line-height: 1.7692307692;
}
</style> </style>

@ -31,11 +31,11 @@ module.exports = {
devServer: { devServer: {
host: '0.0.0.0', host: '0.0.0.0',
port: port, port: port,
open: true, open: false,
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.0.166:9993`, target: `http://127.0.0.1:9993`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save