Browse Source

基础信息(修改过测试问题后的)

master
Zhao Qiqi 3 years ago
parent
commit
f02e20bcd1
  1. 11
      anrui-base/anrui-base-ui/src/api/jichuxinxi/basemanufacturer.js
  2. 46
      anrui-base/anrui-base-ui/src/views/changshang/changshang.vue
  3. 31
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanli.vue
  4. 197
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanliAdd.vue
  5. 433
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshanglook.vue
  6. 14
      anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiAdd.vue

11
anrui-base/anrui-base-ui/src/api/jichuxinxi/basemanufacturer.js

@ -6,7 +6,7 @@ export function pagerList(data) {
return request({ return request({
url: '/base/v1/basemanufacturer/pagerList',data, url: '/base/v1/basemanufacturer/pagerList',data,
method: 'post', method: 'post',
headers: {'Content-Type': 'application/json'}, headers:{'Content-Type':'application/json'},
}) })
} }
//添加 //添加
@ -15,16 +15,16 @@ export function SaveList(data) {
url: '/base/v1/basemanufacturer/save', url: '/base/v1/basemanufacturer/save',
method: 'post', method: 'post',
data: data, data: data,
headers: { 'Content-Type': 'application/json' } headers:{ 'Content-Type':'application/json' }
}) })
} }
//修改 //修改
export function Update(data) { export function Update(data) {
return request({ return request({
url: `/base/v1/basemanufacturer/update/${data.sid}`, url: 'base/v1/basemanufacturer/update/' + data.sid,
method: 'post', method: 'post',
data: data, data: data,
headers: {'Content-Type': 'application/json'}, headers:{'Content-Type':'application/json'},
}) })
} }
// 删除 // 删除
@ -42,6 +42,7 @@ export function details(data) {
method: 'get', method: 'get',
}) })
} }
// 供应厂商列表导出 // 供应厂商列表导出
export function basefinbankExportExcel(data) { export function basefinbankExportExcel(data) {
return request({ return request({
@ -74,7 +75,7 @@ export function selectListOrg(data) {
// 根据厂商名称模糊搜索厂商名称下拉框 // 根据厂商名称模糊搜索厂商名称下拉框
export function getNamesDownes(data) { export function getNamesDownes(data) {
return request({ return request({
url: '/base/v1/basemanufacturer/namesDown',data, url: '/base/v1/basemanufacturer/namesDown',
method: 'get', method: 'get',
params: data, params: data,
data: qs.stringify(data), data: qs.stringify(data),

46
anrui-base/anrui-base-ui/src/views/changshang/changshang.vue

@ -14,33 +14,15 @@
</template> </template>
<script> <script>
import { import {mapGetters} from "vuex";
mapGetters import {details, SaveList, selectListOrg, Update,} from "@/api/jichuxinxi/basemanufacturer";
} from "vuex"; import {getCity, getCounty, getProvince} from '@/api/portal/areaPicker' //
import { import {typeValues} from "@/api/jichuxinxi/dictcommons";
SaveList, import {getLook, getXiu, setuser} from "@/utils/baocun";
Update,
details,
selectListOrg,
} from "@/api/jichuxinxi/basemanufacturer";
import {
getProvince,
getCity,
getCounty
} from '@/api/portal/areaPicker' //
import {
typeValues
} from "@/api/jichuxinxi/dictcommons";
import {
setuser,
getuser,
getXiu,
getLook
} from "@/utils/baocun";
export default { export default {
name: "ChangshangguanliAdd1", name: "ChangshangguanliAdd1",
components: { components: {},
},
data() { data() {
var checkEamil = (rule, value, callback) => { var checkEamil = (rule, value, callback) => {
const regEamil = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/; const regEamil = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
@ -377,12 +359,14 @@ export default {
}, },
zuzhi0(data) { zuzhi0(data) {
data.forEach((e) => { data.forEach((e) => {
if (e.children.length != 0) { if (e.children) {
this.zuzhi0(e.children) if (e.children.length != 0) {
} else { this.zuzhi0(e.children)
delete e.children } else {
this.dataArr.push(e) delete e.children
return this.dataArr.push(e)
return
}
} }
}) })
}, },

31
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanli.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<changshang /> <!-- <changshang />-->
<div v-show="viewState === 1"> <div v-show="viewState === 1">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>厂商管理</div> <div>厂商管理</div>
@ -87,14 +87,15 @@
class="pagination" @pagination="getList" /> class="pagination" @pagination="getList" />
</div> </div>
</div> </div>
<changshangguanli-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" <changshangguanli-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState"
@reloadlist="handleFilter" ></changshangguanli-add> @reloadlist="handleFilter" />
<changshanglook v-show="viewState == 4" ref="divinfo" @doback="resetState" />
</div> </div>
</template> </template>
<script> <script>
import changshangguanliAdd from './changshangguanliAdd'
import { import {
mapGetters mapGetters
} from 'vuex' } from 'vuex'
@ -118,11 +119,14 @@
import { import {
delUser delUser
} from '@/api/system/user/Auser' } from '@/api/system/user/Auser'
import ChangshangguanliAdd from "@/views/changshang/changshangguanli/changshanglook"; import ChangshangguanliAdd from "@/views/changshang/changshangguanli/changshangguanliAdd.vue";
import changshanglook from "@/views/changshang/changshangguanli/changshanglook";
export default { export default {
name: 'Changshangguanli', name: 'changshangguanli',
components: { components: {
changshangguanliAdd, ChangshangguanliAdd,
changshanglook,
Pagination, Pagination,
pageye pageye
}, },
@ -349,9 +353,6 @@
}, },
// //
handleCreate() { handleCreate() {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.viewState = 2 this.viewState = 2
this.$refs['divadd'].showAdd() this.$refs['divadd'].showAdd()
/* if (this.$store.state.counter === 0) { /* if (this.$store.state.counter === 0) {
@ -459,16 +460,8 @@
}, },
// //
handleCheck(row) { handleCheck(row) {
this.$store.state.counter = 3 this.viewState = 4
console.log('111', row) this.$refs['divinfo'].showInfo(row.sid)
this.$router.push({
path: '/changshang/changshangguanliAdd/0',
query: {
sid: row.sid,
info: 3
},
})
setLook(row.sid)
}, },
// //
handleDaoChu() { handleDaoChu() {

197
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanliAdd.vue

@ -2,8 +2,8 @@
<div class="app-container"> <div class="app-container">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div > <div >
<div v-if="stateId === '0'">新增基础信息</div> <div v-if="stateId == '0'">新增厂商信息</div>
<div v-else>修改基础信息</div> <div v-else>修改厂商信息</div>
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
@ -171,16 +171,17 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item> <el-form-item>
<span slot="label">结算币种</span> <span slot="label">结算币种</span>
<el-select v-model="temp1.settlementCurrency" class="addinputw" placeholder="结算币种" @change="getBiZhong()"> <el-select v-model="temp1.settlementCurrency" class="addinputw" placeholder="结算币种" @change="getBiZhong">
<el-option v-for="item in Currency" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" /> <el-option v-for="item in Currency" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="settlementWay"> <el-form-item prop="settlementWay">
<span slot="label">结算方式</span> <span slot="label">结算方式</span>
<el-select v-model="temp1.settlementWay" class="addinputw" placeholder="结算方式" @change="getFangShi()"> <el-select v-model="temp1.settlementWay" class="addinputw" placeholder="结算方式" @change="getFangShi">
<el-option v-for="item in tWay" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" /> <el-option v-for="item in tWay" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -209,8 +210,10 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="taxClassification"> <el-form-item prop="taxClassification">
<span slot="label">税分类</span> <span slot="label">税分类</span>
<el-select v-model="temp1.taxClassification" class="addinputw" placeholder="税分类" @change="getShuiFenLei()"> <el-select v-model="temp1.taxClassification" class="addinputw" placeholder="税分类"
<el-option v-for="item in fication" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" /> @change="getShuiFenLei">
<el-option v-for="item in fication" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -345,33 +348,14 @@
</template> </template>
<script> <script>
import { import {details, SaveList, selectListOrg, Update,} from "@/api/jichuxinxi/basemanufacturer";
mapGetters import {getCity, getCounty, getProvince} from '@/api/portal/areaPicker' //
} from "vuex"; import {typeValues} from "@/api/jichuxinxi/dictcommons";
import { import {getLook, getXiu, setuser} from "@/utils/baocun";
SaveList,
Update,
details,
selectListOrg,
} from "@/api/jichuxinxi/basemanufacturer";
import {
getProvince,
getCity,
getCounty
} from '@/api/portal/areaPicker' //
import {
typeValues
} from "@/api/jichuxinxi/dictcommons";
import {
setuser,
getuser,
getXiu,
getLook
} from "@/utils/baocun";
export default { export default {
name: "ChangshangguanliAdd1", name: "ChangshangguanliAdd1",
components: { components: {},
},
data() { data() {
var checkEamil = (rule, value, callback) => { var checkEamil = (rule, value, callback) => {
const regEamil = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/; const regEamil = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
@ -429,6 +413,9 @@ export default {
upload: false, // upload: false, //
release: false // release: false //
}, },
sid:'',
tWay: [],
fication: [],
province: [], province: [],
city: [], city: [],
county: [], county: [],
@ -560,11 +547,11 @@ export default {
}, },
created() { created() {
this.tempDate.sid = this.$route.params.id; // this.tempDate.sid = this.$route.params.id;
console.log("查看传过来的sid", this.tempDate.sid); // console.log("sid", this.tempDate.sid);
// ---------------------------------------------------------- // // ----------------------------------------------------------
this.infoe = this.$route.query.info; // this.infoe = this.$route.query.info;
console.log("查看传过来的状态", this.infoe); // console.log("", this.infoe);
// ---------------------------------------------------------- // ----------------------------------------------------------
this.gertXiaLa(); this.gertXiaLa();
this.gertXiaLa2(); this.gertXiaLa2();
@ -572,7 +559,7 @@ export default {
this.gertXiaLa4(); this.gertXiaLa4();
this.getZuZhi(); this.getZuZhi();
this.huoquSheng() this.huoquSheng()
this.init(); // this.init();
}, },
methods: { methods: {
setDetaList() { setDetaList() {
@ -581,6 +568,7 @@ export default {
}).then((res) => { }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.Currency = res.data this.Currency = res.data
console.log('结算币种', this.Currency)
} }
}) })
typeValues({ typeValues({
@ -588,6 +576,7 @@ export default {
}).then((res) => { }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.tWay = res.data this.tWay = res.data
console.log('结算方式', this.tWay)
} }
}) })
typeValues({ typeValues({
@ -595,14 +584,15 @@ export default {
}).then((res) => { }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.fication = res.data this.fication = res.data
console.log('税分类', this.fication)
} }
}) })
}, },
// //
getBiZhong() { getBiZhong(value) {
let bb = null let bb = null
this.Currency.forEach((e) => { this.Currency.forEach((e) => {
if (e.dictKey == this.temp.settlementCurrency) { if (e.dictKey == value) {
bb = { bb = {
type: 'settlementCurrency', type: 'settlementCurrency',
name: e.dictValue, name: e.dictValue,
@ -610,33 +600,46 @@ export default {
} }
} }
}) })
this.modelValue.forEach((e, index) => { this.temp1.settlementCurrencyValue = bb.name
if (e.type == bb.type) { },
this.modelValue.splice(index, 1) getFangShi(value) {
let bb = null
this.tWay.forEach((e) => {
if (e.dictKey == value) {
bb = {
type: 'settlementWay',
name: e.dictValue,
vaule: e.dictKey
}
} }
}) })
this.modelValue.push(bb) this.temp1.settlementWayValue = bb.name
let ab = '' },
this.modelValue.forEach((e, index) => { getShuiFenLei(value) {
ab = ab + e.name let bb = null
}) this.fication.forEach((e) => {
this.temp.settlementCurrencyValue = ab if (e.dictKey == value) {
console.log(this.temp.settlementCurrencyValue, '结算币种value') bb = {
let cd = '' type: 'taxClassification',
this.modelValue.forEach((e, index) => { name: e.dictValue,
cd = cd + e.vaule vaule: e.dictKey
}
}
}) })
this.temp.settlementCurrency = cd console.log('税分类', bb)
this.temp1.taxClassificationValue = bb.name
},
showAdd() {
this.temp = {}
this.temp1 = {}
this.temp2 = {}
this.dialogStatus = 'add'
this.viewTitle = '新增厂商详细信息'
this.stateId = 0
this.setDetaList()
}, },
showAdd() {
this.temp = {}
this.temp1 = {}
this.temp2 = {}
this.dialogStatus = 'add'
this.viewTitle = '新增厂商详细信息'
},
init() { init() {
this.countId = this.$store.state.counter; this.countId = this.$store.state.counter;
// ---------------------------------------------------------- // ----------------------------------------------------------
this.stateId = this.$route.params.id; this.stateId = this.$route.params.id;
@ -767,27 +770,38 @@ export default {
this.deCode.push(bb.districtCode) this.deCode.push(bb.districtCode)
}, },
showEdit(sid, row) { showEdit(sid, row) {
console.log('编辑回显',sid)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
}) })
this.viewTitle = '修改厂商信息' this.viewTitle = '修改厂商信息'
this.dialogStatus = 'update' this.dialogStatus = 'update'
this.temp.sid = sid this.sid = sid
this.stateId = 1
details(sid).then((response) => { details(sid).then((response) => {
if (response.code === "200") { if (response.code === "200") {
if (response.data.baseManufacturerDto.useOrg) { if (response.data.baseManufacturerDto.useOrg) {
this.useOrgArry = response.data.baseManufacturerDto.useOrg this.useOrgArry = response.data.baseManufacturerDto.useOrg
} }
this.temp = response.data.baseManufacturerDto if (response.data.baseManufacturerDto) {
this.temp1 = response.data.baseManufacturerFinanceDto this.temp = response.data.baseManufacturerDto
this.temp2 = response.data.baseManufacturerBankDto }
if (response.data.baseManufacturerFinanceDto) {
this.temp1 = response.data.baseManufacturerFinanceDto
}
if (response.data.baseManufacturerBankDto) {
this.temp2 = response.data.baseManufacturerBankDto
}
} }
}) })
this.setDetaList()
}, },
// //
handleReturn() { handleReturn() {
// this.temp={} this.temp = {}
// this.$router.go(-1) this.temp1 = {}
this.temp2 = {}
// this.$router.go(-1)
this.$emit('doback') this.$emit('doback')
}, },
usrOrgArryChange(e) { usrOrgArryChange(e) {
@ -835,12 +849,14 @@ export default {
}, },
zuzhi0(data) { zuzhi0(data) {
data.forEach((e) => { data.forEach((e) => {
if (e.children.length != 0) { if (e.children) {
this.zuzhi0(e.children) if (e.children.length != 0) {
} else { this.zuzhi0(e.children)
delete e.children } else {
this.dataArr.push(e) delete e.children
return this.dataArr.push(e)
return
}
} }
}) })
}, },
@ -856,7 +872,7 @@ export default {
if (valid) { if (valid) {
this.FormLoading = true; this.FormLoading = true;
this.dialogStatus = "create"; this.dialogStatus = "create";
if (this.countId === 0) { if (this.stateId == 0) {
if (this.useOrgArry) { if (this.useOrgArry) {
var abc = [] var abc = []
this.useOrgArry.forEach((e) => { this.useOrgArry.forEach((e) => {
@ -866,7 +882,11 @@ export default {
} }
var Codese = this.deCode.join(',') var Codese = this.deCode.join(',')
this.temp.orgAddress = Codese this.temp.orgAddress = Codese
var data={"baseManufacturerDto":this.temp,"baseManufacturerFinanceDto":this.temp1,"baseManufacturerBankDto":this.temp2}; var data = {
"baseManufacturerDto": this.temp,
"baseManufacturerFinanceDto": this.temp1,
"baseManufacturerBankDto": this.temp2
};
SaveList(data).then((response) => { SaveList(data).then((response) => {
this.FormLoading = false; this.FormLoading = false;
if (response.code === "200") { if (response.code === "200") {
@ -878,11 +898,7 @@ export default {
type: "success", type: "success",
duration: 2000 duration: 2000
}) })
this.$router.push({ this.handleReturn()
path: '/changshang/changshangguanli',
query: { jkda: 1 }
})
// this.$emit('jj', jisid)
} else { } else {
this.$notify({ this.$notify({
title: "提示", title: "提示",
@ -900,8 +916,13 @@ export default {
}) })
this.temp.useOrg = abc.toString() this.temp.useOrg = abc.toString()
} }
this.temp.sid = this.stateId; var data = {
Update(this.temp).then((response) => { "sid":this.sid,
"baseManufacturerDto": this.temp,
"baseManufacturerFinanceDto": this.temp1,
"baseManufacturerBankDto": this.temp2
};
Update(data).then((response) => {
this.dialogStatus = "update"; this.dialogStatus = "update";
this.FormLoading = false; this.FormLoading = false;
if (response.code === "200") { if (response.code === "200") {
@ -911,13 +932,7 @@ export default {
type: "success", type: "success",
duration: 2000 duration: 2000
}) })
this.$router.push({ this.handleReturn()
path: "/changshang/caiwuxinxiAdd",
query: {
sid: this.stateId
}
})
this.$store.state.counter = 0
} else { } else {
this.$notify({ this.$notify({
title: "失败", title: "失败",

433
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshanglook.vue

@ -1,8 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<changshang />
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>基础信息管理</div> <div>厂商管理详情</div>
<div> <div>
<!-- <el-button type="primary" size="small" @click="dialogStatus==='create'?handleCreate():updateData()">保存</el-button> --> <!-- <el-button type="primary" size="small" @click="dialogStatus==='create'?handleCreate():updateData()">保存</el-button> -->
<el-button type="primary" size="small" @click="handleReturn()" <el-button type="primary" size="small" @click="handleReturn()"
@ -10,84 +9,302 @@
> >
</div> </div>
</div> </div>
<el-form <div class="listconsub" style="height: auto;">
ref="dataForm" <el-form ref="dataForm" :title="textMap[dialogStatus]" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules">
:model="temp" <div class="title">供应厂商信息</div>
label-position="right" <el-row>
label-width="190px" <el-col :span="12">
class="forminfo" <el-form-item prop="manufacturerName">
:rules="rules" <span slot="label">厂商名称</span>
> <span>{{temp.manufacturerName}}</span>
<div class="title">供应厂商信息</div> </el-form-item>
<el-row> </el-col>
<el-col :span="4" class="trightb">厂商名称</el-col> <el-col :span="12">
<el-col :span="8"> {{ temp.manufacturerName }} </el-col> <el-form-item>
<el-col :span="4" class="trightb">简称</el-col> <span slot="label">简称</span>
<el-col :span="8" class="tleft"> {{ temp.manufacturerAs }} </el-col> <span>{{temp.manufacturerAs}}</span>
</el-row> </el-form-item>
<el-row> </el-col>
<el-col :span="4" class="trightb">厂商编码</el-col> </el-row>
<el-col :span="8"> {{ temp.manufacturerCode }}</el-col> <el-row>
<el-col :span="4" class="trightb">厂商通讯地址</el-col> <el-col :span="12">
<el-col :span="8"> {{ temp.manufacturerAddress }}</el-col> <el-form-item>
</el-row> <span slot="label">厂商编码</span>
<span>{{temp.manufacturerCode}}</span>
<el-row> </el-form-item>
<el-col :span="4" class="trightb">厂商传真</el-col> </el-col>
<el-col :span="8"> {{ temp.manufacturerFax }}</el-col> <el-col :span="12">
<el-col :span="4" class="trightb">厂商电话</el-col> <el-form-item prop="manufacturerAddress">
<el-col :span="8"> {{ temp.manufacturerTelePhone }}</el-col> <span slot="label">厂商通讯地址</span>
</el-row> <span>{{temp.manufacturerAddress}}</span>
<el-row> </el-form-item>
<el-col :span="4" class="trightb">邮编</el-col> </el-col>
<el-col :span="8"> {{ temp.zipCode }}</el-col> </el-row>
<el-col :span="4" class="trightb">邮箱</el-col> <el-row>
<el-col :span="8"> {{ temp.email }}</el-col> <el-col :span="12">
</el-row> <el-form-item>
<el-row> <span slot="label">厂商传真</span>
<el-col :span="4" class="trightb">联系人姓名</el-col> <span>{{temp.manufacturerFax}}</span>
<el-col :span="8"> {{ temp.contactName }}</el-col> </el-form-item>
<el-col :span="4" class="trightb">手机号</el-col> </el-col>
<el-col :span="8"> {{ temp.contactMobile }}</el-col> <el-col :span="12">
</el-row> <el-form-item prop="manufacturerTelePhone">
<el-row> <span slot="label">厂商电话</span>
<el-col :span="4" class="trightb">办公电话</el-col> <span>{{temp.manufacturerTelePhone}}</span>
<el-col :span="8"> {{ temp.contactTelePhone }}</el-col> </el-form-item>
<el-col :span="4" class="trightb">微信号</el-col> </el-col>
<el-col :span="8"> {{ temp.weChatID }}</el-col> </el-row>
</el-row> <el-row>
<el-row> <el-col :span="12">
<el-col :span="4" class="trightb">行业</el-col> <el-form-item prop="zipCode">
<el-col :span="8"> {{ temp.industryValue }}</el-col> <span slot="label">邮编</span>
<el-col :span="4" class="trightb">供应商分类</el-col> <span>{{temp.zipCode}}</span>
<el-col :span="8"> {{ temp.supplierTypeValue }}</el-col> </el-form-item>
</el-row> </el-col>
<el-row> <el-col :span="12">
<el-col :span="4" class="trightb">供应类别</el-col> <el-form-item prop="email">
<el-col :span="8"> {{ temp.supplyTypeValue }}</el-col> <span slot="label">邮箱</span>
<el-col :span="4" class="trightb">供应商分组</el-col> <span>{{temp.email}}</span>
<el-col :span="8"> {{ temp.supplierGroupValue }}</el-col> </el-form-item>
</el-row> </el-col>
<el-row> </el-row>
<el-col :span="4" class="trightb">使用组织</el-col> <el-row>
<el-col :span="8"> {{ temp.useOrg }}</el-col> <el-col :span="12">
<!-- <el-col :span="4" class="trightb">国家</el-col> <el-form-item prop="contactName">
<el-col :span="8"> {{ temp.country }}</el-col> --> <span slot="label">联系人姓名</span>
<el-col :span="4" class="trightb">地区</el-col> <span>{{temp.contactName}}</span>
<el-col :span="8"> {{ temp.region }}</el-col> </el-form-item>
</el-row> </el-col>
<!-- <el-row> <el-col :span="12">
<el-form-item prop="contactMobile">
<el-col :span="4" class="trightb">地区</el-col> <span slot="label">手机号</span>
<el-col :span="8"> {{ temp.region }}</el-col> <span>{{temp.contactMobile}}</span>
<el-col :span="4" class="trightb"></el-col> </el-form-item>
<el-col :span="8"></el-col> </el-col>
</el-row> --> </el-row>
<!-- <div class="footer"> <el-row>
<el-button @click="dialogFormVisible = false">取消</el-button> <el-col :span="12">
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">确定</el-button> <el-form-item prop="contactTelePhone">
</div> --> <span slot="label">办公电话</span>
</el-form> <span>{{temp.contactTelePhone}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="weChatID">
<span slot="label">微信号</span>
<span>{{temp.weChatID}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">行业</span>
<span>{{temp.industryValue}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">供应商分类</span>
<span>{{temp.supplierTypeValue}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="supplyType">
<span slot="label">供应类别</span>
<span>{{temp.supplyTypeValue}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">供应商分组</span>
<span>{{temp.supplierGroupValue}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="useOrgArry">
<span slot="label">使用组织</span>
<span>{{temp.useOrgName }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">地区</span>
<span>{{temp.province + temp.city + temp.county}}</span>
</el-form-item>
</el-col>
</el-row>
<div class="title">供应厂商财务信息</div>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">结算币种</span>
<span>{{temp1.settlementCurrencyValue}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="settlementWay">
<span slot="label">结算方式</span>
<span>{{temp1.settlementWayValue}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">付款条件</span>
<span>{{temp1.paymentConditions}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="settlementParty">
<span slot="label">结算方</span>
<span>{{temp1.settlementParty}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">单次预付额度</span>
<span>{{temp1.singleAdvance}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="taxClassification">
<span slot="label">税分类</span>
<span>{{temp1.taxClassificationValue}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="taxRegistNum">
<span slot="label">税务登记号</span>
<span>{{temp1.taxRegistNum}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="businessType">
<span slot="label">经营类型</span>
<span>{{temp1.businessType}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="payee">
<span slot="label">收款方</span>
<span>{{temp1.payee}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="invoiceType">
<span slot="label">发票类型</span>
<span>{{temp1.invoiceType}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="defaultRate">
<span slot="label">默认税率</span>
<span>{{temp1.defaultRate}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="remarks">
<span slot="label">描述</span>
<span>{{temp1.remarks}}</span>
</el-form-item>
</el-col>
</el-row>
<div class="title">供应厂商开户行信息</div>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">国家</span>
<span>{{temp2.country}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="depositBank">
<span slot="label">开户银行</span>
<span>{{temp2.depositBank}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="bankAccount">
<span slot="label">银行账号</span>
<span>{{temp2.bankAccount}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="accountName">
<span slot="label">账户名称</span>
<span>{{temp2.accountName}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="dueBank">
<span slot="label">收款银行</span>
<span>{{temp2.dueBank}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="bankingOutlets">
<span slot="label">银行网点</span>
<span>{{temp2.bankingOutlets}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="bankAddress">
<span slot="label">开户行地址</span>
<span>{{temp2.bankAddress}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="paymentLines">
<span slot="label">联行号</span>
<span>{{temp2.paymentLines}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="swiftCode">
<span slot="label">Swiftcode(银行代码)</span>
<span>{{temp2.swiftCode}}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="currency">
<span slot="label">币种</span>
<span>{{temp2.currency}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item>
<span slot="label">描述</span>
<span>{{temp2.remarks}}</span>
</el-form-item>
</el-col>
<el-col :span="12" />
</el-row>
</el-form>
</div>
</div> </div>
</template> </template>
@ -116,12 +333,14 @@ export default {
}, },
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
temp: {}, //
templook: {}, // templook: {}, //
textMap: { textMap: {
update: "修改", update: "修改",
create: "创建", create: "创建",
}, },
temp:{},
temp1:{},
temp2:{},
dialogFormVisible: false, // dialogFormVisible: false, //
dialogFormShowVisible: false, // dialogFormShowVisible: false, //
dialogStatus: "", // dialogStatus: "", //
@ -175,16 +394,14 @@ export default {
]), ]),
}, },
created() { created() {
// console.log('', JSON.stringify(this.$route.query.sid))
this.tempDate.sid = this.$route.query.sid;
this.handleCheck();
}, },
methods: { methods: {
init() {}, init() {},
// ------------------------------------------------------ // ------------------------------------------------------
// //
handleReturn() { handleReturn() {
this.$router.go(-1); this.$emit('doback')
}, },
// //
resetTemp() { resetTemp() {
@ -197,34 +414,24 @@ export default {
state: "", // state: "", //
}; };
}, },
// showInfo(sid){
handleCreate() { this.sid = sid
// this.$refs['dataForm'].validate((valid) => { details(sid).then((response) => {
// if (valid) { if (response.code === "200") {
// this.FormLoading = true if (response.data.baseManufacturerDto.useOrg) {
// this.dialogStatus = 'create' this.useOrgArry = response.data.baseManufacturerDto.useOrg
// SaveList(this.temp).then((response) => { }
// this.dialogStatus = 'create' if (response.data.baseManufacturerDto) {
// this.FormLoading = false this.temp = response.data.baseManufacturerDto
// if (response.code === '200') { }
// this.$notify({ if (response.data.baseManufacturerFinanceDto) {
// title: '', this.temp1 = response.data.baseManufacturerFinanceDto
// message: '', }
// type: 'success', if (response.data.baseManufacturerBankDto) {
// duration: 2000, this.temp2 = response.data.baseManufacturerBankDto
// }) }
// this.$router.push({ path: '/changshang/changshangguanli' }) }
// } else { })
// this.$notify({
// title: '',
// message: '',
// type: 'error',
// duration: 2000,
// })
// }
// })
// }
// })
}, },
// //
handleCheck() { handleCheck() {

14
anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiAdd.vue

@ -366,12 +366,6 @@
console.log('返回值:', response) console.log('返回值:', response)
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.code === '200') {
this.$notify({
title: '提示',
message: '添加成功',
type: 'success',
duration: 2000
})
this.$router.push({ this.$router.push({
path: '/pinpai/pinpaiguanli' path: '/pinpai/pinpaiguanli'
}) })
@ -399,19 +393,13 @@
console.log('返回值:', response) console.log('返回值:', response)
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.code === '200') {
this.$notify({
title: '提示',
message: '添加成功',
type: 'success',
duration: 2000
})
this.$router.push({ this.$router.push({
path: '/pinpai/pinpaiguanli' path: '/pinpai/pinpaiguanli'
}) })
} else { } else {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '添加失败', message: '修改失败',
type: 'error', type: 'error',
duration: 2000 duration: 2000
}) })

Loading…
Cancel
Save