zouyu
2023-11-16 754425386162ff681f78f72da8b1f991bef85377
src/views/plan/customerorder/customerorder-form.vue
@@ -32,7 +32,7 @@
            <el-col :span="6">
              <el-form-item label="同步数据来源" prop="sourceId">
                <el-input
                  v-model="dataForm.sourceId == 0 ? '同步' : '手动'"
                  :value="dataForm.sourceId == 0 ? '外部' : '内部'"
                  placeholder=""
                  disabled
                ></el-input>
@@ -156,12 +156,12 @@
                  placeholder=""
                  disabled
                >
                  <el-button
                  <!-- <el-button
                    slot="append"
                    icon="el-icon-search"
                    @click="openSalesPartDialog()"
                    v-show="dataForm.id"
                  ></el-button>
                  ></el-button> -->
                </el-input>
              </el-form-item>
            </el-col>
@@ -972,25 +972,21 @@
      this.$refs.dataForm.validate((valid) => {
        if (valid) {
          if (this.dataForm.id) {
            updateCustomerOrderById(this.dataForm)
              .then((data) => {
            updateCustomerOrderById(this.dataForm).then((data) => {
                this.$message.success('修改成功')
                this.visible = false
                this.buttonDisable = false
                this.$emit('refreshDataList', 1)
              })
              .catch((error) => {
              }).catch((error) => {
                this.buttonDisable = false
              })
          } else {
            addCustomerOrder(this.dataForm)
              .then((data) => {
            addCustomerOrder(this.dataForm).then((data) => {
                this.$message.success('添加成功')
                this.visible = false
                this.buttonDisable = false
                this.$emit('refreshDataList', 1)
              })
              .catch((error) => {
              }).catch((error) => {
                this.buttonDisable = false
              })
          }