界面修改

master
anthonywj 3 years ago
parent ffb3f02d09
commit a58ff3b612

@ -7,3 +7,14 @@ export function saveCode(query) {
data: query data: query
}); });
} }
export function findByCode(query) {
return axios(
{
url: "/udiwms/basic/findByCode",
method: "get",
params: query
}
);
}

@ -196,11 +196,11 @@ export default {
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人仓库!"); this.$message.error("请输入接受委托仓库!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人!"); this.$message.error("请输入接受委托人!");
return; return;
} }
@ -226,11 +226,11 @@ export default {
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人仓库!"); this.$message.error("请输入接受委托仓库!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人!"); this.$message.error("请输入接受委托人!");
return; return;
} }
insertEntrustRece(this.inputQuery) insertEntrustRece(this.inputQuery)

@ -7,46 +7,48 @@
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>扫码单据类型:&nbsp;</span> <span>委托仓库:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.action" placeholder="请选择" clearable> <el-select v-model="inputQuery.curInv" placeholder="当前仓库" @change="invChange" clearable>
<el-option <el-option
v-for="item in busTypes" v-for="item in storageList"
:key="item.localAction" :key="item.code"
:label="item.name" :label="item.name"
:value="item.localAction"> :value="item.code">
<span style="float: left">{{ item.localName }}</span> <span style="float: left">{{ item.name }}</span>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
</el-col> </el-col>
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>委托仓库:&nbsp;</span> <span>扫码单据类型:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.curInv" placeholder="当前仓库" @change="invChange" clearable> <el-select v-model="inputQuery.action" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in storageList" v-for="item in busTypes"
:key="item.code" :key="item.localAction"
:label="item.name" :label="item.name"
:value="item.code"> :value="item.localAction">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.localName }}</span>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>委托验收人仓库:&nbsp;</span> <span>接受委托仓库:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustInv" placeholder="委托验收人仓库" @change="entrustInvChange" clearable> <el-select v-model="inputQuery.entrustInv" placeholder="接受委托仓库" @change="entrustInvChange"
clearable>
<el-option <el-option
v-for="item in entrustStorageList" v-for="item in entrustStorageList"
:key="item.code" :key="item.code"
@ -62,9 +64,9 @@
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>委托验收:&nbsp;</span> <span>接受委托人:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustUser" placeholder="委托验收人" clearable> <el-select v-model="inputQuery.entrustUser" placeholder="接受委托人" clearable>
<el-option <el-option
v-for="item in entrustUserArray" v-for="item in entrustUserArray"
:key="item.userid" :key="item.userid"
@ -86,7 +88,7 @@
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>委托生成单据类型:&nbsp;</span> <span>生成单据类型:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustAction" placeholder="单据类型" clearable> <el-select v-model="inputQuery.entrustAction" placeholder="单据类型" clearable>
<el-option <el-option

@ -31,17 +31,17 @@
>新增 >新增
</el-button </el-button
> >
<!-- <el-upload--> <!-- <el-upload-->
<!-- :action="uploadFileUrl"--> <!-- :action="uploadFileUrl"-->
<!-- multiple--> <!-- multiple-->
<!-- :limit="3"--> <!-- :limit="3"-->
<!-- :headers="headers"--> <!-- :headers="headers"-->
<!-- :show-file-list="false"--> <!-- :show-file-list="false"-->
<!-- :on-success="handleChange"--> <!-- :on-success="handleChange"-->
<!-- :file-list="fileList"--> <!-- :file-list="fileList"-->
<!-- >--> <!-- >-->
<!-- <el-button size="mini" type="primary">导入单据类型</el-button>--> <!-- <el-button size="mini" type="primary">导入单据类型</el-button>-->
<!-- </el-upload>--> <!-- </el-upload>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -77,7 +77,6 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.typeScan"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>编辑 >编辑
</el-button </el-button
@ -106,6 +105,7 @@
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
:disabled="!configParms.typeScan"
>提交 >提交
</el-button </el-button
> >
@ -127,6 +127,7 @@
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" <el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeScan"
>提交 >提交
</el-button </el-button
> >
@ -209,7 +210,7 @@ export default {
ullageFill: null, ullageFill: null,
scanPreIn: null, scanPreIn: null,
vailInv: null, vailInv: null,
codeFillCheck:null, codeFillCheck: null,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
@ -354,7 +355,7 @@ export default {
scanPreIn: row.scanPreIn, scanPreIn: row.scanPreIn,
vailInv: row.vailInv, vailInv: row.vailInv,
codeFillCheck: row.codeFillCheck, codeFillCheck: row.codeFillCheck,
changeEnable: row.changeEnable
}; };

@ -50,14 +50,11 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.typeBus"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>编辑 >编辑
</el-button </el-button
@ -85,6 +82,7 @@
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
:disabled="!configParms.typeBus"
>提交 >提交
</el-button </el-button
> >
@ -106,6 +104,7 @@
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" <el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeBus"
>提交 >提交
</el-button </el-button
> >
@ -151,7 +150,7 @@ export default {
changeEnable: null, changeEnable: null,
spUse: null, spUse: null,
prefix: null, prefix: null,
preIn:null, preIn: null,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
@ -244,7 +243,7 @@ export default {
changeEnable: row.changeEnable, changeEnable: row.changeEnable,
spUse: row.spUse, spUse: row.spUse,
prefix: row.prefix, prefix: row.prefix,
preIn:row.preIn, preIn: row.preIn,
}; };
}, },
@ -262,7 +261,7 @@ export default {
localAction: null, localAction: null,
changeEnable: null, changeEnable: null,
prefix: null, prefix: null,
preIn:null, preIn: null,
}; };
}, },

@ -228,15 +228,19 @@
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider>
<span>单据默认选项</span>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col"> <el-col :span="24" class="el-col">
<div class="text item" style="margin-top: 6px"> <div class="text item" style="margin-top: 12px">
<el-checkbox v-model="inputQuery.ullageFill"></el-checkbox> <el-checkbox v-model="inputQuery.ullageFill" :disabled="!inputQuery.changeEnable">
<el-checkbox v-model="inputQuery.scanPreIn">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.vailInv">访 <el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.codeFillCheck"> <el-checkbox v-model="inputQuery.vailInv">
</el-checkbox>
<el-checkbox v-model="inputQuery.codeFillCheck">UDI
</el-checkbox> </el-checkbox>
</div> </div>
</el-col> </el-col>
@ -377,6 +381,7 @@ import {
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
import {getCandidateBussinessType} from "../../api/receipts/bussinessType"; import {getCandidateBussinessType} from "../../api/receipts/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
name: "inputQuery", name: "inputQuery",
@ -414,6 +419,7 @@ export default {
label: '特殊往来' label: '特殊往来'
}], }],
twoCheck: false, twoCheck: false,
configParms: {},
} }
}, },
@ -485,6 +491,16 @@ export default {
}) })
}, },
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
}, },
computed: { computed: {
corpType() { corpType() {
@ -506,6 +522,7 @@ export default {
if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != "") { if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != "") {
this.getOrderType(); this.getOrderType();
} }
this.getSyncConfig();
this.getList(); this.getList();
this.getStorage(); this.getStorage();
this.findSpecialMethod(); this.findSpecialMethod();

@ -33,7 +33,7 @@
>新增 >新增
</el-button </el-button
> >
<!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>--> <!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -51,7 +51,6 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.typeBus"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>编辑 >编辑
</el-button </el-button
@ -79,6 +78,7 @@
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
:disabled="!configParms.typeBus"
>提交 >提交
</el-button </el-button
> >
@ -100,6 +100,7 @@
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" <el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeBus"
>提交 >提交
</el-button </el-button
> >

@ -33,7 +33,7 @@
>新增 >新增
</el-button </el-button
> >
<el-button type="primary" icon="search" @click="intentDetail" <el-button type="primary" icon="search" @click="intentDetail" :disabled="!configParms.basicCorp"
>选入往来单位信息 >选入往来单位信息
</el-button </el-button
> >
@ -86,7 +86,6 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicCorp"
@click.native="handleForm(scope.$index, scope.row)" @click.native="handleForm(scope.$index, scope.row)"
>编辑 >编辑
</el-button </el-button
@ -173,12 +172,12 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click="intentSelect(scope.row)" @click="intentSelect(scope.row)" :disabled="!configParms.basicCorp"
>关联 >关联
</el-button </el-button
> >
<el-button type="text" size="small" @click.native.stop="removeErp(scope.row)" <el-button type="text" size="small" @click.native.stop="removeErp(scope.row)"
:disabled="scope.row.thirdId=='' ||scope.row.thirdId==null" :disabled="scope.row.thirdId=='' ||scope.row.thirdId==null || !configParms.basicCorp"
>解绑 >解绑
</el-button> </el-button>
</template> </template>
@ -303,7 +302,9 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm">取消</el-button> <el-button @click.native="hideForm">取消</el-button>
<el-button type="primary" @click.native="formSubmit()" :loading="formLoading">提交</el-button> <el-button type="primary" @click.native="formSubmit()" :loading="formLoading"
:disabled="!configParms.basicCorp">提交
</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>

@ -45,9 +45,11 @@
> >
<el-button size="mini" type="primary" :disabled="!configParms.basicInv">导入</el-button> <el-button size="mini" type="primary" :disabled="!configParms.basicInv">导入</el-button>
</el-upload> </el-upload>
<el-button type="primary" icon="search" @click="exportInvwarehouse" :disabled="!configParms.basicInv">导出</el-button> <el-button type="primary" icon="search" @click="exportInvwarehouse"
:disabled="!configParms.basicInv">导出
</el-button>
<!-- <el-button type="primary" icon="search" @click="uploadInvwarehouse">UDI</el-button>--> <!-- <el-button type="primary" icon="search" @click="uploadInvwarehouse">UDI</el-button>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -116,7 +118,6 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv"
@click.native.stop="handleForm(node, scope.row, 'edit')" @click.native.stop="handleForm(node, scope.row, 'edit')"
>编辑 >编辑
</el-button </el-button
@ -389,12 +390,13 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv"
@click="intentSelect(scope.row)" @click="intentSelect(scope.row)"
>关联 >关联
</el-button </el-button
> >
<el-button type="text" size="small" @click.native.stop="unbindThrWarehouse(scope.row)" <el-button type="text" size="small" @click.native.stop="unbindThrWarehouse(scope.row)"
:disabled="scope.row.thirdId=='' ||scope.row.thirdId==null" :disabled="scope.row.thirdId=='' ||scope.row.thirdId==null ||!configParms.basicInv"
>解绑 >解绑
</el-button> </el-button>
</template> </template>
@ -499,6 +501,7 @@
<el-button @click.native="hideForm">取消</el-button> <el-button @click.native="hideForm">取消</el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="!configParms.basicInv"
@click.native="formSubmit()" @click.native="formSubmit()"
:loading="formLoading" :loading="formLoading"
>提交 >提交
@ -686,7 +689,7 @@ export default {
thirdSysVisible: false, thirdSysVisible: false,
total: 0, total: 0,
thirdQuery: { thirdQuery: {
key:null, key: null,
page: 1, page: 1,
limit: 10 limit: 10
, thirdSysFk: "thirdId", , thirdSysFk: "thirdId",

@ -50,16 +50,16 @@
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="8" class="el-col"> <!-- <el-col :span="8" class="el-col">-->
<div> <!-- <div>-->
<span>开始时间:&nbsp;</span> <!-- <span>开始时间:&nbsp;</span>-->
<el-time-picker <!-- <el-time-picker-->
:disabled="configQuery.downstreamEnable" <!-- :disabled="configQuery.downstreamEnable"-->
v-model="configQuery.basicSyncStart" <!-- v-model="configQuery.basicSyncStart"-->
placeholder="开始时间"> <!-- placeholder="开始时间">-->
</el-time-picker> <!-- </el-time-picker>-->
</div> <!-- </div>-->
</el-col> <!-- </el-col>-->
</el-row> </el-row>
</el-descriptions-item> </el-descriptions-item>
@ -135,16 +135,16 @@
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="8" class="el-col"> <!-- <el-col :span="8" class="el-col">-->
<div> <!-- <div>-->
<span>开始时间:&nbsp;</span> <!-- <span>开始时间:&nbsp;</span>-->
<el-time-picker <!-- <el-time-picker-->
:disabled="configQuery.downstreamEnable" <!-- :disabled="configQuery.downstreamEnable"-->
v-model="configQuery.orderSyncStart" <!-- v-model="configQuery.orderSyncStart"-->
placeholder="开始时间"> <!-- placeholder="开始时间">-->
</el-time-picker> <!-- </el-time-picker>-->
</div> <!-- </div>-->
</el-col> <!-- </el-col>-->
</el-row> </el-row>
</el-descriptions-item> </el-descriptions-item>

@ -160,7 +160,7 @@ export default {
return { return {
filterQuery: { filterQuery: {
id: null, id: null,
status: "1", status: "0",
page: 1, page: 1,
limit: 10, limit: 10,
syncTime: null, syncTime: null,

@ -70,7 +70,6 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.sysUser"
@click.native="handleForm(scope.$index, scope.row)" @click.native="handleForm(scope.$index, scope.row)"
>编辑 >编辑
</el-button> </el-button>

@ -164,22 +164,34 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col">
<div class="text item" style="margin-top: 6px"> </el-row>
<el-row :gutter="20">
<el-col :span="20" class="el-col">
<div class="text item">
<el-checkbox v-model="formData.outChangeEnable" <el-checkbox v-model="formData.outChangeEnable"
:disabled="!curAction.changeEnable || corpOrderIdDisabled">允许出库自动缺量补单 :disabled="!curAction.changeEnable || corpOrderIdDisabled">允许出库自动缺量补单
</el-checkbox> </el-checkbox>
<el-checkbox v-model="formData.preCheck" <el-checkbox v-model="formData.preCheck"
:disabled="corpOrderIdDisabled || curAction.corpType !=2" :disabled="corpOrderIdDisabled || curAction.corpType !=2"
>是否只采集预验收产品 >出入库是必须校验预验收库
</el-checkbox>
<el-checkbox v-model="formData.vailInv"
:disabled="corpOrderIdDisabled"
>是否查询库存
</el-checkbox>
<el-checkbox v-model="formData.codeFillCheck"
:disabled="corpOrderIdDisabled"
>采集UDI码时进行三期校验
</el-checkbox> </el-checkbox>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20" style="margin-top: 12px">
<el-col :span="2"> <el-col :span="2">
<div class="ao-text"> <div class="ao-text">
<el-link <el-link
@ -902,6 +914,17 @@ export default {
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
this.findMethod(); this.findMethod();
this.$set(this.formData, "vailIn", this.curAction.vailInv);
this.$set(this.formData, "preCheck", this.curAction.scanPreIn);
this.$set(this.formData, "outChangeEnable", this.curAction.ullageFill);
this.$set(this.formData, "codeFillCheck", this.curAction.codeFillCheck);
// this.formData.vailIn = this.curAction.vailInv;
// this.formData.preCheck = this.curAction.scanPreIn;
// this.formData.outChangeEnable = this.curAction.ullageFill;
// this.formData.codeFillCheck = this.curAction.codeFillCheck;
}, },
// //

@ -105,7 +105,18 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col">
<div class="text item">
<el-checkbox v-model="formData.codeFillCheck"
:disabled="corpOrderIdDisabled"
>采集UDI码时进行三期校验
</el-checkbox>
</div>
</el-col>
</el-row> </el-row>
</el-card> </el-card>
<el-card> <el-card>
<el-row :gutter="20"> <el-row :gutter="20">
@ -753,6 +764,8 @@ export default {
}, },
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
console.log( this.curAction.codeFillCheck)
this.$set(this.formData, "codeFillCheck", this.curAction.codeFillCheck);
// this.formData.locStorageCode = this.curAction.storageCode; // this.formData.locStorageCode = this.curAction.storageCode;
}, },
// //

@ -85,6 +85,7 @@
<script> <script>
import { import {
findByCode,
saveCode saveCode
} from "../../api/warehouse/code"; } from "../../api/warehouse/code";
@ -129,8 +130,23 @@ export default {
}, },
cancelDialog() { cancelDialog() {
this.closeCodeDialog(); this.closeCodeDialog();
},
findByCode() {
let query = {udiCode: this.codeDetail.code};
findByCode(query)
.then((response) => {
if (response.code === 20000) {
} else {
}
this.loading = false;
});
} }
}
},
created() {
},
} }
</script> </script>

Loading…
Cancel
Save