|
@@ -218,7 +218,7 @@
|
|
|
type="link"
|
|
|
:id="'salesManagementList-edit-'+record.salesBillNo"
|
|
|
class="button-primary"
|
|
|
- v-if="(((record.sourceType == 'SATELLITE' || record.sourceType == 'SALES' || record.sourceType == 'TEMPORARY_DISPATCHING'||record.sourceType == 'XPRH_PURCHASE') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT'))||(systemFlag==1&&record.sourceType === 'TRANSFER_ORDER'&&record.billStatus == 'WAIT_AUDIT')) && $hasPermissions('B_salesEdit')"
|
|
|
+ v-if="(((record.sourceType == 'SATELLITE' || record.sourceType == 'SALES' || record.sourceType == 'TEMPORARY_DISPATCHING'||record.sourceType == 'XPRH_PURCHASE') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT'))||(record.sourceType === 'TRANSFER_ORDER'&&record.billStatus == 'WAIT_AUDIT')) && $hasPermissions('B_salesEdit')"
|
|
|
@click="handleEdit(record)"
|
|
|
>
|
|
|
编辑
|
|
@@ -249,17 +249,7 @@
|
|
|
type="link"
|
|
|
:id="'salesManagementList-cancel-'+record.salesBillNo"
|
|
|
class="button-error"
|
|
|
- v-if="systemFlag==1&&((record.sourceType == 'CHILD_PURCHASE'||record.sourceType == 'DEALER_PURCHASE'||record.sourceType =='XPRH_PURCHASE') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && record.sourceType != 'TRANSFER_ORDER'&& $hasPermissions('B_salesDel')"
|
|
|
- @click="handleDel(record, 'cancel')"
|
|
|
- >
|
|
|
- 取消
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- :id="'salesManagementList-cancel-'+record.salesBillNo"
|
|
|
- class="button-error"
|
|
|
- v-if="systemFlag==0&&((record.sourceType == 'CHILD_PURCHASE'||record.sourceType == 'DEALER_PURCHASE'||record.sourceType =='XPRH_PURCHASE') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE'))&& $hasPermissions('B_salesDel')"
|
|
|
+ v-if="((record.sourceType == 'CHILD_PURCHASE'||record.sourceType == 'DEALER_PURCHASE'||record.sourceType =='XPRH_PURCHASE') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && record.sourceType != 'TRANSFER_ORDER'&& $hasPermissions('B_salesDel')"
|
|
|
@click="handleDel(record, 'cancel')"
|
|
|
>
|
|
|
取消
|
|
@@ -291,7 +281,6 @@ import custList from '@/views/common/custList.vue'
|
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
|
// 接口
|
|
|
import { salesList, salesDel, salesWriteAudit, salesWriteStockOut, salesCount, salesExport } from '@/api/sales'
|
|
|
-import { getParamValue } from '@/api/data'
|
|
|
export default {
|
|
|
name: 'SalesList',
|
|
|
components: { STable, VSelect, chooseCustomModal, rangeDate, auditModal, custList, stateIcon },
|
|
@@ -367,8 +356,7 @@ export default {
|
|
|
visibleAudit: false, // 审核弹框
|
|
|
auditInfo: null, // 当前审核的数据
|
|
|
spinningAudit: false, // 审核loading
|
|
|
- distributionFlag: '0', // 是否铺货出库
|
|
|
- systemFlag: null// 是否转单
|
|
|
+ distributionFlag: '0' // 是否铺货出库
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -544,14 +532,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 获取系统参数 判断是否显示产品类型
|
|
|
- getSystemInfo () {
|
|
|
- getParamValue({ code: 'TIRE_OPEN' }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.systemFlag = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.resetData()
|
|
@@ -627,7 +607,6 @@ export default {
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
_this.setTableH()
|
|
|
})
|
|
|
- this.getSystemInfo()
|
|
|
// 是否打开的页签
|
|
|
const a = this.$store.state.app.isNewTab
|
|
|
// 是否要刷新列表
|