|
@@ -123,10 +123,27 @@
|
|
|
@selectChange="dicChange('affiliatedCompanyName', $event)"
|
|
@selectChange="dicChange('affiliatedCompanyName', $event)"
|
|
|
:disabled="editDisabled"></dic-select>
|
|
:disabled="editDisabled"></dic-select>
|
|
|
</tempalte>
|
|
</tempalte>
|
|
|
- <tempalte slot="srcCnName" slot-scope="{ row }">
|
|
|
|
|
- <dic-select v-model="form.srcCnName" placeholder="业务员" key="id" label="realName" res="records"
|
|
|
|
|
- url="/blade-user/page" :filterable="true" :remote="true" dataName="realName"
|
|
|
|
|
- @selectChange="dicChange('srcCnName', $event)" :disabled="editDisabled"></dic-select>
|
|
|
|
|
|
|
+ <tempalte slot="sourceType" slot-scope="{ row }">
|
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
|
+ <dic-select style="margin-right: 4px;" v-model="form.sourceType" placeholder="客户来源"
|
|
|
|
|
+ key="dictKey" keyValue="dictKey" label="dictValue"
|
|
|
|
|
+ url="/blade-system/dict-biz/dictionary?code=source_Type" :filterable="true"
|
|
|
|
|
+ :disabled="editDisabled" @selectChange="dicChange('sourceType', $event)"></dic-select>
|
|
|
|
|
+ <el-input v-show="!form.sourceType" v-model="form.salesmanName" placeholder="请选择"
|
|
|
|
|
+ :disabled="true">
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ <dic-select v-show="form.sourceType == 'OWN'" v-model="form.salesmanName" placeholder="所属公司"
|
|
|
|
|
+ key="id" label="deptName" url="/blade-system/dept/lazy-list?parentId=0" :filterable="true"
|
|
|
|
|
+ @selectChange="dicChange('salesmanName', $event)" :disabled="editDisabled"></dic-select>
|
|
|
|
|
+ <dic-select v-show="form.sourceType == 'AGENT'" v-model="form.salesmanName" placeholder="代理"
|
|
|
|
|
+ key="id" label="cnName" res="records" url="/blade-los/bcorps/listByType?corpTypeName=代理客户"
|
|
|
|
|
+ :filterable="true" :remote="true" dataName="cnName"
|
|
|
|
|
+ @selectChange="dicChange('salesmanName', $event)" :disabled="editDisabled"></dic-select>
|
|
|
|
|
+ <dic-select v-show="form.sourceType == 'SALES'" v-model="form.salesmanName" placeholder="业务员"
|
|
|
|
|
+ key="id" label="realName" res="records" url="/blade-user/page" :filterable="true"
|
|
|
|
|
+ :remote="true" dataName="realName" @selectChange="dicChange('salesmanName', $event)"
|
|
|
|
|
+ :disabled="editDisabled"></dic-select>
|
|
|
|
|
+ </div>
|
|
|
</tempalte>
|
|
</tempalte>
|
|
|
</avue-form>
|
|
</avue-form>
|
|
|
</trade-card>
|
|
</trade-card>
|
|
@@ -171,7 +188,7 @@
|
|
|
<el-dropdown-item @click.native="allClick('尾款撤销申请付款')">尾款</el-dropdown-item>
|
|
<el-dropdown-item @click.native="allClick('尾款撤销申请付款')">尾款</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown> -->
|
|
</el-dropdown> -->
|
|
|
- <el-dropdown>
|
|
|
|
|
|
|
+ <!-- <el-dropdown>
|
|
|
<el-button type="primary" size="small" :disabled="!form.id">
|
|
<el-button type="primary" size="small" :disabled="!form.id">
|
|
|
应收待确认通知<i class="el-icon-arrow-down el-icon--right"></i>
|
|
应收待确认通知<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -179,7 +196,7 @@
|
|
|
<el-dropdown-item @click.native="allClick('首款应收待确认通知')">首款应收待确认通知</el-dropdown-item>
|
|
<el-dropdown-item @click.native="allClick('首款应收待确认通知')">首款应收待确认通知</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="allClick('尾款应收待确认通知')">尾款应收待确认通知</el-dropdown-item>
|
|
<el-dropdown-item @click.native="allClick('尾款应收待确认通知')">尾款应收待确认通知</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
|
|
|
|
+ </el-dropdown> -->
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
|
<el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled" circle
|
|
<el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled" circle
|
|
@@ -392,11 +409,12 @@ export default {
|
|
|
contractDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00",
|
|
contractDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00",
|
|
|
currency: 'USD',
|
|
currency: 'USD',
|
|
|
documentType: '普通',
|
|
documentType: '普通',
|
|
|
- advanceRatio: 'T/T 10%',
|
|
|
|
|
|
|
+ advanceRatio: 'T/T',
|
|
|
billNoFormat: 'MYDL',
|
|
billNoFormat: 'MYDL',
|
|
|
businessTypeCode: 'MYDL',
|
|
businessTypeCode: 'MYDL',
|
|
|
businessType: 'MYDL',
|
|
businessType: 'MYDL',
|
|
|
businessStatus: '录入',
|
|
businessStatus: '录入',
|
|
|
|
|
+ tradeMode: '一般贸易',
|
|
|
agentItemsList: [],
|
|
agentItemsList: [],
|
|
|
feeCenterListC: [],
|
|
feeCenterListC: [],
|
|
|
feeCenterListD: [],
|
|
feeCenterListD: [],
|
|
@@ -568,6 +586,22 @@ export default {
|
|
|
disabled: false,
|
|
disabled: false,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ label: '贸易方式',
|
|
|
|
|
+ prop: "tradeMode",
|
|
|
|
|
+ type: "select",
|
|
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=trade_Mode",
|
|
|
|
|
+ props: {
|
|
|
|
|
+ label: "dictValue",
|
|
|
|
|
+ value: "dictValue"
|
|
|
|
|
+ },
|
|
|
|
|
+ disabled: false,
|
|
|
|
|
+ rules: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: " ",
|
|
|
|
|
+ trigger: "blur"
|
|
|
|
|
+ }],
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '所属公司',
|
|
label: '所属公司',
|
|
|
prop: "affiliatedCompanyName",
|
|
prop: "affiliatedCompanyName",
|
|
|
disabled: false,
|
|
disabled: false,
|
|
@@ -575,13 +609,28 @@ export default {
|
|
|
required: true,
|
|
required: true,
|
|
|
message: " ",
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
trigger: "blur"
|
|
|
- }]
|
|
|
|
|
|
|
+ }],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '业务员',
|
|
|
|
|
- prop: "srcCnName",
|
|
|
|
|
|
|
+ label: '客户来源',
|
|
|
|
|
+ prop: "sourceType",
|
|
|
disabled: false,
|
|
disabled: false,
|
|
|
|
|
+ rules: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: " ",
|
|
|
|
|
+ trigger: "blur"
|
|
|
|
|
+ }],
|
|
|
},
|
|
},
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: "salesmanName",
|
|
|
|
|
+ // disabled: false,
|
|
|
|
|
+ // display:false,
|
|
|
|
|
+ // rules: [{
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // message: " ",
|
|
|
|
|
+ // trigger: "blur"
|
|
|
|
|
+ // }],
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
label: "审单状态",
|
|
label: "审单状态",
|
|
|
prop: "reviewStatus",
|
|
prop: "reviewStatus",
|
|
@@ -597,7 +646,7 @@ export default {
|
|
|
prop: "remarks",
|
|
prop: "remarks",
|
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
disabled: false,
|
|
disabled: false,
|
|
|
- span: 6,
|
|
|
|
|
|
|
+ span: 18,
|
|
|
minRows: 2,
|
|
minRows: 2,
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
@@ -682,6 +731,13 @@ export default {
|
|
|
overHidden: true
|
|
overHidden: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ label: "厂号",
|
|
|
|
|
+ prop: "factoryNumber",
|
|
|
|
|
+ width: "100",
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ overHidden: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: "HSCODE",
|
|
label: "HSCODE",
|
|
|
prop: "hsCode",
|
|
prop: "hsCode",
|
|
|
width: "100",
|
|
width: "100",
|
|
@@ -698,13 +754,6 @@ export default {
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "厂号",
|
|
|
|
|
- prop: "factoryNumber",
|
|
|
|
|
- width: "100",
|
|
|
|
|
- cell: true,
|
|
|
|
|
- overHidden: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
label: "标签品名",
|
|
label: "标签品名",
|
|
|
prop: "labelProductName",
|
|
prop: "labelProductName",
|
|
|
width: "100",
|
|
width: "100",
|
|
@@ -759,7 +808,7 @@ export default {
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "单价",
|
|
|
|
|
|
|
+ label: "单价(USD)",
|
|
|
prop: "price",
|
|
prop: "price",
|
|
|
width: "100",
|
|
width: "100",
|
|
|
cell: true,
|
|
cell: true,
|
|
@@ -792,7 +841,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "金额",
|
|
label: "金额",
|
|
|
- prop: "amount",
|
|
|
|
|
|
|
+ prop: "amount(USD)",
|
|
|
width: "100",
|
|
width: "100",
|
|
|
cell: true,
|
|
cell: true,
|
|
|
slot: true,
|
|
slot: true,
|
|
@@ -800,6 +849,12 @@ export default {
|
|
|
overHidden: true
|
|
overHidden: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ label: "税率",
|
|
|
|
|
+ prop: "taxRate",
|
|
|
|
|
+ width: "80",
|
|
|
|
|
+ overHidden: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: "铅封号",
|
|
label: "铅封号",
|
|
|
prop: "leadSealNo",
|
|
prop: "leadSealNo",
|
|
|
width: "120",
|
|
width: "120",
|
|
@@ -834,12 +889,6 @@ export default {
|
|
|
overHidden: true
|
|
overHidden: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "税率",
|
|
|
|
|
- prop: "taxRate",
|
|
|
|
|
- width: "80",
|
|
|
|
|
- overHidden: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
label: "报关单号",
|
|
label: "报关单号",
|
|
|
prop: "customsDeclarationNo",
|
|
prop: "customsDeclarationNo",
|
|
|
width: "120",
|
|
width: "120",
|
|
@@ -1058,14 +1107,14 @@ export default {
|
|
|
if (name == 'corpName') {
|
|
if (name == 'corpName') {
|
|
|
if (row) {
|
|
if (row) {
|
|
|
this.form.corpId = row.id
|
|
this.form.corpId = row.id
|
|
|
- if (row.sourceType == 'SALES') {
|
|
|
|
|
- this.form.srcCnName = row.srcCnName
|
|
|
|
|
- this.form.srcId = row.srcId
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.form.sourceType = row.sourceType
|
|
|
|
|
+ this.form.salesmanName = row.srcCnName
|
|
|
|
|
+ this.form.salesmanId = row.srcId
|
|
|
} else {
|
|
} else {
|
|
|
this.form.corpId = null
|
|
this.form.corpId = null
|
|
|
- this.form.srcCnName = null
|
|
|
|
|
- this.form.srcId = null
|
|
|
|
|
|
|
+ this.form.sourceType = null
|
|
|
|
|
+ this.form.salesmanName = null
|
|
|
|
|
+ this.form.salesmanId = null
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (name == 'polCnName') {
|
|
if (name == 'polCnName') {
|
|
@@ -1074,7 +1123,6 @@ export default {
|
|
|
this.form.polId = row.id
|
|
this.form.polId = row.id
|
|
|
this.form.polCode = row.code
|
|
this.form.polCode = row.code
|
|
|
this.form.polEnName = row.enName
|
|
this.form.polEnName = row.enName
|
|
|
-
|
|
|
|
|
} else {
|
|
} else {
|
|
|
this.form.polId = null
|
|
this.form.polId = null
|
|
|
this.form.polCode = null
|
|
this.form.polCode = null
|
|
@@ -1096,9 +1144,17 @@ export default {
|
|
|
if (row) {
|
|
if (row) {
|
|
|
this.$refs.abankCode.IdGetDicData({ id: row.id })
|
|
this.$refs.abankCode.IdGetDicData({ id: row.id })
|
|
|
this.form.abroadConsignorId = row.id
|
|
this.form.abroadConsignorId = row.id
|
|
|
- this.form.abroadBankMnemonicCode = null
|
|
|
|
|
- this.form.abroadBank = null
|
|
|
|
|
- this.form.abroadCurrency = null
|
|
|
|
|
|
|
+ getDicinit('get', '/blade-los/bcorps/detail', { id: row.id }).then(res => {
|
|
|
|
|
+ res.data.data.corpsBankList.forEach((e, index) => {
|
|
|
|
|
+ if (index == 0) {
|
|
|
|
|
+ console.log(e)
|
|
|
|
|
+ this.form.abroadBankMnemonicCode = e.mnemonicCode
|
|
|
|
|
+ this.form.abroadBank = e.accountBank
|
|
|
|
|
+ this.form.abroadCurrency = e.curNo
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
this.form.abroadConsignorId = null
|
|
this.form.abroadConsignorId = null
|
|
|
this.form.abroadBankMnemonicCode = null
|
|
this.form.abroadBankMnemonicCode = null
|
|
@@ -1109,10 +1165,18 @@ export default {
|
|
|
if (name == 'domesticConsigneeCname') {
|
|
if (name == 'domesticConsigneeCname') {
|
|
|
if (row) {
|
|
if (row) {
|
|
|
this.$refs.dbankCode.IdGetDicData({ id: row.id })
|
|
this.$refs.dbankCode.IdGetDicData({ id: row.id })
|
|
|
|
|
+ console.log(this.$refs.abankCode.IdGetDicData({ id: row.id }), 222)
|
|
|
this.form.domesticConsigneeId = row.id
|
|
this.form.domesticConsigneeId = row.id
|
|
|
- this.form.domesticBankMnemonicCode = null
|
|
|
|
|
- this.form.domesticBank = null
|
|
|
|
|
- this.form.domesticCurrency = null
|
|
|
|
|
|
|
+ getDicinit('get', '/blade-los/bcorps/detail', { id: row.id }).then(res => {
|
|
|
|
|
+ res.data.data.corpsBankList.forEach((e, index) => {
|
|
|
|
|
+ if (index == 0) {
|
|
|
|
|
+ console.log(e)
|
|
|
|
|
+ this.form.domesticBankMnemonicCode = e.mnemonicCode
|
|
|
|
|
+ this.form.domesticBank = e.accountBank
|
|
|
|
|
+ this.form.domesticCurrency = e.curNo
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.form.domesticConsigneeId = null
|
|
this.form.domesticConsigneeId = null
|
|
|
this.form.domesticBankMnemonicCode = null
|
|
this.form.domesticBankMnemonicCode = null
|
|
@@ -1127,11 +1191,17 @@ export default {
|
|
|
this.form.affiliatedCompanyId = null
|
|
this.form.affiliatedCompanyId = null
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (name == 'srcCnName') {
|
|
|
|
|
|
|
+ if (name == 'sourceType') {
|
|
|
|
|
+ if (!row) {
|
|
|
|
|
+ this.form.salesmanId = null
|
|
|
|
|
+ this.form.salesmanName = null
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (name == 'salesmanName') {
|
|
|
if (row) {
|
|
if (row) {
|
|
|
- this.form.srcId = row.id
|
|
|
|
|
|
|
+ this.form.salesmanId = row.id
|
|
|
} else {
|
|
} else {
|
|
|
- this.form.srcId = null
|
|
|
|
|
|
|
+ this.form.salesmanId = null
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (name == 'abroadBankMnemonicCode') {
|
|
if (name == 'abroadBankMnemonicCode') {
|
|
@@ -1255,6 +1325,7 @@ export default {
|
|
|
hsCode: obj.hsCode,
|
|
hsCode: obj.hsCode,
|
|
|
factoryNumber: obj.factoryNumber,
|
|
factoryNumber: obj.factoryNumber,
|
|
|
labelProductName: obj.labelProductName,
|
|
labelProductName: obj.labelProductName,
|
|
|
|
|
+ taxRate: obj.taxRate,
|
|
|
goodsType: obj.goodsType,
|
|
goodsType: obj.goodsType,
|
|
|
quantity: obj.quantity,
|
|
quantity: obj.quantity,
|
|
|
netWeight: obj.netWeight,
|
|
netWeight: obj.netWeight,
|