|
|
@@ -4,78 +4,51 @@
|
|
|
<headerTitle title="基本信息"></headerTitle>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="委外发货单编码:"
|
|
|
- prop="code"
|
|
|
- >
|
|
|
+ <el-form-item label="委外发货单编码:" prop="code">
|
|
|
{{ form.code }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="采购订单编码:"
|
|
|
- prop="orderNo"
|
|
|
- >
|
|
|
+ <el-form-item label="采购订单编码:" prop="orderNo">
|
|
|
{{ form.orderNo }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="外协单位:"
|
|
|
- prop="contactName"
|
|
|
- >
|
|
|
+ <el-form-item label="外协单位:" prop="contactName">
|
|
|
{{ form.supplierName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="外协单位联系人:"
|
|
|
- prop="linkName"
|
|
|
- >
|
|
|
+ <el-form-item label="外协单位联系人:" prop="linkName">
|
|
|
{{ form.linkName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="外协单位电话:"
|
|
|
- prop="linkPhone"
|
|
|
- >
|
|
|
+ <el-form-item label="外协单位电话:" prop="linkPhone">
|
|
|
{{ form.linkPhone }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="发货日期:"
|
|
|
- prop="sendDate"
|
|
|
- >
|
|
|
+ <el-form-item label="发货日期:" prop="sendDate">
|
|
|
{{ form.sendDate }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="发货单号:"
|
|
|
- prop="sendNoteNo"
|
|
|
- >
|
|
|
+ <el-form-item label="发货单号:" prop="sendNoteNo">
|
|
|
{{ form.sendNoteNo }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="订单类型:"
|
|
|
- prop="sourceTypeName"
|
|
|
- >
|
|
|
+ <el-form-item label="订单类型:" prop="sourceTypeName">
|
|
|
{{ form.sourceTypeName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="车辆号:"
|
|
|
- prop="carNo"
|
|
|
- >
|
|
|
+ <el-form-item label="车辆号:" prop="carNo">
|
|
|
{{ form.carNo }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -127,7 +100,7 @@
|
|
|
// import fileMain from '@/components/addDoc/index.vue';
|
|
|
import { mapActions } from 'vuex';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
- import {lbjtList } from '@/enum/dict.js';
|
|
|
+ import { lbjtList } from '@/enum/dict.js';
|
|
|
import { levelList } from '@/enum/dict.js';
|
|
|
|
|
|
export default {
|
|
|
@@ -207,12 +180,13 @@
|
|
|
label: '属性类型',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column) => {
|
|
|
- if(row.produceType){
|
|
|
- return row.produceType.map(item=>{
|
|
|
- return lbjtList[item]
|
|
|
- }).toString()
|
|
|
+ if (row.produceType) {
|
|
|
+ return row.produceType
|
|
|
+ .map((item) => {
|
|
|
+ return lbjtList[item];
|
|
|
+ })
|
|
|
+ .toString();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -240,18 +214,15 @@
|
|
|
width: 150,
|
|
|
prop: 'purchaseCount',
|
|
|
label: '发货数量',
|
|
|
- slot: 'purchaseCount',
|
|
|
- headerSlot: 'headerTotalCount',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 150,
|
|
|
- prop: 'purchaseUnit',
|
|
|
- label: '单位',
|
|
|
- slot: 'purchaseUnit',
|
|
|
+ formatter: (row, column) => {
|
|
|
+ if (row.purchaseCount) {
|
|
|
+ return row.purchaseCount + ' ' + row.purchaseUnit;
|
|
|
+ }
|
|
|
+ },
|
|
|
headerSlot: 'headerTotalCount',
|
|
|
align: 'center'
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'packingSpecification',
|
|
|
@@ -263,7 +234,11 @@
|
|
|
width: 120,
|
|
|
prop: 'totalCount',
|
|
|
label: '计量数量',
|
|
|
- slot: 'totalCount',
|
|
|
+ formatter: (row, column) => {
|
|
|
+ if (row.totalCount) {
|
|
|
+ return row.totalCount + ' ' + row.measuringUnit;
|
|
|
+ }
|
|
|
+ },
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
@@ -273,35 +248,37 @@
|
|
|
slot: 'taskName',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- width: 120,
|
|
|
- prop: 'measuringUnit',
|
|
|
- label: '计量单位',
|
|
|
- slot: 'measuringUnit',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'singleWeight',
|
|
|
label: '单重',
|
|
|
- slot: 'singleWeight',
|
|
|
+ formatter: (row, column) => {
|
|
|
+ if (row.singleWeight) {
|
|
|
+ return row.singleWeight + ' ' + row.weightUnit;
|
|
|
+ }
|
|
|
+ },
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 100,
|
|
|
prop: 'sendTotalWeight',
|
|
|
label: '发货总重',
|
|
|
- slot: 'sendTotalWeight',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 100,
|
|
|
- prop: 'weightUnit',
|
|
|
- label: '重量单位',
|
|
|
- slot: 'weightUnit',
|
|
|
+ formatter: (row, column) => {
|
|
|
+ if (row.sendTotalWeight) {
|
|
|
+ return row.sendTotalWeight + ' ' + row.weightUnit;
|
|
|
+ }
|
|
|
+ },
|
|
|
align: 'center'
|
|
|
},
|
|
|
// {
|
|
|
+ // width: 100,
|
|
|
+ // prop: 'weightUnit',
|
|
|
+ // label: '重量单位',
|
|
|
+ // slot: 'weightUnit',
|
|
|
+ // align: 'center'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
// width: 160,
|
|
|
// prop: 'pricingWay',
|
|
|
// label: '计价方式',
|
|
|
@@ -329,23 +306,21 @@
|
|
|
slot: 'singlePrice',
|
|
|
align: 'center'
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'taxRate',
|
|
|
label: '税率',
|
|
|
formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.taxRate
|
|
|
- ? _row.taxRate+'%'
|
|
|
- : '';
|
|
|
+ return _row.taxRate ? _row.taxRate + '%' : '';
|
|
|
},
|
|
|
- align: 'center',
|
|
|
+ align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 150,
|
|
|
prop: 'notaxSinglePrice',
|
|
|
label: '不含税单价',
|
|
|
- align: 'center',
|
|
|
+ align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 100,
|
|
|
@@ -392,16 +367,14 @@
|
|
|
prop: 'modelKey',
|
|
|
label: '机型',
|
|
|
showOverflowTooltip: true,
|
|
|
- align: 'center',
|
|
|
-
|
|
|
+ align: 'center'
|
|
|
},
|
|
|
{
|
|
|
minWidth: 120,
|
|
|
prop: 'colorKey',
|
|
|
showOverflowTooltip: true,
|
|
|
label: '颜色',
|
|
|
- align: 'center',
|
|
|
-
|
|
|
+ align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 200,
|
|
|
@@ -440,7 +413,7 @@
|
|
|
prop: 'technicalDrawings',
|
|
|
label: '技术图纸',
|
|
|
slot: 'technicalDrawings',
|
|
|
-
|
|
|
+
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
@@ -456,7 +429,7 @@
|
|
|
created() {
|
|
|
this.requestDict('产地');
|
|
|
this.requestDict('生产类型');
|
|
|
-
|
|
|
+
|
|
|
this.getDetailData(this.businessId);
|
|
|
},
|
|
|
methods: {
|