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

分配记录

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