Commit f7054f36 by 王志慧

修复线上bug

1 parent 4bff5e19
...@@ -12,13 +12,14 @@ let instance = null ...@@ -12,13 +12,14 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState,routerBase }) { export async function bootstrap({ history, common, messenger, globalState,routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(common) const { response, request, sign, secret, sign_common, request_common, purchaseType} = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$purchaseType = purchaseType
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
name: 'warehousing', name: 'warehousing',
data() { data() {
return { return {
purchaseType:'',
membraneTypeList: membraneTypeList, membraneTypeList: membraneTypeList,
size: 'small', size: 'small',
url: url, url: url,
...@@ -144,7 +145,7 @@ export default { ...@@ -144,7 +145,7 @@ export default {
label: '入库数量', label: '入库数量',
prop: 'increaseStockNum', prop: 'increaseStockNum',
formatter: cellValue => { formatter: cellValue => {
return cellValue.increaseStockNum || cellValue.increaseStockNum == 0 ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) && cellValue.goodsTypeName != '自建商品'? '米' : '件') : '-' return cellValue.increaseStockNum || cellValue.increaseStockNum == 0 ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) && cellValue.goodsType != purchaseType? '米' : '件') : '-'
}, },
width: 120 width: 120
}, },
...@@ -200,6 +201,7 @@ export default { ...@@ -200,6 +201,7 @@ export default {
}, },
mounted() { mounted() {
this.purchaseType = this.$purchaseType
this.$apis.product.getProductTypeBySceneId({ sceneType: '' }).then(res => { this.$apis.product.getProductTypeBySceneId({ sceneType: '' }).then(res => {
this.baseData.productTypeList = res this.baseData.productTypeList = res
this.getOptionsList('showFormData') this.getOptionsList('showFormData')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!