|
@@ -155,12 +155,12 @@
|
|
fixed="right"
|
|
fixed="right"
|
|
>
|
|
>
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
- <Button @click="handleContextMenusys(row.row,2)"
|
|
|
|
|
|
+ <Button @click="handleContextMenusys(row,2)"
|
|
style="margin-right:5px"
|
|
style="margin-right:5px"
|
|
class="margin-map"
|
|
class="margin-map"
|
|
size='small'
|
|
size='small'
|
|
type="primary">修改</Button>
|
|
type="primary">修改</Button>
|
|
- <Button @click="delItems(row.row)"
|
|
|
|
|
|
+ <Button @click="delItems(row)"
|
|
style="margin-left:5px"
|
|
style="margin-left:5px"
|
|
size='small'
|
|
size='small'
|
|
type="error">删除</Button>
|
|
type="error">删除</Button>
|
|
@@ -209,9 +209,9 @@
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem label='价格计算方式'>
|
|
<FormItem label='价格计算方式'>
|
|
<Select v-model="postInfo.mode">
|
|
<Select v-model="postInfo.mode">
|
|
- <Option label="记件"
|
|
|
|
|
|
+ <Option label="计件"
|
|
:value="1"></Option>
|
|
:value="1"></Option>
|
|
- <Option label="记重"
|
|
|
|
|
|
+ <Option label="计重"
|
|
:value='2'></Option>
|
|
:value='2'></Option>
|
|
</Select>
|
|
</Select>
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -357,7 +357,7 @@ export default {
|
|
{ title: '主材', align: 'center', key: 'principal_material', minWidth: 200 },
|
|
{ title: '主材', align: 'center', key: 'principal_material', minWidth: 200 },
|
|
{
|
|
{
|
|
title: '价格计算方式', align: 'center', key: '', minWidth: 150,
|
|
title: '价格计算方式', align: 'center', key: '', minWidth: 150,
|
|
- render: (h, params) => h('span', params.row.mode == 1 ? '记件' : '记重')
|
|
|
|
|
|
+ render: (h, params) => h('span', params.row.mode == 1 ? '计件' : '计重')
|
|
},
|
|
},
|
|
{ title: '原料编码', align: 'center', key: 'original_code', minWidth: 200 },
|
|
{ title: '原料编码', align: 'center', key: 'original_code', minWidth: 200 },
|
|
{ title: '原料名称', align: 'center', key: 'original_title', minWidth: 200 },
|
|
{ title: '原料名称', align: 'center', key: 'original_title', minWidth: 200 },
|
|
@@ -448,7 +448,7 @@ export default {
|
|
// }
|
|
// }
|
|
// return '';
|
|
// return '';
|
|
},
|
|
},
|
|
- //历史记录
|
|
|
|
|
|
+ //历史计录
|
|
handleHistoryRecordDownload () {
|
|
handleHistoryRecordDownload () {
|
|
this.showModal = true
|
|
this.showModal = true
|
|
},
|
|
},
|
|
@@ -588,6 +588,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleContextMenusys (row, type, right) {
|
|
handleContextMenusys (row, type, right) {
|
|
|
|
+ console.log(row);
|
|
if (this.sameObj.children && this.sameObj.children.length > 0 && type == 1) {
|
|
if (this.sameObj.children && this.sameObj.children.length > 0 && type == 1) {
|
|
return
|
|
return
|
|
}
|
|
}
|