Merge branch 'fencang' into busUser

# Conflicts:
#	src/views/warehouse/stockHospOrderNew.vue
featFunction
anthonywj 3 years ago
commit 7cff854bff

@ -112,7 +112,7 @@ router.beforeEach((to, from, next) => {
}) })
.catch(() => { .catch(() => {
store.dispatch("fedLogout").then(() => { store.dispatch("fedLogout").then(() => {
Message.error("验证失败,请重新登录"); Message.error("登录失效,请重新登录");
let redirect = to.fullPath; let redirect = to.fullPath;
store.dispatch("loginOut").then(() => { store.dispatch("loginOut").then(() => {
next({ next({

@ -46,7 +46,7 @@ service.interceptors.response.use(
if (data.code) { if (data.code) {
if (data.code === 2) { if (data.code === 2) {
store.dispatch("fedLogout").then(() => { store.dispatch("fedLogout").then(() => {
Message.error("验证失败,请重新登录"); Message.error("登录失效,请重新登录");
router.push({ router.push({
path: "/login", path: "/login",
query: { redirect: router.currentRoute.fullPath } // 从哪个页面跳转过来 query: { redirect: router.currentRoute.fullPath } // 从哪个页面跳转过来

@ -224,12 +224,21 @@ export default {
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustAction)) {
this.$message.error("请输入生成单据类型!");
return;
}
insertEntrustRece(this.inputQuery) insertEntrustRece(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) {
this.loading = false; this.loading = false;
this.cancelDialog(); this.cancelDialog();
this.getList(); this.getList();
} else {
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -250,10 +259,24 @@ export default {
this.$message.error("请输入接受委托仓库!"); this.$message.error("请输入接受委托仓库!");
return; return;
} }
if (this.$isBlank(this.inputQuery.entrustInv)) { if (this.$isBlank(this.inputQuery.entrustUser)) {
this.$message.error("请输入接受委托人!"); this.$message.error("请输入接受委托人!");
return; return;
} }
if (this.$isBlank(this.inputQuery.invWarehouseCode)) {
this.$message.error("当前分库不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.entrustSubInv)) {
this.$message.error("请输入接受委托分库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustAction)) {
this.$message.error("请输入生成单据类型!");
return;
}
updateEntrustRece(this.inputQuery) updateEntrustRece(this.inputQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -266,9 +266,16 @@ export default {
insertBussinessType(this.inputQuery) insertBussinessType(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) {
this.loading = false; this.loading = false;
this.cancelDialog(); this.cancelDialog();
this.getList(); this.getList();
} else {
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

@ -79,6 +79,7 @@
v-loading="loading" v-loading="loading"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
highlight-current-row
key="1" key="1"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >

@ -393,7 +393,7 @@ export default {
methods: { methods: {
getThirdSysDetail() { getThirdSysDetail() {
let query = { let query = {
id: this.editQuery.id, id: this.editQuery.rlId,
}; };
thirdSysDetail(query) thirdSysDetail(query)

@ -127,7 +127,7 @@
<!--</el-col>--> <!--</el-col>-->
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="企业类别:" label-width="150px" prop="classes"> <el-form-item label="企业类别:" label-width="150px" prop="classes">
<el-select <el-select
@ -158,7 +158,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="联系人:" label-width="150px" prop="contacts"> <el-form-item label="联系人:" label-width="150px" prop="contacts">
<el-input <el-input
@ -183,7 +183,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="联系电话:" label-width="150px" prop="mobile"> <el-form-item label="联系电话:" label-width="150px" prop="mobile">
<el-input <el-input
@ -208,7 +208,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="证件类型:" label-width="150px" prop="contactsPapersType"> <el-form-item label="证件类型:" label-width="150px" prop="contactsPapersType">
<el-select <el-select
@ -235,7 +235,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="登记状态:" label-width="150px" prop="registerStatus"> <el-form-item label="登记状态:" label-width="150px" prop="registerStatus">
<el-select <el-select
@ -265,7 +265,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="经营许可证发证机关:" label-width="150px" prop="jyxkzfzjg"> <el-form-item label="经营许可证发证机关:" label-width="150px" prop="jyxkzfzjg">
<el-input <el-input
@ -285,13 +285,14 @@
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
:disabled="companyEditDisabled" :disabled="companyEditDisabled"
value-format="yyyy-MM-dd"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="经营备案凭证号:" label-width="150px" prop="jybapzh"> <el-form-item label="经营备案凭证号:" label-width="150px" prop="jybapzh">
<el-input <el-input
@ -316,7 +317,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="发证日期:" label-width="150px" prop="fzrq"> <el-form-item label="发证日期:" label-width="150px" prop="fzrq">
<el-date-picker <el-date-picker
@ -325,6 +326,7 @@
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
:disabled="companyEditDisabled" :disabled="companyEditDisabled"
value-format="yyyy-MM-dd"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -342,7 +344,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: -10px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="开户行:" label-width="150px" prop="kaihuhang"> <el-form-item label="开户行:" label-width="150px" prop="kaihuhang">
<el-input <el-input
@ -856,6 +858,7 @@ export default {
filePath3: "", filePath3: "",
filePath4: "", filePath4: "",
}, },
oldData: {},
headers: {}, headers: {},
classesDisplay: false, classesDisplay: false,
selectedOptions: [], selectedOptions: [],
@ -1045,7 +1048,6 @@ export default {
}).catch(() => { }).catch(() => {
}); });
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
@ -1073,7 +1075,6 @@ export default {
}).catch(() => { }).catch(() => {
}); });
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
@ -1085,6 +1086,7 @@ export default {
} else { } else {
this.companyEditDisabled = true; this.companyEditDisabled = true;
this.companyEditButtonStr = "编辑"; this.companyEditButtonStr = "编辑";
this.getData();
} }
}, },
addUpdateLog(formName) { addUpdateLog(formName) {
@ -1109,7 +1111,6 @@ export default {
}).catch(() => { }).catch(() => {
}); });
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
@ -1120,7 +1121,6 @@ export default {
customerId: store.getters.customerId, customerId: store.getters.customerId,
}; };
getCompany(tquery).then((response) => { getCompany(tquery).then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.inputQuery = response.data; this.inputQuery = response.data;
this.inputQuery.bussinessStatus = this.inputQuery.bussinessStatus + ""; this.inputQuery.bussinessStatus = this.inputQuery.bussinessStatus + "";
@ -1375,11 +1375,8 @@ export default {
this.inputQuery.areaCode = value.toString(); this.inputQuery.areaCode = value.toString();
}, },
uploadHandleRemove(file, fileList) { uploadHandleRemove(file, fileList) {
console.log(file, fileList);
}, },
uploadHandlePreview(file) { uploadHandlePreview(file) {
console.log(file);
console.log(this.fileList);
}, },
uploadHandleExceed(files, fileList) { uploadHandleExceed(files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
@ -1411,7 +1408,6 @@ export default {
return isLt; return isLt;
}, },
uploadHandleSuccess(response, file, fileList) { uploadHandleSuccess(response, file, fileList) {
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.uploadFilePath('', response.data.name); this.uploadFilePath('', response.data.name);
@ -1433,7 +1429,6 @@ export default {
} }
}, },
uploadHandleSuccess2(response, file, fileList) { uploadHandleSuccess2(response, file, fileList) {
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.uploadFilePath('2', response.data.name); this.uploadFilePath('2', response.data.name);
@ -1454,7 +1449,6 @@ export default {
} }
}, },
uploadHandleSuccess3(response, file, fileList) { uploadHandleSuccess3(response, file, fileList) {
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.uploadFilePath('3', response.data.name); this.uploadFilePath('3', response.data.name);
@ -1473,7 +1467,6 @@ export default {
} }
}, },
uploadHandleSuccess4(response, file, fileList) { uploadHandleSuccess4(response, file, fileList) {
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.uploadFilePath('4', response.data.name); this.uploadFilePath('4', response.data.name);

@ -47,7 +47,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="search"></el-button>
<el-button <el-button
type="primary" type="primary"
icon="search" icon="search"
@ -1526,6 +1526,10 @@ export default {
}; };
this.getList(); this.getList();
}, },
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() { getList() {
this.loading = true; this.loading = true;
this.getProductRelevanceList(); this.getProductRelevanceList();

@ -15,17 +15,17 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <!-- <el-form-item class="query-form-item">-->
<el-select v-model="filterQuery.filterType" placeholder="请选择过滤对照条件"> <!-- <el-select v-model="filterQuery.filterType" placeholder="请选择过滤对照条件">-->
<el-option <!-- <el-option-->
v-for="item in filterList" <!-- v-for="item in filterList"-->
:key="item.filterType" <!-- :key="item.filterType"-->
:label="item.sysName" <!-- :label="item.sysName"-->
:value="item.filterType"> <!-- :value="item.filterType">-->
<span style="float: left">{{ item.sysName }}</span> <!-- <span style="float: left">{{ item.sysName }}</span>-->
</el-option> <!-- </el-option>-->
</el-select> <!-- </el-select>-->
</el-form-item> <!-- </el-form-item>-->
</el-row> </el-row>
<el-row> <el-row>
@ -558,6 +558,7 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item prop="name"> <el-form-item prop="name">
<el-checkbox v-model="checked" class="text item itemTag" <el-checkbox v-model="checked" class="text item itemTag"
:disabled="true"
>以使用单元数量入库 >以使用单元数量入库
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>

@ -115,6 +115,7 @@ export default {
supId: null, supId: null,
unitFk: null, unitFk: null,
invStorageCode: null, invStorageCode: null,
invWarehouseCode: null,
}, },
detailQuery: { detailQuery: {
code: null, code: null,
@ -325,8 +326,12 @@ export default {
created() { created() {
this.getBusType(); this.getBusType();
let query = this.$route.query; let query = this.$route.query;
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery = Object.assign(this.filterQuery, query); this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.invStorageCode = this.invQueryData.locStorageCode;
this.filterQuery.invWarehouseCode = this.invQueryData.invWarehouseCode;
this.filterQuery.limit = parseInt(this.filterQuery.limit); this.filterQuery.limit = parseInt(this.filterQuery.limit);
// //
this.getList(); this.getList();

@ -250,7 +250,7 @@
</el-table> </el-table>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择erp业务单据" title="选择业务单据"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"
@ -644,7 +644,6 @@ export default {
refresgOrderDetail() { refresgOrderDetail() {
orderDetail(this.detailQuery) orderDetail(this.detailQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.detailList = response.data || []; this.detailList = response.data || [];
}) })

@ -50,7 +50,7 @@
<el-form-item> <el-form-item>
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" @click="addProductVisible=true"></el-button> <el-button type="primary" @click="addProductVisible=true"></el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -190,6 +190,10 @@ export default {
}; };
this.getList(); this.getList();
}, },
search() {
this.filterQuery.page = 1;
this.getList();
},
checDialog(row) { checDialog(row) {
this.checkVisible = true; this.checkVisible = true;
this.curRow = row; this.curRow = row;

@ -489,9 +489,9 @@ export default {
if (this.$isBlank(this.codeArray[i].batchNo)) { if (this.$isBlank(this.codeArray[i].batchNo)) {
return this.$message.error('批次号不能为空'); return this.$message.error('批次号不能为空');
} }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { /* if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); return this.$message.error('生产日期与失效日期不能全部为空');
} }*/
// if (this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].expireDate)) {
// return this.$message.error(''); // return this.$message.error('');
// } // }

@ -153,6 +153,7 @@
size="small" size="small"
style="width: 40%" style="width: 40%"
type="number" type="number"
@change="verifyUserCount"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</div> </div>
@ -578,6 +579,12 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
verifyUserCount(val) {
if (val < 0) {
this.$message.error("用户数不得小于0");
this.formData.userMax = 0;
}
},
}, },
components: { components: {
customerUser, customerUser,

@ -87,6 +87,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
@ -148,6 +149,22 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col">
<div class="text item">
<div class="text item">
<el-form-item label="备注" prop="comments">
<el-input
type="text"
size="small"
v-model="formData.comments"
></el-input>
</el-form-item>
</div>
</div>
</el-col>
</el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm" size="small">取消</el-button> <el-button @click.native="hideForm" size="small">取消</el-button>
@ -281,6 +298,7 @@ export default {
path: "", path: "",
query: this.query, query: this.query,
}); });
this.query.page = 1;
this.getList(); this.getList();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {

@ -234,7 +234,7 @@
></el-pagination> ></el-pagination>
<el-dialog <el-dialog
title="新增订单" title="编辑单据"
:visible.sync="addOrderVisible" :visible.sync="addOrderVisible"
width="75%" width="75%"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -261,7 +261,7 @@ import {
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import codeDetail from "./errorCode"; import codeDetail from "./errorCode";
import addOrder from "./addOrder"; import addOrder from "./addHosOrder";
import store from "../../store"; import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
@ -292,7 +292,6 @@ export default {
}, },
checkStatus: { checkStatus: {
'-1': "等待提交", '-1': "等待提交",
// 1: "",
1: "等待处理", 1: "等待处理",
2: "等待校验", 2: "等待校验",
3: "校验异常", 3: "校验异常",
@ -556,9 +555,8 @@ export default {
} }
}, },
addOrders(row) { addOrders(row) {
this.idQuery.id = '';
this.idQuery.actDate = ''; this.idQuery = row;
this.idQuery.corpOrderId = '';
this.idQuery.billType = row.action; this.idQuery.billType = row.action;
this.idQuery.invName = row.invName; this.idQuery.invName = row.invName;
this.idQuery.subInvName = row.subInvName; this.idQuery.subInvName = row.subInvName;

@ -110,25 +110,30 @@
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="产品ID"
prop="productId"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column <el-table-column
label="产品名称" label="产品名称"
prop="productName" prop="productName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column
label="规格型号"
prop="spec"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column <el-table-column
label="批号" label="批号"
prop="batchNo" prop="batchNo"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="规格型号" label="生产日期"
prop="spec" prop="productDate"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="单据数量" prop="count"></el-table-column> <el-table-column label="单据数量" prop="count"></el-table-column>
@ -256,6 +261,7 @@ export default {
this.filterQuery.startDate = null; this.filterQuery.startDate = null;
this.filterQuery.endDate = null; this.filterQuery.endDate = null;
} }
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
getList() { getList() {

@ -69,6 +69,14 @@ export default {
} }
}, },
methods: { methods: {
onReset() {
this.query = {
key: "",
page: 1,
limit: 20
}
this.list = [];
},
getList() { getList() {
this.loading = true; this.loading = true;
filterAll(this.query) filterAll(this.query)
@ -81,7 +89,6 @@ export default {
}); });
}, },
selectStorage(row) { selectStorage(row) {
console.log(row.id);
this.$emit("selectStorage", row); this.$emit("selectStorage", row);
}, },
}, },

@ -91,15 +91,15 @@ export default {
}, },
methods: { methods: {
getUnitList() { getUnitList() {
this.loading = true; // this.loading = true;
getBasicUnitMaintains(this.unitquery) // getBasicUnitMaintains(this.unitquery)
.then((response) => { // .then((response) => {
this.loading = false; // this.loading = false;
this.unitlist = response.data.page.list || []; // this.unitlist = response.data.page.list || [];
}) // })
.catch(() => { // .catch(() => {
this.loading = false; // this.loading = false;
}); // });
}, },
getUnitListByCode(row) { getUnitListByCode(row) {
let query = { let query = {

@ -364,6 +364,8 @@
</el-card> </el-card>
<el-dialog <el-dialog
title="选择往来单位" title="选择往来单位"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
width="70%" width="70%"
> >
@ -417,7 +419,9 @@
</el-table> </el-table>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择erp业务单据" title="选择业务单据"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"
@ -432,6 +436,8 @@
<el-dialog <el-dialog
title="单号详情" title="单号详情"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
@ -446,6 +452,8 @@
<el-dialog <el-dialog
title="绑定产品ID" title="绑定产品ID"
:visible.sync="selectRlVisible" :visible.sync="selectRlVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="80%" width="80%"
v-if="selectRlVisible" v-if="selectRlVisible"
> >
@ -689,6 +697,7 @@ export default {
this.filterQuery.startTime = null; this.filterQuery.startTime = null;
this.filterQuery.endTime = null; this.filterQuery.endTime = null;
} }
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
bindRl(val) { bindRl(val) {
@ -911,11 +920,6 @@ export default {
}); });
}, },
intentDetail(row) { intentDetail(row) {
// this.$router.push({
// path: "../inout/detail",
// query: { id: row.id },
// });
this.codeDetailVisible = true; this.codeDetailVisible = true;
this.idQuery.id = row.id; this.idQuery.id = row.id;
}, },
@ -1077,7 +1081,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -1251,6 +1255,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
} }

@ -73,7 +73,7 @@
<el-form-item style="margin-right: 50px; margin-left: auto"> <el-form-item style="margin-right: 50px; margin-left: auto">
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="mergesOrders"></el-button> <el-button type="primary" icon="search" @click="mergesOrders"></el-button>
<el-button type="primary" icon="search" @click="addOrders"></el-button> <el-button type="primary" icon="search" @click="addOrders"></el-button>
<el-button type="primary" icon="search" @click="errOrders"></el-button> <el-button type="primary" icon="search" @click="errOrders"></el-button>
</el-button-group> </el-button-group>
@ -83,6 +83,7 @@
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%" <el-table v-loading="loading" :data="list" style="width: 100%"
highlight-current-row
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -221,7 +222,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="新增订单" :title="formMap[formName]"
:visible.sync="addOrderVisible" :visible.sync="addOrderVisible"
width="85%" append-to-body width="85%" append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
@ -236,7 +237,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="新增订单" :title="formMap[formName]"
:visible.sync="addHosOrderVisible" :visible.sync="addHosOrderVisible"
width="75%" width="75%"
append-to-body append-to-body
@ -269,6 +270,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="filterQuery.page"
></el-pagination> ></el-pagination>
</el-card> </el-card>
</div> </div>
@ -291,6 +293,7 @@ import store from "../../store";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -314,7 +317,6 @@ export default {
}, },
checkStatus: { checkStatus: {
'-1': "草稿", '-1': "草稿",
// 1: "",
1: "等待处理", 1: "等待处理",
2: "等待校验", 2: "等待校验",
3: "校验异常", 3: "校验异常",
@ -350,8 +352,8 @@ export default {
formName: null, formName: null,
errorDetail: "1111111111111", errorDetail: "1111111111111",
formMap: { formMap: {
add: "新增", add: "新增单据",
edit: "编辑", update: "编辑单据",
}, },
fromTypeMap: { fromTypeMap: {
"1": "UDIMS平台", "1": "UDIMS平台",
@ -373,6 +375,7 @@ export default {
formData: formJson, formData: formJson,
deleteLoading: false, deleteLoading: false,
busTypes: [], busTypes: [],
}; };
}, },
components: { components: {
@ -396,6 +399,7 @@ export default {
}, },
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -440,7 +444,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -466,6 +470,7 @@ export default {
this.idQuery.actDate = ''; this.idQuery.actDate = '';
this.idQuery.corpOrderId = ''; this.idQuery.corpOrderId = '';
this.idQuery.outChangeEnable = row.outChangeEnable; this.idQuery.outChangeEnable = row.outChangeEnable;
if (row.id !== null && row.id !== undefined && row.id !== '') { if (row.id !== null && row.id !== undefined && row.id !== '') {
this.idQuery.id = row.id; this.idQuery.id = row.id;
@ -475,9 +480,10 @@ export default {
this.idQuery.locStorageCode = row.locStorageCode; this.idQuery.locStorageCode = row.locStorageCode;
this.idQuery.invWarehouseCode = row.invWarehouseCode; this.idQuery.invWarehouseCode = row.invWarehouseCode;
this.idQuery.fromSubInvCode = row.fromSubInvCode; this.idQuery.fromSubInvCode = row.fromSubInvCode;
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
this.formName = "update";
} else {
this.formName = "add";
} }
if (store.getters.customerId == 110) { if (store.getters.customerId == 110) {
@ -486,13 +492,10 @@ export default {
this.idQuery.fromCorp = row.fromCorp; this.idQuery.fromCorp = row.fromCorp;
this.idQuery.fromCorpId = row.fromCorpId; this.idQuery.fromCorpId = row.fromCorpId;
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
} else { } else {
this.idQuery.preCheck = row.preCheck; this.idQuery.preCheck = row.preCheck;
this.addOrderVisible = true; this.addOrderVisible = true;
} }
}, },
errOrders() { errOrders() {
this.errOrderVisible = true; this.errOrderVisible = true;
@ -514,11 +517,9 @@ export default {
}); });
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val; this.multipleSelection = val;
}, },
selectUnit(row) { selectUnit(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex; this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name; this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.unitid; this.unitUpdateQuery.fromCorpId = row.unitid;
@ -540,7 +541,6 @@ export default {
// this.filterQuery.statusOrOne = -1; // this.filterQuery.statusOrOne = -1;
filterOrder(this.filterQuery) filterOrder(this.filterQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
@ -561,19 +561,24 @@ export default {
let unit = repeatData[0].fromCorp; let unit = repeatData[0].fromCorp;
let action = repeatData[0].action; let action = repeatData[0].action;
let orderList = []; let orderList = [];
repeatData.forEach((obj, index) => {
if (unit !== obj.fromCorp) {
this.$message.warning("往来单位不一致!");
for(let index in repeatData){
if (action !== repeatData[index].action) {
this.$message.warning("业务类型不一致!");
return; return;
} }
if (action !== obj.action) { if (unit !== repeatData[index].fromCorp) {
this.$message.warning("业务类型不一致!"); this.$message.warning("往来单位不一致!");
return; return;
} }
orderList.push(obj.id);
}); orderList.push(repeatData[index].id);
}
let tquery = { let tquery = {
orderList: orderList, orderList: orderList,
type: 2,
}; };
this.$confirm( this.$confirm(
@ -653,8 +658,7 @@ export default {
this.list.splice(i, 1); this.list.splice(i, 1);
break; break;
} }
} };
;
this.$message.success("提交成功"); this.$message.success("提交成功");
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
@ -666,10 +670,7 @@ export default {
handleErrorDetail(poistion) { handleErrorDetail(poistion) {
var mOrder = this.list[poistion]; var mOrder = this.list[poistion];
var corpOrderId = mOrder.remark;
this.errorDetail = mOrder.remark; this.errorDetail = mOrder.remark;
console.log(corpOrderId + " " + mOrder + " " + mOrder.remark);
this.dialogVisible = true; this.dialogVisible = true;
}, },
@ -685,6 +686,25 @@ export default {
this.filterQuery.invWarehouseCode = ""; this.filterQuery.invWarehouseCode = "";
} }
if (isBlank(this.filterQuery.locStorageCode)) {
this.filterQuery.invWarehouseCode = null;
this.subInvList = [];
return;
}
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
getSubInvList() {
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -80,7 +80,7 @@
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="onSubmit"></el-button> <el-button type="primary" icon="search" @click="onSubmit"></el-button>
<el-button type="primary" icon="search" @click="exportOrders"></el-button> <!-- <el-button type="primary" icon="search" @click="exportOrders"></el-button>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -350,7 +350,7 @@
</el-table> </el-table>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择erp业务单据" title="选择业务单据"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"
@ -366,6 +366,8 @@
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeDetail <codeDetail
:idQuery="idQuery" :idQuery="idQuery"
@ -491,7 +493,10 @@ export default {
}, },
detailQuery: { detailQuery: {
orderId: "", orderId: "",
page: 1,
limit: 20
}, },
detailTotal: 0,
deleteData: { deleteData: {
id: "", id: "",
}, },
@ -608,7 +613,6 @@ export default {
this.getList(); this.getList();
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val; this.multipleSelection = val;
}, },
getStorage() { getStorage() {
@ -618,7 +622,7 @@ export default {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.filterQuery.locStorageCode = this.storageList[0].code; this.filterQuery.locStorageCode = this.storageList[0].code;
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -738,7 +742,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
filterOrder(this.filterQuery) filterOrder(this.filterQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
this.detailList = []; this.detailList = [];
@ -786,7 +789,6 @@ export default {
refresgOrderDetail() { refresgOrderDetail() {
orderDetail(this.detailQuery) orderDetail(this.detailQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.detailList = response.data || []; this.detailList = response.data || [];
}) })
@ -823,7 +825,6 @@ export default {
this.successOrderExportPDFSettingVisible = true; this.successOrderExportPDFSettingVisible = true;
}, },
successOrderExportPDF(row) { successOrderExportPDF(row) {
console.log(row)
let tQuery = { let tQuery = {
orderId: row.id, orderId: row.id,
customerId: store.getters.customerId customerId: store.getters.customerId
@ -858,7 +859,6 @@ export default {
}, },
selectUnit(row) { selectUnit(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex; this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name; this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.unitid; this.unitUpdateQuery.fromCorpId = row.unitid;
@ -961,6 +961,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
} }

@ -238,6 +238,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="filterQuery.page"
></el-pagination> ></el-pagination>
</el-card> </el-card>
@ -314,6 +315,14 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
</el-table> </el-table>
<el-pagination
:page-size="detailQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="detailTotal"
:current-page="detailQuery.page"
></el-pagination>
</el-card> </el-card>
<el-dialog <el-dialog
title="选择往来单位" title="选择往来单位"
@ -376,10 +385,12 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="单号详情" title="条码详情"
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeDetail <codeDetail
:idQuery="idQuery" :idQuery="idQuery"
@ -400,36 +411,28 @@
<script> <script>
import { import {
orderList,
codeList,
findAllByOrderId,
updateUnit, updateUnit,
filterOrder, filterOrder,
deleteByOrderId, deleteByOrderId,
updateExportStatus,
uploadOrder, uploadOrder,
mergeOrder, mergeOrder,
orderDetail, orderDetail,
} from "../../api/warehouse/order"; } from "../../api/warehouse/order";
import { import {
orderDetailPDFFromTemplateCode,
orderDetailPDFFromTemplateFile, orderDetailPDFFromTemplateFile,
inspectionOrderDetailPDFFromTemplateCode,
inspectionOrderDetailPDFFromTemplateFile inspectionOrderDetailPDFFromTemplateFile
} from "../../api/itextpdf/itextpdf"; } from "../../api/itextpdf/itextpdf";
import {repeatCheck} from "../../api/erp/erpOrder"; import {repeatCheck} from "../../api/erp/erpOrder";
import {unitListBykey} from "../../api/warehouse/unit"; import {unitListBykey} from "../../api/warehouse/unit";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import {saveAs} from "file-saver";
import codeDetail from "./code"; import codeDetail from "./code";
import store from "../../store"; import store from "../../store";
import successOrderExportPDFSetting from "./successOrderExportPDF"; import successOrderExportPDFSetting from "./successOrderExportPDF";
import {downloadInoutOrderSuccessPDF} from "../../api/itextpdf/itextpdf";
import selectErpOrder from "./DialogSelectErpOrder"; import selectErpOrder from "./DialogSelectErpOrder";
import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {isBlank} from "@/utils/strUtil";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -494,7 +497,10 @@ export default {
}, },
detailQuery: { detailQuery: {
orderId: "", orderId: "",
page: 1,
limit: 20
}, },
detailTotal: 0,
deleteData: { deleteData: {
id: "", id: "",
status: 2, status: 2,
@ -613,6 +619,13 @@ export default {
this.filterQuery.startTime = null; this.filterQuery.startTime = null;
this.filterQuery.endTime = null; this.filterQuery.endTime = null;
} }
if (!isBlank(this.filterQuery.invWarehouseCode)) {
if (isBlank(this.filterQuery.locStorageCode)) {
this.$message.warning("请选择仓库!");
return;
}
}
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -656,19 +669,23 @@ export default {
let unit = repeatData[0].fromCorp; let unit = repeatData[0].fromCorp;
let action = repeatData[0].action; let action = repeatData[0].action;
let orderList = []; let orderList = [];
repeatData.forEach((obj, index) => {
if (unit !== obj.fromCorp) {
this.$message.warning("往来单位不一致!"); for (let index in repeatData) {
if (action !== repeatData[index].action) {
this.$message.warning("业务类型不一致!");
return; return;
} }
if (action !== obj.action) { if (unit !== repeatData[index].fromCorp) {
this.$message.warning("业务类型不一致!"); this.$message.warning("往来单位不一致!");
return; return;
} }
orderList.push(obj.id); orderList.push(repeatData[index].id);
}); }
let tquery = { let tquery = {
orderList: orderList, orderList: orderList,
type: 1,
}; };
this.$confirm( this.$confirm(
@ -993,7 +1010,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -1003,6 +1020,23 @@ export default {
invChange() { invChange() {
this.filterQuery.invWarehouseCode = ""; this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = {
pcode: this.filterQuery.locStorageCode
};
if (isBlank(this.filterQuery.locStorageCode)) {
this.subInvList = [];
} else {
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
}
},
getSubInvList() {
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -397,6 +397,8 @@
<el-dialog <el-dialog
:title="selectUnitTitle" :title="selectUnitTitle"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="dialogTableVisible" v-if="dialogTableVisible"
width="70%" width="70%"
append-to-body append-to-body
@ -411,6 +413,8 @@
:title="selectRlTitle" :title="selectRlTitle"
:visible.sync="selectRlVisible" :visible.sync="selectRlVisible"
width="80%" width="80%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="selectRlVisible" v-if="selectRlVisible"
append-to-body append-to-body
> >
@ -426,6 +430,8 @@
:title="editTitle" :title="editTitle"
:visible.sync="editCodeVisible" :visible.sync="editCodeVisible"
append-to-body width="70%" append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editCodeVisible" v-if="editCodeVisible"
> >
<editCodeDialog <editCodeDialog
@ -439,6 +445,8 @@
:title="editTitle" :title="editTitle"
:visible.sync="editOriginCodeVisible" :visible.sync="editOriginCodeVisible"
append-to-body width="70%" append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editOriginCodeVisible"> v-if="editOriginCodeVisible">
<editCodeDialog <editCodeDialog
:closeCodeDialog="closeCodeDialog" :closeCodeDialog="closeCodeDialog"
@ -628,6 +636,7 @@ export default {
closeCodeDialog() { closeCodeDialog() {
this.editCodeVisible = false; this.editCodeVisible = false;
this.editOriginCodeVisible = false; this.editOriginCodeVisible = false;
this.getCodeList();
}, },
editCode(row) { editCode(row) {
this.codeDetail = row; this.codeDetail = row;
@ -1202,8 +1211,6 @@ export default {
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];
this.getStorage(this.formData.action); this.getStorage(this.formData.action);
this.findSubInvByInv();
this.findSubStorageMethod();
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {
this.formData.actDate = new Date(this.idQuery.actDate); this.formData.actDate = new Date(this.idQuery.actDate);
this.formData.corpOrderId = this.idQuery.corpOrderId; this.formData.corpOrderId = this.idQuery.corpOrderId;
@ -1238,7 +1245,8 @@ export default {
this.findStorageMethod(); this.findStorageMethod();
} }
} }
this.findSubInvByInv(this.formData.locStorageCode);
this.findSubStorageMethod();
this.getBusType(); this.getBusType();

@ -2,12 +2,12 @@
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="query.code" placeholder="条码查询"></el-input> <el-input v-model="query.code" placeholder="条码查询" style="width: 300px" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getCodeList" <el-button type="primary" icon="search" @click="search"
>查询 >查询
</el-button </el-button
> >
@ -53,7 +53,7 @@
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="actor" width="180"></el-table-column> <!--<el-table-column label="操作员" prop="actor" width="180"></el-table-column>-->
</el-table> </el-table>
<el-pagination <el-pagination
@ -129,7 +129,10 @@ export default {
this.query.page = val; this.query.page = val;
this.getCodeList(); this.getCodeList();
}, },
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.corpOrderId = this.idQuery.id; this.query.corpOrderId = this.idQuery.id;

@ -7,7 +7,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getCodeList" <el-button type="primary" icon="search" @click="search"
>查询 >查询
</el-button </el-button
> >
@ -255,7 +255,10 @@
this.query.page = val; this.query.page = val;
this.getCodeList(); this.getCodeList();
}, },
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.corpOrderId = this.idQuery.id; this.query.corpOrderId = this.idQuery.id;

@ -29,7 +29,6 @@
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index" fixed></el-table-column> <el-table-column label="序号" type="index" fixed></el-table-column>
<!-- <el-table-column label="ID" prop="id" fixed></el-table-column> -->
<el-table-column label="条码" prop="code" show-overflow-tooltip fixed></el-table-column> <el-table-column label="条码" prop="code" show-overflow-tooltip fixed></el-table-column>
<el-table-column <el-table-column
label="生产日期" label="生产日期"
@ -62,13 +61,6 @@
width="220" width="220"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!-- <el-table-column label="创建时间" prop="actDate">-->
<!-- <template slot-scope="scope">-->
<!-- <i class="el-icon-time"></i>-->
<!-- <span>{{ scope.row.actDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="250"> <el-table-column label="操作" fixed="right" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
@ -80,14 +72,6 @@
>编辑 >编辑
</el-button </el-button
> >
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native.stop="deleteCode(scope.$index, scope.row)"-->
<!-- >删除-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -95,7 +79,6 @@
>选择产品 >选择产品
</el-button </el-button
> >
<!-- :disabled="scope.row.relId != null "-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -103,7 +86,6 @@
>选择供应商 >选择供应商
</el-button </el-button
> >
<!-- :disabled=" scope.row.supId !=null"-->
</template> </template>
</el-table-column> </el-table-column>
@ -121,6 +103,8 @@
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
v-if="dialogTableVisible" v-if="dialogTableVisible"
width="70%" width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body append-to-body
> >
<DialogSelectUnit <DialogSelectUnit
@ -134,6 +118,8 @@
:visible.sync="selectRlVisible" :visible.sync="selectRlVisible"
width="80%" width="80%"
v-if="selectRlVisible" v-if="selectRlVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body append-to-body
> >
<selectRlDialog <selectRlDialog
@ -149,6 +135,8 @@
:visible.sync="editCodeVisible" :visible.sync="editCodeVisible"
append-to-body width="70%" append-to-body width="70%"
v-if="editCodeVisible" v-if="editCodeVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<editCodeDialog <editCodeDialog
editTye="2" editTye="2"
@ -245,6 +233,7 @@ export default {
}, },
closeCodeDialog() { closeCodeDialog() {
this.editCodeVisible = false; this.editCodeVisible = false;
this.getCodeList();
}, },
deleteDialog() { deleteDialog() {
this.$confirm("是否删除所选条码?", "提示", { this.$confirm("是否删除所选条码?", "提示", {
@ -294,7 +283,6 @@ export default {
}); });
}, },
intentBack() { intentBack() {
// this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}});
this.$router.go(-1); this.$router.go(-1);
}, },
// //
@ -354,7 +342,6 @@ export default {
rowStyle({row, rowIndex}) { rowStyle({row, rowIndex}) {
let rowBackground = {}; let rowBackground = {};
if (row.supId == null || row.relId == null) { if (row.supId == null || row.relId == null) {
//rowBackground.background="#f6f5ee";
rowBackground.color = '#f60303'; rowBackground.color = '#f60303';
} }

@ -332,7 +332,7 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="码详情" title="内部码详情"
:visible.sync="qrcodeDetailVisible" :visible.sync="qrcodeDetailVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -812,7 +812,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -833,6 +833,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -6,7 +6,6 @@
:model="query" :model="query"
class="query-form" class="query-form"
size="mini" size="mini"
> >
<el-row style="width: 100%"> <el-row style="width: 100%">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
@ -81,10 +80,6 @@
:data="list" :data="list"
style="width: 100%; " highlight-current-row style="width: 100%; " highlight-current-row
@row-click="getStockOrderDetailList" ref="multipleTable"> @row-click="getStockOrderDetailList" ref="multipleTable">
<!--<el-table-column
type="selection"
width="55">
</el-table-column>-->
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column> <el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -105,20 +100,8 @@
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="subInvName" width="120"> <el-table-column label="当前分库" prop="subInvName" width="120">
</el-table-column> </el-table-column>
<!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="200"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="qrcodeDetail(scope.row)"-->
<!-- >码详情-->
<!-- </el-button-->
<!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -850,7 +833,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -871,6 +854,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -115,6 +115,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -186,6 +187,8 @@
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeReplace <codeReplace
:idQuery="idQuery" :idQuery="idQuery"
@ -331,6 +334,7 @@
this.actDateRange = []; this.actDateRange = [];
}, },
onSubmit() { onSubmit() {
this.query.page = 1;
this.getList(); this.getList();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {

@ -9,6 +9,7 @@
<el-table v-loading="detailLoading" <el-table v-loading="detailLoading"
:data="detailList" :data="detailList"
highlight-current-row
@selection-change="changeFun" @selection-change="changeFun"
style="width: 100%"> style="width: 100%">
@ -145,6 +146,7 @@ export default {
page: 1, page: 1,
limit: 20 limit: 20
}, },
detailTotal: 0,
batchForm: { batchForm: {
secSalesListNo: '', secSalesListNo: '',
firstSalesInvNo: '', firstSalesInvNo: '',
@ -161,7 +163,6 @@ export default {
methods: { methods: {
handleEdit(index, row) { handleEdit(index, row) {
this.currentCheckIndex = index; this.currentCheckIndex = index;
console.log(this.currentCheckIndex)
}, },
handleSave(index, row) { handleSave(index, row) {
this.currentCheckIndex = -1; this.currentCheckIndex = -1;
@ -178,7 +179,6 @@ export default {
row.forEach((item) => { row.forEach((item) => {
_this.multipId.push(item.id); _this.multipId.push(item.id);
}) })
console.log(this.multipId);
}, },
batchSetParams(flag, type) { batchSetParams(flag, type) {
if (flag == '1' && type == 'salesListNo') { if (flag == '1' && type == 'salesListNo') {
@ -265,9 +265,9 @@ export default {
this.detailLoading = true; this.detailLoading = true;
stockOrderDetail(this.detailQuery) stockOrderDetail(this.detailQuery)
.then((response) => { .then((response) => {
console.log(response)
this.detailLoading = false; this.detailLoading = false;
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; this.detailLoading = false;

@ -135,6 +135,24 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px;">
<el-col :span="3">
<div class="ao-text">
<span></span>
</div>
</el-col>
<el-col :span="7">
<el-form-item prop="type" style="margin-right: 20px;"
v-if="!(curAction.mainAction=='WareHouseIn' && curAction.corpType == 0)">
<el-checkbox v-model="formData.noInvOut">
</el-checkbox>
</el-form-item>
</el-col>
</el-row>
</el-card> </el-card>
<el-card> <el-card>
@ -263,33 +281,9 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <div class="block" v-if="orderEditor">-->
<!-- <el-pagination-->
<!-- @current-change="handleCurrentChange"-->
<!-- layout="prev, pager, next"-->
<!-- :page-size="query.limit"-->
<!-- :total="total">-->
<!-- </el-pagination>-->
<!-- </div>-->
</el-card> </el-card>
</el-form> </el-form>
<!-- <el-dialog-->
<!-- title="产品录入"-->
<!-- :visible.sync="selectProductVisible"-->
<!-- width="85%"-->
<!-- v-if="selectProductVisible"-->
<!-- :append-to-body='true'-->
<!-- :close-on-click-modal="false"-->
<!-- :close-on-press-escape="false"-->
<!-- >-->
<!-- <stockOrderNewSelectProduct-->
<!-- :closeDialog="closeDialogC2"-->
<!-- :data="thisData"-->
<!-- ></stockOrderNewSelectProduct>-->
<!-- </el-dialog>-->
<el-dialog <el-dialog
title="产品录入" title="产品录入"
@ -373,7 +367,21 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
formData: {}, formData: {
noInvOut: false,
locStorageCode: null,
invWarehouseCode: null,
fromSubInvCode: null,
billNo: null,
billdate: "",
customerId: store.getters.customerId,
billType: "",
type: null,
corpName: "",
corpId: "",
},
formRules: { formRules: {
corpName: [ corpName: [
{required: true, message: "请输入供应商", trigger: "blur"} {required: true, message: "请输入供应商", trigger: "blur"}
@ -470,9 +478,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) { if (this.$isBlank(this.codeArray[i].reCount) || this.codeArray[i].reCount < 1) {
return this.$message.error('配货数量不能小于0'); return this.$message.error('配货数量不能小于0');
} }
@ -1052,13 +1060,16 @@ export default {
this.invChange(); this.invChange();
} else { } else {
this.formData = { this.formData = {
billNo: null,
billdate: "", billdate: "",
corpName: store.getters.companyName,
customerId: store.getters.customerId, customerId: store.getters.customerId,
// billType: "deliveryNote",
billType: "", billType: "",
type: "1", type: "2",
// type: "", corpName: "",
corpId: "",
noInvOut: "",
locStorageCode: store.getters.locInvCode,
invWarehouseCode: store.getters.locSubInvCode,
}; };
this.iCount = 0; this.iCount = 0;
this.orderEditor = false; this.orderEditor = false;

@ -374,16 +374,6 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="productDate"> <el-form-item prop="productDate">
<!-- <el-input v-model="detailFormData.productDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.productDate"-->
<!-- placeholder="请选择生产日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
<el-input v-model="detailFormData.productDate" auto-complete="off" <el-input v-model="detailFormData.productDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
type="number" type="number"
@ -397,22 +387,12 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="expireDate"> <el-form-item prop="expireDate">
<!-- <el-input v-model="detailFormData.expireDate" auto-complete="off"-->
<!-- :disabled="false"></el-input>-->
<el-input v-model="detailFormData.expireDate" auto-complete="off" <el-input v-model="detailFormData.expireDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)" oninput="if(value.length>6)value=value.slice(0,6)"
type="number" type="number"
:disabled="false"></el-input> :disabled="false"></el-input>
<!-- <el-date-picker-->
<!-- type="date"-->
<!-- size="small" v-model="detailFormData.expireDate"-->
<!-- placeholder="请选择失效日期" style="width: 80%"-->
<!-- value-format="yyMMdd"-->
<!-- format="yyyy-MM-dd"-->
<!-- >-->
<!-- </el-date-picker>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -890,9 +870,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) { // if (this.$isBlank(tQuery.productDate) && this.$isBlank(tQuery.expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
uploadStockOrderDetail(tQuery).then((response) => { uploadStockOrderDetail(tQuery).then((response) => {
this.detailLoading = false; this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {
@ -947,7 +927,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -967,6 +947,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
} }

@ -84,10 +84,6 @@
:data="list" :data="list"
style="width: 100%;" highlight-current-row style="width: 100%;" highlight-current-row
@row-click="getStockOrderDetailList" ref="multipleTable"> @row-click="getStockOrderDetailList" ref="multipleTable">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column> <el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -113,11 +109,6 @@
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="subInvName" width="120"> <el-table-column label="当前分库" prop="subInvName" width="120">
</el-table-column> </el-table-column>
<!-- <el-table-column label="采购类别" width="150">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="150"> <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -197,7 +188,7 @@
</el-card> </el-card>
<el-dialog <el-dialog
title="编辑" :title="formMap[formName]"
:visible.sync="newDistributionVisible" :visible.sync="newDistributionVisible"
width="80%" width="80%"
v-if="newDistributionVisible" v-if="newDistributionVisible"
@ -213,7 +204,7 @@
></stockOrderNewDistribution> ></stockOrderNewDistribution>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="编辑" :title="formMap[formName]"
:visible.sync="newSpDistributionVisible" :visible.sync="newSpDistributionVisible"
width="80%" width="80%"
v-if="newSpDistributionVisible" v-if="newSpDistributionVisible"
@ -572,6 +563,15 @@ export default {
}, },
], ],
}, },
formMap: {
add: "新增业务单据",
edit: "编辑业务单据"
},
formName: null,
} }
}, },
methods: { methods: {
@ -659,6 +659,9 @@ export default {
if (this.$isNotBlank(row) && this.$isNotBlank(row.id)) { if (this.$isNotBlank(row) && this.$isNotBlank(row.id)) {
this.idQuery.id = row.id; this.idQuery.id = row.id;
this.idQuery.formData = row; this.idQuery.formData = row;
this.formName = "edit";
} else {
this.formName = "add";
} }
if (store.getters.customerId == 110) { if (store.getters.customerId == 110) {
this.newSpDistributionVisible = true; this.newSpDistributionVisible = true;
@ -936,7 +939,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -956,6 +959,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
} }

@ -455,9 +455,9 @@ export default {
// return this.$message.error(''); // return this.$message.error('');
// } // }
// } // }
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) { // if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空'); // return this.$message.error('');
} // }
} }
} }
@ -560,9 +560,18 @@ export default {
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event == null) {
// this.$refs.inputRef.focus();
} else event.target.select(); } else event.target.select();
if (this.$isBlank(event)) { if (this.$isBlank(event)) {
if (this.$isBlank(this.formData.billType)) {
this.$message.error("单据类型不能为空!")
return;
}
if (this.$isBlank(this.formData.locStorageCode) || this.$isBlank(this.formData.invWarehouseCode)) {
this.$message.error("当前仓库和当前分库不能为空!");
return;
}
this.code = ""; this.code = "";
this.$refs.multipleTable.setCurrentRow(); this.$refs.multipleTable.setCurrentRow();
this.currentRow = {}; this.currentRow = {};
@ -594,7 +603,6 @@ export default {
code: this.code, code: this.code,
customerId: store.getters.customerId, customerId: store.getters.customerId,
}; };
stockOrderDetailQueryProduct(tQuery).then((response) => { stockOrderDetailQueryProduct(tQuery).then((response) => {
this.loading = false; this.loading = false;
console.log(response) console.log(response)
@ -631,12 +639,9 @@ export default {
} }
} else { } else {
this.$message.warning(response.message); this.$message.warning(response.message);
// this.focusNext('inputRef');
if (this.$isNotBlank(event)) { if (this.$isNotBlank(event)) {
event.target.select(); event.target.select();
} }
// event.target.select();
// event.currentTarget.select();
} }
}); });

@ -81,22 +81,8 @@
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350" <el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
ref="multipleTable"> ref="multipleTable">
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="55">-->
<!-- </el-table-column>-->
<el-table-column label="序号" type="index" width="50"></el-table-column> <el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="码" prop="udiCode"></el-table-column> <el-table-column label="内部码" prop="udiCode"></el-table-column>
<!--<el-table-column label="订单数量">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.count }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="实际数量">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.reCount }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="状态"> <el-table-column label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ statusMap[scope.row.printStatus] }}</span> <span>{{ statusMap[scope.row.printStatus] }}</span>

@ -140,6 +140,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -597,6 +598,15 @@ export default {
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
this.actDateRange = []; this.actDateRange = [];
}, },
resetDetailQuery() {
this.detailQuery = {
orderIdFk: "",
page: 1,
limit: 20
}
this.detailList = [];
this.detailTotal = 0;
},
onSubmit() { onSubmit() {
if (this.actDateRange !== null) { if (this.actDateRange !== null) {
this.query.startTime = this.actDateRange[0]; this.query.startTime = this.actDateRange[0];
@ -605,6 +615,7 @@ export default {
this.query.startTime = null; this.query.startTime = null;
this.query.endTime = null; this.query.endTime = null;
} }
this.query.page = 1;
this.getList(); this.getList();
if (this.query.status === "202" || this.query.status === "502") { if (this.query.status === "202" || this.query.status === "502") {
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
@ -709,6 +720,7 @@ export default {
} }
}, },
getList() { getList() {
this.resetDetailQuery();
this.loading = true; this.loading = true;
this.query.corpId = store.getters.customerId; this.query.corpId = store.getters.customerId;
stockOrderList(this.query) stockOrderList(this.query)
@ -936,7 +948,7 @@ export default {
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -956,6 +968,19 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

@ -786,7 +786,7 @@ export default {
this.storageList = response.data || []; this.storageList = response.data || [];
if (this.storageList.length > 0) { if (this.storageList.length > 0) {
this.query.locStorageCode = this.storageList[0].code; this.query.locStorageCode = this.storageList[0].code;
this.invChange(); this.getSubInvList();
this.getList(); this.getList();
} }
}) })
@ -806,6 +806,17 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getSubInvList() {
let query = {
pcode: this.query.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
subInvChange() { subInvChange() {
this.getBusType(); this.getBusType();
}, },

Loading…
Cancel
Save