Browse Source

2023-5-16

1111
master
guoxing 2 years ago
parent
commit
cc1d12a83d
  1. 11
      yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/supplier/supplier.js
  2. 2
      yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Navbar.vue
  3. 2
      yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Sidebar/index.vue
  4. 2
      yxt-supervise-cyf/yxt-supervise-cyf-ui/src/router/index.js
  5. 2
      yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeInBoundList/index.vue
  6. 44
      yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/oilTypeInBound/index.vue

11
yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/supplier/supplier.js

@ -44,5 +44,16 @@ export default {
})
},
// 供应商 数据字典
supplierList: function(params) {
return request({
url: '/cyf/supplier/supplierList',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
}

2
yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Navbar.vue

@ -1,7 +1,7 @@
<template>
<div>
<div class="navbar">
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png" style="width: 45px;height: 45px;margin-right: 10px;"/>醇油坊进销存管理平台</p>
<p class="breadcrumb-container"><img src="@/assets/loginImg/cyf_logo.jpg" style="width: 45px;height: 45px;margin-right: 10px;"/>醇油坊进销存管理平台</p>
<!-- <h3 class="breadcrumb-container">汇融银行供应链贷后监管平台</h3> -->
<div class="right-menu">
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>-->

2
yxt-supervise-cyf/yxt-supervise-cyf-ui/src/layout/components/Sidebar/index.vue

@ -45,7 +45,7 @@
component: 'supervise',
meta: {
icon: "el-icon-menu",
title: "监管操作"
title: "库房登记"
},
name: "",
path: "/supervise",

2
yxt-supervise-cyf/yxt-supervise-cyf-ui/src/router/index.js

@ -111,7 +111,7 @@ export const constantRoutes = [{
component: Layout,
redirect: null,
meta: {
title: '监管操作'
title: '库房登记'
},
children: [{
path: '/supervise/recordOilTank',

2
yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/inventory/oilTypeInBoundList/index.vue

@ -28,7 +28,7 @@
<el-table v-loading="tableLoading1" :data="logList" border style="width: 100%">
<el-table-column fixed width="100" type="index" label="序号" :index="indexMethod" align="center" />
<el-table-column prop="contractNumber" label="合同编号" align="center" />
<el-table-column prop="supplierSid" label="供货商" width="150" align="center" />
<el-table-column prop="supplierName" label="供货商" width="150" align="center" />
<el-table-column prop="contractSigningDate" label="合同日期" width="150" align="center" />
<el-table-column prop="licensePlateNumber" label="发货车牌号" width="150" align="center" />
<el-table-column prop="warehousingDate" label="入库日期" width="150" align="center" />

44
yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/oilTypeInBound/index.vue

@ -21,8 +21,11 @@
<el-input v-model="formobj.contractNumber" placeholder="" class="item_input" clearable />
</div>
<div class="item">
<span class="item_text">供货商</span>
<el-input v-model="formobj.supplierSid" placeholder="" class="item_input" clearable />
<span class="item_text">供货商名称</span>
<el-select v-model="formobj.supplierName" filterable placeholder="请选择供货商名称" class="item_input"
@change="getSupplier">
<el-option v-for="item in supplierList" :key="item.sid" :label="item.name" :value="item.sid" />
</el-select>
</div>
<div class="item">
<span class="item_text">合同日期</span>
@ -85,7 +88,7 @@
<script>
import req from '@/api/oilTypeInAndOutBound/oilTypeInAndOutBound'
import req2 from '@/api/oilTank/oilTank'
import req3 from '@/api/supplier/supplier'
import upload from '@/components/uploadFile/upload_yanchejianchaTuBiao'
export default {
components: {
@ -94,6 +97,8 @@
data() {
return {
submitdisabled: false,
supplierLists: [],
supplierList: [],
crudeLists: [],
crudeList: [],
tankLists: [],
@ -112,17 +117,37 @@
weight: "",
value: "",
supplierSid: "",
supplierName: "",
licensePlateNumber: "",
remarks: "",
crudeOilStorageFile:[],
crudeOilStorageFile: [],
}
}
},
created() {
this.supplierInfoList()
this.crudeinfoList()
},
methods: {
supplierInfoList() {
req3.supplierList().then((res) => {
if (res.success) {
console.log(">>>>>>>>>2222222", res.data)
this.supplierLists = res.data
for (var i = 0; i < this.supplierLists.length; i++) {
let item = {
name: this.supplierLists[i].supplierName,
sid: this.supplierLists[i].sid,
}
this.supplierList.push(item)
}
}
})
},
crudeinfoList() {
req.crudeinfoList().then((res) => {
if (res.success) {
@ -146,7 +171,7 @@
if (res.success) {
console.log(">>>>>>>>>111111111111wwwwwwwwww", res.data)
this.tankLists = res.data
this.tankList =[]
this.tankList = []
for (var i = 0; i < this.tankLists.length; i++) {
let item = {
@ -184,7 +209,7 @@
supplierSid: "",
licensePlateNumber: "",
remarks: "",
crudeOilStorageFile:[],
crudeOilStorageFile: [],
}
this.imgList = []
@ -199,6 +224,13 @@
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
},
getSupplier(value) {
console.log(">>>>>>>>>getType", value)
const choose = this.supplierLists.filter((item) => item.sid === value)
console.log(">>>>>>>>>getType", choose[0])
this.formobj.supplierName = choose[0].supplierName
this.formobj.supplierSid = value
},
getType(value) {
console.log(">>>>>>>>>getType", value)
const choose = this.crudeLists.filter((item) => item.sid === value)

Loading…
Cancel
Save