Commit 9fcd00f3 authored by 罗成兵's avatar 罗成兵

分配记录

parent 2134568f
......@@ -78,8 +78,6 @@ router.beforeEach((to, form, next) => {
return;
}
const token = window.sessionStorage.getItem('token');
console.log("path",to);
console.log("token",token);
if (token) {
next();
} else {
......
......@@ -17,9 +17,8 @@
<!--v-price="{digit:4}"-->
<a-input v-model="searchForm.medicalName" placeholder="请输入联系电话" style="width: 250px"></a-input>
</a-form-item>
<a-button class="search_btn" style="float: right;margin-left: 10px" @click="restSearchForm">清空</a-button>
<a-button type="primary" class="search_btn" style="float: right" @click="searchList">搜索</a-button>
<a-button type="primary" icon="search" class="search_btn" @click="searchList">搜索</a-button>
<a-button class="search_btn" icon="close" style="margin-left: 10px" @click="restSearchForm">清空</a-button>
<div style="clear: both"></div>
</a-form>
......@@ -63,7 +62,7 @@
},
{
title: '证件类型',
dataIndex: 'womenCertificateType',
dataIndex: 'womenCertificateTypeName',
ellipsis: true
},
{
......@@ -79,7 +78,7 @@
},
{
title: '证件类型',
dataIndex: 'menCertificateType',
dataIndex: 'menCertificateTypeName',
ellipsis: true
},
{
......
......@@ -138,7 +138,7 @@
},
{
title: '当前库存',
dataIndex: 'batchNumber',
dataIndex: 'number',
ellipsis: true
},
{
......
......@@ -206,7 +206,6 @@
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize
}
console.log(par);
this.$api.stockManage.fetchInStockList(par).then(({data = {}}) => {
const {dataList = [], total = 0} = data
this.tableData = dataList
......
......@@ -123,7 +123,6 @@
},
created() {
this.queryParams = this.$route.query;
if (this.queryParams.modeType === "update") {
this.$api.common.fetchSupplyById(this.queryParams.id).then(({data, code}) => {
if (code === 'SUCCESS') {
......@@ -166,14 +165,15 @@
submitForm() {
let vm = this;
this.$refs.formRef.validate(valid => {
if (valid) {
vm.subLoad = true
if (true) {
// vm.subLoad = true;
const {areaCode, areaName, ...others} = vm.formData
let areaInfo = areaCode[areaCode.length -1]
let par = {
areaCode: areaInfo,
...others
};
console.log(par)
if (this.queryParams.modeType === 'add') {
vm.$api.common.fetchAddSupply(par).then(res => {
this.subLoad = false;
......
......@@ -161,7 +161,7 @@
this.searchList()
},
toAdd() {
this.$router.push({path:'/supplyManage/add'})
this.$router.push({path:'/supplyManage/add',query: {modeType: "add"}})
},
changeStatus(record) {
let par = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment