货主写死

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"
v-bind="tableProps"
:data="data"
height="500px"
v-loading="loading"
@selection-change="handleSelectionChange"
@sort-change="sortChange"

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

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

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

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

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

Loading…
Cancel
Save