|
|
@@ -16,34 +16,7 @@ Page({
|
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
- popbuttonList: [{
|
|
|
- name: 'transferToWarehouse',
|
|
|
- title: mixins.$t('transferToWarehouse'), //转入库
|
|
|
- formMode: Constants.formMode.other,
|
|
|
- other: {
|
|
|
- idKey: 'purId'
|
|
|
- },
|
|
|
- }, {
|
|
|
- name: 'editPur',
|
|
|
- title: mixins.$t('edit'),
|
|
|
- }, {
|
|
|
- name: 'purchaseCancellation',
|
|
|
- title: mixins.$t('purchaseCancellation'), //采购作废
|
|
|
- }, //title:mixins.$t('followUp')
|
|
|
- {
|
|
|
-
|
|
|
- name: 'selectSourcePurchaseOrder',
|
|
|
- title: mixins.$t('purReturnOutBound'), //采购退货
|
|
|
- formMode: Constants.formMode.index,
|
|
|
- formType: Constants.formMode.add,
|
|
|
- idKey: 'purId',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'printedBill',
|
|
|
- title: mixins.$t('printedBill') //打印票据
|
|
|
- },
|
|
|
-
|
|
|
- ],
|
|
|
+ popbuttonList: [],
|
|
|
// 弹出按钮
|
|
|
buttonList: [{
|
|
|
name: 'merge',
|
|
|
@@ -206,6 +179,7 @@ Page({
|
|
|
* @author : 刘尧
|
|
|
*/
|
|
|
loadInit(){
|
|
|
+ console.log('this.data.gradeCode', this.data.gradeCode);
|
|
|
if (this.data.gradeCode == Constants.gradeCode.PRO) {
|
|
|
const tagList = [{
|
|
|
title: mixins.$t('all'), //"全部单据"
|
|
|
@@ -234,34 +208,57 @@ Page({
|
|
|
}, ] //打印
|
|
|
} else {
|
|
|
// 0702
|
|
|
- buttonList = [{
|
|
|
- name: 'transferToWarehouse',
|
|
|
- title: mixins.$t('transferToWarehouse'), //转入库
|
|
|
- formMode: Constants.formMode.other,
|
|
|
- other: {
|
|
|
- idKey: 'purId'
|
|
|
+ if (this.data.gradeCode == Constants.gradeCode.PRO) {
|
|
|
+ buttonList = [{
|
|
|
+ name: 'transferToWarehouse',
|
|
|
+ title: mixins.$t('transferToWarehouse'), //转入库
|
|
|
+ formMode: Constants.formMode.other,
|
|
|
+ other: {
|
|
|
+ idKey: 'purId'
|
|
|
+ },
|
|
|
+ }, {
|
|
|
+ name: 'editPur',
|
|
|
+ title: mixins.$t('edit'),
|
|
|
+ }, {
|
|
|
+ name: 'purchaseCancellation',
|
|
|
+ title: mixins.$t('purchaseCancellation'), //采购作废
|
|
|
+ }, //title:mixins.$t('followUp')
|
|
|
+ {
|
|
|
+
|
|
|
+ name: 'selectSourcePurchaseOrder',
|
|
|
+ title: mixins.$t('purReturnOutBound'), //采购退货
|
|
|
+ formMode: Constants.formMode.index,
|
|
|
+ formType: Constants.formMode.add,
|
|
|
+ idKey: 'purId',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'printedBill',
|
|
|
+ title: mixins.$t('printedBill') //打印票据
|
|
|
},
|
|
|
- }, {
|
|
|
- name: 'editPur',
|
|
|
- title: mixins.$t('edit'),
|
|
|
- }, {
|
|
|
- name: 'purchaseCancellation',
|
|
|
- title: mixins.$t('purchaseCancellation'), //采购作废
|
|
|
- }, //title:mixins.$t('followUp')
|
|
|
- {
|
|
|
|
|
|
- name: 'selectSourcePurchaseOrder',
|
|
|
- title: mixins.$t('purReturnOutBound'), //采购退货
|
|
|
- formMode: Constants.formMode.index,
|
|
|
- formType: Constants.formMode.add,
|
|
|
- idKey: 'purId',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'printedBill',
|
|
|
- title: mixins.$t('printedBill') //打印票据
|
|
|
- },
|
|
|
+ ]
|
|
|
+ }else {
|
|
|
+ buttonList = [{
|
|
|
+ name: 'editPur',
|
|
|
+ title: mixins.$t('edit'),
|
|
|
+ }, {
|
|
|
+ name: 'purchaseCancellation',
|
|
|
+ title: mixins.$t('purchaseCancellation'), //采购作废
|
|
|
+ }, //title:mixins.$t('followUp')
|
|
|
+ {
|
|
|
|
|
|
- ]
|
|
|
+ name: 'selectSourcePurchaseOrder',
|
|
|
+ title: mixins.$t('purReturnOutBound'), //采购退货
|
|
|
+ formMode: Constants.formMode.index,
|
|
|
+ formType: Constants.formMode.add,
|
|
|
+ idKey: 'purId',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'printedBill',
|
|
|
+ title: mixins.$t('printedBill') //打印票据
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
}
|
|
|
this.setData({
|
|
|
// 弹出按钮
|