Commit 7d3b3ae1 authored by qhr's avatar qhr

添加是否免税字段

parent 74263a1c
...@@ -128,7 +128,8 @@ export default { ...@@ -128,7 +128,8 @@ export default {
arrivalDate: this.param.arrivalDate || '', arrivalDate: this.param.arrivalDate || '',
materialTypeId: this.param.materialTypeId || '', materialTypeId: this.param.materialTypeId || '',
extDxProductAreaId: this.param.extDxProductAreaId || '', extDxProductAreaId: this.param.extDxProductAreaId || '',
extDxSipplierId: this.param.extDxSipplierId || '' extDxSipplierId: this.param.extDxSipplierId || '',
hasTaxExemption: this.param.hasTaxExemption || ''
} }
const arrReaParams = [] const arrReaParams = []
for (const key in reqParams) { for (const key in reqParams) {
...@@ -140,6 +141,9 @@ export default { ...@@ -140,6 +141,9 @@ export default {
this.uploading = false this.uploading = false
this.$utils.showMessageSuccess(res.data.message) this.$utils.showMessageSuccess(res.data.message)
const reqObj = isNew ? res.data.items : null const reqObj = isNew ? res.data.items : null
if (reqObj !== null) {
reqObj.hasTaxExemption = this.param.hasTaxExemption
}
this.$emit('refreshTable', reqObj) this.$emit('refreshTable', reqObj)
this.close() this.close()
}).catch(err => { }).catch(err => {
......
...@@ -395,6 +395,11 @@ export default { ...@@ -395,6 +395,11 @@ export default {
this.$set(this.form, 'arrivalDate', this.header.arrivalDate) this.$set(this.form, 'arrivalDate', this.header.arrivalDate)
const childrenAddOrEdit = this.header.materialTypeName.label === '外购成品' && (this.operateType === 'ADD' || (this.operateType === 'MODIFY' && !this.form.isRoot)) const childrenAddOrEdit = this.header.materialTypeName.label === '外购成品' && (this.operateType === 'ADD' || (this.operateType === 'MODIFY' && !this.form.isRoot))
const parentIsVirtual = this.form.isVirtual const parentIsVirtual = this.form.isVirtual
let isTaxExemption = false
if (this.header.hasTaxExemption === '是') {
isTaxExemption = true
this.$set(this.form, 'taxRate', 0)
}
switch (this.header.billType) { switch (this.header.billType) {
case '器材': case '器材':
case 'Material': case 'Material':
...@@ -659,6 +664,7 @@ export default { ...@@ -659,6 +664,7 @@ export default {
title: '税率', title: '税率',
key: 'taxRate', key: 'taxRate',
component: { component: {
disabled: isTaxExemption,
clearable: true, clearable: true,
name: 'el-input-number', name: 'el-input-number',
min: 0, min: 0,
...@@ -1044,7 +1050,8 @@ export default { ...@@ -1044,7 +1050,8 @@ export default {
key: 'taxRate', key: 'taxRate',
component: { component: {
clearable: true, clearable: true,
disabled: childrenAddOrEdit && !parentIsVirtual, // disabled: childrenAddOrEdit && !parentIsVirtual,
disabled: isTaxExemption,
name: 'el-input-number', name: 'el-input-number',
min: 0, min: 0,
placeholder: '请输入税率' placeholder: '请输入税率'
...@@ -1393,7 +1400,8 @@ export default { ...@@ -1393,7 +1400,8 @@ export default {
key: 'taxRate', key: 'taxRate',
component: { component: {
clearable: true, clearable: true,
disabled: childrenAddOrEdit && !parentIsVirtual, // disabled: childrenAddOrEdit && !parentIsVirtual,
disabled: isTaxExemption,
name: 'el-input-number', name: 'el-input-number',
min: 0, min: 0,
placeholder: '请输入税率' placeholder: '请输入税率'
...@@ -2042,7 +2050,8 @@ export default { ...@@ -2042,7 +2050,8 @@ export default {
'remark': this.form.remark || '/', 'remark': this.form.remark || '/',
'operateType': this.operateType, 'operateType': this.operateType,
'MaterialResCode': this.form.resCode, 'MaterialResCode': this.form.resCode,
'deliverySpec': this.basicData.deliverySpec || '/' 'deliverySpec': this.basicData.deliverySpec || '/',
'hasTaxExemption': this.header.hasTaxExemption || ''
} }
newTableData.extMaterial.operator = 'NO_CHANGE' newTableData.extMaterial.operator = 'NO_CHANGE'
this.$emit('addTableData', newTableData) this.$emit('addTableData', newTableData)
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
return { return {
loading: false, loading: false,
currBasicData: null, currBasicData: null,
form: {}, form: { hasTaxExemption : '否' },
formData: [{ formData: [{
title: '基本信息', title: '基本信息',
split: 2, split: 2,
...@@ -115,16 +115,16 @@ export default { ...@@ -115,16 +115,16 @@ export default {
} }
}, },
{ {
title: "是否免税", title: '是否免税',
key: "hasTax", key: 'hasTaxExemption',
component: { component: {
clearable: true, clearable: true,
name: "el-select", name: 'el-select',
options: [ options: [
{ value: "Y", label: "是" }, { value: '是', label: '是' },
{ value: "N", label: "否" }, { value: '否', label: '否' }
], ]
}, }
}, },
{ {
title: '供应商', title: '供应商',
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
], ],
hasTax: [ hasTaxExemption: [
{ {
required: true, required: true,
message: '请填写表单信息', message: '请填写表单信息',
...@@ -510,6 +510,7 @@ export default { ...@@ -510,6 +510,7 @@ export default {
{ title: '入库金额', key: 'stockPrice', headerAlign: 'center' }, { title: '入库金额', key: 'stockPrice', headerAlign: 'center' },
{ title: '含税单价', key: 'taxUnitPrice', headerAlign: 'center' }, { title: '含税单价', key: 'taxUnitPrice', headerAlign: 'center' },
{ title: '含税金额', key: 'taxPrice', headerAlign: 'center' }, { title: '含税金额', key: 'taxPrice', headerAlign: 'center' },
{ title: '是否免税', key: 'hasTaxExemption', headerAlign: 'center' },
{ title: '税率', key: 'taxRate', headerAlign: 'center' }, { title: '税率', key: 'taxRate', headerAlign: 'center' },
{ title: '报检人', key: 'creator.userName', headerAlign: 'center' }, { title: '报检人', key: 'creator.userName', headerAlign: 'center' },
{ {
...@@ -572,26 +573,27 @@ export default { ...@@ -572,26 +573,27 @@ export default {
'arrivalDate': this.form.arrivalDate, 'arrivalDate': this.form.arrivalDate,
'materialTypeId': this.form.materialTypeId, 'materialTypeId': this.form.materialTypeId,
'extDxProductAreaId': this.form.extDxProductAreaId, 'extDxProductAreaId': this.form.extDxProductAreaId,
'extDxSipplierId': this.form.extDxSipplierId 'extDxSipplierId': this.form.extDxSipplierId,
'hasTaxExemption': this.form.hasTaxExemption
} }
} }
}, },
isSignApproval() { isSignApproval() {
return this.$route && this.$route.name === 'TaskCenterHome' return this.$route && this.$route.name === 'TaskCenterHome'
}, },
invisibleHasTax:function() { invisibleHasTaxExemption: function() {
let filterData = this.formData[0].data; let filterData = this.formData[0].data
if (this.form.billType === "OutSource") { if (this.form.billType === 'OutSource') {
filterData = this.formData[0].data.filter((item) => item.key !== "hasTax"); filterData = this.formData[0].data.filter((item) => item.key !== 'hasTaxExemption')
}
return [
{
title: '基本信息',
split: 2,
data: filterData || []
} }
return [ ]
{ }
title: "基本信息",
split: 2,
data: filterData || [],
},
];
},
}, },
watch: { watch: {
}, },
......
...@@ -261,6 +261,7 @@ export default { ...@@ -261,6 +261,7 @@ export default {
{ title: '含税单价', key: 'taxUnitPrice', align: 'center', headerAlign: 'center' }, { title: '含税单价', key: 'taxUnitPrice', align: 'center', headerAlign: 'center' },
{ title: '含税金额', key: 'taxPrice', align: 'center', headerAlign: 'center' }, { title: '含税金额', key: 'taxPrice', align: 'center', headerAlign: 'center' },
{ title: '税率', key: 'taxRate', align: 'center', headerAlign: 'center' }, { title: '税率', key: 'taxRate', align: 'center', headerAlign: 'center' },
{ title: '是否免税', key: 'hasTaxExemption', headerAlign: 'center' },
{ title: '报检人', key: 'creator.userName', align: 'center', headerAlign: 'center' }, { title: '报检人', key: 'creator.userName', align: 'center', headerAlign: 'center' },
{ {
title: '接受仓库', key: 'extname', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '接受仓库', key: 'extname', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
......
...@@ -128,6 +128,7 @@ export default { ...@@ -128,6 +128,7 @@ export default {
{ title: '入库金额', key: 'stockPrice', align: 'center', headerAlign: 'center' }, { title: '入库金额', key: 'stockPrice', align: 'center', headerAlign: 'center' },
{ title: '含税单价', key: 'taxUnitPrice', align: 'center', headerAlign: 'center' }, { title: '含税单价', key: 'taxUnitPrice', align: 'center', headerAlign: 'center' },
{ title: '含税金额', key: 'taxPrice', align: 'center', headerAlign: 'center' }, { title: '含税金额', key: 'taxPrice', align: 'center', headerAlign: 'center' },
{ title: '是否免税', key: 'hasTaxExemption', headerAlign: 'center' },
{ title: '税率', key: 'taxRate', align: 'center', headerAlign: 'center' }, { title: '税率', key: 'taxRate', align: 'center', headerAlign: 'center' },
{ title: '报检人', key: 'creator.userName', align: 'center', headerAlign: 'center' }, { title: '报检人', key: 'creator.userName', align: 'center', headerAlign: 'center' },
{ {
......
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