|
@@ -84,9 +84,9 @@
|
|
|
class="button-error"
|
|
|
id="bulkWarehousingOrderList-del-btn">删除</a-button>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<template slot="productName" slot-scope="text, record">
|
|
|
- {{record.productName}}
|
|
|
+ {{ record.productName }}
|
|
|
<a-tag color="red" v-if="record.giftFlag==1">赠品</a-tag>
|
|
|
</template>
|
|
|
</s-table>
|
|
@@ -156,7 +156,7 @@ export default {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', scopedSlots: { customRender: 'productName' },width: '25%', align: 'center' },
|
|
|
+ { title: '产品名称', scopedSlots: { customRender: 'productName' }, width: '25%', align: 'center' },
|
|
|
{ title: '单位', dataIndex: 'unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '入库数量', dataIndex: 'productQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
// { title: '入库单价', dataIndex: 'productCost', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -209,10 +209,12 @@ export default {
|
|
|
},
|
|
|
// 导入产品
|
|
|
hanldeOk (obj) {
|
|
|
+ this.spinning = true
|
|
|
sparePartsDetailBatchInsert(obj).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.$refs.table.refresh(true)
|
|
|
}
|
|
|
+ this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
// 返回列表
|