未验收功能增加验收页面

purchase^2
zhengmingliang 2 years ago
parent 484e14e4b6
commit 05d962373f

@ -1,6 +1,6 @@
window.global_config = { window.global_config = {
"BASE_URL": "http://139.159.187.130:8080/UDI_WMS_MC", // "BASE_URL": "http://139.159.187.130:8080/UDI_WMS_MC",
// "BASE_URL":"http://127.0.0.1:9991", "BASE_URL":"http://127.0.0.1:9991",
/** /**
* *
"UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/", "UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/",

@ -1,7 +1,7 @@
{ {
"UDI_SYNC_SERVER_IP": "http://192.168.0.109:9991/", "UDI_SYNC_SERVER_IP": "http://127.0.0.1:9991/",
"BASE_URL": "http://192.168.0.109:9991", "BASE_URL": "http://127.0.0.1:9991",
"SERVER_IP": "http://192.168.0.109:9991", "SERVER_IP": "http://127.0.0.1:9991",
"WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/", "WEBSOCKET_URL": "ws://127.0.0.1/UDI_WMS_MC/api/websocket/",
"hosp_name": "平和县医院" "hosp_name": "***医院"
} }

@ -256,7 +256,7 @@
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'"> <el-checkbox v-model="inputQuery.scanPreIn" :disabled="inputQuery.corpType!='2'">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.vailInv"> <el-checkbox v-model="inputQuery.vailInv" :disabled="inputQuery.mainAction!='WareHouseOut'">
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.codeFillCheck">UDI <el-checkbox v-model="inputQuery.codeFillCheck">UDI
</el-checkbox> </el-checkbox>
@ -579,6 +579,7 @@ export default {
, ,
// //
getOrderType() { getOrderType() {
this.orderTypeList = []; this.orderTypeList = [];
let query = { let query = {
mainAction: this.inputQuery.mainAction, mainAction: this.inputQuery.mainAction,

@ -24,7 +24,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item" v-if="isSp ==110"> <el-form-item class="query-form-item" >
<el-input v-model="query.corpName" placeholder="往来单位" clearable></el-input> <el-input v-model="query.corpName" placeholder="往来单位" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
@ -147,7 +147,6 @@
</el-button> </el-button>
</div> </div>
<el-button <el-button
v-if="isSp ==110"
type="text" type="text"
size="small" size="small"
@click.native="rollback(scope.row)" @click.native="rollback(scope.row)"
@ -420,7 +419,7 @@ export default {
"2": "第三方系统", "2": "第三方系统",
"3": "扫码单据转换", "3": "扫码单据转换",
}, },
isSp: store.getters.customerId,
detailFormVisible: false, detailFormVisible: false,
stockOrderEditVisible: false, stockOrderEditVisible: false,
stockChangeVisible: false, stockChangeVisible: false,

@ -129,7 +129,7 @@
type="text" type="text"
size="small" size="small"
@click.native="receiveFinish(scope.row)" @click.native="receiveFinish(scope.row)"
>完成验收 >验收
</el-button </el-button
> >
<el-button <el-button
@ -284,7 +284,7 @@
<StockOrderEdit <StockOrderEdit
:closeDialog="closeDialog" :closeDialog="closeDialog"
:detailList="detailList" :detailList="detailList"
v-on:childByValue="parentByFn"
></StockOrderEdit> ></StockOrderEdit>
</el-dialog> </el-dialog>
@ -458,6 +458,20 @@
:idQuery="idQuery" :idQuery="idQuery"
></stockQRCodeExport> ></stockQRCodeExport>
</el-dialog> </el-dialog>
<el-dialog
title="单据验收"
:visible.sync="acceptOrderVisible"
width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="acceptOrderVisible"
>
<acceptOrder
:closeDialog="closeAcceptDialog"
:orderQuery="acceptQuery"
v-on:childByValue="acceptOrderFn"
></acceptOrder>
</el-dialog>
</div> </div>
</template> </template>
@ -474,6 +488,7 @@ import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
import stockOrderEditDistribution from "./stockOrderEditDistribution"; import stockOrderEditDistribution from "./stockOrderEditDistribution";
import stockQRCodeExport from "./stockQRCodeExport"; import stockQRCodeExport from "./stockQRCodeExport";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import acceptOrder from "@/views/inout/acceptOrder";
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
import store from "../../store"; import store from "../../store";
import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType";
@ -554,8 +569,10 @@ export default {
detailFormLoading: false, detailFormLoading: false,
haveDistributionVisible: true, haveDistributionVisible: true,
qrcodeDetailVisible: false, qrcodeDetailVisible: false,
acceptOrderVisible: false,
qrcodeExportVisible: false, qrcodeExportVisible: false,
actDateRange: [], actDateRange: [],
acceptQuery: null,
isReceAble: false, isReceAble: false,
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
@ -739,6 +756,12 @@ export default {
this.detailList = []; this.detailList = [];
}); });
}, },
parentByFn: function (childValue) {
this.getList();
},
acceptOrderFn: function (childValue) {
this.getList();
},
distributionForm(index, row) { distributionForm(index, row) {
this.idQuery.id = ''; this.idQuery.id = '';
if (this.$isNotBlank(row.id)) { if (this.$isNotBlank(row.id)) {
@ -916,6 +939,10 @@ export default {
} }
} }
}, },
closeAcceptDialog() {
this.acceptOrderVisible = false;
},
getBusType() { getBusType() {
let query = { let query = {
code: this.query.invWarehouseCode, code: this.query.invWarehouseCode,
@ -1016,18 +1043,20 @@ export default {
let query = { let query = {
stockOrderId: row.billNo, stockOrderId: row.billNo,
}; };
updateStatus(query) this.acceptQuery = row;
.then((response) => { this.acceptOrderVisible = true;
if (response.code == 20000) { // updateStatus(query)
this.getList(); // .then((response) => {
this.$message.success("验收成功!"); // if (response.code == 20000) {
} else { // this.getList();
this.$message.error(response.message); // this.$message.success("");
} // } else {
// this.$message.error(response.message);
// }
}) // })
.catch(() => { // .catch(() => {
}); // });
}, },
rollback(row) { rollback(row) {
this.$confirm('此操作将回退单据, 是否继续?', '提示', { this.$confirm('此操作将回退单据, 是否继续?', '提示', {
@ -1054,6 +1083,7 @@ export default {
stockOrderEditDistribution, stockOrderEditDistribution,
stockOrderQRCodeDetail, stockOrderQRCodeDetail,
stockQRCodeExport, stockQRCodeExport,
acceptOrder,
} }
, ,
filters: { filters: {

@ -62,12 +62,8 @@
</div> </div>
<div class="header-tabs-box"> <div class="header-tabs-box">
<el-breadcrumb class="app-levelbar" separator="/"> <el-breadcrumb class="app-levelbar" separator="/">
<el-breadcrumb-item <el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path" >
v-for="(item, index) in levelList" <span v-if="
:key="item.path"
>
<span
v-if="
item.redirect === 'noredirect' || item.redirect === 'noredirect' ||
index == levelList.length - 1 index == levelList.length - 1
" "
@ -82,10 +78,21 @@
</el-breadcrumb> </el-breadcrumb>
</div> </div>
<div class="header-right"> <div class="header-right">
<div>
<h3>
<span style=" margin-top: 2px ;
font-weight: bold;color: #303133;">{{ hospitalName }}</span>
<span
style="margin-top: 2px;margin-right: 18px;color: #2d8cf0;font-size: 12px;">({{
curInv
}})</span>
</h3>
</div>
<!-- <span style="margin-right: 10px; margin-top: 2px">{{ username }}</span>--> <!-- <span style="margin-right: 10px; margin-top: 2px">{{ username }}</span>-->
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<!--<i class="el-icon-setting" style="margin-right: 15px"></i>--> <!--<i class="el-icon-setting" style="margin-right: 15px"></i>-->
<span>{{ title }}<i class="el-icon-arrow-down el-icon--right"></i></span> <span style=" font-size: 14px;font-weight: bold;color: #303133;">{{ title }}<i class="el-icon-arrow-down el-icon--right"></i></span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item><span @click="changeInv"></span></el-dropdown-item> <el-dropdown-item><span @click="changeInv"></span></el-dropdown-item>
<el-dropdown-item><span @click="handlePassword"></span></el-dropdown-item> <el-dropdown-item><span @click="handlePassword"></span></el-dropdown-item>
@ -264,6 +271,7 @@ import {filterAllByUser} from "@/api/basic/invWarehouse";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {updateInv} from "@/api/auth/authAdmin"; import {updateInv} from "@/api/auth/authAdmin";
import * as types from "../../store/mutation-types"; import * as types from "../../store/mutation-types";
import axios from "axios";
export default { export default {
data() { data() {
@ -294,6 +302,7 @@ export default {
passwordLoading: false, passwordLoading: false,
passwordFormVisible: false, passwordFormVisible: false,
company: "", company: "",
curInv: "",
passwordFormData: { passwordFormData: {
oldPassword: "", oldPassword: "",
newPassword: "", newPassword: "",
@ -329,6 +338,7 @@ export default {
userInfo: {}, userInfo: {},
storageList: [], storageList: [],
subInvList: [], subInvList: [],
hospitalName:"",
selInvVisible: false, selInvVisible: false,
locInvName: "", locInvName: "",
locSubInvName: "", locSubInvName: "",
@ -450,7 +460,8 @@ export default {
this.$store.commit(types.RECEIVE_LOCINVNAME, this.locInvName); this.$store.commit(types.RECEIVE_LOCINVNAME, this.locInvName);
this.$store.commit(types.RECEIVE_LOCSUBINVNAME, this.locInvName); this.$store.commit(types.RECEIVE_LOCSUBINVNAME, this.locInvName);
let username = this.$store.getters.employeeName; let username = this.$store.getters.employeeName;
this.title = username + "(" + this.locInvName + " " + this.locSubInvName + ")"; this.curInv = "仓库:" + this.locInvName + "; 分库:" + this.locSubInvName + " ";
this.title = username + "" + this.userInfo.userName + "";
this.getStorage(); this.getStorage();
} }
} }
@ -550,6 +561,11 @@ export default {
this.findSubInvByInv(); this.findSubInvByInv();
this.getUserInfo(); this.getUserInfo();
socket.init(this) socket.init(this)
axios.get("./config.json").then(res => {
//
this.hospitalName = res.data.hosp_name;
});
}, },
watch: { watch: {
$route() { $route() {

@ -200,7 +200,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20" v-if="enableDept">
<el-col :span="2"> <el-col :span="2">
<div class="ao-text"> <div class="ao-text">
<span>使用科室</span> <span>使用科室</span>
@ -651,6 +651,7 @@ export default {
code: this.formData.code.trim(), code: this.formData.code.trim(),
} }
enterCodeWeb(tQuery).then((response) => { enterCodeWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.$refs.inputRef.focus(); this.$refs.inputRef.focus();
this.$refs.inputRef.select(); this.$refs.inputRef.select();
@ -926,6 +927,7 @@ export default {
} }
getLocalJoinByUser(query) getLocalJoinByUser(query)
.then((response) => { .then((response) => {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
if (this.formData.action != null) { if (this.formData.action != null) {
this.curAction = this.getActionItem(this.formData.action); this.curAction = this.getActionItem(this.formData.action);
@ -1215,6 +1217,7 @@ export default {
} }
, ,
created() { created() {
this.formData.code = ''; this.formData.code = '';
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];

@ -170,9 +170,9 @@
<script> <script>
import A from "@/plugin/KeyScaner"; import A from "@/plugin/KeyScaner";
import {stockOrderDetail, updateStatus} from "@/api/warehouse/stockOrder"; import {stockOrderDetail, updateStatus} from "@/api/inout/stockOrder";
import {getAcceptOrder, acceptClear, acceptAddCode} from "@/api/warehouse/acceptOrder"; import {getAcceptOrder, acceptClear, acceptAddCode} from "@/api/inout/acceptOrder";
import {enterCodeWeb} from "@/api/warehouse/order"; import {enterCodeWeb} from "@/api/inout/order";
export default { export default {
@ -341,6 +341,7 @@ export default {
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("验收成功!"); this.$message.success("验收成功!");
this.$emit('childByValue', 1)
this.closeDialog(); this.closeDialog();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);

Loading…
Cancel
Save