|
@@ -112,6 +112,16 @@
|
|
:scroll="{ x: 950, y:300 }"
|
|
:scroll="{ x: 950, y:300 }"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <!-- 产品编码 -->
|
|
|
|
+ <template slot="code" slot-scope="text, record">
|
|
|
|
+ <a-tooltip placement="top" v-if="record.stockState=='NOT_ENOUGH'">
|
|
|
|
+ <template slot="title">
|
|
|
|
+ 该产品暂时缺货!
|
|
|
|
+ </template>
|
|
|
|
+ <span class="noStock">{{ record.code || '--' }}</span>
|
|
|
|
+ </a-tooltip>
|
|
|
|
+ <span v-else>{{ record.code || '--' }}</span>
|
|
|
|
+ </template>
|
|
<!-- 采购数量 -->
|
|
<!-- 采购数量 -->
|
|
<template slot="storageQuantity" slot-scope="text, record">
|
|
<template slot="storageQuantity" slot-scope="text, record">
|
|
<a-input-number
|
|
<a-input-number
|
|
@@ -274,7 +284,7 @@ export default {
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: 70, align: 'center' },
|
|
- { title: '产品编码', dataIndex: 'code', width: 180, align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
|
|
|
+ { title: '产品编码', scopedSlots: { customRender: 'code' }, width: 180, align: 'center', sorter: true },
|
|
{ title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '原厂编码', dataIndex: 'origCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '原厂编码', dataIndex: 'origCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '箱/单位', dataIndex: 'unit', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '箱/单位', dataIndex: 'unit', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -579,6 +589,10 @@ export default {
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
+ .noStock{
|
|
|
|
+ text-decoration: line-through;
|
|
|
|
+ color: red;
|
|
|
|
+ }
|
|
.billno{
|
|
.billno{
|
|
margin: 0 0 0 30px;
|
|
margin: 0 0 0 30px;
|
|
font-size: 18px;
|
|
font-size: 18px;
|