zuozhengqing
2023-10-12 35c728f77749c36646c16604359db97d217bd49e
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