|
@@ -53,7 +53,6 @@
|
|
|
<a-card :bordered="true" style="margin:10px 0 60px 0">
|
|
|
<div class="table-operator">
|
|
|
<a-button type="primary" @click="referOrderDataOpen" icon="ordered-list">参照订单数据</a-button>
|
|
|
- <a-button type="primary" @click="handleAddColumn" icon="plus" style="margin-left: 20px">増行</a-button>
|
|
|
</div>
|
|
|
|
|
|
<!-- 子表 :model="form" :rules="validatorRules"-->
|
|
@@ -67,7 +66,7 @@
|
|
|
:data-source="syShippingDetailsItemList"
|
|
|
:loading="loading"
|
|
|
:pagination="ipagination"
|
|
|
- :scroll="{ x: 1500 }"
|
|
|
+ :scroll="{ x: 2800,y:400 }"
|
|
|
@change="handleTableChange"
|
|
|
>
|
|
|
<!-- 款号 输入框 :rules="rules.itemNumber" -->
|
|
@@ -148,8 +147,8 @@
|
|
|
<a-form-model-item prop="manualYarnFlag">
|
|
|
<a-select v-model="record.manualYarnFlag">
|
|
|
<a-select-option value="">请选择</a-select-option>
|
|
|
- <a-select-option value="1">是</a-select-option>
|
|
|
- <a-select-option value="0">否</a-select-option>
|
|
|
+ <a-select-option :value="1">是</a-select-option>
|
|
|
+ <a-select-option :value="0">否</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
@@ -173,8 +172,6 @@
|
|
|
<a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)">
|
|
|
<a href="javascript:void(0);" style="color:red;">删除</a>
|
|
|
</a-popconfirm>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a @click="copy(record)">复制</a>
|
|
|
</span>
|
|
|
</a-table>
|
|
|
</a-form-model>
|
|
@@ -188,7 +185,7 @@
|
|
|
bottom: 0,
|
|
|
width: '100%',
|
|
|
borderTop: '1px solid #e9e9e9',
|
|
|
- padding: '10px 16px',
|
|
|
+ padding: '0px 0px',
|
|
|
background: '#fff',
|
|
|
textAlign: 'right',
|
|
|
zIndex: 1
|
|
@@ -378,8 +375,9 @@ export default {
|
|
|
{
|
|
|
title: '客户名称',
|
|
|
dataIndex: 'customerName',
|
|
|
- width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
+ width: 300,
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: t => ellipsis(t),
|
|
|
},
|
|
|
{
|
|
|
title: '汇率',
|
|
@@ -416,8 +414,9 @@ export default {
|
|
|
{
|
|
|
title: '品牌方',
|
|
|
dataIndex: 'brandSide',
|
|
|
- width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
+ width: 180,
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: t => ellipsis(t),
|
|
|
},
|
|
|
{
|
|
|
title: '第三方',
|
|
@@ -473,7 +472,7 @@ export default {
|
|
|
{
|
|
|
title: '订单备注',
|
|
|
dataIndex: 'orderRemarks',
|
|
|
- width: 160,
|
|
|
+ width: 200,
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -517,7 +516,7 @@ export default {
|
|
|
{
|
|
|
title: '是否手册纱',
|
|
|
dataIndex: 'manualYarnFlag',
|
|
|
- width: 100,
|
|
|
+ width: 140,
|
|
|
scopedSlots: { customRender: 'manualYarnFlag' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -540,7 +539,7 @@ export default {
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
scopedSlots: { customRender: 'operationSlot' },
|
|
|
- width: 220,
|
|
|
+ width: 100,
|
|
|
fixed: 'right',
|
|
|
className: 'replacecolor'
|
|
|
}
|
|
@@ -591,6 +590,20 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ // 根据inventoryCode,colour,codingRules判断重复物料
|
|
|
+ for (var i=0; i<newObj.syShippingDetailsItemList.length; i++){
|
|
|
+ var rowData = newObj.syShippingDetailsItemList[i];
|
|
|
+ for (var j=i+1;j<newObj.syShippingDetailsItemList.length; j++){
|
|
|
+ var nextData = newObj.syShippingDetailsItemList[j];
|
|
|
+ if (rowData.inventoryCode == nextData.inventoryCode &&
|
|
|
+ rowData.colour == nextData.colour &&
|
|
|
+ rowData.codingRules == nextData.codingRules){
|
|
|
+ this.$message.error('第'+(i+1)+'行和第'+(j+1)+'行物料重复,无法保存');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
editById(this.editShipDet).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('编辑成功');
|
|
@@ -718,6 +731,6 @@ export default {
|
|
|
background-color: #f0f2f5;
|
|
|
}
|
|
|
/deep/ .ant-drawer-body {
|
|
|
- padding: 10px;
|
|
|
+ padding: 0px;
|
|
|
}
|
|
|
</style>
|