Browse Source

Merge branch 'pre-production'

fix_bug_pro20231227
pref_mail@163.com 2 years ago
parent
commit
2b5cc11a9d
  1. 25
      src/option/factory/mt/factoryOrderMain.js
  2. 26
      src/option/factory/mt/packageInfo.js
  3. 27
      src/page/login/index.vue
  4. 14
      src/views/distribution/inventory/distributionStockListDetails.vue
  5. 7
      src/views/factory/mt/factoryOrderMain.vue
  6. 11
      src/views/factory/mt/packageInfo.vue
  7. 65
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

25
src/option/factory/mt/factoryOrderMain.js

@ -46,6 +46,7 @@ export default {
{ {
label: "仓库类型", label: "仓库类型",
prop: "warehouseType", prop: "warehouseType",
search:true,
type: "input", type: "input",
}, },
{ {
@ -141,10 +142,34 @@ export default {
viewDisplay: false, viewDisplay: false,
hide: true, hide: true,
}, },
{ {
label: "推送状态", label: "推送状态",
prop: "pushStatusName", prop: "pushStatusName",
search: true,
type: 'select',
dicData: [
{
label: '已推送',
value: 1,
},
{
label: '未推送',
value: 2,
}
],
},
{
label: "推送时间",
prop: "pushTime",
type: "input", type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: false,
}, },
] ]
} }

26
src/option/factory/mt/packageInfo.js

@ -32,6 +32,7 @@ export default {
{ {
label: "订单自编码", label: "订单自编码",
prop: "orderCode", prop: "orderCode",
search: true,
type: "input", type: "input",
}, },
{ {
@ -52,6 +53,8 @@ export default {
{ {
label: "包装编号", label: "包装编号",
prop: "packageCode", prop: "packageCode",
search: true,
type: "input", type: "input",
}, },
{ {
@ -88,8 +91,31 @@ export default {
{ {
label: "推送状态", label: "推送状态",
prop: "pushStatusName", prop: "pushStatusName",
search: true,
type: 'select',
dicData: [
{
label: '已推送',
value: 1,
},
{
label: '未推送',
value: 2,
}
],
},
{
label: "推送时间",
prop: "pushTime",
type: "input", type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay:true,
hide: false,
}, },
{ {
label: "创建人", label: "创建人",
prop: "createUser", prop: "createUser",

27
src/page/login/index.vue

@ -6,32 +6,15 @@
{{ time }} {{ time }}
</div> </div>
<p class="title">{{ $t('login.info') }}</p> <p class="title">{{ $t('login.info') }}</p>
<!-- <div style="font-size: 15px">
<span>----------------------------------------------</span> <!-- <img class="img" src="/img/logo.png" alt=""> -->
<br />
<span>管理租户编号000000</span>
<br />
<span>超级管理员账号: admin / admin</span>
<br />
<span>人事账号: hr / hr</span>
<br />
<span>经理账号: manager / manager</span>
<br />
<span>老板账号: boss / boss</span>
<br />
<span>----------------------------------------------</span>
<br />
<span>普通租户编号详见租户管理模块</span>
<br />
<span>租户管理员账号: admin / admin</span>
<br />
<span>----------------------------------------------</span>
</div> -->
<!--<img class="img" src="/img/logo.png" alt="">-->
</div> </div>
<div class="login-border"> <div class="login-border">
<div class="login-main"> <div class="login-main">
<h4 class="login-title"> <h4 class="login-title">
{{ $t('login.title') }}{{ website.title }} {{ $t('login.title') }}{{ website.title }}
<top-lang></top-lang> <top-lang></top-lang>
</h4> </h4>

14
src/views/distribution/inventory/distributionStockListDetails.vue

@ -87,7 +87,7 @@
<template #default="slotProps"> <template #default="slotProps">
</template> </template>
</tablecmt> </tablecmt>
<div class="avue-crud__pagination" style="width:100%"> <div class="avue-crud__pagination" style="width:100%">
<!-- 分页模块 --> <!-- 分页模块 -->
<el-pagination align="right" <el-pagination align="right"
@ -106,7 +106,7 @@
<el-tab-pane label="出库明细" name="outbound"> <el-tab-pane label="出库明细" name="outbound">
<tablecmt <tablecmt
:columnList="columnListarrs.columnDetails" :columnList="columnListarrs.columnDetails"
:tableData="data" :tableData="data1"
:loading="loading" :loading="loading"
@inputTxt="inputsc" @inputTxt="inputsc"
@timeCheck="timesc" @timeCheck="timesc"
@ -134,7 +134,7 @@
<el-tab-pane label="入库明细" name="enter"> <el-tab-pane label="入库明细" name="enter">
<tablecmt <tablecmt
:columnList="columnListarrs.columnWarehousing" :columnList="columnListarrs.columnWarehousing"
:tableData="data" :tableData="data2"
:loading="loading" :loading="loading"
@inputTxt="inputsc" @inputTxt="inputsc"
@timeCheck="timesc" @timeCheck="timesc"
@ -261,8 +261,8 @@ export default {
head: false, head: false,
}, },
{ {
prop: 'cargoNumber', prop: 'brandName',
label: '运单编号', label: '品牌',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
@ -273,7 +273,7 @@ export default {
}, },
{ {
prop: 'despatch', prop: 'despatch',
label: '物流车次', label: '运单号',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
@ -472,7 +472,7 @@ export default {
}, },
], ],
}, },
height: 0, height: 0,
activeName: 'library', activeName: 'library',
// //

7
src/views/factory/mt/factoryOrderMain.vue

@ -321,10 +321,13 @@ export default {
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const {invoiceOrderCode} = this.query; const {invoiceOrderCode,pushStatusName,warehouseType} = this.query;
let values = { let values = {
invoiceOrderCode:invoiceOrderCode invoiceOrderCode:invoiceOrderCode,
pushStatus:pushStatusName,
warehouseType:warehouseType
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {

11
src/views/factory/mt/packageInfo.vue

@ -30,9 +30,9 @@
@click="handleDelete" @click="handleDelete"
> >
</el-button> --> </el-button> -->
<el-button type="warning" plain icon="el-icon-download" @click="handleExport" <!-- <el-button type="warning" plain icon="el-icon-download" @click="handleExport"
> >
</el-button> </el-button> -->
<el-button type="warning" @click="handlePush">推送 </el-button> <el-button type="warning" @click="handlePush">推送 </el-button>
</template> </template>
@ -360,10 +360,13 @@ export default {
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { invoiceOrderCode } = this.query; const { invoiceOrderCode,pushStatusName,orderCode,packageCode } = this.query;
let values = { let values = {
invoiceOrderCode: invoiceOrderCode, invoiceOrderCode: invoiceOrderCode,
pushStatus:pushStatusName,
orderCode:orderCode,
packageCode:packageCode,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {

65
src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

@ -67,9 +67,9 @@
clearable clearable
> >
<el-option <el-option
v-for="item in optionCodes" v-for="item in options"
:key="item.value" :key="item.value"
:label="item.label" :label="item.code"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
@ -522,6 +522,7 @@ export default {
packagingSpecifications: [{ required: true, message: '请输入包装规格', trigger: 'change' }], packagingSpecifications: [{ required: true, message: '请输入包装规格', trigger: 'change' }],
createInventory: [{ required: true, message: '请输入入库数量', trigger: 'change' }], createInventory: [{ required: true, message: '请输入入库数量', trigger: 'change' }],
productUnit: [{ required: true, message: '请选择物品单位', trigger: 'change' }], productUnit: [{ required: true, message: '请选择物品单位', trigger: 'change' }],
actualReceipt: [{ required: true, message: '请选择产品品牌', trigger: 'blur' }],
brandId: [{ required: true, message: '请选择品牌', trigger: 'change' }], brandId: [{ required: true, message: '请选择品牌', trigger: 'change' }],
receiptBatch: [{ required: true, message: '请填写入库批次', trigger: 'blur' }], receiptBatch: [{ required: true, message: '请填写入库批次', trigger: 'blur' }],
@ -596,6 +597,7 @@ export default {
this.options.push({ this.options.push({
label: da.customerName, label: da.customerName,
code: da.customerCode,
value: da.clientId, value: da.clientId,
}); });
this.optionCodes.push({ this.optionCodes.push({
@ -726,10 +728,12 @@ export default {
if (query) { if (query) {
console.log('客户ID', this.form.clientId); console.log('客户ID', this.form.clientId);
if (!!this.form.clientId) { if (!!this.form.clientId) {
this.brandList = [];
let si = !!this.form.storeId ? this.form.storeId : this.form.clientId; let si = !!this.form.storeId ? this.form.storeId : this.form.clientId;
let cl = await getListIdsName(this.page.currentPage, this.page.pageSize, { let cl = await getListIdsName(this.page.currentPage, this.page.pageSize, {
brandName: query, brandName: query,
ids: si, ids: si,
type: !!this.form.storeId ? 2 : 1
}); });
console.log('>>>>', cl.data.data); console.log('>>>>', cl.data.data);
cl.data.data.forEach(i => { cl.data.data.forEach(i => {
@ -770,22 +774,24 @@ export default {
if (num == 1) { if (num == 1) {
const obj = this.options.find(item => item.value === row); const obj = this.options.find(item => item.value === row);
console.log('obj>>>>>>>>>>>', obj); console.log('obj>>>>>>>>>>>', obj);
this.optionCodes = [ this.options = [
{ {
key: obj.value, key: obj.value,
value: obj.value, value: obj.value,
label: obj.code, label: obj.label,
code: obj.code,
}, },
]; ];
this.form.clientCode = obj.value; this.form.customerCode = obj.code;
} else { } else {
const obj = this.optionCodes.find(item => item.value === row); const obj = this.options.find(item => item.value === row);
console.log('obj>>>>>>>>>>>', obj); console.log('obj>>>>>>>>>>>', obj);
this.options = [ this.options = [
{ {
key: obj.value, key: obj.value,
value: obj.value, value: obj.value,
label: obj.code, label: obj.label,
code: obj.code,
}, },
]; ];
this.form.clientId = obj.value; this.form.clientId = obj.value;
@ -796,14 +802,7 @@ export default {
// console.log(">><><><<>",i); // console.log(">><><><<>",i);
if (i.value == row) { if (i.value == row) {
this.form.customerName = i.label; this.form.customerName = i.label;
// this.form.clientCode = i.code;
aa = i.value;
}
});
this.optionCodes.some(i => {
console.log('>><><><<>', i);
if (i.value == row) {
this.form.clientCode = i.label;
// //
aa = i.value; aa = i.value;
} }
@ -862,6 +861,7 @@ export default {
if (query) { if (query) {
// this.loading = true; // this.loading = true;
this.options = []; this.options = [];
this.form.customerCode = null;
let cl = await getListClient(this.page.currentPage, this.page.pageSize, { let cl = await getListClient(this.page.currentPage, this.page.pageSize, {
clientName: query, clientName: query,
}); });
@ -888,18 +888,19 @@ export default {
async remoteCodeMethod(query) { async remoteCodeMethod(query) {
if (query) { if (query) {
// this.loading = true; // this.loading = true;
this.optionCodes = []; this.options = [];
this.form.clientId = null;
let cl = await getListClient(this.page.currentPage, this.page.pageSize, { let cl = await getListClient(this.page.currentPage, this.page.pageSize, {
clientCode: query, clientCode: query,
}); });
console.log('客户信息1234>>>>', cl.data.data.records); console.log('客户信息1234>>>>', cl.data.data.records);
cl.data.data.records.forEach(i => { cl.data.data.records.forEach(i => {
let st = { let st = {
label: i.clientCode, label: i.clientName,
value: i.id, value: i.id,
code: i.clientName, code: i.clientCode,
}; };
this.optionCodes.push(st); this.options.push(st);
}); });
// setTimeout(() => { // setTimeout(() => {
// this.loading = false // this.loading = false
@ -908,7 +909,7 @@ export default {
// }) // })
// }, 200) // }, 200)
} else { } else {
this.optionCodes = []; this.options = [];
} }
}, },
handleEditOwn(row) { handleEditOwn(row) {
@ -1088,7 +1089,29 @@ export default {
this.title = '新增'; this.title = '新增';
// this.form = {} // this.form = {}
this.box = true; this.box = true;
// //
this.getBingPai();
},
async getBingPai(){
console.log('客户ID', this.form.clientId);
this.brandList = [];
if (!!this.form.clientId) {
let si = !!this.form.storeId ? this.form.storeId : this.form.clientId;
let cl = await getListIdsName(this.page.currentPage, this.page.pageSize, {
ids: si,
type: !!this.form.storeId ? 2 : 1
});
console.log('>>>>', cl.data.data);
cl.data.data.forEach(i => {
let st = {
label: i.brandName,
value: i.id,
};
this.brandList.push(st);
});
} else {
this.$message.warning('请先填写客户信息,产品品牌信息才能带出!!');
}
}, },
handleEdit(row) { handleEdit(row) {
this.title = '编辑'; this.title = '编辑';

Loading…
Cancel
Save