|
@@ -42,8 +42,8 @@
|
|
|
</a-form>
|
|
|
</div>
|
|
|
|
|
|
- <div class="table-operator" style="margin-bottom: 8px;">
|
|
|
- <!-- <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>-->
|
|
|
+ <!-- <div class="table-operator" style="margin-bottom: 8px;">
|
|
|
+ <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>
|
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('purchase-purchase-orders-del')">
|
|
|
<a-menu slot="overlay">
|
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
@@ -54,7 +54,7 @@
|
|
|
批量操作 <a-icon type="down" />
|
|
|
</a-button>
|
|
|
</a-dropdown>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
|
|
|
<s-table
|
|
|
ref="table"
|
|
@@ -107,145 +107,69 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '单号',
|
|
|
- dataIndex: 'billNo',
|
|
|
+ title: '存货编码',
|
|
|
+ dataIndex: 'no',
|
|
|
checked: true,
|
|
|
width: 200
|
|
|
},
|
|
|
{
|
|
|
- title: '公司名称',
|
|
|
- dataIndex: 'companyName',
|
|
|
+ title: '规格型号',
|
|
|
+ dataIndex: 'ggxh',
|
|
|
checked: true,
|
|
|
width: 150
|
|
|
},
|
|
|
{
|
|
|
- title: '项目名称',
|
|
|
- dataIndex: 'projectName',
|
|
|
+ title: '设备信息',
|
|
|
+ dataIndex: 'sbInfo',
|
|
|
checked: true,
|
|
|
width: 150
|
|
|
},
|
|
|
{
|
|
|
- title: '采购员名称',
|
|
|
- dataIndex: 'purchaserName',
|
|
|
+ title: '备件名称',
|
|
|
+ dataIndex: 'spareName',
|
|
|
checked: true,
|
|
|
width: 150
|
|
|
},
|
|
|
{
|
|
|
- title: '项目记账币种',
|
|
|
- dataIndex: 'projectMoneyType',
|
|
|
+ title: '仓库名称',
|
|
|
+ dataIndex: 'storeName',
|
|
|
checked: true,
|
|
|
- width: 120,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Table.getMapText(this.moneyTypeMap, text)
|
|
|
- }
|
|
|
+ width: 120
|
|
|
},
|
|
|
{
|
|
|
- title: '类型',
|
|
|
- dataIndex: 'type',
|
|
|
+ title: '货架号',
|
|
|
+ dataIndex: 'storePosition',
|
|
|
checked: true,
|
|
|
- width: 100,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Table.getMapText(this.typeMap, text)
|
|
|
- }
|
|
|
+ width: 100
|
|
|
},
|
|
|
{
|
|
|
- title: '需求日期',
|
|
|
- dataIndex: 'demandDate',
|
|
|
+ title: '采购数量',
|
|
|
+ dataIndex: 'num',
|
|
|
checked: true,
|
|
|
width: 150
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- title: '预计总金额',
|
|
|
- dataIndex: 'originMoney',
|
|
|
- checked: true,
|
|
|
- width: 120,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- let dollarExchangeRate = 1
|
|
|
- if (record.projectMoneyType === this.DictCache.VALUE.MONEY_TYPE.RMB) {
|
|
|
- dollarExchangeRate = this.dollarExchangeRate
|
|
|
- }
|
|
|
- return this.BaseTool.Amount.formatter(text) + this.BaseTool.Number.divForDollar(text, dollarExchangeRate, 2)
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '实际总金额(按记账主币)',
|
|
|
- dataIndex: 'accountMoney',
|
|
|
+ title: '创建人',
|
|
|
+ dataIndex: 'createdUserName',
|
|
|
checked: true,
|
|
|
- width: 120,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- let dollarExchangeRate = 1
|
|
|
- if (record.projectMoneyType === this.DictCache.VALUE.MONEY_TYPE.RMB) {
|
|
|
- dollarExchangeRate = this.dollarExchangeRate
|
|
|
- }
|
|
|
- return this.BaseTool.Amount.formatter(text) + this.BaseTool.Number.divForDollar(text, dollarExchangeRate, 2)
|
|
|
- }
|
|
|
+ width: 120
|
|
|
},
|
|
|
{
|
|
|
- title: '实际总金额(按询价主币)',
|
|
|
- dataIndex: 'money',
|
|
|
+ title: '创建时间',
|
|
|
+ dataIndex: 'createdTime',
|
|
|
checked: true,
|
|
|
- width: 120,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Amount.formatter(text) + this.BaseTool.Table.getMapTextForMoneyType(this.moneyTypeMap, record.moneyType)
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '总费用(按记账主币,含发运)',
|
|
|
- dataIndex: 'accountTotalMoney',
|
|
|
- checked: true,
|
|
|
- width: 150,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- let dollarExchangeRate = 1
|
|
|
- if (record.projectMoneyType === this.DictCache.VALUE.MONEY_TYPE.RMB) {
|
|
|
- dollarExchangeRate = this.dollarExchangeRate
|
|
|
- }
|
|
|
- return this.BaseTool.Amount.formatter(text) + this.BaseTool.Number.divForDollar(text, dollarExchangeRate, 2)
|
|
|
- }
|
|
|
- },
|
|
|
+ width: 120
|
|
|
+ }
|
|
|
// {
|
|
|
- // title: '总费用(按询价主币)',
|
|
|
- // dataIndex: 'totalMoney',
|
|
|
+ // title: '操作',
|
|
|
+ // key: 'action',
|
|
|
+ // width: '200px',
|
|
|
+ // fixed: 'right',
|
|
|
// checked: true,
|
|
|
- // width: 120,
|
|
|
- // customRender: (text, record, index) => {
|
|
|
- // return this.BaseTool.Amount.formatter(text) + this.BaseTool.Table.getMapTextForMoneyType(this.moneyTypeMap, record.moneyType)
|
|
|
- // }
|
|
|
- // },
|
|
|
- {
|
|
|
- title: '数量',
|
|
|
- dataIndex: 'quantity',
|
|
|
- checked: true,
|
|
|
- width: 90,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Amount.formatter(text)
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '状态',
|
|
|
- dataIndex: 'status',
|
|
|
- checked: true,
|
|
|
- fixed: 'right',
|
|
|
- width: 100,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Table.statusCustomRenderDict(this, text, record,
|
|
|
- this.DictCache.COLOR.PURCHASE_ORDER_STATUS, this.statusMap)
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '备注',
|
|
|
- width: 100,
|
|
|
- dataIndex: 'remark'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '操作',
|
|
|
- key: 'action',
|
|
|
- width: '200px',
|
|
|
- fixed: 'right',
|
|
|
- checked: true,
|
|
|
- align: 'center',
|
|
|
- scopedSlots: { customRender: 'action' }
|
|
|
- }
|
|
|
+ // align: 'center',
|
|
|
+ // scopedSlots: { customRender: 'action' }
|
|
|
+ // }
|
|
|
],
|
|
|
// 下拉框map
|
|
|
typeMap: {},
|
|
@@ -261,8 +185,8 @@ export default {
|
|
|
...parameter,
|
|
|
...this.queryParam,
|
|
|
dataScope: {
|
|
|
- sortBy: 'asc,desc',
|
|
|
- sortName: 'status,update_time'
|
|
|
+ sortBy: 'desc',
|
|
|
+ sortName: 'update_time'
|
|
|
}
|
|
|
}
|
|
|
return getpurchaseRecord(Object.assign(parameter, this.queryParam))
|