|
@@ -60,13 +60,13 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="交货地点(place of delivery)" v-bind="validateInfos.placeDelivery" id="quotationFormForm-placeDelivery" name="placeDelivery">
|
|
|
|
- <a-input v-model:value="formData.placeDelivery" placeholder="请输入交货地点(place of delivery)" allow-clear ></a-input>
|
|
|
|
|
|
+ <a-form-item label="交货地点(place of delivery)" v-bind="validateInfos.deliveryAddress" id="quotationFormForm-deliveryAddress" name="deliveryAddress">
|
|
|
|
+ <a-input v-model:value="formData.deliveryAddress" placeholder="请输入交货地点(place of delivery)" allow-clear ></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="是否希望出口(export)" v-bind="validateInfos.export" id="quotationFormForm-export" name="export" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
- <JDictSelectTag v-model:value="formData.export" placeholder="请选择" dictCode="yes_or_no"/>
|
|
|
|
|
|
+ <a-form-item label="是否希望出口(isExport)" v-bind="validateInfos.isExport" id="quotationFormForm-isExport" name="isExport" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
+ <JDictSelectTag v-model:value="formData.isExport" placeholder="请选择" dictCode="yes_or_no"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -80,13 +80,13 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="包装要求(packaging requirement)" v-bind="validateInfos.packagingRequirement" id="quotationFormForm-packagingMethod" name="packagingMethod" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
- <a-input v-model:value="formData.packagingMethod" placeholder="请输入包装要求(packaging requirement)" allow-clear ></a-input>
|
|
|
|
|
|
+ <a-form-item label="包装要求(packaging requirement)" v-bind="validateInfos.packagingRequirement" id="quotationFormForm-packagebRequirement" name="packagebRequirement" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
+ <a-input v-model:value="formData.packagebRequirement" placeholder="请输入包装要求(packaging requirement)" allow-clear ></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="联系人(linkman)" v-bind="validateInfos.linkman" id="quotationFormForm-linkman" name="linkman" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
- <a-input v-model:value="formData.linkman" placeholder="请输入联系人(linkman)" allow-clear ></a-input>
|
|
|
|
|
|
+ <a-form-item label="联系人(linkMan)" v-bind="validateInfos.linkMan" id="quotationFormForm-linkMan" name="linkMan" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
+ <a-input v-model:value="formData.linkMan" placeholder="请输入联系人(linkMan)" allow-clear ></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -95,8 +95,8 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="联系电话(linkman phone)" v-bind="validateInfos.linkmanPhone" id="quotationFormForm-linkmanPhone" name="linkmanPhone">
|
|
|
|
- <a-input v-model:value="formData.linkmanPhone" placeholder="" allow-clear ></a-input>
|
|
|
|
|
|
+ <a-form-item label="联系电话(linkMan phone)" v-bind="validateInfos.linkNumber" id="quotationFormForm-linkNumber" name="linkNumber">
|
|
|
|
+ <a-input v-model:value="formData.linkNumber" placeholder="" allow-clear ></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -105,13 +105,13 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="F号(F number)" v-bind="validateInfos.FNumber" id="quotationFormForm-FNumber" name="FNumber" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
- <a-input v-model:value="formData.FNumber" placeholder="请选择" />
|
|
|
|
|
|
+ <a-form-item label="F号(F number)" v-bind="validateInfos.fnumber" id="quotationFormForm-fnumber" name="fnumber" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
|
|
|
|
+ <a-input v-model:value="formData.fnumber" placeholder="请选择" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
- <a-form-item label="提单号(B/L NO)" v-bind="validateInfos.BLNO" id="quotationFormForm-BLNO" name="BLNO">
|
|
|
|
- <a-input v-model:value="formData.BLNO" placeholder="请输入" allow-clear ></a-input>
|
|
|
|
|
|
+ <a-form-item label="提单号(B/L NO)" v-bind="validateInfos.blno" id="quotationFormForm-blno" name="blno">
|
|
|
|
+ <a-input v-model:value="formData.blno" placeholder="请输入" allow-clear ></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -140,6 +140,7 @@
|
|
:rowNumber="true"
|
|
:rowNumber="true"
|
|
:rowSelection="true"
|
|
:rowSelection="true"
|
|
asyncRemove
|
|
asyncRemove
|
|
|
|
+ @valueChange="changeValues"
|
|
>
|
|
>
|
|
<template #action="props">
|
|
<template #action="props">
|
|
<a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
|
|
<a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
|
|
@@ -160,6 +161,7 @@
|
|
:disabled="disabled"
|
|
:disabled="disabled"
|
|
:rowNumber="true"
|
|
:rowNumber="true"
|
|
:rowSelection="true"
|
|
:rowSelection="true"
|
|
|
|
+
|
|
>
|
|
>
|
|
<template #action="props" >
|
|
<template #action="props" >
|
|
<a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
|
|
<a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
|
|
@@ -178,7 +180,7 @@
|
|
import { defineComponent, ref, reactive, computed, toRaw, onMounted } from 'vue';
|
|
import { defineComponent, ref, reactive, computed, toRaw, onMounted } from 'vue';
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
|
|
import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
|
|
- import { querysaleQuotationFormShipListByMainId,querySaleQuotationFormProductListByMainId,queryDataById, saveOrUpdate } from '../delivertNoticeForm.api';
|
|
|
|
|
|
+ import { querydeliveryNoticeFormShipListByMainId,querydeliveryNoticeFormProductListByMainId,queryDataById, saveOrUpdate } from '../delivertNoticeForm.api';
|
|
import { JVxeTable } from '/@/components/jeecg/JVxeTable';
|
|
import { JVxeTable } from '/@/components/jeecg/JVxeTable';
|
|
import {deliveryNoticeShipColumns, deliveryNoticeProductColumns} from '../delivertNoticeForm.data';
|
|
import {deliveryNoticeShipColumns, deliveryNoticeProductColumns} from '../delivertNoticeForm.data';
|
|
import BaseShipArchiveAccessoriesModal from '../../../publicComponents/BaseShipArchiveAccessoriesModal.vue';
|
|
import BaseShipArchiveAccessoriesModal from '../../../publicComponents/BaseShipArchiveAccessoriesModal.vue';
|
|
@@ -244,6 +246,7 @@
|
|
id: '',
|
|
id: '',
|
|
status: undefined,
|
|
status: undefined,
|
|
delFlag: undefined,
|
|
delFlag: undefined,
|
|
|
|
+ sourceCode:'',
|
|
deliveryDate: moment(new Date()).format('YYYY-MM-DD'),
|
|
deliveryDate: moment(new Date()).format('YYYY-MM-DD'),
|
|
billCode: '',
|
|
billCode: '',
|
|
project: '',
|
|
project: '',
|
|
@@ -257,20 +260,19 @@
|
|
currency:"",
|
|
currency:"",
|
|
deliveryTerms: '',
|
|
deliveryTerms: '',
|
|
delivery: '',
|
|
delivery: '',
|
|
- placeDelivery:'',
|
|
|
|
- export:'',
|
|
|
|
|
|
+ deliveryAddress:'',
|
|
|
|
+ isExport:'',
|
|
warrantyPeriod:'',
|
|
warrantyPeriod:'',
|
|
- paymentTerms: '',
|
|
|
|
saleDepartment:'',
|
|
saleDepartment:'',
|
|
- packagingMethod:'',
|
|
|
|
- linkman:'',
|
|
|
|
|
|
+ packagebRequirement:'',
|
|
|
|
+ linkMan:'',
|
|
address:'',
|
|
address:'',
|
|
- linkmanPhone:'',
|
|
|
|
|
|
+ linkNumber:'',
|
|
salesman: '',
|
|
salesman: '',
|
|
- FNumber:"",
|
|
|
|
- BLNO: '',
|
|
|
|
|
|
+ fnumber:"",
|
|
|
|
+ blno: '',
|
|
notes: '',
|
|
notes: '',
|
|
- sourceCode:'',
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
|
|
//表单验证
|
|
//表单验证
|
|
@@ -315,9 +317,9 @@
|
|
//主表数据
|
|
//主表数据
|
|
await queryMainData(row.id);
|
|
await queryMainData(row.id);
|
|
//子表数据
|
|
//子表数据
|
|
- const deliveryNoticeFormShipDataList = await querysaleQuotationFormShipListByMainId(row['id']);
|
|
|
|
|
|
+ const deliveryNoticeFormShipDataList = await querydeliveryNoticeFormShipListByMainId(row['id']);
|
|
deliveryNoticeFormShipTable.dataSource = [...deliveryNoticeFormShipDataList];
|
|
deliveryNoticeFormShipTable.dataSource = [...deliveryNoticeFormShipDataList];
|
|
- const deliveryDetailFormProductDataList = await querySaleQuotationFormProductListByMainId(row['id']);
|
|
|
|
|
|
+ const deliveryDetailFormProductDataList = await querydeliveryNoticeFormProductListByMainId(row['id']);
|
|
deliveryDetailFormProductTable.dataSource = [...deliveryDetailFormProductDataList];
|
|
deliveryDetailFormProductTable.dataSource = [...deliveryDetailFormProductDataList];
|
|
getOptiom()
|
|
getOptiom()
|
|
getCustomerOptions()
|
|
getCustomerOptions()
|
|
@@ -338,8 +340,8 @@
|
|
}
|
|
}
|
|
|
|
|
|
const {getSubFormAndTableData, transformData} = useValidateAntFormAndTable(activeKey, {
|
|
const {getSubFormAndTableData, transformData} = useValidateAntFormAndTable(activeKey, {
|
|
- 'saleQuotationShip': deliveryNoticeFormShipTableRef,
|
|
|
|
- 'saleQuotationProduct': deliveryDetailFormProductTableRef,
|
|
|
|
|
|
+ 'saleDeliveryShip': deliveryNoticeFormShipTableRef,
|
|
|
|
+ 'saleDeliveryDetails': deliveryDetailFormProductTableRef,
|
|
});
|
|
});
|
|
//获取表单信息
|
|
//获取表单信息
|
|
async function getFormData() {
|
|
async function getFormData() {
|
|
@@ -367,8 +369,7 @@
|
|
const values = Object.assign({}, dbData, mainData, subData);
|
|
const values = Object.assign({}, dbData, mainData, subData);
|
|
console.log('表单提交数据', values)
|
|
console.log('表单提交数据', values)
|
|
const isUpdate = values.id ? true : false
|
|
const isUpdate = values.id ? true : false
|
|
- const isRevise = values.status=='1' ? true : false
|
|
|
|
- await saveOrUpdate(values, isUpdate,isRevise);
|
|
|
|
|
|
+ await saveOrUpdate(values, isUpdate);
|
|
//关闭弹窗
|
|
//关闭弹窗
|
|
emit('success');
|
|
emit('success');
|
|
}
|
|
}
|
|
@@ -471,9 +472,12 @@
|
|
SelectSaleOrderModalRef.value.getTable(obj)
|
|
SelectSaleOrderModalRef.value.getTable(obj)
|
|
}
|
|
}
|
|
function addFormSaleOrder(data){
|
|
function addFormSaleOrder(data){
|
|
- data.map(item=>{
|
|
|
|
|
|
+ data.map((item)=>{
|
|
item.model = item.childModel
|
|
item.model = item.childModel
|
|
item.sourceId = item.childId
|
|
item.sourceId = item.childId
|
|
|
|
+ item.orderQuantity = item.quantity
|
|
|
|
+ item.orderMoney = item.taxAmount
|
|
|
|
+ item.money=item.taxAmount
|
|
})
|
|
})
|
|
var arrProduct = data.concat(deliveryDetailFormProductTable.dataSource)
|
|
var arrProduct = data.concat(deliveryDetailFormProductTable.dataSource)
|
|
deliveryDetailFormProductTable.dataSource=arrProduct
|
|
deliveryDetailFormProductTable.dataSource=arrProduct
|
|
@@ -481,14 +485,34 @@
|
|
formData.sourceCode =data[0].billCode
|
|
formData.sourceCode =data[0].billCode
|
|
formData.project = data[0].project
|
|
formData.project = data[0].project
|
|
formData.projectName = data[0].projectName
|
|
formData.projectName = data[0].projectName
|
|
- formData.quotationCustomerName = data[0].customerName
|
|
|
|
|
|
+ formData.customerName = data[0].customerName
|
|
formData.customer = data[0].customer
|
|
formData.customer = data[0].customer
|
|
formData.priority =data[0].priority
|
|
formData.priority =data[0].priority
|
|
formData.productionClass =data[0].productionClass
|
|
formData.productionClass =data[0].productionClass
|
|
formData.model =data[0].headModel
|
|
formData.model =data[0].headModel
|
|
formData.maker =data[0].maker
|
|
formData.maker =data[0].maker
|
|
|
|
+ formData.currency =data[0].currency
|
|
|
|
+ formData.deliveryTerms =data[0].deliveryTerms
|
|
|
|
+ formData.delivery=data[0].delivery
|
|
|
|
+ getShipList(data[0].headId)
|
|
|
|
+ }
|
|
|
|
+ function getShipList(id){
|
|
|
|
+ let params = {id:id}
|
|
|
|
+ let url = '/saleCode/saleOrder/querySaleOrderShipByMainId'
|
|
|
|
+ defHttp.get({url:url,params}, { isTransformResponse: false }).then(res=>{
|
|
|
|
+ if(res){
|
|
|
|
+ deliveryNoticeFormShipTable.dataSource = res.result
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ function changeValues(prop){
|
|
|
|
+ if(prop.col.key=='quantity'){
|
|
|
|
+ if(prop.row.quantity){
|
|
|
|
+ var num= prop.row.quantity*Number(prop.row.taxPrice)
|
|
|
|
+ prop.row.money = num.toFixed(2)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
return {
|
|
return {
|
|
deliveryNoticeFormShipTableRef,
|
|
deliveryNoticeFormShipTableRef,
|
|
deliveryNoticeFormShipTable,
|
|
deliveryNoticeFormShipTable,
|
|
@@ -522,7 +546,8 @@
|
|
notAllowEdit,
|
|
notAllowEdit,
|
|
selectSaleOrderList,
|
|
selectSaleOrderList,
|
|
SelectSaleOrderModalRef,
|
|
SelectSaleOrderModalRef,
|
|
- addFormSaleOrder
|
|
|
|
|
|
+ addFormSaleOrder,
|
|
|
|
+ changeValues
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|