Commit c74be372 authored by 1483922988@qq.com's avatar 1483922988@qq.com

6

parent 39da2846
...@@ -752,20 +752,6 @@ export default { ...@@ -752,20 +752,6 @@ export default {
} }
if (this.form.relation == 1) { if (this.form.relation == 1) {
rules.consignorId = [{ required: true, message: this.$t("发货人不能为空") }] rules.consignorId = [{ required: true, message: this.$t("发货人不能为空") }]
// if(this.$route.query.type ==1){
// if(this.$route.query.customer.defaultContactName==null){
// rules.consignorId = [{ required: true, message: this.$t("发货人不能为空")}]
// }else{
// // rules.consignorId = [{ required: true, message: ''}]
// }
// }else {
// rules.consignorId = [{ required: true, message: this.$t("发货人不能为空")}]
// }
// else if(this.$route.query.type !=='1'){
// rules.consignorId = [{ required: true, message: this.$t("发货人不能为空")}]
// }
} }
if (this.form.relation == 2) { if (this.form.relation == 2) {
rules.consigneeId = [{ required: true, message: this.$t("收货人不能为空") }] rules.consigneeId = [{ required: true, message: this.$t("收货人不能为空") }]
...@@ -966,7 +952,6 @@ export default { ...@@ -966,7 +952,6 @@ export default {
// this.form.standard = this.computedStandard // this.form.standard = this.computedStandard
if (this.$route.query.type == 1) { if (this.$route.query.type == 1) {
let customer = this.customer let customer = this.customer
console.log(customer, "zs")
switch (this.form.relation) { switch (this.form.relation) {
case 1: case 1:
if (customer.name != null) { if (customer.name != null) {
...@@ -988,6 +973,7 @@ export default { ...@@ -988,6 +973,7 @@ export default {
this.form.consignorEmail = customer.email this.form.consignorEmail = customer.email
this.form.consigneeEmail = "" this.form.consigneeEmail = ""
} }
console.log(customer, this.form, "zs")
return return
case 2: case 2:
...@@ -1354,11 +1340,8 @@ export default { ...@@ -1354,11 +1340,8 @@ export default {
console.log(JSON.stringify(this.contactsList)) console.log(JSON.stringify(this.contactsList))
data = Object.assign({}, this.form, { data = Object.assign({}, this.form, {
prodCreateReqVOList: this.getProductListWithDefaultValue(), prodCreateReqVOList: this.getProductListWithDefaultValue(),
consignorId: this.customer.defaultContactId,
status status
}) })
// data.consignorId = contacts.customerContactsId
} else { } else {
data = Object.assign({}, this.form, { data = Object.assign({}, this.form, {
prodCreateReqVOList: this.getProductListWithDefaultValue(), prodCreateReqVOList: this.getProductListWithDefaultValue(),
...@@ -1366,6 +1349,8 @@ export default { ...@@ -1366,6 +1349,8 @@ export default {
}) })
} }
console.log(data)
// 添加的提交 // 添加的提交
createOffer(data).then((response) => { createOffer(data).then((response) => {
// 重置表单内容 // 重置表单内容
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
" "
>{{ $t("重置") }} >{{ $t("重置") }}
</el-button> </el-button>
<el-button type="success" @click="customerFollowFn('follow')" v-hasPermi="['ecw:customer:follow-create']">{{ $t("新增") }} </el-button> <el-button type="success" @click="$refs['customerFollow'].handleAdd()" v-hasPermi="['ecw:customer:follow-create']">{{ $t("新增") }} </el-button>
<el-button type="warning" @click="handleExport" v-hasPermi="['ecw:customer:follow-export']"> <el-button type="warning" @click="handleExport" v-hasPermi="['ecw:customer:follow-export']">
{{ $t("导出") }} {{ $t("导出") }}
</el-button> </el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment