|
|
|
@ -69,6 +69,8 @@
|
|
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
|
|
<a v-has="'erp:order:edit'" @click="handleEdit(record)">编辑</a>
|
|
|
|
|
<a v-has="'erp:order:check'" @click="handleConfirm(1, record)">审核</a>
|
|
|
|
|
<a v-has="'erp:order:dispatch'" @click="handleConfirm(2, record)">派发</a>
|
|
|
|
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
|
|
<a-dropdown>
|
|
|
|
@ -99,6 +101,7 @@
|
|
|
|
|
import OrderModal from './modules/OrderModal'
|
|
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
|
|
import { editOrder } from '@/api/shop'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "OrderList",
|
|
|
|
@ -211,6 +214,21 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleConfirm(state, row) {
|
|
|
|
|
const that = this
|
|
|
|
|
this.$confirm({
|
|
|
|
|
title: "确认操作",
|
|
|
|
|
content: "是否确认此操作?",
|
|
|
|
|
onOk: function () {
|
|
|
|
|
row.state = state
|
|
|
|
|
addOrder(row).then(res => {
|
|
|
|
|
that.$message.success('操作成功');
|
|
|
|
|
that.loadData(1);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
initDictConfig(){
|
|
|
|
|
},
|
|
|
|
|
getSuperFieldList(){
|
|
|
|
|