|
@@ -100,7 +100,9 @@
|
|
</a-spin>
|
|
</a-spin>
|
|
|
|
|
|
<!-- 新增 -->
|
|
<!-- 新增 -->
|
|
- <addProductModal :openModal="newProduct" :chooseData="chooseProducts" @close="newProduct=false" @ok="handleProductsOk" />
|
|
|
|
|
|
+ <addProductModal :openModal="newProduct" @close="newProduct=false" @ok="handleProductsOk" />
|
|
|
|
+ <!-- 设置成本价 -->
|
|
|
|
+ <SettingCost ref="settingCost" :openModal="openSetModal" @ok="$refs.table.refresh()" @close="openSetModal=false"></SettingCost>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -110,14 +112,16 @@ import { STable, VSelect } from '@/components'
|
|
import ProductType from '@/views/common/productType.js'
|
|
import ProductType from '@/views/common/productType.js'
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
import addProductModal from './addProductModal.vue'
|
|
import addProductModal from './addProductModal.vue'
|
|
|
|
+import SettingCost from './settingCost.vue'
|
|
import { supplierProductList } from '@/api/supplier'
|
|
import { supplierProductList } from '@/api/supplier'
|
|
export default {
|
|
export default {
|
|
name: 'AssociatedProductDetailsList',
|
|
name: 'AssociatedProductDetailsList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, ProductBrand, ProductType, addProductModal },
|
|
|
|
|
|
+ components: { STable, VSelect, ProductBrand, ProductType, addProductModal, SettingCost },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
|
|
+ exportLoading: false,
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
@@ -152,7 +156,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
rowSelectionInfo: null,
|
|
rowSelectionInfo: null,
|
|
- newProduct: false
|
|
|
|
|
|
+ newProduct: false,
|
|
|
|
+ openSetModal: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -166,7 +171,7 @@ export default {
|
|
{ title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '12%', align: 'center' },
|
|
{ title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '12%', align: 'center' },
|
|
{ title: '供应商名称', dataIndex: 'supplierName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '供应商名称', dataIndex: 'supplierName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'creatDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'creatDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '审核状态', dataIndex: 'supplierName', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '审核状态', dataIndex: 'state', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
]
|
|
]
|
|
if (this.$hasPermissions('B_isShowCost')) { // 成本价权限
|
|
if (this.$hasPermissions('B_isShowCost')) { // 成本价权限
|
|
@@ -197,6 +202,10 @@ export default {
|
|
this.queryParam.product.productTypeSn1 = val[0] ? val[0] : ''
|
|
this.queryParam.product.productTypeSn1 = val[0] ? val[0] : ''
|
|
this.queryParam.product.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.product.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.product.productTypeSn3 = val[2] ? val[2] : ''
|
|
this.queryParam.product.productTypeSn3 = val[2] ? val[2] : ''
|
|
|
|
+ },
|
|
|
|
+ // 导出明细
|
|
|
|
+ handleExport(){
|
|
|
|
+
|
|
},
|
|
},
|
|
// 新增成功
|
|
// 新增成功
|
|
handleProductsOk(){
|
|
handleProductsOk(){
|
|
@@ -210,13 +219,31 @@ export default {
|
|
handleBatchAudit(){
|
|
handleBatchAudit(){
|
|
|
|
|
|
},
|
|
},
|
|
- // 审核
|
|
|
|
- handleAudit(){
|
|
|
|
-
|
|
|
|
|
|
+ // 单个审核
|
|
|
|
+ handleAudit (row) {
|
|
|
|
+ const _this = this
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确认要审核通过吗?',
|
|
|
|
+ centered: true,
|
|
|
|
+ closable: true,
|
|
|
|
+ okText: '通过',
|
|
|
|
+ cancelText: '不通过',
|
|
|
|
+ onOk () {
|
|
|
|
+ // _this.auditOrder(row.allocateReturnSn, 'FINISH')
|
|
|
|
+ },
|
|
|
|
+ onCancel (e) {
|
|
|
|
+ if (!e.triggerCancel) {
|
|
|
|
+ // _this.auditOrder(row.allocateReturnSn, 'FINANCIAL_REJECT')
|
|
|
|
+ }
|
|
|
|
+ _this.$destroyAll()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 成本设置
|
|
// 成本设置
|
|
- handleCostSet(){
|
|
|
|
-
|
|
|
|
|
|
+ handleCostSet(row){
|
|
|
|
+ this.openSetModal = true
|
|
|
|
+ this.$refs.settingCost.setData(row)
|
|
},
|
|
},
|
|
pageInit () {
|
|
pageInit () {
|
|
const _this = this
|
|
const _this = this
|