|
@@ -296,7 +296,7 @@
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button plain type="info" icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['store:storeOrder:importExpress']">导入银行回单</el-button>
|
|
<el-button plain type="info" icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['store:storeOrder:importExpress']">导入银行回单</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
|
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="success"
|
|
type="success"
|
|
|
icon="el-icon-s-check"
|
|
icon="el-icon-s-check"
|
|
@@ -306,7 +306,7 @@
|
|
|
v-hasPermi="['store:storeOrder:batchAudit']"
|
|
v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
>确认审核
|
|
>确认审核
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- </el-col>
|
|
|
|
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="warning"
|
|
type="warning"
|
|
@@ -602,6 +602,18 @@
|
|
|
@click="handleDetails(scope.row)"
|
|
@click="handleDetails(scope.row)"
|
|
|
v-hasPermi="['store:storeOrder:query']"
|
|
v-hasPermi="['store:storeOrder:query']"
|
|
|
>查看</el-button>
|
|
>查看</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleOrderAudit(scope.row)"
|
|
|
|
|
+ v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
|
|
+ >确认审核</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleOrderReamrk(scope.row)"
|
|
|
|
|
+ v-hasPermi="['store:storeOrder:remark']"
|
|
|
|
|
+ >订单备注</el-button>
|
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
@@ -1028,6 +1040,24 @@
|
|
|
>确认导出</el-button>
|
|
>确认导出</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 订单备注 -->
|
|
|
|
|
+ <el-dialog :title="remark.title" v-if="remark.open" :visible.sync="remark.open" width="800px" append-to-body>
|
|
|
|
|
+ <el-form :model="remarkForm" label-width="100px">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ type="textarea"
|
|
|
|
|
+ :autosize="{ minRows: 5, maxRows: 50}"
|
|
|
|
|
+ placeholder="备注"
|
|
|
|
|
+ v-model="remarkForm.orderRemark">
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="cancelRemark">取 消</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ @click="confirmRemark"
|
|
|
|
|
+ >确认</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -1046,7 +1076,7 @@ import {
|
|
|
getOrderItemsNum,
|
|
getOrderItemsNum,
|
|
|
importDeliveryNoteExpressTemplate, exportStoreOrderDetails, exportStoreOrderItemsDetails,getErpAccount,
|
|
importDeliveryNoteExpressTemplate, exportStoreOrderDetails, exportStoreOrderItemsDetails,getErpAccount,
|
|
|
queryErpPhone,
|
|
queryErpPhone,
|
|
|
- saveErpPhone,editErpPhone,batchCreateErpOrder,batchSetErpOrder,auditStoreOrder
|
|
|
|
|
|
|
+ saveErpPhone,editErpPhone,batchCreateErpOrder,batchSetErpOrder,auditStoreOrder,orderRemark
|
|
|
} from '@/api/hisStore/storeOrder'
|
|
} from '@/api/hisStore/storeOrder'
|
|
|
import { getUserList } from "@/api/hisStore/user";
|
|
import { getUserList } from "@/api/hisStore/user";
|
|
|
import { getAddressList } from "@/api/hisStore/userAddress";
|
|
import { getAddressList } from "@/api/hisStore/userAddress";
|
|
@@ -1075,6 +1105,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+
|
|
|
|
|
+ remark: {
|
|
|
|
|
+ title: '订单备注',
|
|
|
|
|
+ open:false
|
|
|
|
|
+ },
|
|
|
|
|
+ remarkForm: {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ orderRemark: null,
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
orderStatus:null,
|
|
orderStatus:null,
|
|
|
productInfo:"",
|
|
productInfo:"",
|
|
|
payPriceTotal:"0",
|
|
payPriceTotal:"0",
|
|
@@ -1400,6 +1440,25 @@ export default {
|
|
|
this.getAppMallOptions();
|
|
this.getAppMallOptions();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleOrderReamrk(row){
|
|
|
|
|
+ this.remarkForm.id = row.id;
|
|
|
|
|
+ this.remark.open = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelRemark(){
|
|
|
|
|
+ this.remarkForm = {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ orderRemark: null,
|
|
|
|
|
+ }
|
|
|
|
|
+ this.remark.open = false;
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ confirmRemark(){
|
|
|
|
|
+ orderRemark(this.remarkForm).then(res => {
|
|
|
|
|
+ this.$message.success("备注成功");
|
|
|
|
|
+ this.remark.open = false;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
// 新增排序处理方法
|
|
// 新增排序处理方法
|
|
|
handleSortChange({ column, prop, order }) {
|
|
handleSortChange({ column, prop, order }) {
|
|
|
console.log('排序变化:', { column, prop, order });
|
|
console.log('排序变化:', { column, prop, order });
|
|
@@ -2329,17 +2388,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/** 订单确认审核 */
|
|
/** 订单确认审核 */
|
|
|
- handleOrderAudit(){
|
|
|
|
|
- if (this.ids.length === 0) {
|
|
|
|
|
- this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- this.$confirm('是否确认审核选中的订单?', "提示", {
|
|
|
|
|
|
|
+ handleOrderAudit(row){
|
|
|
|
|
+ // if (this.ids.length === 0 && row) {
|
|
|
|
|
+ // this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
|
|
+ const ids = [row.id];
|
|
|
|
|
+ //const ids = row.id || this.ids;
|
|
|
|
|
+ this.$confirm('是否确认审核订单号:'+row.orderCode+'?', "提示", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- return auditStoreOrder({ orderIds: this.ids, isAudit: 1 });
|
|
|
|
|
|
|
+ return auditStoreOrder({ orderIds: ids, isAudit: 1 });
|
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.msgSuccess(response.msg || "审核成功");
|
|
this.msgSuccess(response.msg || "审核成功");
|