|
|
@ -161,7 +161,7 @@ |
|
|
<div>{{ model.country + '-' + model.countryName }}</div> |
|
|
<div>{{ model.country + '-' + model.countryName }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<j-form-container> |
|
|
<j-form-container class="merger-good-form-box"> |
|
|
<w-form ref="form" slot="detail" :model="model" :rules="validatorRules" v-next> |
|
|
<w-form ref="form" slot="detail" :model="model" :rules="validatorRules" v-next> |
|
|
<!-- start 中国 --> |
|
|
<!-- start 中国 --> |
|
|
<w-row v-if="model.country === 'CN'"> |
|
|
<w-row v-if="model.country === 'CN'"> |
|
|
@ -396,6 +396,7 @@ |
|
|
> |
|
|
> |
|
|
<w-input |
|
|
<w-input |
|
|
v-model="model.limitConditions" |
|
|
v-model="model.limitConditions" |
|
|
|
|
|
readonly |
|
|
placeholder="请输入海外监管条件" |
|
|
placeholder="请输入海外监管条件" |
|
|
:maxLength="500" |
|
|
:maxLength="500" |
|
|
:disabled="formDisabled" |
|
|
:disabled="formDisabled" |
|
|
@ -407,6 +408,20 @@ |
|
|
<w-input v-model="model.remarks" :maxLength="250" placeholder="请输入备注" :disabled="formDisabled" /> |
|
|
<w-input v-model="model.remarks" :maxLength="250" placeholder="请输入备注" :disabled="formDisabled" /> |
|
|
</w-form-item> |
|
|
</w-form-item> |
|
|
</w-col> |
|
|
</w-col> |
|
|
|
|
|
<w-col :span="12" v-if="showAdditionCode"> |
|
|
|
|
|
<w-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="附加编码" prop="additionalCode"> |
|
|
|
|
|
<div style="display: flex; align-items: center; width: 100%"> |
|
|
|
|
|
<w-input v-model="model.additionalCode" readonly placeholder="请选择附加编码" /> |
|
|
|
|
|
<div |
|
|
|
|
|
@click="showAdditionCodeHandle" |
|
|
|
|
|
class="plus-box" |
|
|
|
|
|
> |
|
|
|
|
|
<a-icon type="plus" style="color: #ffffff" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</w-form-item> |
|
|
|
|
|
</w-col> |
|
|
</w-row> |
|
|
</w-row> |
|
|
<!-- end --> |
|
|
<!-- end --> |
|
|
</w-form> |
|
|
</w-form> |
|
|
@ -559,6 +574,7 @@ |
|
|
</w-form> |
|
|
</w-form> |
|
|
</j-modal> |
|
|
</j-modal> |
|
|
<ApprovalProgressTemplate ref="ApprovalProgressTemplate" @ok="$emit('close')" /> |
|
|
<ApprovalProgressTemplate ref="ApprovalProgressTemplate" @ok="$emit('close')" /> |
|
|
|
|
|
<addition-code-dialog ref="additionCodeDialogRef" @confirm="confirmAdditionCode"></addition-code-dialog> |
|
|
</a-spin> |
|
|
</a-spin> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -576,10 +592,12 @@ import CNattachmentCode from './CNattachmentCode'; |
|
|
import CNregulatoryConditions from './CNregulatoryConditions'; |
|
|
import CNregulatoryConditions from './CNregulatoryConditions'; |
|
|
import CNtaxrateDesc from './CNtaxrateDesc'; |
|
|
import CNtaxrateDesc from './CNtaxrateDesc'; |
|
|
import ApprovalProgressTemplate from '@/components/ApprovalProgressTemplate/index'; |
|
|
import ApprovalProgressTemplate from '@/components/ApprovalProgressTemplate/index'; |
|
|
|
|
|
import additionCodeDialog from './additionCodeDialog'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'MideaMergerGoodsForm', |
|
|
name: 'MideaMergerGoodsForm', |
|
|
components: { |
|
|
components: { |
|
|
|
|
|
additionCodeDialog, |
|
|
WorkflowList, |
|
|
WorkflowList, |
|
|
ModifyRecord, |
|
|
ModifyRecord, |
|
|
devClassify, |
|
|
devClassify, |
|
|
@ -624,6 +642,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
confirmLoading: false, |
|
|
confirmLoading: false, |
|
|
validatorRules: { |
|
|
validatorRules: { |
|
|
|
|
|
additionalCode: [{ required: true, message: '请选择附加编码!', trigger: 'blur' }], |
|
|
hsCode: [{ required: true, message: '请输入HSCode!', trigger: 'blur' }], |
|
|
hsCode: [{ required: true, message: '请输入HSCode!', trigger: 'blur' }], |
|
|
gname: [{ required: true, message: '请输入商品名称!', trigger: 'blur' }], |
|
|
gname: [{ required: true, message: '请输入商品名称!', trigger: 'blur' }], |
|
|
}, |
|
|
}, |
|
|
@ -694,6 +713,10 @@ export default { |
|
|
formDisabled() { |
|
|
formDisabled() { |
|
|
return this.disabled; |
|
|
return this.disabled; |
|
|
}, |
|
|
}, |
|
|
|
|
|
showAdditionCode() { |
|
|
|
|
|
// 国家为泰国才展示附加编码 |
|
|
|
|
|
return this.model.country && this.model.country === 'TH'; |
|
|
|
|
|
}, |
|
|
controlMaQuanType() { |
|
|
controlMaQuanType() { |
|
|
if (this.model.controlMa && this.model.quanType) { |
|
|
if (this.model.controlMa && this.model.quanType) { |
|
|
return this.model.controlMa + ',' + this.model.quanType; |
|
|
return this.model.controlMa + ',' + this.model.quanType; |
|
|
@ -711,6 +734,13 @@ export default { |
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
showAdditionCodeHandle() { |
|
|
|
|
|
this.$refs.additionCodeDialogRef.show({ data: this.model }); |
|
|
|
|
|
}, |
|
|
|
|
|
confirmAdditionCode(data) { |
|
|
|
|
|
this.model.additionalCode = data.additionalCode; |
|
|
|
|
|
this.getOtherCountry(); |
|
|
|
|
|
}, |
|
|
timestampToDate(timestamp) { |
|
|
timestampToDate(timestamp) { |
|
|
if (!timestamp) { |
|
|
if (!timestamp) { |
|
|
return ''; |
|
|
return ''; |
|
|
@ -733,7 +763,7 @@ export default { |
|
|
return; // 直接return,不执行后续代码 |
|
|
return; // 直接return,不执行后续代码 |
|
|
} |
|
|
} |
|
|
} else if (!['GC', 'CN'].includes(this.model.country)) { |
|
|
} else if (!['GC', 'CN'].includes(this.model.country)) { |
|
|
if (this.model.hsCode.length < 6) { |
|
|
if (this.model.hsCode && this.model.hsCode.length < 6) { |
|
|
this.$message.error('国家为海外时,HSCode必须大于等于6位'); |
|
|
this.$message.error('国家为海外时,HSCode必须大于等于6位'); |
|
|
return; // 直接return,不执行后续代码 |
|
|
return; // 直接return,不执行后续代码 |
|
|
} |
|
|
} |
|
|
@ -783,7 +813,7 @@ export default { |
|
|
id: this.model.id, |
|
|
id: this.model.id, |
|
|
}); |
|
|
}); |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
if (this.model.country === 'ID') { |
|
|
if (this.model.country === 'ID' || this.model.country === 'TH') { |
|
|
this.SubmitValid(); |
|
|
this.SubmitValid(); |
|
|
} else { |
|
|
} else { |
|
|
this.$refs.ApprovalProgressTemplate.show({ |
|
|
this.$refs.ApprovalProgressTemplate.show({ |
|
|
@ -820,11 +850,15 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async auditFlow() { |
|
|
async auditFlow() { |
|
|
if (this.model.country === 'ID') { |
|
|
if (this.model.country === 'ID' || this.model.country === 'TH') { |
|
|
const valid = await getAction(this.url.regulationValid, { |
|
|
const data = { |
|
|
countryCode: this.model.country, |
|
|
countryCode: this.model.country, |
|
|
hscode: this.model.hsCode, |
|
|
hscode: this.model.hsCode |
|
|
}); |
|
|
}; |
|
|
|
|
|
if ( this.model.country === 'TH' ) { |
|
|
|
|
|
data.additionalCode = this.model.additionalCode; |
|
|
|
|
|
} |
|
|
|
|
|
const valid = await getAction(this.url.regulationValid, data); |
|
|
if (valid.success) { |
|
|
if (valid.success) { |
|
|
this.$refs.ApprovalProgressTemplate.show({ |
|
|
this.$refs.ApprovalProgressTemplate.show({ |
|
|
id: this.model.id, |
|
|
id: this.model.id, |
|
|
@ -888,6 +922,9 @@ export default { |
|
|
flag: this.flag, |
|
|
flag: this.flag, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.model.country === 'TH' && value) { |
|
|
|
|
|
this.initAdditionalCode(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
filterOption(input, option) { |
|
|
filterOption(input, option) { |
|
|
return option.componentOptions.children[0].text.indexOf(input) !== -1; |
|
|
return option.componentOptions.children[0].text.indexOf(input) !== -1; |
|
|
@ -895,10 +932,20 @@ export default { |
|
|
closeModal(record) { |
|
|
closeModal(record) { |
|
|
if (record) { |
|
|
if (record) { |
|
|
this.model.hsCode = record.codeTS || record.hscode; |
|
|
this.model.hsCode = record.codeTS || record.hscode; |
|
|
|
|
|
if (this.model.country === 'TH') { |
|
|
|
|
|
this.initAdditionalCode(); |
|
|
|
|
|
} |
|
|
this.queryByIdHscode('enter'); |
|
|
this.queryByIdHscode('enter'); |
|
|
} |
|
|
} |
|
|
this.CNhSCodeModalShow = false; |
|
|
this.CNhSCodeModalShow = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
initAdditionalCode(){ |
|
|
|
|
|
this.model.additionalCode = ''; |
|
|
|
|
|
this.regulatoryConditionsDataSource = []; |
|
|
|
|
|
if (this.activeKeyBottom === 'regulatoryConditions') { |
|
|
|
|
|
this.$refs.CNregulatoryConditions.show(this.regulatoryConditionsDataSource); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
// 展示HSCode |
|
|
// 展示HSCode |
|
|
showHsCode() { |
|
|
showHsCode() { |
|
|
if (this.formDisabled) { |
|
|
if (this.formDisabled) { |
|
|
@ -1087,6 +1134,7 @@ export default { |
|
|
const resp = await getAction(this.url.hscodDetail, { |
|
|
const resp = await getAction(this.url.hscodDetail, { |
|
|
hscode: this.model.hsCode, |
|
|
hscode: this.model.hsCode, |
|
|
countryCode: this.model.country, |
|
|
countryCode: this.model.country, |
|
|
|
|
|
additionalCode: this.model.country === 'TH' ? this.model.additionalCode : undefined |
|
|
}); |
|
|
}); |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
|
const result = JSON.parse(resp.result); |
|
|
const result = JSON.parse(resp.result); |
|
|
@ -1251,6 +1299,8 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
that.$message.warning('请检查必填项'); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
@ -1358,10 +1408,14 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
async SubmitValid() { |
|
|
async SubmitValid() { |
|
|
const valid = await getAction(this.url.regulationValid, { |
|
|
const data = { |
|
|
countryCode: this.model.country, |
|
|
countryCode: this.model.country, |
|
|
hscode: this.model.hsCode, |
|
|
hscode: this.model.hsCode |
|
|
}); |
|
|
}; |
|
|
|
|
|
if ( this.model.country === 'TH' ) { |
|
|
|
|
|
data.additionalCode = this.model.additionalCode; |
|
|
|
|
|
} |
|
|
|
|
|
const valid = await getAction(this.url.regulationValid, data); |
|
|
if (valid.success) { |
|
|
if (valid.success) { |
|
|
this.$refs.ApprovalProgressTemplate.show({ |
|
|
this.$refs.ApprovalProgressTemplate.show({ |
|
|
id: this.model.id, |
|
|
id: this.model.id, |
|
|
@ -1435,7 +1489,15 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.merger-good-form-box { |
|
|
|
|
|
.plus-box { |
|
|
|
|
|
width: 26px; |
|
|
|
|
|
height: 26px; |
|
|
|
|
|
background-color: #0f69ff; |
|
|
|
|
|
line-height: 26px; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
/deep/ .md-form-item__label { |
|
|
/deep/ .md-form-item__label { |
|
|
width: 120px; |
|
|
width: 120px; |
|
|
} |
|
|
} |
|
|
|