|
|
@@ -608,6 +608,12 @@
|
|
|
@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
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@@ -1034,6 +1040,24 @@
|
|
|
>确认导出</el-button>
|
|
|
</div>
|
|
|
</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>
|
|
|
</template>
|
|
|
@@ -1052,7 +1076,7 @@ import {
|
|
|
getOrderItemsNum,
|
|
|
importDeliveryNoteExpressTemplate, exportStoreOrderDetails, exportStoreOrderItemsDetails,getErpAccount,
|
|
|
queryErpPhone,
|
|
|
- saveErpPhone,editErpPhone,batchCreateErpOrder,batchSetErpOrder,auditStoreOrder
|
|
|
+ saveErpPhone,editErpPhone,batchCreateErpOrder,batchSetErpOrder,auditStoreOrder,orderRemark
|
|
|
} from '@/api/hisStore/storeOrder'
|
|
|
import { getUserList } from "@/api/hisStore/user";
|
|
|
import { getAddressList } from "@/api/hisStore/userAddress";
|
|
|
@@ -1081,6 +1105,16 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
+ remark: {
|
|
|
+ title: '订单备注',
|
|
|
+ open:false
|
|
|
+ },
|
|
|
+ remarkForm: {
|
|
|
+ id: null,
|
|
|
+ orderRemark: null,
|
|
|
+ },
|
|
|
+
|
|
|
orderStatus:null,
|
|
|
productInfo:"",
|
|
|
payPriceTotal:"0",
|
|
|
@@ -1406,6 +1440,25 @@ export default {
|
|
|
this.getAppMallOptions();
|
|
|
},
|
|
|
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 }) {
|
|
|
console.log('排序变化:', { column, prop, order });
|