Commit 35379d23 by 王志慧

更换config配置

1 parent 8fbb396b
...@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) { ...@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
let params = { moduleName: 'inventory', mockUrl: 'http://oss-config.dev.glsx.com.cn/mock/6423df03079be3540abbb69e/purchase/config', env: 'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'inventory', mockUrl: 'http://oss-config.dev.glsx.com.cn/mock/6423df03079be3540abbb69e/purchase/config',httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params) return utils.getConfig(params)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res) // return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res)
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleClose">关闭</el-button>
</span>
</GLDialog> </GLDialog>
</template> </template>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
</div> </div>
<p class="title">盘存</p> <p class="title">盘存</p>
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn"> <GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf">
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="inventory(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button> <el-button type="text" @click="inventory(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button>
</div> </div>
...@@ -59,6 +59,7 @@ export default { ...@@ -59,6 +59,7 @@ export default {
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: {}, searchSelectObj: {},
getListApi: this.$apis.stockManage.stockRemainPage, getListApi: this.$apis.stockManage.stockRemainPage,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleClose">关闭</el-button>
</span>
</GLDialog> </GLDialog>
</template> </template>
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
说明:月平均加权单价=上月结存库存金额+本月采购金额/上月结存库存数量+本月采购数量 说明:月平均加权单价=上月结存库存金额+本月采购金额/上月结存库存数量+本月采购数量
</span> </span>
</div> </div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleClose">关闭</el-button>
</span>
</GLDialog> </GLDialog>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!