Browse Source

8.29

master
fengdong777 2 years ago
parent
commit
0f710f244b
  1. 19
      supervise-enterprise-ui/src/views/NewList/needMoney.vue
  2. 2
      supervise-organizational-ui/.env.development
  3. 11
      supervise-organizational-ui/src/api/system/departments/departments.js
  4. 16
      supervise-organizational-ui/src/layout/components/Sidebar/index.vue
  5. 4
      supervise-organizational-ui/src/main.js
  6. 2
      supervise-organizational-ui/src/store/getters.js
  7. 13
      supervise-organizational-ui/src/views/organizational/zzgl.vue
  8. 104
      warehousing-system/project_web_ui/src/layout/components/Sidebar/index.vue
  9. 42
      warehousing-system/project_web_ui/src/views/component/initial_value/add/productAdd.vue
  10. 6
      warehousing-system/project_web_ui/src/views/component/initial_value/add/supplierAdd.vue
  11. 6
      warehousing-system/project_web_ui/src/views/component/initial_value/storehouse.vue
  12. 33
      warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue
  13. 16
      warehousing-system/project_web_ui/src/views/component/instorehouse/putInManagement.vue
  14. 31
      warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue
  15. 2
      warehousing-system/project_web_ui/src/views/component/stockManagement/stockList.vue

19
supervise-enterprise-ui/src/views/NewList/needMoney.vue

@ -35,6 +35,11 @@
</div> </div>
<div style="margin-top: 25px;"> <div style="margin-top: 25px;">
<span>用款金额{{"\xa0\xa0\xa0"}}</span> <span>用款金额{{"\xa0\xa0\xa0"}}</span>
<button class="all" @click="AllList">全部使用</button>
</div>
<div style="margin-top: 50px;">
<span>回款凭证{{"\xa0\xa0\xa0"}}</span>
</div> </div>
<div style="margin-top: 45px;margin-left: -10px;font-size: 14px;"> <div style="margin-top: 45px;margin-left: -10px;font-size: 14px;">
:客户发起发起申请首先监管审核再银行审核通过后客户在审核结果表里打印纸质申请表盖章并提交给监管银行各一份 :客户发起发起申请首先监管审核再银行审核通过后客户在审核结果表里打印纸质申请表盖章并提交给监管银行各一份
@ -103,6 +108,9 @@ export default {
} }
}, },
AllList(){
console.log(66);
},
doClose() { doClose() {
this.$store.dispatch('tagsView/delView', this.$route) this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1) this.$router.go(-1)
@ -143,4 +151,15 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.all{
width: 100px;
height: 25px;
font-size: 14px;
background-color: #fff;
border: 1px solid #71717186;
border-radius: 8px;
}
.all:hover{
border: 1px solid #717171
}
</style> </style>

2
supervise-organizational-ui/.env.development

@ -5,5 +5,5 @@ ENV = 'development'
VUE_APP_BASE_API = '/api' VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址 ## 配置测试和本地开发时的 接口地址
VUE_APP_URL = "http://192.168.3.173:8112" VUE_APP_URL = "http://192.168.1.193:8112"
##VUE_APP_URL = "http://8.130.39.13:8112" ##VUE_APP_URL = "http://8.130.39.13:8112"

11
supervise-organizational-ui/src/api/system/departments/departments.js

@ -123,3 +123,14 @@ export function getQrCode(data) {
} }
}) })
} }
// 查看二维码
export function loginDetails() {
return request({
baseURL: '/api',
url: '/portal/v1/sysuser/loginDetails',
method: 'post',
headers: {
'Content-Type': 'application/json'
}
})
}

16
supervise-organizational-ui/src/layout/components/Sidebar/index.vue

@ -77,12 +77,12 @@
methods: { methods: {
// //
postHuoquyonghu() { postHuoquyonghu() {
var token = getStorage() // var token = getStorage()
loginDetails(token).then((response) => { // loginDetails(token).then((response) => {
console.log('resss', response) // console.log('resss', response)
if (response.code === '200') { // if (response.code === '200') {
this.YongHuid = response.data // this.YongHuid = response.data
this.params.userSid = this.YongHuid.sid // this.params.userSid = this.YongHuid.sid
getrolemenus(this.params).then((res) => { getrolemenus(this.params).then((res) => {
const userRoles = this.resRouter(res.data) const userRoles = this.resRouter(res.data)
userRoles.push({ userRoles.push({
@ -92,8 +92,8 @@
}) })
return userRoles return userRoles
}) })
} // }
}) // })
}, },
resRouter(menus) { resRouter(menus) {
// //

4
supervise-organizational-ui/src/main.js

@ -23,12 +23,12 @@ Vue.use(ElementUI)
// import '@/permission' //权限控制 // import '@/permission' //权限控制
Vue.prototype.$userInfo = null // 用户信息 Vue.prototype.$ = null // 用户信息
Vue.component('Pagination', Pagination) Vue.component('Pagination', Pagination)
Vue.component('tab-search', tabsearch) Vue.component('tab-search', tabsearch)
Vue.component('eimage', eimage) Vue.component('eimage', eimage)
Vue.prototype.moment = moment Vue.prototype.moment = moment
Vue.filter('dateFormat', function(dateStr, pattern = 'YYYY-MM-DD') { Vue.filter('dateFormat', function (dateStr, pattern = 'YYYY-MM-DD') {
return moment(dateStr).format(pattern) return moment(dateStr).format(pattern)
}) })
Vue.use(Print) // 注册 Vue.use(Print) // 注册

2
supervise-organizational-ui/src/store/getters.js

@ -1,4 +1,4 @@
const getters = { const getters = {
orgSid: state => state.user.orgSid orgSid: state => state.user
} }
export default getters export default getters

13
supervise-organizational-ui/src/views/organizational/zzgl.vue

@ -290,10 +290,12 @@ import {
pageList, pageList,
postOrgtree, postOrgtree,
putOrgtree, putOrgtree,
selectBySid selectBySid,
loginDetails
} from '@/api/system/departments/departments.js' } from '@/api/system/departments/departments.js'
import { typeValues } from '@/api/system/roleAdminister/index' import { typeValues } from '@/api/system/roleAdminister/index'
import Position from '@/components/amap/amap.vue' import Position from '@/components/amap/amap.vue'
import store from '@/store'
export default { export default {
components: { Position }, components: { Position },
@ -363,6 +365,7 @@ export default {
mounted() { mounted() {
this.getOrgTree() this.getOrgTree()
this.init() this.init()
window.sessionStorage.setItem('userSid', "427a2fb0-60c5-409f-bea4-4eb441041ae6");
}, },
methods: { methods: {
init() { init() {
@ -408,8 +411,10 @@ export default {
this.getPageList(this.page) this.getPageList(this.page)
}, },
handleNodeClick(data) { handleNodeClick(data) {
// console.log(this.$store.getters);
var datas = sessionStorage.getItem('userSid');
this.isshow = 'table' this.isshow = 'table'
this.page.params.organizationSid = this.$store.getters.userInfo.orgSid this.page.params.organizationSid = datas
this.page.params.psid = data.sid || 0 this.page.params.psid = data.sid || 0
this.getPageList(this.page) this.getPageList(this.page)
@ -433,7 +438,7 @@ export default {
this.form.fgStaffName = '' this.form.fgStaffName = ''
this.form.fgStaffSid = '' this.form.fgStaffSid = ''
} }
this.form.organizationSid = this.$store.getters.userInfo.orgSid this.form.organizationSid = this.page.params.organizationSid
// this.form.dlxx = typeof(this.form.dlxx) == 'string' ? this.form.dlxx : this.form.dlxx.join() // this.form.dlxx = typeof(this.form.dlxx) == 'string' ? this.form.dlxx : this.form.dlxx.join()
if (this.form.sid) { if (this.form.sid) {
// console.log(this.form) // console.log(this.form)
@ -469,7 +474,7 @@ export default {
this.fgStaffSid = [] this.fgStaffSid = []
this.form = Object.assign({}, this.formBackup) this.form = Object.assign({}, this.formBackup)
this.form.psid = data.sid || 0 this.form.psid = data.sid || 0
this.form.organizationSid = this.$store.getters.userInfo.orgSid this.form.organizationSid = this.page.params.organizationSid
this.form.address = data.orgAddress || data.address this.form.address = data.orgAddress || data.address
this.form.dlxx = data.gisInfo || data.dlxx this.form.dlxx = data.gisInfo || data.dlxx
this.getStaff(data.sid) this.getStaff(data.sid)

104
warehousing-system/project_web_ui/src/layout/components/Sidebar/index.vue

@ -160,59 +160,59 @@
] ]
}, },
{ // {
alwaysShow: true, // alwaysShow: true,
component: "storehouseManage", // component: "storehouseManage",
meta: { // meta: {
icon: "el-icon-menu", // icon: "el-icon-menu",
title: "库内管理", // title: "",
}, // },
name: "/storehouseManage", // name: "/storehouseManage",
path: "/storehouseManage", // path: "/storehouseManage",
children: [ // children: [
{ // {
alwaysShow: true, // alwaysShow: true,
component: "shelves", // component: "shelves",
meta: { // meta: {
icon: "el-icon-help", // icon: "el-icon-help",
title: "上架", // title: "",
}, // },
name: "/storehouseManage/shelves", // name: "/storehouseManage/shelves",
path: "/storehouseManage/shelves", // path: "/storehouseManage/shelves",
}, // },
{ // {
alwaysShow: true, // alwaysShow: true,
component: "shelvesManage", // component: "shelvesManage",
meta: { // meta: {
icon: "el-icon-help", // icon: "el-icon-help",
title: "上架管理", // title: "",
}, // },
name: "/storehouseManage/shelvesManage", // name: "/storehouseManage/shelvesManage",
path: "/storehouseManage/shelvesManage", // path: "/storehouseManage/shelvesManage",
}, // },
{ // {
alwaysShow: true, // alwaysShow: true,
component: "remove", // component: "remove",
meta: { // meta: {
icon: "el-icon-help", // icon: "el-icon-help",
title: "移库", // title: "",
}, // },
name: "/storehouseManage/remove", // name: "/storehouseManage/remove",
path: "/storehouseManage/remove", // path: "/storehouseManage/remove",
}, // },
{ // {
alwaysShow: true, // alwaysShow: true,
component: "removeManagement", // component: "removeManagement",
meta: { // meta: {
icon: "el-icon-help", // icon: "el-icon-help",
title: "移库管理", // title: "",
}, // },
name: "/storehouseManage/removeManagement", // name: "/storehouseManage/removeManagement",
path: "/storehouseManage/removeManagement", // path: "/storehouseManage/removeManagement",
}, // },
] // ]
}, // },
{ {
alwaysShow: true, alwaysShow: true,
component: "stockList", component: "stockList",

42
warehousing-system/project_web_ui/src/views/component/initial_value/add/productAdd.vue

@ -18,7 +18,7 @@
<div class="item"> <div class="item">
<span class="item_text">条码</span> <span class="item_text">条码</span>
<el-input v-model="locationForm.barCode" :disabled="disabledCode" placeholder="" class="item_inputs" clearable /> <el-input v-model="locationForm.barCode" :disabled="disabledCode" placeholder="" class="item_inputs" clearable />
<el-button type="primary" size="small" @click="createBarCode" :disabled="disabledCode">自动</el-button> <el-button type="primary" size="small" @click="createBarCode" :disabled="disabledCode">随机</el-button>
</div> </div>
<div class="item"> <div class="item">
<span class="item_text">商品名</span> <span class="item_text">商品名</span>
@ -30,19 +30,19 @@
</div> </div>
<div class="item"> <div class="item">
<span class="item_text">价值</span> <span class="item_text">价值</span>
<el-input v-model="locationForm.value" class="item_input" clearable></el-input> <el-input v-model="locationForm.value" class="item_input" @input="limitInput1($event)" clearable></el-input>
</div> </div>
<div class="item"> <div class="item">
<span class="item_text">净重</span> <span class="item_text">净重</span>
<el-input v-model="locationForm.netWeight" class="item_input" clearable></el-input> <el-input v-model="locationForm.netWeight" class="item_input" @input="limitInput2($event)" clearable></el-input>
</div> </div>
<div class="item"> <div class="item">
<span class="item_text">毛重</span> <span class="item_text">毛重</span>
<el-input v-model="locationForm.roughWeight" class="item_input" clearable></el-input> <el-input v-model="locationForm.roughWeight" class="item_input" @input="limitInput3($event)" clearable></el-input>
</div> </div>
<div class="item"> <div class="item">
<span class="item_text">有效天数</span> <span class="item_text">有效天数</span>
<el-input v-model="locationForm.effectiveDays" class="item_input" clearable></el-input> <el-input v-model="locationForm.effectiveDays" class="item_input" @input="limitInput4($event)" clearable></el-input>
</div> </div>
<div class="item"> <div class="item">
<span class="item_text">备注</span> <span class="item_text">备注</span>
@ -133,6 +133,38 @@
var nowstr = now.getTime() var nowstr = now.getTime()
this.locationForm.barCode = 'P' + now.getTime() this.locationForm.barCode = 'P' + now.getTime()
}, },
limitInput1(value, index) {
this.locationForm.value =
("" + value) //
.replace(/[^\d^\.]+/g, "") //
.replace(/^0+(\d)/, "$1") // 00
.replace(/^\./, "0.") // 0.
.match(/^\d*(\.?\d{0,4})/g)[0] || ""; // 02
},
limitInput2(value, index) {
this.locationForm.netWeight =
("" + value) //
.replace(/[^\d^\.]+/g, "") //
.replace(/^0+(\d)/, "$1") // 00
.replace(/^\./, "0.") // 0.
.match(/^\d*(\.?\d{0,4})/g)[0] || ""; // 02
},
limitInput3(value, index) {
this.locationForm.roughWeight =
("" + value) //
.replace(/[^\d^\.]+/g, "") //
.replace(/^0+(\d)/, "$1") // 00
.replace(/^\./, "0.") // 0.
.match(/^\d*(\.?\d{0,4})/g)[0] || ""; // 02
},
limitInput4(value, index) {
this.locationForm.effectiveDays =
("" + value) //
.replace(/[^\d^\.]+/g, "") //
.replace(/^0+(\d)/, "$1") // 00
.replace(/^\./, "0.") // 0.
.match(/^\d*(\d{0,0})/g)[0] || ""; // 02
},
} }
} }
</script> </script>

6
warehousing-system/project_web_ui/src/views/component/initial_value/add/supplierAdd.vue

@ -90,11 +90,15 @@
this.handleReturn('true') this.handleReturn('true')
}, },
async addProduct () { async addProduct () {
if(this.locationForm.name!=''){
const { data: result } = await this.$http.post('/supplier/addSupplier', this.locationForm) const { data: result } = await this.$http.post('/supplier/addSupplier', this.locationForm)
if (result.status !== 200) return this.$message.error('添加供应商失败') if (result.status !== 200) return this.$message.error('添加供应商失败')
this.$message.success('成功添加供应商') this.$message.success('成功添加供应商')
this.handleReturn('true') this.handleReturn('true')
}, }else{
this.$message.error('供应商名称不能为空')
}
}
} }
} }
</script> </script>

6
warehousing-system/project_web_ui/src/views/component/initial_value/storehouse.vue

@ -8,7 +8,7 @@
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="queryInfo" :inline="true" :model="queryInfo" class="tab-header"> <el-form ref="queryInfo" :inline="true" :model="queryInfo" class="tab-header">
<el-form-item label="仓库名"> <el-form-item label="仓库名">
<el-input v-model="queryInfo.params.simpleName" placeholder="请输入仓库名" clearable /> <el-input v-model="queryInfo.params.name" placeholder="请输入仓库名" clearable />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="btn" style="text-align: center;"> <div class="btn" style="text-align: center;">
@ -125,7 +125,7 @@ export default {
size: 10, size: 10,
current: 1, current: 1,
params: { params: {
simpleName:'' name:''
}, },
}, },
btnList: [ btnList: [
@ -172,7 +172,7 @@ export default {
size: 10, size: 10,
current: 1, current: 1,
params: { params: {
simpleName:'' name:''
}, },
} }
this.getStorehouseList() this.getStorehouseList()

33
warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue

@ -12,7 +12,7 @@
</div> </div>
</div> </div>
<div class="listconadd"> <div class="listconadd">
<el-form ref="dataForm" :model="purchaseForm" label-position="top" label-width="190px" class="formadd"> <el-form ref="dataForm" :rules="rules" :model="purchaseForm" label-position="top" label-width="190px" class="formadd">
<div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px"> <div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px">
<div style="margin-left: 15px;">主体信息</div> <div style="margin-left: 15px;">主体信息</div>
</div> </div>
@ -33,7 +33,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="purchaseDate">
<!-- <span>{{temp.bankName}}</span> --> <!-- <span>{{temp.bankName}}</span> -->
<el-date-picker v-model="purchaseForm.purchaseDate" type="date" style="width: 100%;" <el-date-picker v-model="purchaseForm.purchaseDate" type="date" style="width: 100%;"
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择" /> format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择" />
@ -65,7 +65,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="custId">
<el-select v-model="purchaseForm.custId" placeholder="请选择" @change="setCustername(purchaseForm.custId)" style="width: 100%;" > <el-select v-model="purchaseForm.custId" placeholder="请选择" @change="setCustername(purchaseForm.custId)" style="width: 100%;" >
<el-option <el-option
v-for="(custName,i) in custList" v-for="(custName,i) in custList"
@ -82,7 +82,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="purchasePerson">
<el-input v-model="purchaseForm.purchasePerson" placeholder="采购申请人" clearable /> <el-input v-model="purchaseForm.purchasePerson" placeholder="采购申请人" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -113,7 +113,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="storehouseId">
<el-select v-model="purchaseForm.storehouseId" placeholder="请选择" style="width: 100%;" > <el-select v-model="purchaseForm.storehouseId" placeholder="请选择" style="width: 100%;" >
<el-option <el-option
v-for="(storehouse,i) in storehouseList" v-for="(storehouse,i) in storehouseList"
@ -137,8 +137,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.proId" placeholder="请选择" @change="selectPro(scope.row)" > <el-select v-model="scope.row.proId" placeholder="请选择" @change="selectPro(scope.row)" >
<el-option <el-option
v-for="product in productList" v-for="(product,i) in productList"
:key="product.name" :key="i"
:label="product.name" :label="product.name"
:value="product.barCode"> :value="product.barCode">
</el-option> </el-option>
@ -225,17 +225,20 @@
selectPurchaseList: [], selectPurchaseList: [],
activeNames: ['1'], activeNames: ['1'],
rules: { rules: {
product: [ purchaseDate: [
{ required: true, message: '请输入商品名', trigger: 'blur' } { required: true, message: '请选择订单日期', trigger: 'blur' }
],
custId: [
{ required: true, message: '请选择供货单位', trigger: 'blur' }
], ],
supplier: [ purchasePerson: [
{ required: true, message: '请输入供应商', trigger: 'blur' } { required: true, message: '请输入采购申请人', trigger: 'blur' }
], ],
count: [ storehouseId: [
{ required: true, message: '请输入商品数量', trigger: 'blur' } { required: true, message: '请选择入库单位', trigger: 'blur' }
], ],
storehouse: [ proName: [
{ required: true, message: '请输入所属仓库', trigger: 'blur' } { required: true, message: '请选择质物品名称', trigger: 'blur' }
] ]
} }
}; };

16
warehousing-system/project_web_ui/src/views/component/instorehouse/putInManagement.vue

@ -8,8 +8,8 @@
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}</el-button> <el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}</el-button>
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="queryInfo" :inline="true" :model="queryInfo" class="tab-header"> <el-form ref="queryInfo" :inline="true" :model="queryInfo" class="tab-header">
<el-form-item label="入库号"> <el-form-item label="入库号">
<el-input v-model="queryInfo.params.no" placeholder="请输入入库号" clearable /> <el-input v-model="queryInfo.params.no" placeholder="请输入入库号" clearable />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="btn" style="text-align: center;"> <div class="btn" style="text-align: center;">
@ -22,20 +22,20 @@
style="width: 100%" border> style="width: 100%" border>
<el-table-column label="序号" type="index" width="60" :index="indexMethod" align="center" /> <el-table-column label="序号" type="index" width="60" :index="indexMethod" align="center" />
<el-table-column <el-table-column
prop="createTime" prop="no"
label="入库日期" label="入库编号"
align="center" align="center"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="custerName" prop="createTime"
label="客户名称" label="入库日期"
align="center" align="center"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="no" prop="custerName"
label="订单编号" label="客户名称"
align="center" align="center"
width="180"> width="180">
</el-table-column> </el-table-column>

31
warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue

@ -12,7 +12,7 @@
</div> </div>
</div> </div>
<div class="listconadd"> <div class="listconadd">
<el-form ref="dataForm" :model="purchaseForm" label-position="top" label-width="190px" class="formadd"> <el-form ref="dataForm" :rules="rules" :model="purchaseForm" label-position="top" label-width="190px" class="formadd">
<div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px"> <div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px">
<div style="margin-left: 15px;">主体信息</div> <div style="margin-left: 15px;">主体信息</div>
</div> </div>
@ -34,7 +34,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="applicationDate">
<!-- <span>{{temp.bankName}}</span> --> <!-- <span>{{temp.bankName}}</span> -->
<el-date-picker v-model="purchaseForm.applicationDate" type="date" style="width: 100%;" <el-date-picker v-model="purchaseForm.applicationDate" type="date" style="width: 100%;"
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择" /> format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择" />
@ -49,7 +49,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item prop="supplier" class="trightb_item"> <el-form-item prop="custerSid" class="trightb_item">
<el-select v-model="purchaseForm.custerSid" placeholder="请选择" style="width: 100%;"> <el-select v-model="purchaseForm.custerSid" placeholder="请选择" style="width: 100%;">
<el-option <el-option
v-for="(custName,i) in custList" v-for="(custName,i) in custList"
@ -66,7 +66,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="creatorName">
<el-input v-model="purchaseForm.creatorName" placeholder="采购申请人" clearable /> <el-input v-model="purchaseForm.creatorName" placeholder="采购申请人" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -79,7 +79,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="storeHouseSid">
<el-select v-model="purchaseForm.storeHouseSid" @change="selectstorehouse(purchaseForm)" placeholder="请选择" style="width: 100%;"> <el-select v-model="purchaseForm.storeHouseSid" @change="selectstorehouse(purchaseForm)" placeholder="请选择" style="width: 100%;">
<el-option <el-option
v-for="(storehouse,i) in storehouseList" v-for="(storehouse,i) in storehouseList"
@ -96,7 +96,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="trightb_item"> <el-form-item class="trightb_item" prop="outDate">
<el-date-picker v-model="purchaseForm.outDate" type="date" style="width: 100%;" <el-date-picker v-model="purchaseForm.outDate" type="date" style="width: 100%;"
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择" /> format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择" />
</el-form-item> </el-form-item>
@ -223,17 +223,20 @@
selectPurchaseList: [], selectPurchaseList: [],
activeNames: ['1'], activeNames: ['1'],
rules: { rules: {
product: [ applicationDate: [
{ required: true, message: '请输入商品名', trigger: 'blur' } { required: true, message: '请选择订单日期', trigger: 'blur' }
],
custerSid: [
{ required: true, message: '请选择供货单位', trigger: 'blur' }
], ],
supplier: [ creatorName: [
{ required: true, message: '请输入供应商', trigger: 'blur' } { required: true, message: '请输入采购申请人', trigger: 'blur' }
], ],
count: [ storeHouseSid: [
{ required: true, message: '请输入商品数量', trigger: 'blur' } { required: true, message: '请选择出库仓库', trigger: 'blur' }
], ],
storehouse: [ outDate: [
{ required: true, message: '请输入所属仓库', trigger: 'blur' } { required: true, message: '请选择出库日期', trigger: 'blur' }
] ]
}, },
f1Value:{ f1Value:{

2
warehousing-system/project_web_ui/src/views/component/stockManagement/stockList.vue

@ -212,6 +212,8 @@ export default {
const { data: result } = await this.$http.get('/purchase/getProductList') const { data: result } = await this.$http.get('/purchase/getProductList')
if (result.status !== 200) return this.$message.error('获取商品列表失败') if (result.status !== 200) return this.$message.error('获取商品列表失败')
this.productList = result.data this.productList = result.data
console.log(this.productList);
console.log(this.queryInfo);
}, },
doClose() { doClose() {
this.$store.dispatch('tagsView/delView', this.$route) this.$store.dispatch('tagsView/delView', this.$route)

Loading…
Cancel
Save