Commit d4feed4c by lichengming

修改了客户在线委托单编辑送出检下拉框

parent a9c08c18
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</Radio-group> </Radio-group>
</Form-item> </Form-item>
<Form-item label="委托单位" prop="client" class="width-48"> <Form-item label="委托单位" prop="client" class="width-48">
<AutoComplete :value="formObj.client" :down-data="customerData" name="client" <AutoComplete :value="formObj.client" :down-data="customerData" @on-result-change="_cusNameChange"
placeholder="请输入或选择委托单位" @on-result-change="_cusNameChange" name="client" placeholder="请输入或选择委托单位"
></AutoComplete> ></AutoComplete>
</Form-item> </Form-item>
<Form-item label="联系人" prop="operation.person" class="width-48"> <Form-item label="联系人" prop="operation.person" class="width-48">
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<Input v-model="formObj.operation.fax" name="operation.fax" placeholder="请输入传真"/> <Input v-model="formObj.operation.fax" name="operation.fax" placeholder="请输入传真"/>
</Form-item> </Form-item>
<Form-item label="省、市、区" prop="testedCityData" class="width-48"> <Form-item label="省、市、区" prop="testedCityData" class="width-48">
<CityNameCascader :value="testedCityData.join(',')" name="tested" @on-result-change="_cascaderResult"> <CityNameCascader :value="testedCityData.join(',')" @on-result-change="_cascaderResult" name="tested">
</CityNameCascader> </CityNameCascader>
</Form-item> </Form-item>
<Form-item label="街道" prop="street" class="width-48"> <Form-item label="街道" prop="street" class="width-48">
...@@ -38,14 +38,14 @@ ...@@ -38,14 +38,14 @@
<Input v-model="formObj.operation.email" name="operation.email" placeholder="请输入E-mail"/> <Input v-model="formObj.operation.email" name="operation.email" placeholder="请输入E-mail"/>
</Form-item> </Form-item>
<Form-item label="委托日期:" prop="edate" class="width-48"> <Form-item label="委托日期:" prop="edate" class="width-48">
<Date-picker v-model="formObj.edate" type="date" split-panels style="width:100%;" placeholder="请选择委托日期" <Date-picker v-model="formObj.edate" @on-change="_ctimeChange" type="date" split-panels style="width:100%;"
@on-change="_ctimeChange"></Date-picker> placeholder="请选择委托日期"></Date-picker>
</Form-item> </Form-item>
<Form-item label="合同号:" prop="contractCode" class="width-48"> <Form-item label="合同号:" prop="contractCode" class="width-48">
<Input v-model="formObj.contractCode" name="contractCode" placeholder="请输入合同号"/> <Input v-model="formObj.contractCode" name="contractCode" placeholder="请输入合同号"/>
</Form-item> </Form-item>
<Form-item label="委托费用:" prop="operation.fee" class="width-48"> <Form-item label="委托费用:" prop="operation.fee" class="width-48">
<Input v-model="formObj.operation.fee" type="number" name="operation.fee" placeholder="请输入委托费用" @keydown.native="channelInputLimit"/> <Input v-model="formObj.operation.fee" @keydown.native="channelInputLimit" type="number" name="operation.fee" placeholder="请输入委托费用"/>
</Form-item> </Form-item>
<Form-item label="备注:" prop="remark" style="width: 99.8%"> <Form-item label="备注:" prop="remark" style="width: 99.8%">
<Input v-model="formObj.remark" :rows="3" name="remark" type="textarea" <Input v-model="formObj.remark" :rows="3" name="remark" type="textarea"
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<Col span="24"> <Col span="24">
<!-- <btn-list :msg="btn" :open="searchOpen" :showSearchBtn="false" @on-result-change="_btnClick"--> <!-- <btn-list :msg="btn" :open="searchOpen" :showSearchBtn="false" @on-result-change="_btnClick"-->
<!-- class="contHide"></btn-list>--> <!-- class="contHide"></btn-list>-->
<Button type="success" @click="_add()">添加</Button> <Button @click="_add()" type="success">添加</Button>
</Col> </Col>
<Col span="24"> <Col span="24">
<PTVXETable <PTVXETable
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="item.key==='name'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='name'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.name" blur placeholder="请输入或选择样品名称" @on-result-change="_judgeBasisChange" @click.native="_selectjudgeBasis(scope.$rowIndex)" <el-input v-model="scope.row.name" @on-result-change="_judgeBasisChange" @click.native="_selectjudgeBasis(scope.$rowIndex)" blur placeholder="请输入或选择样品名称"
></el-input> ></el-input>
</div> </div>
<div v-if="item.key==='spec'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='spec'" @click.stop="_handleRow(scope)">
...@@ -95,28 +95,35 @@ ...@@ -95,28 +95,35 @@
</Option> </Option>
</Select> </Select>
</div> </div>
<div v-if="item.key==='sampleType'" @click.stop="_handleRow(scope)">
<Select v-model="scope.row.sampleType">
<Option v-for="(item,index) in typeOptions" :key="item.name" :value="index">
{{ item.name }}
</Option>
</Select>
</div>
<div v-if="item.key==='quantity'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='quantity'" @click.stop="_handleRow(scope)">
<el-input <el-input
v-model="scope.row.quantity" v-model="scope.row.quantity"
@keydown.native="channelInputLimit"
type="number" type="number"
placeholder="请输入或选择数量" placeholder="请输入或选择数量"
@keydown.native="channelInputLimit"
/> />
</div> </div>
<div v-if="item.key==='price'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='price'" @click.stop="_handleRow(scope)">
<el-input <el-input
v-model="scope.row.price" v-model="scope.row.price"
@keydown.native="channelInputLimit"
type="number" type="number"
placeholder="请输入单价" placeholder="请输入单价"
@keydown.native="channelInputLimit"
/> />
</div> </div>
<div v-if="item.key==='totalPrice'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='totalPrice'" @click.stop="_handleRow(scope)">
<el-input <el-input
v-model="scope.row.totalPrice" v-model="scope.row.totalPrice"
@keydown.native="channelInputLimit"
type="number" type="number"
placeholder="请输入总价" placeholder="请输入总价"
@keydown.native="channelInputLimit"
/> />
</div> </div>
</template> </template>
...@@ -127,7 +134,7 @@ ...@@ -127,7 +134,7 @@
<div slot="footer"> <div slot="footer">
<modal-footer ref="footerModal" :footer="footerList" @on-result-change="_footerResult"></modal-footer> <modal-footer ref="footerModal" :footer="footerList" @on-result-change="_footerResult"></modal-footer>
</div> </div>
<EditModal ref="EditModal" is-change @on-result-change="_backData" /> <EditModal ref="EditModal" @on-result-change="_backData" is-change />
</Modal> </Modal>
</div> </div>
</template> </template>
...@@ -200,6 +207,14 @@ export default { ...@@ -200,6 +207,14 @@ export default {
name: '外观检查' name: '外观检查'
} }
], ],
typeOptions: [
{
name: '送检'
},
{
name: '出检'
}
],
index: 0, index: 0,
id: '', id: '',
modalTitle: '', modalTitle: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment