zhouwx
2024-06-14 137910cf4fc73a3a2787a3a02718f1e1f637c368
src/views/safetyReview/projectManage/components/contractManage.vue
@@ -17,13 +17,16 @@
        <el-col :span="18">
          <el-form-item prop="contractMoney">
            <template #label>
              项目合同额<span style="font-size: 13px;color: red;font-weight: normal;display: inline-block;margin-left: 6px">预估合同金额,归档阶段可以进行修改。仅支持数字,单位万元,小数点后最多两位,数值范围(0.01-999.99)</span>
              项目合同额<span style="font-size: 13px;color: red;font-weight: normal;display: inline-block;margin-left: 6px" @input="state.formData.contractMoney= state.formData.contractMoney.replace(/[^\d|\.]/g,'')"
            >预估合同金额,归档阶段可以进行修改。仅支持数字,单位万元,小数点后最多两位,数值范围(0.01-999.99)</span>
            </template>
            <el-input
                v-model="state.formData.contractMoney"
                size="large"
                type="number"
                placeholder="请输入项目合同额"
                @input="state.formData.contractMoney= state.formData.contractMoney.replace(/[^0-9.\/\-]/g,'')"
            >
              <template #append>万元</template>
            </el-input>
@@ -54,6 +57,7 @@
const state = reactive({
  formData: {
    id: '',
    projectId: null,
    contractSignDate: '',
    contractMoney: '',
    contractIntroduction: ''
@@ -74,10 +78,13 @@
});
const riskOpen = async (type,val) => {
  state.formData.projectId = val;
  if(type === 'detail' || type === 'edit' ){
    const res = await getDetail({projectId: val});
    if(res.code == 200){
      state.formData = res.data;
      if(res.data){
        state.formData = res.data;
      }
    }else {
      ElMessage.warning(res.message)
    }
@@ -95,7 +102,7 @@
        if (res.code == 200) {
          ElMessage.success('保存成功')
          formRef.value.clearValidate();
          emit('getNextStatus', res.data);
          emit('getNextStatus', state.formData.projectId);
        } else {
          ElMessage.warning(res.message)
        }