master
fanfan 1 month ago
parent 4522769607
commit fc6610460b
  1. 31
      src/api/order/index.js
  2. 12
      src/views/goods/Index.vue
  3. 52
      src/views/order/Index.vue

@ -1,5 +1,34 @@
import { axios } from '@/utils/request'
/**
* 审单
* @param {*} data
*/
export function updateStandard(data) {
return axios({
url: '/order/updateStandard',
method: 'post',
data
})
}
/**
* 审单
* @param {*} data
*/
export function standard(data) {
return axios({
url: '/order/standard',
method: 'post',
data
})
}
// 列表记录
export function getStandardList (params) {
return axios({
url: 'order/getStandard',
method: 'get',
params
})
}
// api接口列表
const api = {
list: '/order/list',

@ -111,21 +111,22 @@
<div class="generatePrice">
<span style="font-size: 12px"></span>
<!-- {{ generateItem.goods_price_min }} -->
<a-input
<a-input v-if="trimShow==2"
@blur="searchChange"
v-model:value="generateItem.goods_price_min"
style="width: 150px"
placeholder="请输入商品价格"
allow-clear
/>
<span v-if="trimShow==1" style="padding-right:60px" @click="handleInputChange">{{generateItem.goods_price_min}}</span>
<span
style="font-size: 12px; color: #999; font-weight: 500; text-decoration: line-through; line-height: 32px"
>原价{{ generateItem.line_price_min }}</span
>
</div>
<div class="generateTips tags">
<div class="span">大牌正品 </div>
<div class="span"> 现货秒发</div>
<div class="span">大牌正品</div>
<div class="span">现货秒发</div>
<!-- <div class="span">超高好评</div> -->
</div>
<div class="generateName">{{ generateItem.goods_name }}</div>
@ -619,6 +620,7 @@ export default {
generateVisible: false,
generateItem: '',
is_jingpin: 1,
trimShow:1,
categoryIds: [],
}
},
@ -1017,6 +1019,10 @@ export default {
},
searchChange() {
this.$message.success('修改完成', 1.5)
this.trimShow = 1
},
handleInputChange() {
this.trimShow = 2
},
//
async handleEdit(id) {

@ -220,6 +220,18 @@
>删除</a
>
<a @click="copyText(item.copy_text)">复制</a>
<!-- <a
style="pointer-events: none; cursor: default; color: gray"
v-if="item.standard_count == 1"
>审单</a
>
<a @click="reviewDocuments(item, 2)" v-if="item.standard_count == 1">再次审单</a>
<a
style="pointer-events: none; cursor: default; color: gray"
v-if="item.standard_count == 2"
>再次审单</a
>
<a @click="documentRecord(item)">审单记录</a> -->
</div>
</td>
</template>
@ -403,6 +415,46 @@ export default {
this.getShopList()
},
methods: {
reviewDocuments(item, type) {
if (type == 1) {
const app = this
const modal = app.$confirm({
title: '是否确定审单?',
onOk() {
return Api.standard({
orderId: item.order_id,
form: {
type: 10,
},
})
.then((result) => {
app.$message.success(result.message, 1.5)
app.handleRefresh()
})
.finally((result) => modal.destroy())
},
})
}
if (type == 2) {
const app = this
const modal = app.$confirm({
title: '是否确定再次审单?',
onOk() {
return Api.standard({
orderId: item.order_id,
form: {
type: 20,
},
})
.then((result) => {
app.$message.success(result.message, 1.5)
app.handleRefresh()
})
.finally((result) => modal.destroy())
},
})
}
},
//
init() {
this.dataType = this.getDataType()

Loading…
Cancel
Save