|
@@ -264,7 +264,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
data() {
|
|
data() {
|
|
- // let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
|
|
|
|
|
|
+ let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
|
|
return {
|
|
return {
|
|
loading: false, // 表格加载
|
|
loading: false, // 表格加载
|
|
id: '',
|
|
id: '',
|
|
@@ -281,7 +281,7 @@ export default {
|
|
title: '销售订单号',
|
|
title: '销售订单号',
|
|
dataIndex: 'orderNumber',
|
|
dataIndex: 'orderNumber',
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
- width: 120,
|
|
|
|
|
|
+ width: 150,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
|
|
|
|
@@ -333,13 +333,16 @@ export default {
|
|
title: '物料成分',
|
|
title: '物料成分',
|
|
dataIndex: 'materialComposition',
|
|
dataIndex: 'materialComposition',
|
|
width: 180,
|
|
width: 180,
|
|
- className: 'replacecolor'
|
|
|
|
|
|
+ className: 'replacecolor',
|
|
|
|
+ customRender: t => ellipsis(t),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '预发货日期',
|
|
title: '预发货日期',
|
|
dataIndex: 'preDeliveryDate',
|
|
dataIndex: 'preDeliveryDate',
|
|
width: 120,
|
|
width: 120,
|
|
customRender: text => {
|
|
customRender: text => {
|
|
|
|
+ if (text == "" || text == null)
|
|
|
|
+ return "";
|
|
return moment(text).format('YYYY-MM-DD')
|
|
return moment(text).format('YYYY-MM-DD')
|
|
},
|
|
},
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
@@ -349,6 +352,8 @@ export default {
|
|
dataIndex: 'preCompletionDate',
|
|
dataIndex: 'preCompletionDate',
|
|
width: 120,
|
|
width: 120,
|
|
customRender: text => {
|
|
customRender: text => {
|
|
|
|
+ if (text == "" || text == null)
|
|
|
|
+ return "";
|
|
return moment(text).format('YYYY-MM-DD')
|
|
return moment(text).format('YYYY-MM-DD')
|
|
},
|
|
},
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
@@ -357,26 +362,23 @@ export default {
|
|
{
|
|
{
|
|
title: '存货名称',
|
|
title: '存货名称',
|
|
dataIndex: 'inventoryName',
|
|
dataIndex: 'inventoryName',
|
|
- width: 140,
|
|
|
|
- className: 'replacecolor'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '整单(合计)',
|
|
|
|
- dataIndex: 'wholeOrderTotal',
|
|
|
|
- width: 120,
|
|
|
|
- className: 'replacecolor'
|
|
|
|
|
|
+ width: 240,
|
|
|
|
+ className: 'replacecolor',
|
|
|
|
+ customRender: t => ellipsis(t),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '英文品名',
|
|
title: '英文品名',
|
|
dataIndex: 'englishProductName',
|
|
dataIndex: 'englishProductName',
|
|
width: 120,
|
|
width: 120,
|
|
- className: 'replacecolor'
|
|
|
|
|
|
+ className: 'replacecolor',
|
|
|
|
+ customRender: t => ellipsis(t),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '单价(销售)',
|
|
title: '单价(销售)',
|
|
dataIndex: 'salesUnitPrice',
|
|
dataIndex: 'salesUnitPrice',
|
|
width: 120,
|
|
width: 120,
|
|
- className: 'replacecolor'
|
|
|
|
|
|
+ className: 'replacecolor',
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
@@ -536,20 +538,23 @@ export default {
|
|
|
|
|
|
// 申报要素
|
|
// 申报要素
|
|
declareElements(record) {
|
|
declareElements(record) {
|
|
- this.$refs.declareElementsModal.declareElementsModVis = true
|
|
|
|
- queryDeclarationElements({
|
|
|
|
- inventoryName: record.inventoryName,
|
|
|
|
- itemNumber: record.itemNumber,
|
|
|
|
- account: record.account
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.success) {
|
|
|
|
- console.log('申报要素主子表数据', res.result)
|
|
|
|
- // console.log('申报要素子表数据', res.result.syDeclarationElementsItemList)
|
|
|
|
- this.$refs.declareElementsModal.declareElements = res.result
|
|
|
|
- // 子表赋值
|
|
|
|
- this.$refs.declareElementsModal.declareElementsData = res.result.syDeclarationElementsItemList
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ if (record.inventoryName == ""){
|
|
|
|
+ this.$message.error('当前行存货名称为空,无法维护报关要素');
|
|
|
|
+ }else{
|
|
|
|
+ this.$refs.declareElementsModal.declareElementsModVis = true
|
|
|
|
+ queryDeclarationElements({
|
|
|
|
+ inventoryName: record.inventoryName,
|
|
|
|
+ itemNumber: record.itemNumber,
|
|
|
|
+ account: record.account
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ // console.log('申报要素子表数据', res.result.syDeclarationElementsItemList)
|
|
|
|
+ this.$refs.declareElementsModal.declareElements = res.result
|
|
|
|
+ // 子表赋值
|
|
|
|
+ this.$refs.declareElementsModal.declareElementsData = res.result.syDeclarationElementsItemList
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 维护款号成分
|
|
// 维护款号成分
|
|
itemNumberElement(record) {
|
|
itemNumberElement(record) {
|