Browse Source

修改界面信息

devlop
杨阁辉 4 years ago
parent
commit
1c52abed3a
4 changed files with 34 additions and 11 deletions
  1. 9
      apis/add-paper.js
  2. 32
      pages/add-paper/index.vue
  3. 2
      pages/trade/orderList.vue
  4. 2
      pages/trade/quotationList.vue

9
apis/add-paper.js

@ -0,0 +1,9 @@
import http from '../utils/http/index.js'
// 添加纸品
export function createProduct(data) {
return http.post({
url: '/base-paper-trading/create/product',
data
})
}

32
pages/add-paper/index.vue

@ -14,7 +14,7 @@
<text class="add-paper-text">纸品名称</text>
</view>
<view class="add-paper-input">
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸品名称"></uni-easyinput>
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="form.name" placeholder="请输入纸品名称"></uni-easyinput>
</view>
</view>
<view class="add-paper-border"></view>
@ -24,7 +24,7 @@
<text class="add-paper-text">纸厂信息</text>
</view>
<view class="add-paper-input">
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸厂信息"></uni-easyinput>
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="form.manufacturerName" placeholder="请输入纸厂信息"></uni-easyinput>
</view>
</view>
<view class="add-paper-border"></view>
@ -34,7 +34,7 @@
<text class="add-paper-text">品牌信息</text>
</view>
<view class="add-paper-input">
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸品品牌名称"></uni-easyinput>
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="form.brandName" placeholder="请输入纸品品牌名称"></uni-easyinput>
</view>
</view>
<view class="add-paper-border"></view>
@ -44,7 +44,7 @@
<text class="add-paper-text">纸种信息</text>
</view>
<view class="add-paper-input">
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸品名称"></uni-easyinput>
<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="form.manufacturerName" placeholder="请输入纸品名称"></uni-easyinput>
</view>
</view>
<view class="add-paper-border"></view>
@ -54,22 +54,36 @@
<text class="add-paper-text">是否主营</text>
</view>
<view>
<uni-data-checkbox v-model="radio" :localdata="range" @change="change"></uni-data-checkbox>
<uni-data-checkbox v-model="form.isMainProduct" :localdata="range" @change="change"></uni-data-checkbox>
</view>
</view>
</view>
<uGap></uGap>
<view class="">
<view class="">
<text>纸品售价</text>
<text>(不设置最低起送量则不限制其送量要求)</text>
</view>
</view>
</view>
</template>s
<script>
import { back, go2 } from '@/utils/hook.js'
export default {
data() {
import { back, go2 } from '@/utils/hook.js'
import uGap from '@/components/u-gap/u-gap.vue'
export default {
components:{
uGap
},
data() {
return {
title:'添加纸品',
value:'',
radio:0,
range: [{"value": 0,"text": "是" },{"value": 1,"text": "否"}],
form:{
isMainProduct:true
},
range: [{"value": true,"text": "是" },{"value": false,"text": "否"}],
placeholderStyle:'text-align: right;'
}
},

2
pages/trade/orderList.vue

@ -98,7 +98,7 @@ export default {
//
getTradingQurty() {
return new Promise((resolve, reject) => {
gettradingHallList({ ...this.orderParams, ...this.orderPagination })
gettradingHallList({ ...this.orderPagination })
.then(res => {
if (res) {
if (this.orderPagination.pageNum == 1) {

2
pages/trade/quotationList.vue

@ -108,7 +108,7 @@ export default {
//
getQuotationQurty() {
return new Promise((resolve, reject) => {
getEnterpriseList({ ...this.params, ...this.pagination })
getEnterpriseList({ ...this.pagination })
.then(res => {
if (res) {
if (this.pagination.pageNum == 1) {

Loading…
Cancel
Save