货主写死

master
Mr.sun 2 years ago
parent ab358f7a17
commit 22bfe5e10d
  1. 1
      src/components/heavyTable/index.vue
  2. 217
      src/views/libraryManage/components/goods.vue
  3. 7
      src/views/libraryManage/inventoryLock/apply/ProductBatchNumberLocked.vue
  4. 7
      src/views/libraryManage/inventoryLock/apply/ProductLock.vue
  5. 7
      src/views/libraryManage/inventoryLock/apply/heLotNumberOfTheProductIsLocked.vue
  6. 4
      vue.config.js

@ -31,6 +31,7 @@
:class="tableClass" :class="tableClass"
v-bind="tableProps" v-bind="tableProps"
:data="data" :data="data"
height="500px"
v-loading="loading" v-loading="loading"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@sort-change="sortChange" @sort-change="sortChange"

@ -10,7 +10,10 @@
@closed="closed" @closed="closed"
> >
<div class="search-box"> <div class="search-box">
<el-form :inline="true" :model="query"> <el-form
:inline="true"
:model="query"
>
<el-form-item label="商品信息"> <el-form-item label="商品信息">
<el-input <el-input
v-model="query.keyword" v-model="query.keyword"
@ -33,7 +36,10 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<rrOpt @query="toQuery" @reset="toReset" /> <rrOpt
@query="toQuery"
@reset="toReset"
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -56,214 +62,213 @@
:disabled="!handleSelectId.length != 0" :disabled="!handleSelectId.length != 0"
@click="onSave" @click="onSave"
:loading="btnLoading" :loading="btnLoading"
>确定</el-button >确定</el-button>
>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { queryGoodsAndLocation } from "@/api/libraryManage/common.js"; import { queryGoodsAndLocation } from '@/api/libraryManage/common.js'
import { getTableHeader } from "@/api/system/table"; import { getTableHeader } from '@/api/system/table'
export default { export default {
dicts: ["goods_unit", "goods_classify"], dicts: ['goods_unit', 'goods_classify'],
props: ["queryParams"], props: ['queryParams'],
data() { data() {
const _that = this; const _that = this
return { return {
btnLoading: false, btnLoading: false,
dialogVisible: false, dialogVisible: false,
query: { query: {
goodsMnemonic: "", goodsMnemonic: ''
}, },
loading: false, loading: false,
handleSelectId: [], handleSelectId: [],
handleSelect: [], handleSelect: [],
handleSelectMap: [], handleSelectMap: [],
tableProps: { tableProps: {
"row-key": "stockId", 'row-key': 'stockId',
"max-height": 460, 'max-height': 460
}, },
tableConfig: { tableConfig: {
config: [ config: [
{ {
label: "复选框", label: '复选框',
type: "selection", type: 'selection',
prop: "selection", prop: 'selection',
istrue: true, istrue: true
}, },
{ {
label: "业主编号", label: '业主编号',
prop: "consignorCode", prop: 'consignorCode',
istrue: true, istrue: true
}, },
{ {
label: "业主名称", label: '业主名称',
prop: "consignorName", prop: 'consignorName',
istrue: true, istrue: true
}, },
{ {
label: "商品编号", label: '商品编号',
prop: "goodNo", prop: 'goodNo',
istrue: true, istrue: true
}, },
{ {
label: "商品名称", label: '商品名称',
prop: "goodName", prop: 'goodName',
istrue: true, istrue: true
}, },
{ {
label: "单位", label: '单位',
prop: "unit", prop: 'unit',
istrue: true, istrue: true,
filter(row, value) { filter(row, value) {
return _that.getDictLabel(value, _that.dict.type.goods_unit); return _that.getDictLabel(value, _that.dict.type.goods_unit)
}, }
}, },
{ {
label: "商品规格", label: '商品规格',
prop: "specifications", prop: 'specifications',
istrue: true, istrue: true
}, },
{ {
label: "件装量", label: '件装量',
prop: "packageQty", prop: 'packageQty',
istrue: true, istrue: true
}, },
{ {
label: "厂家", label: '厂家',
prop: "factory", prop: 'factory',
istrue: true, istrue: true
}, },
{ {
label: "产品分类", label: '产品分类',
prop: "classify", prop: 'classify',
istrue: true, istrue: true,
filter(row, value) { filter(row, value) {
return _that.getDictLabel(value, _that.dict.type.goods_classify); return _that.getDictLabel(value, _that.dict.type.goods_classify)
}, }
}, },
{ {
label: "存储分类", label: '存储分类',
prop: "storageClassify", prop: 'storageClassify',
istrue: true, istrue: true,
filter(row, value) { filter(row, value) {
return value === "1" ? "整散合一" : "整散分开"; return value === '1' ? '整散合一' : '整散分开'
}, }
}, },
{ {
label: "库存数量", label: '库存数量',
prop: "qty", prop: 'qty',
istrue: true, istrue: true
}, },
{ {
label: "批号", label: '批号',
prop: "batchNo", prop: 'batchNo',
istrue: true, istrue: true
}, },
{ {
label: "生产日期", label: '生产日期',
prop: "productionDate", prop: 'productionDate',
istrue: true, istrue: true
}, },
{ {
label: "有效期", label: '有效期',
prop: "expiredDate", prop: 'expiredDate',
istrue: true, istrue: true
}, },
{ {
label: "显示货位", label: '显示货位',
prop: "locationName", prop: 'locationName',
istrue: true, istrue: true
}, },
{ {
label: "库别", label: '库别',
prop: "storageName", prop: 'storageName',
istrue: true, istrue: true
}, },
{ {
label: "件数", label: '件数',
prop: "caseQty", prop: 'caseQty',
istrue: true, istrue: true
}, },
{ {
label: "零散数", label: '零散数',
prop: "pieceQty", prop: 'pieceQty',
istrue: true, istrue: true
}, }
], ]
}, },
tableData: [], tableData: [],
paging: { paging: {
page: 1, // page: 1, //
size: 10, // size: 10, //
total: 0, total: 0
}, }
}; }
}, },
methods: { methods: {
async open() { async open() {
await this.getTableHeaderCom("busin_lock_goods", { await this.getTableHeaderCom('busin_lock_goods', {
config: this.tableConfig.config, config: this.tableConfig.config
}); })
this.toReset(); this.toReset()
}, },
closed() { closed() {
this.btnLoading = false; this.btnLoading = false
}, },
// //
closeDialog() { closeDialog() {
this.dialogVisible = false; this.dialogVisible = false
}, },
// //
onSave() { onSave() {
if (this.handleSelectId.length === 0) { if (this.handleSelectId.length === 0) {
this.$message.warning("请至少选择一行数据"); this.$message.warning('请至少选择一行数据')
return; return
} }
this.btnLoading = true; this.btnLoading = true
this.$emit("getGoodsInfo", this.handleSelect); this.$emit('getGoodsInfo', this.handleSelect)
this.closeDialog(); this.closeDialog()
}, },
// //
toQuery() { toQuery() {
this.paging.page = 1; this.paging.page = 1
this.queryTable(); this.queryTable()
}, },
// //
toReset() { toReset() {
this.query = {}; this.query = {}
this.queryTable(); this.queryTable()
}, },
// //
queryTable() { queryTable() {
this.loading = true; this.loading = true
let obj = { let obj = {
pageSize: this.paging.size, pageSize: this.paging.size,
pageNum: this.paging.page, pageNum: this.paging.page,
...this.query, ...this.query,
...this.queryParams, ...this.queryParams
}; }
queryGoodsAndLocation(obj) queryGoodsAndLocation(obj)
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.tableData = res.rows; this.tableData = res.rows
this.paging.total = res.total; this.paging.total = res.total
} }
this.loading = false; this.loading = false
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false
}); })
}, },
// //
handleselection(val) { handleselection(val) {
this.handleSelectId = val.map((ele) => ele.id); this.handleSelectId = val.map((ele) => ele.id)
this.handleSelect = val; this.handleSelect = val
}, }
}, }
}; }
</script> </script>
<style rel="stylesheet/scss" lang="scss" scoped> <style rel="stylesheet/scss" lang="scss" scoped>
.search-box { .search-box {

@ -126,7 +126,7 @@ export default {
options: [], options: [],
options2: [], options2: [],
enterForm: { enterForm: {
consignorId: '', consignorId: 2,
userId: '' userId: ''
}, },
goodsData: [], goodsData: [],
@ -193,7 +193,10 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.enterForm = {} this.enterForm = {
consignorId: 2,
userId: ''
}
}, },
// //
handleselection(val) { handleselection(val) {

@ -127,7 +127,7 @@ export default {
options: [], // options: [], //
options2: [], // options2: [], //
enterForm: { enterForm: {
consignorId: '', consignorId: 2,
userId: '' userId: ''
}, },
goodsData: [], goodsData: [],
@ -195,7 +195,10 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.enterForm = {} this.enterForm = {
consignorId: 2,
userId: ''
}
}, },
// //
handleselection(val) { handleselection(val) {

@ -126,7 +126,7 @@ export default {
options: [], // options: [], //
options2: [], // options2: [], //
enterForm: { enterForm: {
consignorId: '', consignorId: 2,
userId: '' userId: ''
}, },
goodsData: [], goodsData: [],
@ -193,7 +193,10 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.enterForm = {} this.enterForm = {
consignorId: 2,
userId: ''
}
}, },
// //
handleselection(val) { handleselection(val) {

@ -35,8 +35,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://127.0.0.1:8030`, // target: `http://127.0.0.1:8030`,
// target: `http://192.168.0.110:8030`, target: `http://192.168.0.110:8030`,
// target: `http://120.77.94.227:8030`, // target: `http://120.77.94.227:8030`,
// target: `http://xiaowen.vaiwan.com`, // target: `http://xiaowen.vaiwan.com`,
changeOrigin: true, changeOrigin: true,

Loading…
Cancel
Save