|
@@ -1,7 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<a-drawer
|
|
<a-drawer
|
|
:zIndex="zIndex"
|
|
:zIndex="zIndex"
|
|
- title="采购缺货产品明细"
|
|
|
|
placement="right"
|
|
placement="right"
|
|
:visible="isShow"
|
|
:visible="isShow"
|
|
:width="width"
|
|
:width="width"
|
|
@@ -10,6 +9,11 @@
|
|
@close="onCancel"
|
|
@close="onCancel"
|
|
wrapClassName="outStock-modal"
|
|
wrapClassName="outStock-modal"
|
|
>
|
|
>
|
|
|
|
+ <div slot="title">
|
|
|
|
+ <strong>采购缺货产品明细</strong>
|
|
|
|
+ <span style="color: #ed1c24;;margin-left:10px;font-size: 12px;" v-if="purchaseTargetType&&(purchaseTargetType=='DEALER_UP'||purchaseTargetType=='DEALER_SUPPLIER')">注意:仅可添加本供应商有权限的产品</span>
|
|
|
|
+ <span style="color: #ed1c24;;margin-left:10px;font-size: 12px;" v-else-if="purchaseTargetType&&purchaseTargetType=='SUPPLIER_SYS'">注意:仅可添加本供应商有经销权且总部已上线的产品</span>
|
|
|
|
+ </div>
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<div class="outStock-con jg-drawer-wrap">
|
|
<div class="outStock-con jg-drawer-wrap">
|
|
<div>
|
|
<div>
|
|
@@ -63,7 +67,7 @@
|
|
ref="table"
|
|
ref="table"
|
|
size="small"
|
|
size="small"
|
|
:rowKey="(record) => record.id"
|
|
:rowKey="(record) => record.id"
|
|
- :row-selection="{ columnWidth: 40 }"
|
|
|
|
|
|
+ :row-selection="{ columnWidth: 40 ,getCheckboxProps:record=>({props:{disabled:record.productPowerFlag==0}})}"
|
|
:scroll="{ y:tableHeight, x: 1000 }"
|
|
:scroll="{ y:tableHeight, x: 1000 }"
|
|
@rowSelection="rowSelectionFun"
|
|
@rowSelection="rowSelectionFun"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
@@ -71,6 +75,11 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:pageSize="30"
|
|
:pageSize="30"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <!-- 产品编码 -->
|
|
|
|
+ <template slot="productCode" slot-scope="text, record">
|
|
|
|
+ {{ record.productCode }}
|
|
|
|
+ <a-tag color="red" v-if="record.productPowerFlag== 0">无权限</a-tag>
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -111,6 +120,12 @@ export default {
|
|
zIndex: {
|
|
zIndex: {
|
|
type: Number,
|
|
type: Number,
|
|
default: 100
|
|
default: 100
|
|
|
|
+ },
|
|
|
|
+ // 1向总部采购的提示语:注意:仅可添加本供应商有经销权且总部已上线的产品
|
|
|
|
+ // 2向上级与省仓采购的提示语:注意:仅可添加本供应商有权限的产品
|
|
|
|
+ purchaseTargetType: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
@@ -126,7 +141,7 @@ export default {
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
|
|
{ title: '采购单号', dataIndex: 'purchaseBillNo', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '采购单号', dataIndex: 'purchaseBillNo', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '产品编码', dataIndex: 'productCode', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'productCode', width: '18%', align: 'center', scopedSlots: { customRender: 'productCode' } },
|
|
{ title: '产品名称', dataIndex: 'productName', width: '30%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'productName', width: '30%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '缺货数量', dataIndex: 'qty', width: '15%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '缺货数量', dataIndex: 'qty', width: '15%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '缺货金额', dataIndex: 'totalAmount', width: '15%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '缺货金额', dataIndex: 'totalAmount', width: '15%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -136,7 +151,7 @@ export default {
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- return outOfStockDetailList(Object.assign(parameter, { purchaseBillSnList: this.chooseData, purchaseBillNo: this.purchaseBillNo, dealerProduct: this.queryParam })).then(res => {
|
|
|
|
|
|
+ return outOfStockDetailList(Object.assign(parameter, { purchaseBillSnList: this.chooseData, newPurchaseBillSn: _this.paramsSn, purchaseBillNo: this.purchaseBillNo, dealerProduct: this.queryParam })).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
@@ -160,7 +175,8 @@ export default {
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn2: '', // 产品二级分类
|
|
productTypeSn2: '', // 产品二级分类
|
|
productTypeSn3: '' // 产品三级分类
|
|
productTypeSn3: '' // 产品三级分类
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ purchaseBillNo: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|