zuozhengqing
2023-10-12 35c728f77749c36646c16604359db97d217bd49e
销售明细、退货、退款单弹窗回显编码
4个文件已修改
117 ■■■■■ 已修改文件
src/views/sales/refundForm/AddRefundFormDialog.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesReturn/AddSalesReturnDialog.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesReturn/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -52,8 +52,22 @@
              </el-col>
              <el-col :span="12">
                <el-form-item label="退款单编号" prop="number">
                  <el-input v-model="editConfig.infomation.number"
                    style="width:100%"></el-input>
                  <WordInput
                    v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0"
                    :codenumer="codenumer"
                    :sum="sum"
                    :disabled="editConfig.infomation.id || isIdDisabled"
                    :inputValue="inputValue"
                    @codeList="codeList"
                  />
                  <span v-else-if="method == 0" style="color: #f56c6c"
                    >请优先配置编码规范
                    <el-button type="text"  @click="numberClick">
                        配置规范
                      </el-button
                    ></span
                  >
                  <span v-else>{{editConfig.title==='新建'? '自动生成': editConfig.infomation.number}}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
@@ -303,8 +317,10 @@
import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog"
import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog"
import { getPaymentTypeList } from "@/api/common/payment"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin";
export default {
  name: "AddRefundFormDialog",
  mixins:[codeMixin],
  props: {
    editCommonConfig: {
      type: Object,
@@ -373,8 +389,27 @@
    this.$store.dispatch("geReturnList")
    this.setTableForm()
    this.getCommonData()
    this.formInfo();
  },
  watch:{
    'editClientManageConfig.visible'(val){
      if(val){
        this.formInfo()
      }
    },
    'editClientManageConfig.infomation.codeStandID'(){
      this.formInfo()
    }
  },
  methods: {
    formInfo(){
      this.objCode.type='销售退款编码'
      this.objCode.codeStandID = ''
      if(this.editConfig.infomation.codeStandID){
        this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
      }
      this.getRCodeStandardList();
    },
    getCommonData() {
      getAllData().then((res) => {
        this.memberOptions = res.data.member
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -52,7 +52,22 @@
              </el-col>
              <el-col :span="12">
                <el-form-item label="订单编号" prop="number">
                  <el-input v-model="editConfig.infomation.number" style="width:100%"></el-input>
                  <WordInput
                    v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0"
                    :codenumer="codenumer"
                    :sum="sum"
                    :disabled="editConfig.infomation.id || isIdDisabled"
                    :inputValue="inputValue"
                    @codeList="codeList"
                  />
                  <span v-else-if="method == 0" style="color: #f56c6c"
                    >请优先配置编码规范
                    <el-button type="text"  @click="numberClick">
                        配置规范
                      </el-button
                    ></span
                  >
                  <span v-else>{{editConfig.title==='新建'? '自动生成': editConfig.infomation.number}}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
@@ -363,8 +378,10 @@
import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog"
import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog"
import AddCollectionPlan from "@/views/other/payment/collectionPlan/AddCollectionPlan"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin";
export default {
  name: "AddSalesDetailsDialog",
  mixins:[codeMixin],
  props: {
    editCommonConfig: {
      type: Object,
@@ -436,8 +453,27 @@
    this.$store.dispatch("geChance")
    this.setTableForm()
    this.getCommonData()
    this.formInfo();
  },
  watch:{
    'editClientManageConfig.visible'(val){
      if(val){
        this.formInfo()
      }
    },
    'editClientManageConfig.infomation.codeStandID'(){
      this.formInfo()
    }
  },
  methods: {
    formInfo(){
      this.objCode.type='销售明细编码'
      this.objCode.codeStandID = ''
      if(this.editConfig.infomation.codeStandID){
        this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
      }
      this.getRCodeStandardList();
    },
    getCommonData() {
      getAllData()
        .then((res) => {
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -52,7 +52,22 @@
              </el-col>
              <el-col :span="12">
                <el-form-item label="销售退货单编号" prop="number">
                  <el-input v-model="editConfig.infomation.number" style="width:100%"></el-input>
                  <WordInput
                    v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0"
                    :codenumer="codenumer"
                    :sum="sum"
                    :disabled="editConfig.infomation.id || isIdDisabled"
                    :inputValue="inputValue"
                    @codeList="codeList"
                  />
                  <span v-else-if="method == 0" style="color: #f56c6c"
                    >请优先配置编码规范
                    <el-button type="text"  @click="numberClick">
                        配置规范
                      </el-button
                    ></span
                  >
                  <span v-else>{{editConfig.title==='新建'? '自动生成': editConfig.infomation.number}}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
@@ -234,8 +249,10 @@
import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog"
import { getProductList } from "@/api/common/other"
import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin";
export default {
  name: "AddSalesReturnDialog",
  mixins:[codeMixin],
  props: {
    editCommonConfig: {
      type: Object,
@@ -300,8 +317,27 @@
    this.setTableForm()
    this.getCommonData()
    this.getProductList()
    this.formInfo();
  },
  watch:{
    'editClientManageConfig.visible'(val){
      if(val){
        this.formInfo()
      }
    },
    'editClientManageConfig.infomation.codeStandID'(){
      this.formInfo()
    }
  },
  methods: {
    formInfo(){
      this.objCode.type='销售退货编码'
      this.objCode.codeStandID = ''
      if(this.editConfig.infomation.codeStandID){
        this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
      }
      this.getRCodeStandardList();
    },
    getCommonData() {
      getAllData()
        .then((res) => {
src/views/sales/salesReturn/index.vue
@@ -239,7 +239,7 @@
      console.log(row)
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = { ...row, currency: "人民币", salesDetailNumber: row.Source.number }
      this.editConfig.infomation = { ...row, currency: "人民币"}
    },
    // 删除
    delClick(rowID) {