Browse Source

Merge branch 'dev' of http://47.108.105.48:3000/java_project/logpm_page into dev

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
5278627e12
  1. 10
      src/views/distribution/inventory/distributionStockListDetails.vue
  2. 65
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

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

@ -106,7 +106,7 @@
<el-tab-pane label="出库明细" name="outbound">
<tablecmt
:columnList="columnListarrs.columnDetails"
:tableData="data"
:tableData="data1"
:loading="loading"
@inputTxt="inputsc"
@timeCheck="timesc"
@ -134,7 +134,7 @@
<el-tab-pane label="入库明细" name="enter">
<tablecmt
:columnList="columnListarrs.columnWarehousing"
:tableData="data"
:tableData="data2"
:loading="loading"
@inputTxt="inputsc"
@timeCheck="timesc"
@ -261,8 +261,8 @@ export default {
head: false,
},
{
prop: 'cargoNumber',
label: '运单编号',
prop: 'brandName',
label: '品牌',
type: 2,
values: '',
width: '150',
@ -273,7 +273,7 @@ export default {
},
{
prop: 'despatch',
label: '物流车次',
label: '运单号',
type: 2,
values: '',
width: '150',

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

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

Loading…
Cancel
Save