|
@@ -14,6 +14,7 @@
|
|
|
v-model="form.orderNo"
|
|
v-model="form.orderNo"
|
|
|
@click.native="handleOrderBtn"
|
|
@click.native="handleOrderBtn"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
|
|
+ :disabled="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -28,7 +29,12 @@
|
|
|
prop="linkName"
|
|
prop="linkName"
|
|
|
style="margin-bottom: 22px"
|
|
style="margin-bottom: 22px"
|
|
|
>
|
|
>
|
|
|
- <el-input clearable v-model="form.linkName" placeholder="请输入" />
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="form.linkName"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ :disabled="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item prop="sendFiles" label="发货附件">
|
|
<el-form-item prop="sendFiles" label="发货附件">
|
|
@@ -37,13 +43,19 @@
|
|
|
module="main"
|
|
module="main"
|
|
|
:showLib="false"
|
|
:showLib="false"
|
|
|
:limit="10"
|
|
:limit="10"
|
|
|
|
|
+ :disabled="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="车辆号" prop="carNo" style="margin-bottom: 22px">
|
|
<el-form-item label="车辆号" prop="carNo" style="margin-bottom: 22px">
|
|
|
- <el-input clearable v-model="form.carNo" placeholder="请输入" />
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="form.carNo"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ :disabled="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- <el-form-item
|
|
<!-- <el-form-item
|
|
@@ -60,7 +72,12 @@
|
|
|
prop="linkPhone"
|
|
prop="linkPhone"
|
|
|
style="margin-bottom: 22px"
|
|
style="margin-bottom: 22px"
|
|
|
>
|
|
>
|
|
|
- <el-input clearable v-model="form.linkPhone" placeholder="请输入" />
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="form.linkPhone"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ :disabled="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="收货地址"
|
|
label="收货地址"
|
|
@@ -68,6 +85,7 @@
|
|
|
style="margin-bottom: 22px"
|
|
style="margin-bottom: 22px"
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
|
|
+ :disabled="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="form.receiveAddress"
|
|
v-model="form.receiveAddress"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
@@ -89,8 +107,37 @@
|
|
|
<inventoryTable
|
|
<inventoryTable
|
|
|
ref="inventoryTableref"
|
|
ref="inventoryTableref"
|
|
|
:orderId="form.orderId"
|
|
:orderId="form.orderId"
|
|
|
|
|
+ v-show="taskDefinitionKey != 'salesmanUploadReceipt'"
|
|
|
></inventoryTable>
|
|
></inventoryTable>
|
|
|
-
|
|
|
|
|
|
|
+ <ele-pro-table
|
|
|
|
|
+ ref="table"
|
|
|
|
|
+ :needPage="false"
|
|
|
|
|
+ :columns="competAnalysisListcolumns"
|
|
|
|
|
+ :toolkit="[]"
|
|
|
|
|
+ :datasource="form.productList"
|
|
|
|
|
+ row-key="id"
|
|
|
|
|
+ v-show="taskDefinitionKey == 'salesmanUploadReceipt'"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- <template v-slot:toolbar>
|
|
|
|
|
+ <div class="headbox">
|
|
|
|
|
+ <span class="amount">总计:{{detailData.totalAmount}}元</span>
|
|
|
|
|
+ <span class="amount">应付金额:{{detailData.payAmount}}元</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template> -->
|
|
|
|
|
+ <template v-slot:technicalDrawings="{ row }">
|
|
|
|
|
+ <div v-if="row.technicalDrawings && row.technicalDrawings?.length">
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ v-for="link in row.technicalDrawings"
|
|
|
|
|
+ :key="link.id"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="downloadFile(link)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ link.name }}</el-link
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </ele-pro-table>
|
|
|
<orderListDialog
|
|
<orderListDialog
|
|
|
ref="orderListDialogRef"
|
|
ref="orderListDialogRef"
|
|
|
@changeParent="changeOrder"
|
|
@changeParent="changeOrder"
|
|
@@ -106,6 +153,7 @@
|
|
|
getSaleOrderDetail,
|
|
getSaleOrderDetail,
|
|
|
getSendSaleOrderrecordDetail
|
|
getSendSaleOrderrecordDetail
|
|
|
} from '@/api/bpm/components/saleManage/saleorder';
|
|
} from '@/api/bpm/components/saleManage/saleorder';
|
|
|
|
|
+ import { getFile } from '@/api/system/file';
|
|
|
|
|
|
|
|
import inventoryTable from './inventoryTable.vue';
|
|
import inventoryTable from './inventoryTable.vue';
|
|
|
import orderListDialog from './orderListDialog.vue';
|
|
import orderListDialog from './orderListDialog.vue';
|
|
@@ -113,6 +161,7 @@
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
|
|
+
|
|
|
components: {
|
|
components: {
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
inventoryTable,
|
|
inventoryTable,
|
|
@@ -159,13 +208,142 @@
|
|
|
// 提交状态
|
|
// 提交状态
|
|
|
loading: false,
|
|
loading: false,
|
|
|
// 是否是修改
|
|
// 是否是修改
|
|
|
- isUpdate: false
|
|
|
|
|
|
|
+ isUpdate: false,
|
|
|
|
|
+ competAnalysisListcolumns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 45,
|
|
|
|
|
+ type: 'index',
|
|
|
|
|
+ columnKey: 'index',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ prop: 'productName',
|
|
|
|
|
+ label: '名称',
|
|
|
|
|
+ slot: 'productName'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'productCode',
|
|
|
|
|
+ label: '编码',
|
|
|
|
|
+ slot: 'productCode'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ prop: 'productCategoryName',
|
|
|
|
|
+ label: '类型',
|
|
|
|
|
+ slot: 'productCategoryName'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'productBrand',
|
|
|
|
|
+ label: '牌号',
|
|
|
|
|
+ slot: 'productBrand'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'modelType',
|
|
|
|
|
+ label: '型号',
|
|
|
|
|
+ slot: 'modelType'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'specification',
|
|
|
|
|
+ label: '规格',
|
|
|
|
|
+ slot: 'specification'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ prop: 'warehouseName',
|
|
|
|
|
+ label: '仓库名称',
|
|
|
|
|
+ slot: 'warehouseName'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'totalCount',
|
|
|
|
|
+ label: '数量',
|
|
|
|
|
+ slot: 'totalCount'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'measuringUnit',
|
|
|
|
|
+ label: '计量单位',
|
|
|
|
|
+ slot: 'measuringUnit'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'singlePrice',
|
|
|
|
|
+ label: '单价',
|
|
|
|
|
+ slot: 'singlePrice'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'totalPrice',
|
|
|
|
|
+ label: '销售总金额',
|
|
|
|
|
+ slot: 'totalPrice',
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return _row.totalPrice + '元';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'deliveryDays',
|
|
|
|
|
+ label: '交期(天)',
|
|
|
|
|
+ slot: 'deliveryDays'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ prop: 'guaranteePeriod',
|
|
|
|
|
+ label: '质保期',
|
|
|
|
|
+ slot: 'guaranteePeriod',
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // width: 120,
|
|
|
|
|
+ // prop: 'guaranteePeriodUnitCode',
|
|
|
|
|
+ // label: '',
|
|
|
|
|
+ // slot: 'guaranteePeriodUnitCode'
|
|
|
|
|
+ // },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ prop: 'technicalAnswerName',
|
|
|
|
|
+ label: '技术答疑人',
|
|
|
|
|
+ slot: 'technicalAnswerName'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 220,
|
|
|
|
|
+ prop: 'technicalParams',
|
|
|
|
|
+ label: '技术参数',
|
|
|
|
|
+ slot: 'technicalParams'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 240,
|
|
|
|
|
+ prop: 'technicalDrawings',
|
|
|
|
|
+ label: '技术图纸',
|
|
|
|
|
+ slot: 'technicalDrawings',
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 220,
|
|
|
|
|
+ prop: 'remark',
|
|
|
|
|
+ label: '备注',
|
|
|
|
|
+ slot: 'remark'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
businessId: {
|
|
businessId: {
|
|
|
default: ''
|
|
default: ''
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ taskDefinitionKey: {}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.getSendSaleOrderDetail(this.businessId);
|
|
this.getSendSaleOrderDetail(this.businessId);
|
|
@@ -242,7 +420,9 @@
|
|
|
};
|
|
};
|
|
|
this.$refs.orderListDialogRef.open(item);
|
|
this.$refs.orderListDialogRef.open(item);
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ downloadFile(file) {
|
|
|
|
|
+ getFile({ objectName: file.storePath }, file.name);
|
|
|
|
|
+ },
|
|
|
// //打开新增编辑弹框
|
|
// //打开新增编辑弹框
|
|
|
// async open(type, row, orderId) {
|
|
// async open(type, row, orderId) {
|
|
|
// this.title = type === 'add' ? '新增发货单' : '修改';
|
|
// this.title = type === 'add' ? '新增发货单' : '修改';
|
|
@@ -287,6 +467,10 @@
|
|
|
});
|
|
});
|
|
|
}),
|
|
}),
|
|
|
new Promise((resolve, reject) => {
|
|
new Promise((resolve, reject) => {
|
|
|
|
|
+ if (this.taskDefinitionKey == 'salesmanUploadReceipt') {
|
|
|
|
|
+ resolve(true);
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.$refs.inventoryTableref.validateForm((valid) => {
|
|
this.$refs.inventoryTableref.validateForm((valid) => {
|
|
|
if (!valid) {
|
|
if (!valid) {
|
|
|
reject(false);
|
|
reject(false);
|