|
|
@@ -187,21 +187,15 @@
|
|
|
v-model="formData.supplierCode"
|
|
|
clearable /></el-form-item
|
|
|
></el-col> -->
|
|
|
- <el-col :span="8" v-if="formData.bizType == 2">
|
|
|
+ <!-- <el-col :span="8" v-if="formData.bizType == 2">
|
|
|
<el-form-item label="客户" prop="clientName">
|
|
|
- <!-- <DictSelection
|
|
|
- dictName="经销商列表"
|
|
|
- clearable
|
|
|
- v-model="formData.clientName"
|
|
|
- @itemChange="ChangeSuppliers"
|
|
|
- /> -->
|
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
|
clearable
|
|
|
v-model="formData.clientName"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<!-- <el-col :span="8" v-if="formData.bizType == 2">
|
|
|
<el-form-item label="客户代号" prop="clientCode">
|
|
|
<el-input
|
|
|
@@ -225,12 +219,12 @@
|
|
|
placeholder="请选择送货人"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in fromUserList"
|
|
|
+ v-for="item in contactList"
|
|
|
:key="item.id"
|
|
|
- :label="item.name"
|
|
|
+ :label="item.linkName"
|
|
|
:value="item.id"
|
|
|
@click.native="
|
|
|
- () => (formData.extInfo.deliveryPhone = item.phone)
|
|
|
+ () => (formData.extInfo.deliveryPhone = item.mobilePhone)
|
|
|
"
|
|
|
>
|
|
|
</el-option>
|
|
|
@@ -776,7 +770,7 @@
|
|
|
prop="onlyCode"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- v-if="title == '物料'"
|
|
|
+ v-if="formData.bizType == 2 || formData.bizType == 1"
|
|
|
label="物料代号"
|
|
|
prop="materielCode"
|
|
|
>
|
|
|
@@ -785,7 +779,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- v-if="title == '物料'"
|
|
|
+ v-if="formData.bizType == 2 || formData.bizType == 1"
|
|
|
label="客户代号"
|
|
|
prop="clientCode"
|
|
|
>
|
|
|
@@ -793,11 +787,37 @@
|
|
|
<el-input v-model="row.clientCode"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="title == '物料'" label="重量" prop="weight">
|
|
|
+ <el-table-column
|
|
|
+ v-if="formData.bizType == 2 || formData.bizType == 1"
|
|
|
+ label="重量"
|
|
|
+ prop="weight"
|
|
|
+ >
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-input v-model="row.weight"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ v-if="formData.bizType == 2 || formData.bizType == 1"
|
|
|
+ label="重量单位"
|
|
|
+ prop="weightUtil"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <DictSelection
|
|
|
+ dictName="重量单位"
|
|
|
+ clearable
|
|
|
+ v-model="row.weightUtil"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ v-if="formData.bizType == 1"
|
|
|
+ label="刻码"
|
|
|
+ prop="engrave"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-input v-model="row.engrave"></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="包装编码" prop="num"></el-table-column>
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -940,7 +960,7 @@
|
|
|
import { tableHeader } from '../common';
|
|
|
import { getCode } from '@/api/codeManagement/index.js';
|
|
|
import { number } from 'echarts/core';
|
|
|
- import { purchaseorderGetById } from '@/api/mes';
|
|
|
+ import { purchaseorderGetById, contactlink } from '@/api/mes';
|
|
|
export default {
|
|
|
components: {
|
|
|
selectUpload,
|
|
|
@@ -953,6 +973,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ contactList: [],
|
|
|
pickerRow: {},
|
|
|
fromUserList: [],
|
|
|
codeList: [],
|
|
|
@@ -1041,6 +1062,12 @@
|
|
|
this.initData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ async searchContact(id) {
|
|
|
+ console.log(id);
|
|
|
+ const data = await contactlink({ contactId: id });
|
|
|
+ console.log(data);
|
|
|
+ this.contactList = data.data;
|
|
|
+ },
|
|
|
async pickerSuccess(row) {
|
|
|
console.log('===row', row);
|
|
|
this.pickerRow = row;
|
|
|
@@ -1049,6 +1076,7 @@
|
|
|
this.formData.clientCode = row.partaId;
|
|
|
this.formData.extInfo.supplierName = row.partbName;
|
|
|
this.formData.extInfo.supplierId = row.partbId;
|
|
|
+ await this.searchContact(row.partbId);
|
|
|
const data = await purchaseorderGetById(row.id);
|
|
|
if (this.warehousingMaterialList.length == 0) {
|
|
|
let list = data.data.productList.map((item) => {
|
|
|
@@ -1573,7 +1601,9 @@
|
|
|
packageNo: it.num,
|
|
|
clientCode: it.clientCode,
|
|
|
materielCode: it.materielCode,
|
|
|
- weight: it.weight
|
|
|
+ weight: it.weight,
|
|
|
+ weightUtil: it.weightUtil,
|
|
|
+ engrave: it.engrave
|
|
|
};
|
|
|
});
|
|
|
item.outInDetailRecordAddPOList = list;
|
|
|
@@ -1603,7 +1633,6 @@
|
|
|
},
|
|
|
//添加明细
|
|
|
async onSelectTableData(val) {
|
|
|
- console.log('qwfffffffffffff===', val);
|
|
|
const res = await getCode('lot_number_code');
|
|
|
|
|
|
this.warehousingMaterialList.push(
|