asd26269546 1 年間 前
コミット
db814446c7

+ 1 - 3
src/components/byTable/index.vue

@@ -437,6 +437,7 @@ export default defineComponent({
 		}
 		// 匹配 render 开头的函数
 		const getMatchRenderFunction = (obj) => {
+			
 			return Object.keys(obj).find((key) => {
 				const matchRender = key.match(/^render.*/)
 				return matchRender && matchRender[0]
@@ -446,7 +447,6 @@ export default defineComponent({
 			return isFn(fn)
 		}
 		const searchFn = (val) => {
-			console.log(props)
 			proxy.$emit(
 				'getList',
 				Object.assign(props.filterParams, {
@@ -455,7 +455,6 @@ export default defineComponent({
 			)
 		}
 		const retrievalModalFn = () => {
-			console.log(proxy.$attrs)
 			proxy.$emit('moreSearch', '')
 			//获取父组件定义的moreSearch方法
 		}
@@ -502,7 +501,6 @@ export default defineComponent({
 				return
 			}
 			i.label = item.label
-			console.log(item, i)
 			proxy.$emit(
 				'getList',
 				Object.assign(props.filterParams, { [i.prop]: item.value })

+ 7 - 5
src/components/process/SendPurchase.vue

@@ -132,11 +132,11 @@
               >
                 <el-input-number
                   onmousewheel="return false;"
-                  v-model="row.count"
+                  :value="formData.data.purchaseDetailList[$index].count"
                   :precision="2"
                   :controls="false"
                   :min="0"
-                  @change="handleChangeAmount"
+                  @change="(e) => handleChangeAmount(e, $index,'count')"
                 />
               </el-form-item>
             </template>
@@ -150,11 +150,11 @@
               >
                 <el-input-number
                   onmousewheel="return false;"
-                  v-model="row.price"
+                  :value="formData.data.purchaseDetailList[$index].price"
                   :precision="2"
                   :controls="false"
                   :min="0"
-                  @change="handleChangeAmount"
+                  @change="(e) => handleChangeAmount(e, $index,'price')"
                 />
               </el-form-item>
             </template>
@@ -707,7 +707,9 @@ const handleChangeOtherAmount = () => {
 };
 
 // 计算采购总金额
-const handleChangeAmount = () => {
+const handleChangeAmount = (e,index,key) => {
+  console.log(e,index,key)
+  formData.data.purchaseDetailList[index][key] = e
   handleChangeProductAmount();
   handleChangeOtherAmount();
   let sum = 0;

+ 11 - 17
src/views/finance/fundManage/comeAndGo/index.vue

@@ -59,23 +59,17 @@
         <template #amount>
           <div style="width: 100%">
             <el-form-item prop="amount">
-              <div style="display: flex">
-                <div style="width: 100px">
-                  <el-select v-model="formData.data.currency" placeholder="请选择币种" style="width: 100px">
-                    <el-option v-for="item in accountCurrency" :key="item.value" :label="item.value" :value="item.value" />
-                  </el-select>
-                </div>
-                <div style="width: calc(100% - 100px)">
-                  <el-input-number
-                    onmousewheel="return false;"
-                    v-model="formData.data.amount"
-                    placeholder="请输入金额"
-                    style="width: 100%"
-                    :precision="2"
-                    :controls="false"
-                    :min="0" />
-                </div>
-              </div>
+              <el-select  v-model="formData.data.currency" placeholder="请选择币种" style="width: 100px">
+                <el-option v-for="item in accountCurrency" :key="item.value" :label="item.value" :value="item.value" />
+              </el-select>
+              <el-input-number
+                onmousewheel="return false;"
+                v-model="formData.data.amount"
+                placeholder="请输入金额"
+                style="width: calc(100% - 100px)"
+                :precision="2"
+                :controls="false"
+                :min="0" />
             </el-form-item>
           </div>
         </template>